/* ============================================================
   GEO — /contenido/  (page-contenido.php)
   Figma INICIO · Desktop-3 (132:323) — TODAS las secciones
   Valores px exactos del nodo (regla 0).
   ============================================================ */

/* ── BANNER 100svh — Figma Desktop-3 ───────────────────────────
   Layout:
     - Total = calc(100svh − 68px nav-spacer) → primer pantalla EXACTA
     - Grid de 2 filas: 768fr (imagen) / 108fr (strip blanco con subnav)
       = proporción Figma exact (image 768 px / strip 108 px).
   Entrada de items: opacity 0 + y +60 → 0 (stagger 0.08, power3.out 0.7s),
   mismo patrón que CTAs del hero /inicio/. */
.contenido-banner {
  position: relative;
  width: 100%;
  height: calc(100vh - 68px);               /* fallback navegadores sin svh */
  height: calc(100svh - 68px);
  min-height: 560px;                        /* fallback en viewports bajos */
  display: grid;
  grid-template-rows: 768fr 108fr;           /* Figma exact */
  background: #ffffff;
  overflow: hidden;
}
.contenido-banner__image {
  position: relative;
  overflow: hidden;
}
.contenido-banner__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;                          /* llena toda la fila sin deformar */
  object-position: center;
}
.contenido-banner__strip {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

/* Título script del banner — MISMO lenguaje visual que "Blog" (153:634,
   Kapakana 200, lh 200) y "Échele Ojo" (159:66, Kapakana 300). PROVISIONAL:
   color BLANCO sobre la foto, size proporcional (≈200 desktop, entre 200 y 300),
   arriba-izquierda. Se afina 1:1 cuando exista el nodo "Contenido". */
.contenido-banner__title {
  position: absolute;
  bottom: 4%;                                  /* inferior-izquierda, cerca del borde (sobre el subnav) */
  left: 6%;
  margin: 0;
  z-index: 2;
  color: #ffffff;
  font-family: 'Kapakana', cursive;
  font-weight: 400;
  font-size: clamp(64px, 11.5vw, 200px);
  line-height: 1;                              /* Figma script: lineHeight == size */
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;                        /* decorativo; no bloquea la foto */
}

/* Pre-paint hide del título (evita flash antes del fade+rise). Solo con
   movimiento permitido; en reduced-motion aparece directo. */
@media (prefers-reduced-motion: no-preference) {
  .contenido-banner[data-banner-anim="pending"] .contenido-banner__title { opacity: 0; }
}

/* Sub-nav dentro del strip: links Montserrat SemiBold 16 (Figma 135:439/441/443) */
.contenido-banner__nav { width: 100%; }
.contenido-banner__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;                                   /* aire generoso entre los 3 enlaces */
}
.contenido-banner__link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;                            /* SemiBold */
  font-size: 16px;
  line-height: 19.505px;                       /* Figma exact */
  letter-spacing: 0;
  color: #000000;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}
.contenido-banner__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
}
.contenido-banner__link:hover::after { transform: scaleX(1); }

/* Pre-paint hide: JS (.contenido-subnav[data-subnav-anim="pending"]) ya targetea
   `.contenido-subnav__item` — el banner__nav también lleva la clase .contenido-subnav
   para reusar el mismo handler GSAP sin cambios. */
.contenido-subnav[data-subnav-anim="pending"] .contenido-subnav__item {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .contenido-subnav[data-subnav-anim="pending"] .contenido-subnav__item { opacity: 1; }
}

/* Responsive — en mobile el banner reduce min-height y el strip se acomoda */
@media (max-width: 768px) {
  /* Strip: en móvil la fila fija 108fr recortaba el subnav si los 3 links
     envolvían a 2 líneas (banner con overflow:hidden). Fila auto → crece
     lo necesario; padding + row-gap dan aire y evitan el recorte. */
  .contenido-banner { min-height: 420px; grid-template-rows: 1fr auto; }
  .contenido-banner__strip { padding: 12px 24px; }
  .contenido-banner__nav-list { gap: 12px 24px; flex-wrap: wrap; }
  .contenido-banner__link { font-size: 14px; }
  /* Título "Contenido": min 64px + nowrap se salía a ≤360 (overflow:hidden lo
     recortaba). Piso más bajo → siempre cabe. */
  .contenido-banner__title { font-size: clamp(40px, 11vw, 64px); }
}
.contenido-subnav__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  gap: 80px;                                /* aire generoso entre los 3 anchors */
}
.contenido-subnav__link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 19.505px;
  letter-spacing: 0;
  color: #000000;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}
.contenido-subnav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
}
.contenido-subnav__link:hover::after { transform: scaleX(1); }

/* ── BLOG ──────────────────────────────────────────────── */

.contenido-blog {
  background: #ffffff;
  padding: 80px 32px 60px;
}

/* Layout Figma Rect 349 (Desktop-3):
     IZQ (~41%): foto DSC09928 1 (614×708) con título "Blog" Kapakana 200
                 #4c1717 SUPERPUESTO arriba-izq (Figma title y=2846, image
                 y=2915 → -69 px sobre la foto).
     DER (~55%): search bar + 4 tabs + carrusel 3 cards visibles + flechas. */
.contenido-blog__layout {
  display: grid;
  grid-template-columns: minmax(0, 614fr) minmax(0, 818fr);  /* 41:55 Figma exact */
  gap: 56px;
  max-width: 1761px;
  margin: 0 auto;
  align-items: start;
}

/* Panel IZQ — imagen + título superpuesto */
.contenido-blog__side {
  position: relative;
  width: 100%;
  aspect-ratio: 614 / 708;                /* Figma exact */
  overflow: visible;                       /* permite que el título se salga arriba */
}
.contenido-blog__side-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.contenido-blog__title {
  position: absolute;
  /* Figma nodo 153:634 vs imagen 382:5 (614×708): título en el TERCIO INFERIOR,
     sobre el suéter. offset x=279/614=45.4% · y=473/708=66.8%. */
  top: 66.8%;
  left: 45.4%;
  font-family: 'Kapakana', cursive;
  font-weight: 400;
  font-size: clamp(48px, 11.36vw, 200px);  /* fluido · proporción Figma 200/1760 */
  line-height: 1;
  letter-spacing: 0;
  color: #4c1717;                          /* Figma exact: vino oscuro */
  margin: 0;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

/* Panel DER — search + tabs + carrusel */
.contenido-blog__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Search bar (Figma 774×57) */
.contenido-blog__search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 774px;                       /* Figma exact */
  margin: 0;
  border: 1px solid rgba(103, 103, 103, 0.9); /* Figma stroke #676767 @0.9 */
  border-radius: 2px;                      /* Figma cornerRadius 2 */
  padding: 0 16px;
  background: #ffffff;
  height: 57px;                            /* Figma exact */
  box-sizing: border-box;
}
.contenido-blog__search-input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;                          /* Figma exact */
  line-height: 19.505px;                    /* Figma exact */
  letter-spacing: 0;
  color: #515151;                           /* Figma placeholder color */
  height: 100%;
}
.contenido-blog__search-input::placeholder { color: #515151; }
.contenido-blog__search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0 4px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Category tabs — Figma: 4 textos centrados separados por líneas verticales */
.contenido-blog__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  margin: 0;
}
.contenido-blog__tab {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;                          /* Medium */
  font-size: 15px;                            /* Figma exact */
  line-height: 18.285px;                      /* Figma exact */
  letter-spacing: 0;
  color: #000000;
  text-decoration: none;
  padding: 4px 0;
  transition: opacity 0.2s ease;
}
.contenido-blog__tab:hover    { opacity: 0.6; }
.contenido-blog__tab.is-active { font-weight: 700; }
.contenido-blog__tab-sep {
  display: inline-block;
  width: 1px;
  height: 23px;                              /* Figma LINE 1/2/3 = 0×23 */
  background: #000000;
}

/* CARRUSEL — CENTER-FOCUS. Se ven 3 tarjetas; la del CENTRO es la protagonista
   (nítida, escala 1, opacity 1); las LATERALES van atenuadas (menor opacity +
   blur + escala menor). El track se centra en la card activa (JS). Flechas
   chicas superpuestas entre las cards + dots debajo. */
.contenido-blog__carousel {
  position: relative;
}
/* [ ◄ | viewport(3 cards) | ► ] EN UNA SOLA LÍNEA (nowrap). Las flechas van en
   la ZONA BLANCA a los lados del grupo, NO sobre las imágenes. align-items:
   center las centra verticalmente respecto a la tarjeta central. Los dots NO
   están aquí (son hermanos, fila aparte debajo) → la ► no se envuelve. */
.contenido-blog__carousel-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}
.contenido-blog__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
  touch-action: pan-y;      /* scroll vertical pasa; swipe horizontal navega (contenido.js) */
}
.contenido-blog__track {
  display: flex;
  gap: 24px;                               /* = GAP en contenido.js */
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
/* Formato UNIFORME + estado velado por defecto (laterales). La activa se ve
   100% nítida y a color. El ratio de imagen lo fija .contenido-card__img-wrap
   (255/514). SIN blur: las laterales se atenúan con un VELO BLANCO (overlay). */
.contenido-blog__track > .contenido-card {
  flex: 0 0 auto;                          /* el ANCHO en px lo fija el JS (fracción del viewport) */
  width: clamp(220px, 30%, 320px);         /* FALLBACK: si el JS no midió (init temprano/fallo),
                                              la card NUNCA queda en 0px → no desaparece.
                                              El JS sobreescribe con el px exacto vía inline style. */
  box-sizing: border-box;
  position: relative;
  transform: scale(0.9);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.contenido-blog__track > .contenido-card.is-active {
  transform: scale(1);
  z-index: 1;                              /* la protagonista, por encima de las veladas */
}
/* Velo BLANCO en las laterales (NO desenfoque): overlay que las desvanece. */
.contenido-blog__track > .contenido-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0.62;                           /* laterales veladas en blanco (más marcado) */
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 2;
}
.contenido-blog__track > .contenido-card.is-active::after {
  opacity: 0;                              /* centro sin velo → color pleno */
}

/* Loop infinito: durante el "salto" (reposición al bloque central) se desactivan
   TODAS las transiciones para que el reciclado sea instantáneo y sin flicker. */
.contenido-blog__track.is-snapping,
.contenido-blog__track.is-snapping > .contenido-card,
.contenido-blog__track.is-snapping > .contenido-card::after {
  transition: none !important;
}

/* Flechas Polygon 3/4 — CHICAS, en la zona blanca a los lados (columnas fijas
   del flex del carrusel). NO se superponen a ninguna imagen. */
.contenido-blog__arrow {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  position: relative;                       /* ancla del hit-area ::before */
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), opacity 0.2s ease;
}
/* Área táctil ~46px sin agrandar la flecha visual (mínimo táctil 40-44px) */
.contenido-blog__arrow::before { content: ""; position: absolute; inset: -8px; }
.contenido-blog__arrow svg { width: 20px; height: 20px; display: block; }
.contenido-blog__arrow:hover  { transform: scale(1.12); }
.contenido-blog__arrow:active { transform: scale(0.92); transition-duration: 0.12s; }
.contenido-blog__arrow:focus-visible { outline: 2px solid #4c1717; outline-offset: 3px; border-radius: 50%; }
.contenido-blog__arrow[disabled] {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dots — hermanos de la row (bloque aparte), centrados debajo del carrusel. */
.contenido-blog__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.contenido-blog__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  position: relative;                       /* ancla del hit-area ::before */
  background: rgba(47, 47, 47, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
/* Con 11 posts los dots de 8px eran imposibles de tapear — hit-area ~32px */
.contenido-blog__dot::before { content: ""; position: absolute; inset: -12px; }
.contenido-blog__dot:hover     { background: rgba(47, 47, 47, 0.55); }
.contenido-blog__dot.is-active { background: #4c1717; transform: scale(1.25); }
.contenido-blog__empty {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #515151;
  padding: 64px 0;
  flex: 1 1 100%;
}

@media (max-width: 1200px) {
  .contenido-blog__layout { grid-template-columns: 1fr; gap: 40px; }
  .contenido-blog__side { aspect-ratio: 614 / 500; max-width: 700px; margin: 0 auto; }
  .contenido-blog__title { font-size: 140px; line-height: 140px; }
}
/* (El escalón de "Blog" en ≤768 se define en el bloque responsive del final
   del archivo — 80px. Aquí había un 96px que nunca llegaba a aplicarse.) */
.contenido-blog__empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #515151;
  padding: 64px 0;
}

/* ── CARD (template Figma) ─────────────────────────────── */
/* Locked: 144:486 w=639 h=746 → aspect-ratio 639/746 */
.contenido-card {
  display: flex;
  flex-direction: column;
}
.contenido-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.contenido-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 255 / 514;  /* Figma card image (descarga 87/88/89, 436:12-14): 255×514 — MISMO en todas */
  overflow: hidden;
  background: #ebebeb;
  flex-shrink: 0;           /* impide que la imagen ceda ante el título */
}
.contenido-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.contenido-card__link:hover .contenido-card__img { transform: scale(1.04); }

/* Prefijo .contenido-blog eleva especificidad a (0,2,0)=20
   y gana sobre .elementor-kit-21 h2 (0,1,1)=11 que fuerza Raleway 44px */
.contenido-blog .contenido-card__title {
  font-family: 'Montserrat', sans-serif !important;  /* belt+suspenders vs Elementor kit */
  font-weight: 500 !important;                       /* Medium — Figma 144:495 */
  font-size: 15px !important;                        /* Figma exact */
  line-height: 18.285px !important;                  /* Figma exact */
  letter-spacing: 0 !important;
  color: #000000 !important;
  text-align: center !important;
  margin: 16px 8px 0;
  /* Altura fija = exactamente 3 líneas (título más largo mide 3 líneas a 212px); cards iguales */
  height: calc(18.285px * 3);
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ── PODCAST "Échele Ojo" — diseño NUEVO: banda BLANCA full-bleed, SIN foto,
   texto VINO (#7b1909) centrado en una sola línea horizontal. Reveal (fade +
   rise) por sección en contenido.js. Sin cuadros rosados (decisión cliente). */
.contenido-pod-banner {
  position: relative;
  width: 100vw;
  /* Full-bleed: rompe el ancho del padre si tuviera padding/margen lateral. */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #ffffff;                      /* fondo blanco */
  /* Pantalla blanca COMPLETA: 100vh con el texto centrado vertical+horizontal. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 10vh, 160px) 32px;   /* bastante aire alrededor */
  box-sizing: border-box;
  overflow: hidden;
}
/* Figma actual (159:66 + 160:68): UNA sola línea horizontal centrada —
   "Échele Ojo" (script) + "PODCAST" (mayúsculas) a la derecha, misma línea,
   PODCAST centrado verticalmente respecto al script. */
.contenido-pod-banner__overlay {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;                          /* fallback: en pantallas chicas PODCAST cae debajo */
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 44px);
  text-align: center;
}
.contenido-pod-banner__title {
  font-family: 'Kapakana', cursive;
  font-weight: 400;
  font-size: clamp(96px, 18vw, 300px);      /* Figma nodo 159:66: 300px */
  line-height: 1;                            /* nodo lineHeight = fontSize */
  letter-spacing: 0;
  color: #7b1909;                            /* Figma exact (nodo 159:66): vino */
  margin: 0;
  text-decoration: none;                     /* sin subrayado (no existe en Figma) */
  border: 0;
}
.contenido-pod-banner__kicker {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;                          /* Bold */
  font-size: clamp(20px, 2.4vw, 32px);       /* Figma nodo 160:68: 32px */
  line-height: 1.2;
  letter-spacing: 1.92px;                    /* Figma exact (nodo 160:68) */
  color: #7b1909;                            /* Figma exact (nodo 160:68): vino */
  margin: 0;
  text-decoration: none;
  border: 0;
}

/* ── Backwards-compat (si alguna otra página todavía usa .contenido-transition) ── */
.contenido-transition { width: 100%; overflow: hidden; }
.contenido-transition__img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 70svh; }

/* ── C) "PRÓXIMAMENTE" — pantalla blanca COMPLETA (sin episodios) ──
   100vh, fondo blanco, título 160:85 centrado vertical+horizontal. */
.contenido-pod {
  position: relative;
  width: 100vw;                              /* full-bleed → pantalla completa */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  min-height: 100svh;
  background: #ffffff;                       /* Figma: Desktop-3 #fff */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 10vh, 160px) 32px;    /* bastante aire alrededor */
  box-sizing: border-box;
}
/* Título "PRÓXIMAMENTE" — Figma 160:85 (Montserrat Bold 128 / lh 156.03 /
   ls 7.68 · #7b1909 · CENTER, mayúsculas). */
.contenido-pod__coming {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;                          /* Bold */
  font-size: clamp(44px, 9vw, 128px);        /* nodo: 128px */
  line-height: 1.22;                         /* 156.03/128 */
  letter-spacing: 7.68px;                    /* Figma exact */
  color: #7b1909;                            /* Figma exact: vino */
  text-align: center;
  text-transform: uppercase;
  margin: 0 auto;                            /* nada debajo → sin margen inferior extra */
}
/* Móvil: "PRÓXIMAMENTE" es UNA palabra indivisible — con min 44px + tracking
   7.68px medía ~410px y se recortaba en 360px. Menos tamaño y tracking.
   "Échele Ojo" (Kapakana min 96px) también rozaba el borde en ≤480. */
@media (max-width: 768px) {
  .contenido-pod__coming { font-size: clamp(30px, 7vw, 54px); letter-spacing: 4px; }
  /* En móvil, dos secciones seguidas de 100svh con 2 líneas de texto se
     sentían como página vacía/rota (~1.500px de blanco). Beat más corto. */
  .contenido-pod-banner,
  .contenido-pod { min-height: 46svh; }
}
@media (max-width: 480px) {
  .contenido-pod__coming { font-size: clamp(24px, 7vw, 32px); letter-spacing: 2px; }
  .contenido-pod-banner__title { font-size: clamp(56px, 16vw, 96px); }
}
/* ── B) FOTO GRUPAL full-width — "DSC_0172 1" (383:7, nodo eliminado; asset
   real 1746×1008). Full-bleed a lo ancho, con su ALTO REAL (aspect-ratio),
   NO 100vh. ── */
.contenido-fullphoto {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  aspect-ratio: 1746 / 1008;                 /* alto real de la foto */
  overflow: hidden;
  background: #ffffff;
}
.contenido-fullphoto__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── D) FILA DE 3 FOTOS · Figma 383:10 / 383:11 / 383:9 (izq→der) ────────────
   DSC_0137 537×488 · DSC_0058 552×488 · DSC_0033 569×488 (todas y=7283).
   Gaps reales 12 / 10 px. Fila = 1680 px (≈ full-width, márgenes ~25 px).
   ─────────────────────────────────────────────────────────────────────────── */
.contenido-photos {
  background: #ffffff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(120px, 14vh, 224px) 1% 40px;
  box-sizing: border-box;
}
.contenido-photos__grid {
  display: grid;
  /* 5 tracks: foto · gap 12 · foto · gap 10 · foto (valores reales Figma) */
  grid-template-columns: 537fr 12fr 552fr 10fr 569fr;
  aspect-ratio: 1680 / 488;                  /* fila completa = 488 px de alto Figma */
  width: 100%;
  max-width: none;
  margin: 0;
}
.contenido-photos__grid > .contenido-photos__cell:nth-of-type(1) { grid-column: 1; }
.contenido-photos__grid > .contenido-photos__cell:nth-of-type(2) { grid-column: 3; }
.contenido-photos__grid > .contenido-photos__cell:nth-of-type(3) { grid-column: 5; }
.contenido-photos__cell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;                          /* clip del zoom-out scrubbed */
}
.contenido-photos__cell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 768px) {
  .contenido-photos {
    padding: 120px 16px 80px;
  }
  .contenido-photos__grid {
    grid-template-columns: 1fr;
    aspect-ratio: auto;                      /* stack vertical: cada foto su ratio */
    gap: 12px;
  }
  .contenido-photos__grid > .contenido-photos__cell:nth-of-type(1),
  .contenido-photos__grid > .contenido-photos__cell:nth-of-type(2),
  .contenido-photos__grid > .contenido-photos__cell:nth-of-type(3) { grid-column: 1; }
  .contenido-photos__cell {
    height: auto;
    aspect-ratio: 555 / 488;                 /* promedio */
  }
  .contenido-photos__cell img { height: 100%; }
}

/* (Sección REDES SOCIALES — ahora vía partials/redes-section.php, estilos en redes.css)
   Override SOLO en /contenido/: en /redes-sociales/ el hero deja un gap Figma de
   679 px arriba de las cards (que ahí se ve bien porque el hero es la primera
   sección). En /contenido/, encima ya hay foto full-screen + photo grid + redes
   intro, así que ese 679 se siente vacío. Lo equilibro con el gap al footer. */
.page-template-page-contenido-php .redes-cards {
  padding-top: 280px;       /* ↓ desde 679 px (redes.css default) */
  padding-bottom: 260px;    /* ↑ desde 100 px → aire al footer (≈ Figma 267) */
}
@media (max-width: 1100px) {
  .page-template-page-contenido-php .redes-cards {
    padding-top: 160px;
    padding-bottom: 160px;
  }
}
@media (max-width: 768px) {
  .page-template-page-contenido-php .redes-cards {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE POST · Figma Rectangle 510 (264:18), 1761×5861
   Layout: title Kapakana 90 CENTER + meta + img-left/text-right + form.
   Valores leídos 1:1 de los nodos 264:28/30/32/34, 264:26, 264:41,
   265:47/48/54/55/59/60/62/63/65/66/68/72/74/76.
   ══════════════════════════════════════════════════════════════════════════ */
.geo-single { background: #ffffff; }

.geo-single__container {
  max-width: 1481px;                          /* Figma: input width */
  margin: 0 auto;
  padding: 252px 40px 0;                      /* top = title.y - rect.y */
}

/* Título — Kapakana 90 #4c1717 CENTER */
.geo-single__title {
  font-family: 'Kapakana', cursive;
  font-weight: 400;
  font-size: clamp(36px, 5.11vw, 90px);   /* fluido · proporción Figma 90/1760 */
  line-height: 1.05;
  letter-spacing: 0;
  color: #4c1717;
  text-align: center;
  margin: 0 0 18px;
}

/* Meta row — Montserrat Medium 20/24.38 #000, centrada */
.geo-single__meta {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 48px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24.38px;
  color: #000000;
  margin: 0 0 252px;                          /* gap a la imagen (Figma) */
}
.geo-single__meta time,
.geo-single__meta span { margin: 0; }

/* Body 2-col: imagen LEFT (372×753) + texto derecha (gap 97px) */
/* Locked: 264:37/39/43 — Montserrat Medium 500, 28px, lh 34.132px, ls 1.68 */
/* Cuerpo (Figma Rect 510 / 264:18): 1er párrafo FULL-WIDTH → portada 372×753
   FLOAT:LEFT (inyectada tras el 1er párrafo) → texto envolviendo a la derecha
   → full-width abajo. Float REAL (nunca centrado, aunque el post sea corto). */
.geo-single__body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 34.132px;
  letter-spacing: 1.68px;
  color: #000000;
}
/* clearfix: contiene el float → comentarios/footer no se solapan */
.geo-single__body::after { content: ""; display: block; clear: both; }
/* Portada — SIEMPRE float:left. Figma 264:26: ancho 372, gap 97, prop. 372/753. */
.geo-single__hero {
  float: left;
  width: 372px;                                  /* Figma exact */
  margin: 0 97px 24px 0;                         /* gap 97 al texto que envuelve */
}
.geo-single__hero-img {
  width: 100%;
  aspect-ratio: 372 / 753;                       /* proporción real; alto derivado */
  height: auto;
  object-fit: cover;
  display: block;
}
.geo-single__body > p:first-of-type { margin-top: 0; }
.geo-single__body p  { margin: 0 0 24px; text-align: justify; hyphens: auto; }
/* Locked: 264:41 — Montserrat Bold 700, 30px, lh 36px, ls 1.8px */
.geo-single__body h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: 1.8px;
  color: #000000;
  margin: 0 0 24px;
}
.geo-single__body h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin: 32px 0 12px;
}
.geo-single__body img { max-width: 100%; height: auto; }
.geo-single__body a   { color: #4c1717; }

/* ── COMMENT FORM · Figma 265:* ────────────────────────────────────────── */
.geo-single__comments {
  padding: 200px 0 120px;                     /* gap a "Deja un comentario" */
}
.geo-single__comments .comments-title,
.geo-single__comments .comment-reply-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;                           /* ExtraBold (265:47) */
  font-size: clamp(26px, 2.73vw, 48px);       /* fluido · proporción Figma 48/1760 */
  line-height: 1.2;
  letter-spacing: 0;
  color: #000000;
  margin: 0 0 24px;
}
.geo-single__comments .comment-notes {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 30px;                            /* Figma 265:48 */
  line-height: 36.57px;
  color: #000000;
  margin: 0 0 32px;
}
.geo-single__comments .comment-form p {
  margin: 0 0 30px;
}
.geo-single__comments .comment-form label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-style: italic;                         /* Medium Italic (265:54/59/62/65) */
  font-size: 32px;
  line-height: 39.01px;
  color: #515151;
  margin: 0 0 18px;
}
.geo-single__comments .comment-form .required {
  color: #4c1717;
}
.geo-single__comments .comment-form input[type=text],
.geo-single__comments .comment-form input[type=email],
.geo-single__comments .comment-form input[type=url] {
  width: 100%;
  height: 53px;                               /* Figma exact */
  border: 1px solid rgba(103,103,103,0.9);    /* #676767 op 0.9 */
  border-radius: 2px;
  background: transparent;
  padding: 0 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #000000;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}
.geo-single__comments .comment-form input[type=text]:focus,
.geo-single__comments .comment-form input[type=email]:focus,
.geo-single__comments .comment-form input[type=url]:focus,
.geo-single__comments .comment-form textarea:focus {
  border-color: #000000;
}
.geo-single__comments .comment-form textarea {
  width: 100%;
  height: 422px;                              /* Figma exact (265:55) */
  border: 1px solid rgba(103,103,103,0.9);
  border-radius: 2px;
  background: transparent;
  padding: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #000000;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

/* Cookies row: checkbox 26×24 + label SemiBold 24 inline */
.geo-single__comments .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 29px;                                  /* Figma 10527 - 10498 = 29 */
  margin: 0 0 24px;
}
.geo-single__comments .comment-form-cookies-consent input[type=checkbox] {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 26px;                                /* Figma exact (265:68) */
  height: 24px;
  border: 1px solid rgba(103,103,103,0.9);
  border-radius: 2px;
  background: transparent;
  margin: 3px 0 0;
  cursor: pointer;
  position: relative;
}
.geo-single__comments .comment-form-cookies-consent input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 7px;
  width: 8px;
  height: 14px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.geo-single__comments .comment-form-cookies-consent label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;                           /* SemiBold (265:72) */
  font-style: normal;
  font-size: 24px;
  line-height: 29.26px;
  color: #000000;
  margin: 0;
}

/* Submit button · 316×44 #000 (Figma 265:74/76) */
.geo-single__comments .form-submit {
  margin: 0;
}
.geo-single__comments .form-submit input[type=submit],
.geo-single__comments .geo-comment-submit {
  width: 316px;
  height: 44px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(103,103,103,0.9);
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-style: italic;                         /* Medium Italic */
  font-size: 20px;
  line-height: 24.38px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.geo-single__comments .form-submit input[type=submit]:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

/* Lista de comentarios existentes */
.geo-single__comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}
.geo-single__comments .comment-list .children {
  list-style: none;
  padding-left: 32px;
}
.geo-single__comments .comment-body {
  padding: 24px 0;
  border-bottom: 1px solid rgba(103,103,103,0.2);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #000000;
}
.geo-single__comments .comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.geo-single__comments .comment-meta   { font-size: 14px; color: #515151; margin-bottom: 12px; }

/* Responsive */
@media (max-width: 1024px) {
  .geo-single__container { padding: 120px 32px 0; }
  .geo-single__title { font-size: 56px; line-height: 1.05; }
  .geo-single__meta  { gap: 24px; font-size: 16px; margin-bottom: 80px; flex-wrap: wrap; row-gap: 8px; }
  .geo-single__hero  { width: 300px; margin: 0 48px 20px 0; }   /* float:left heredado */
  /* Cuerpo: 28px junto a imagen flotada de 300px daba ~10 caracteres/línea
     con guionado agresivo. Bajamos a 19px en tablet (769-1024). */
  .geo-single__body    { font-size: 19px; line-height: 1.5; letter-spacing: 0.5px; }
  .geo-single__body h2 { font-size: 24px; letter-spacing: 1px; line-height: 1.25; }
  .geo-single__body h3 { font-size: 20px; letter-spacing: 0.5px; line-height: 1.3; }
  .geo-single__comments { padding: 80px 0 60px; }
  .geo-single__comments .comments-title,
  .geo-single__comments .comment-reply-title { font-size: 32px; line-height: 1.2; }
  .geo-single__comments .comment-notes { font-size: 18px; line-height: 1.45; }
  .geo-single__comments .comment-form label { font-size: 22px; line-height: 1.2; }
  .geo-single__comments .comment-form-cookies-consent label { font-size: 16px; line-height: 1.4; }
  .geo-single__comments .comment-form textarea { height: 240px; }
}
@media (max-width: 640px) {
  /* (el font-size del título vive en el bloque ≤768 de más abajo — 32px;
     declararlo aquí no servía porque ese bloque va después y cubre este rango) */
  /* Apilado: imagen ARRIBA (a su proporción real 372/753) + texto DEBAJO */
  /* Móvil: apilado — imagen ARRIBA (proporción real) + texto DEBAJO */
  .geo-single__hero  { float: none; width: 100%; max-width: 372px; margin: 0 0 24px; }
  .geo-single__comments .form-submit input[type=submit] { width: 100%; }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .contenido-blog__title  { font-size: 120px; line-height: 1; }
}
@media (max-width: 768px) {
  .contenido-subnav__list { gap: 24px; flex-wrap: wrap; }
  .contenido-blog__title  { font-size: 80px; line-height: 1; }
  .contenido-blog__tabs   { gap: 12px; }
  .contenido-blog__tab    { font-size: 13px; }
  .contenido-blog__tab-sep { display: none; }
  .geo-single__title      { font-size: 32px; }
  .geo-single__body       { font-size: 17px; }
}
@media (max-width: 480px) {
  /* "Blog" absoluto en left:45.4% — a 80px rozaba el borde derecho en 360px */
  .contenido-blog__title  { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .contenido-card__img { transition: none; }
}


/* ══════════════════════════════════════════════════════════════════
   CAMPAÑAS COMERCIALES · Figma seccion-campañas-comerciales (706:43)
   Va debajo del banner. Bloque central con SCROLL INTERNO (pinned).
   Tipografía Montserrat · line-height 1.219 · letter-spacing 0.06em (Figma).
   ══════════════════════════════════════════════════════════════════ */
.cc {
  width: 100%;
  overflow-x: hidden;              /* nada de scroll horizontal */
  background: #ffffff;
  color: #000000;
}

/* ── HERO "CAMPAÑAS" (DSC00512) ─────────────────────────────────── */
.cc-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1725 / 862;        /* Figma exacto (~2:1) */
  max-height: 86vh;
  overflow: hidden;
}
.cc-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cc-hero__overlay {
  position: absolute;
  left: clamp(24px, 3.4vw, 60px);   /* Figma "CAMPAÑAS" x≈44 sobre 1725 */
  bottom: clamp(28px, 6%, 64px);
  z-index: 1;
}
.cc-hero__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;                 /* Medium (Figma) */
  font-size: clamp(30px, 3.34vw, 48px);   /* 48px @1725 */
  line-height: 1.219;
  letter-spacing: 0.06em;           /* 2.88/48 */
  color: #ffffff;
}
.cc-hero__sub {
  margin: 6px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.219;
  letter-spacing: 0.06em;
  color: #ffffff;
}

/* ── Contenedor común de la sección ── inset ~66px del frame Figma ── */
.cc-block__inner,
.cc-campaign {
  max-width: 1584px;
  margin: 0 auto;
  padding-left: clamp(20px, 4.2vw, 66px);
  padding-right: clamp(20px, 4.2vw, 66px);
  box-sizing: border-box;
}

/* ── Título "Campañas Comerciales GEO" ── SemiBold 28 · centrado ── */
.cc-title {
  margin: 0;
  padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3vw, 44px);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;                 /* SemiBold */
  font-size: clamp(22px, 1.95vw, 28px);
  line-height: 1.219;
  letter-spacing: 0.06em;           /* 1.68/28 */
  text-align: center;
  color: #000000;
}

/* ── Bloque de 2 columnas (izq fija · der scroll interno) ───────────
   Altura acotada a viewport → el bloque cabe pinneado. */
.cc-cols {
  display: flex;
  gap: clamp(24px, 3.4vw, 54px);
  height: clamp(440px, 66vh, 660px);
  align-items: stretch;
}

/* Columna IZQUIERDA */
.cc-left {
  flex: 0 0 46%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cc-intro {
  margin: 0 0 clamp(16px, 2vw, 28px);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;                 /* Medium */
  font-size: 20px;
  line-height: 1.219;
  letter-spacing: 0.06em;           /* 1.2/20 */
  color: #000000;
}
.cc-photo {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;                 /* ratio fijo · cover (Regla 4) */
}
.cc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Columna DERECHA · viewport de términos + barra */
.cc-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 16px;
}
.cc-terms {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;                 /* SCROLL NATIVO propio del bloque derecho */
  overscroll-behavior: contain;     /* no encadena al scroll de la página */
  -webkit-overflow-scrolling: touch;
  /* Barra estilo Figma (thumb #d9d9d9) */
  scrollbar-width: thin;
  scrollbar-color: #d9d9d9 transparent;
}
.cc-terms::-webkit-scrollbar { width: 12px; }
.cc-terms::-webkit-scrollbar-track { background: transparent; border-left: 1px solid #8f8f8f; }
.cc-terms::-webkit-scrollbar-thumb { background: #d9d9d9; }
.cc-terms__inner { padding-right: 16px; }   /* aire entre texto y barra */
.cc-terms p {
  margin: 0 0 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.219;
  letter-spacing: 0.06em;
  color: #000000;
}
.cc-terms__h { margin-top: 18px; }
.cc-terms__list {
  list-style: disc;
  margin: 0 0 14px;
  padding-left: 1.3em;
}
.cc-terms__list li {
  margin: 0 0 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.219;
  letter-spacing: 0.06em;
  color: #000000;
}

/* ── Bloque campaña ZENIT + FULLENS ─────────────────────────────── */
.cc-campaign { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(40px, 5vw, 80px); }
.cc-campaign__banner {
  width: 100%;
  aspect-ratio: 1581 / 462;         /* Figma exacto */
  overflow: hidden;
  margin-bottom: clamp(20px, 2.4vw, 34px);
}
.cc-campaign__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cc-campaign__title {
  margin: 0 0 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;                 /* SemiBold 28 */
  font-size: clamp(22px, 1.95vw, 28px);
  line-height: 1.219;
  letter-spacing: 0.06em;
  color: #000000;
}
.cc-campaign__text {
  margin: 0 0 16px;
  max-width: 900px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.219;
  letter-spacing: 0.06em;
  color: #000000;
}

/* ── Responsive · columnas apiladas + scroll nativo en móvil ──────── */
@media (max-width: 900px) {
  .cc-cols {
    flex-direction: column;
    height: auto;
  }
  .cc-left { flex: none; }
  .cc-photo { height: auto; aspect-ratio: 718 / 560; flex: none; }
  .cc-right { flex: none; }
  /* En móvil: apilado; términos con scroll nativo acotado. 45vh (no 60) y
     overscroll auto: con contain el bloque "atrapaba" el pulgar — al llegar
     al final del scroll interno el gesto no continuaba la página. */
  .cc-terms {
    height: auto;
    max-height: 45vh;
    overscroll-behavior: auto;
  }
  .cc-terms p, .cc-terms__list li, .cc-intro, .cc-campaign__text { font-size: 17px; }
}
