:root {
  --cp-green: #7A9B2F;
  --cp-green-dark: #5F781F;
  --cp-blue: #5E8FC8;
  --cp-blue-deep: #2F5E8E;
  --cp-bg: #F6F4EF;
  --cp-white: #FFFFFF;
  --cp-text: #2B2B2B;
  --cp-muted: #6F6F6F;
  --cp-line: #D9E0D3;
  --cp-shadow: 0 18px 50px rgba(47, 94, 142, .12);
  --cp-radius: 24px;
  --cp-radius-sm: 18px;
  --cp-max: 1180px;
}

.cp-blog-post-page {
  font-family: 'Inter', sans-serif;
  color: var(--cp-text);
  background: linear-gradient(180deg, #ffffff 0%, var(--cp-bg) 100%);
  margin: 0;
  padding: 0;
}

.cp-container {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 0 20px;
}

.cp-section {
  padding: 88px 0;
  position: relative;
}

.cp-center {
  text-align: center;
}

.cp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cp-green-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

.cp-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--cp-green);
  border-radius: 99px;
}

.cp-title {
  font-family: 'Cardo', serif;
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--cp-blue-deep);
  letter-spacing: -0.02em;
}

.cp-subtitle {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--cp-muted);
  max-width: 800px;
  margin: 0 auto 30px;
}

/* HERO DEL ARTÍCULO */
.cp-blog-hero {
  background: linear-gradient(180deg, rgba(47, 94, 142, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
  padding-top: 100px;
  padding-bottom: 80px;
}

/* CONTENEDOR EDITORIAL */
.cp-blog-wrapper {
  background: var(--cp-white);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow);
  padding: 60px;
  margin-top: -40px;
  margin-bottom: 88px;
  position: relative;
  z-index: 10;
}

.cp-blog-intro {
  font-size: 17px;
  line-height: 1.85;
  color: var(--cp-text);
  margin-bottom: 40px;
}

/* METADATOS DEL POST (FECHA, CATEGORÍA) */
.cp-info-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
}

.cp-info-meta-card {
  background: var(--cp-bg);
  border-radius: var(--cp-radius-sm);
  padding: 20px 24px;
  border-left: 4px solid var(--cp-green);
  display: flex;
  flex-direction: column;
}

.cp-info-meta-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cp-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.cp-info-meta-val {
  font-family: 'Cardo', serif;
  font-size: 18px;
  color: var(--cp-blue-deep);
  font-weight: 700;
  word-break: break-word;
}

/* SECCIONES EDITORIALES */
.cp-blog-section {
  margin-bottom: 45px;
  border-bottom: 1px dashed var(--cp-line);
  padding-bottom: 40px;
}

.cp-blog-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.cp-blog-h2 {
  font-family: 'Cardo', serif;
  font-size: 26px;
  color: var(--cp-blue-deep);
  margin: 0 0 18px;
  line-height: 1.3;
}

.cp-blog-h3 {
  font-family: 'Cardo', serif;
  font-size: 21px;
  color: var(--cp-blue-deep);
  margin: 28px 0 14px;
  line-height: 1.3;
}

.cp-blog-text {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--cp-text);
  margin: 0 0 20px;
}

/* LISTA NUMÉRICA DE PASOS */
.cp-blog-steps {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.cp-blog-step-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 35px;
}

.cp-blog-step-number {
  position: absolute;
  left: 0;
  top: 2px;
  width: 36px;
  height: 36px;
  background: var(--cp-bg);
  border: 1.5px solid var(--cp-green);
  border-radius: 50%;
  color: var(--cp-green-dark);
  font-family: 'Cardo', serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LISTAS CON VIÑETAS */
.cp-blog-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.cp-blog-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--cp-text);
  margin-bottom: 12px;
}

.cp-blog-list li strong {
  color: var(--cp-blue-deep);
}

.cp-blog-list li::before {
  content: "•";
  color: var(--cp-green);
  font-weight: bold;
  font-size: 20px;
  position: absolute;
  left: 6px;
  top: -2px;
}

/* BLOQUE DE RECOMENDACIÓN / CALLOUT */
.cp-blog-callout {
  background: rgba(94, 143, 200, 0.06);
  border: 1px solid rgba(94, 143, 200, 0.15);
  border-radius: var(--cp-radius-sm);
  padding: 24px 28px;
  font-size: 15px;
  color: var(--cp-blue-deep);
  line-height: 1.7;
  margin: 28px 0;
}

.cp-blog-callout strong {
  color: var(--cp-blue-deep);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

/* ESTILO ADICIONAL PARA LAS REDES SOCIALES Y ASISTENCIA */
.cp-contact-box {
  background: var(--cp-bg);
  border-radius: var(--cp-radius-sm);
  padding: 30px;
  margin-top: 40px;
  border: 1px solid var(--cp-line);
}

.cp-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cp-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cp-blue-deep);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  background: var(--cp-white);
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.cp-contact-link:hover {
  border-color: var(--cp-green);
  color: var(--cp-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 94, 142, .06);
}

/* SECCIÓN DE ETIQUETAS (TAGS SEO) */
.cp-tags-container {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--cp-line);
}

.cp-tags-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cp-muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.cp-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-tag {
  font-size: 12px;
  color: var(--cp-muted);
  background: var(--cp-bg);
  padding: 6px 14px;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.cp-tag:hover {
  background: var(--cp-white);
  border-color: var(--cp-green);
  color: var(--cp-green-dark);
}

/* SECCIÓN DE ACCIÓN PRINCIPAL (CTA) */
.cp-cta-block {
  text-align: center;
  background: linear-gradient(135deg, var(--cp-blue-deep) 0%, #1c3c5e 100%);
  color: var(--cp-white);
  border-radius: var(--cp-radius-sm);
  padding: 45px 35px;
  margin-top: 45px;
  box-shadow: var(--cp-shadow);
}

.cp-cta-title {
  font-family: 'Cardo', serif;
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--cp-white);
}

.cp-cta-desc {
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 25px;
  color: rgba(255, 255, 255, 0.9);
}

/* ACCIONES Y BOTONES */
.cp-blog-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: all .3s ease;
  cursor: pointer;
  font-size: 15px;
  border: none;
}

.cp-btn-primary {
  background: var(--cp-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(122, 155, 47, .25);
}

.cp-btn-primary:hover {
  background: var(--cp-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(95, 120, 31, .35);
}

/* ANIMACIONES DE ENTRADA */
.cp-fade { 
  opacity: 0; 
  transform: translateY(24px); 
  transition: opacity .7s ease, transform .7s ease; 
}
.cp-fade.in-view { 
  opacity: 1; 
  transform: translateY(0); 
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cp-blog-wrapper { padding: 30px 20px; margin-top: -20px; }
  .cp-info-meta-grid { grid-template-columns: 1fr; gap: 14px; }
  .cp-blog-h2 { font-size: 22px; }
  .cp-blog-h3 { font-size: 19px; }
  .cp-btn { width: 100%; max-width: 340px; }
  .cp-contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .cp-fade { opacity: 1 !important; transform: none !important; }
}

.cp-blog-banner-img-container {
  max-width: var(--cp-max);
  margin: 40px auto 0;
  padding: 0 20px;
}

.cp-blog-banner-img {
  width: 100%;
  object-fit: contain;
  height: auto;
  max-height: 800px;
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow);
  display: block;
}

@media (max-width: 768px) {
  .cp-blog-banner-img-container {
    margin-top: 20px;
    padding: 0 15px;
  }
  .cp-blog-banner-img {
    height: 260px;
    border-radius: var(--cp-radius-sm);
  }
}
