/* ==================================================================
   EDITORIAL — identidad visual de la página principal
   ------------------------------------------------------------------
   Este archivo SOLO lo carga index.html. Define un juego de tokens
   nuevo (prefijo --ed-) en vez de sobrescribir los tokens de
   css/styles.css (--cobalt, --paper, --ink, --sage, --brass…), que
   siguen usando el comparador y la pantalla de resultados. Así el
   rediseño de la home no cambia ni un píxel de esas pantallas, tal
   y como se pidió.

   Todas las reglas de este archivo están además con nombres de clase
   propios (cat-tile, ed-*, hero-*, steps-*, method-*), sin tocar
   ninguna clase ya usada por el comparador.
   ================================================================== */

:root{
  /* Fondo cálido — nunca blanco puro */
  --ed-cream: #F8F3E8;
  --ed-cream-deep: #F1E9D8;
  --ed-cream-line: #E4D9C2;

  /* Texto */
  --ed-charcoal: #1C1A15;
  --ed-charcoal-soft: #57503f;

  /* Color principal */
  --ed-forest: #22402F;
  --ed-forest-deep: #142A1E;
  --ed-forest-tint: #E4EBE3;

  /* Secundarios */
  --ed-sage: #7C9483;
  --ed-sand: #C9A876;
  --ed-gold: #B08D4F;

  --ed-radius-s: 10px;
  --ed-radius-m: 18px;
  --ed-radius-l: 28px;

  --ed-font-serif: 'Fraunces', Georgia, serif;

  --ed-ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   MOVIMIENTO — respeta prefers-reduced-motion en todo el archivo
   ============================================================ */
.reveal, .reveal-item{
  opacity:0; transform:translateY(22px) scale(.985);
  filter:blur(4px);
  transition:opacity .8s var(--ed-ease), transform .8s var(--ed-ease), filter .8s var(--ed-ease);
}
.reveal.is-visible, .reveal-item.is-visible{
  opacity:1; transform:translateY(0) scale(1);
  filter:blur(0);
}
.reveal-stagger .reveal-item:nth-child(1){ transition-delay:.05s; }
.reveal-stagger .reveal-item:nth-child(2){ transition-delay:.15s; }
.reveal-stagger .reveal-item:nth-child(3){ transition-delay:.25s; }
.reveal-stagger .reveal-item:nth-child(4){ transition-delay:.35s; }
.reveal-stagger .reveal-item:nth-child(5){ transition-delay:.45s; }
.reveal-stagger .reveal-item:nth-child(6){ transition-delay:.55s; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-item{ opacity:1 !important; transform:none !important; transition:none !important; }
  .ed-headline .line, .ed-headline em, .hero-shape,
  .hero-bottle-img, .hero-capsule, .hero-capsule-photo{ animation:none !important; }
  .method-diagram, .method-diagram line, .method-node, .method-center, .method-node-desc{ transition:none !important; }
  .cat-card-flip-inner{ transition-duration:.01s !important; }
}

/* ============================================================
   HEADER — estado al hacer scroll (clase alternada por JS)
   ============================================================ */
.editorial-header{
  background:rgba(248,243,232,0.6);
  backdrop-filter:blur(10px);
  border-bottom-color:transparent;
  transition:background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.editorial-header.is-scrolled{
  background:rgba(248,243,232,0.92);
  border-bottom-color:var(--ed-cream-line);
  box-shadow:0 1px 0 rgba(28,26,21,0.02), 0 12px 24px -18px rgba(28,26,21,0.25);
}
.editorial-header .brand-mark{ background:var(--ed-forest); }
.editorial-header .main-nav a,
.editorial-header .mobile-nav a{ color:var(--ed-charcoal-soft); font-weight:500; }
.editorial-header .main-nav a{
  position:relative; padding-bottom:2px;
  transition:color .25s var(--ed-ease);
}
.editorial-header .main-nav a::after{
  content:""; position:absolute; left:0; bottom:0; width:100%; height:1.5px;
  background:var(--ed-gold); border-radius:2px;
  transform:scaleX(0); transform-origin:right center;
  transition:transform .35s var(--ed-ease);
}
.editorial-header .main-nav a:hover::after,
.editorial-header .main-nav a:focus-visible::after{
  transform:scaleX(1); transform-origin:left center;
}
.editorial-header .main-nav a:hover,
.editorial-header .mobile-nav a:hover{ color:var(--ed-charcoal); }
.editorial-header .brand-text{ color:var(--ed-charcoal); }
.editorial-header .btn-header{
  background:var(--ed-forest); color:#fff; border-color:var(--ed-forest);
  font-weight:600; letter-spacing:.01em;
  transition:transform .25s var(--ed-ease), background-color .25s ease, box-shadow .25s var(--ed-ease);
}
.editorial-header .btn-header:hover{
  background:var(--ed-forest-deep); transform:translateY(-1px);
  box-shadow:0 10px 22px -14px rgba(20,42,30,.6);
}
.editorial-header .nav-toggle{ border-color:var(--ed-cream-line); color:var(--ed-charcoal); }

/* ============================================================
   HERO
   ============================================================ */
.editorial-hero{
  position:relative;
  padding:64px 0 36px;
  overflow:hidden;
  background:var(--ed-cream);
}
.hero-shell{
  position:relative;
  display:grid; grid-template-columns:1fr; gap:36px;
  min-height:420px;
}
@media (min-width:920px){
  .hero-shell{ grid-template-columns:1.1fr .9fr; align-items:center; min-height:560px; }
}

.hero-copy{ position:relative; z-index:2; max-width:640px; }

.ed-eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--ed-forest); margin-bottom:22px;
}
.ed-eyebrow::before{
  content:""; width:22px; height:1px; background:var(--ed-gold);
}

.ed-headline{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(34px,5.6vw,58px);
  line-height:1.08;
  letter-spacing:-0.01em;
  color:var(--ed-charcoal);
  margin:0 0 22px;
}
.ed-headline .line{
  display:block; overflow:hidden;
}
.ed-headline .line span{
  display:block;
  animation:lineUp .8s var(--ed-ease) both;
}
.ed-headline .line:nth-child(1) span{ animation-delay:.05s; }
.ed-headline .line:nth-child(2) span{ animation-delay:.2s; }
.ed-headline .line:nth-child(3) span{ animation-delay:.35s; }
@keyframes lineUp{
  from{ transform:translateY(105%); }
  to{ transform:translateY(0); }
}
.ed-headline em{
  font-family:var(--ed-font-serif);
  font-style:italic; font-weight:500;
  color:var(--ed-forest);
}
.ed-word-amazon{ color:#D97706; }

.ed-subtext{
  font-size:17px; color:var(--ed-charcoal-soft); max-width:46ch; margin-bottom:32px;
  animation:fadeUp .8s var(--ed-ease) .45s both;
}
@keyframes fadeUp{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:translateY(0); } }

.ed-cta{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--ed-forest); color:#fff;
  padding:16px 26px; border-radius:100px;
  font-size:14px; font-weight:600; letter-spacing:.03em; text-transform:uppercase;
  transition:transform .3s var(--ed-ease), background-color .3s ease, box-shadow .3s var(--ed-ease);
  animation:fadeUp .8s var(--ed-ease) .6s both;
}
.ed-cta svg{ width:16px; height:16px; transition:transform .3s var(--ed-ease); }
.ed-cta:hover{
  background:var(--ed-forest-deep);
  transform:translateY(-2px);
  box-shadow:0 16px 30px -14px rgba(20,42,30,.6);
}
.ed-cta:hover svg{ transform:translateX(5px); }
.ed-cta:active{ transform:translateY(0) scale(.98); }

.ed-hero-note{
  margin-top:18px; font-size:13px; color:var(--ed-charcoal-soft); opacity:.8;
  animation:fadeUp .8s var(--ed-ease) .75s both;
}

.ed-hero-amazon-badge{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:14px; padding:8px 14px 8px 10px;
  background:var(--ed-cream-deep); border:1px solid var(--ed-cream-line);
  border-radius:100px;
  animation:fadeUp .8s var(--ed-ease) .85s both;
}
.ed-hero-amazon-badge img{ width:20px; height:20px; object-fit:contain; flex-shrink:0; }
.ed-hero-amazon-badge span{ font-size:12.5px; color:var(--ed-charcoal-soft); font-weight:500; }

/* ---------------- Composición visual abstracta ---------------- */
.hero-visual{
  position:relative; z-index:1;
  min-height:320px;
}
@media (min-width:920px){ .hero-visual{ min-height:100%; } }

/* Textura/grano muy sutil, propia del hero — no afecta a ninguna otra sección */
.hero-grain{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:radial-gradient(rgba(28,26,21,0.55) 1px, transparent 1px);
  background-size:15px 15px;
  opacity:.045;
}

.hero-shape{ position:absolute; will-change:transform; }

.hero-shape--blob{
  --blob-size: clamp(320px, 50vw, 460px);
  width:var(--blob-size); aspect-ratio:1;
  left:50%; top:34%;
  margin-left:calc(var(--blob-size) * -0.5);
  margin-top:calc(var(--blob-size) * -0.5);
  background:
    radial-gradient(circle at 32% 28%, var(--ed-sand) 0%, transparent 60%),
    radial-gradient(circle at 68% 70%, var(--ed-forest-tint) 0%, transparent 65%),
    var(--ed-cream-deep);
  border-radius:44% 56% 62% 38% / 45% 40% 60% 55%;
  filter:blur(0.5px);
  animation:blobFloat 14s ease-in-out infinite;
  z-index:1;
}
@keyframes blobFloat{
  0%,100%{ border-radius:44% 56% 62% 38% / 45% 40% 60% 55%; }
  50%{ border-radius:58% 42% 40% 60% / 55% 60% 40% 45%; }
}

.hero-shape--ring{
  --ring-size: clamp(260px, 42vw, 380px);
  width:var(--ring-size); aspect-ratio:1;
  left:50%; top:34%;
  margin-left:calc(var(--ring-size) * -0.5);
  margin-top:calc(var(--ring-size) * -0.5);
  border:1px solid var(--ed-forest);
  opacity:.22; border-radius:50%;
  z-index:1;
}

.hero-shape--dotring{
  width:min(30vw,180px); aspect-ratio:1;
  left:2%; bottom:6%;
  border:1px dashed var(--ed-sage);
  opacity:.5; border-radius:50%;
  z-index:6;
}

.hero-shape--dot{
  width:9px; height:9px; border-radius:50%; background:var(--ed-gold);
  z-index:6;
}
.hero-shape--dot-a{ right:38%; top:10%; }
.hero-shape--dot-b{ right:8%; bottom:30%; opacity:.7; }
@media (max-width:920px){
  .hero-shape--dot-a, .hero-shape--dot-b{ display:none; }
}

.hero-shape--line{
  width:1px; height:120px; background:var(--ed-cream-line);
  right:44%; top:2%; transform:rotate(18deg);
  z-index:6;
}

@media (max-width:640px){
  .hero-shape--ring{ opacity:.16; }
  .hero-shape--dotring{ display:none; }
}

/* ---------------- Bote central — imagen real usada como asset del hero ----------------
   Protagonista de la composición: más grande que el círculo que tiene
   detrás, para que sobresalga claramente por arriba y por abajo. */
.hero-bottle-wrap{
  position:absolute; left:50%; top:34%;
  height:clamp(340px, 46vw, 460px);
  margin-left:calc(clamp(340px, 46vw, 460px) * -0.333);
  margin-top:calc(clamp(340px, 46vw, 460px) * -0.5);
  z-index:3; will-change:transform;
}
.hero-bottle-img{
  display:block; height:100%; width:auto;
  filter:drop-shadow(0 30px 34px rgba(20,34,26,.34)) drop-shadow(0 6px 10px rgba(20,34,26,.18));
  animation:bottleFloat 10s ease-in-out infinite;
  transform-origin:50% 78%;
}
@keyframes bottleFloat{
  0%,100%{ transform:rotate(calc(-10deg + var(--hero-tilt, 0deg))) translateY(0); }
  50%{ transform:rotate(calc(-7deg + var(--hero-tilt, 0deg))) translateY(-12px); }
}

@media (max-width:640px){
  .hero-bottle-wrap{
    height:clamp(320px, 68vw, 390px);
    margin-left:calc(clamp(320px, 68vw, 390px) * -0.333);
    margin-top:calc(clamp(320px, 68vw, 390px) * -0.5);
  }
}

/* ---------------- Cápsulas de la franja de transición (sin cambios) ----------------
   .hero-capsule / .hc-half / .hc-seam / .hc-shine / .hc-tone-forest / .hc-tone-sand
   los sigue usando la franja de transición hero→categorías (.ht-capsule). No se tocan. */
.hero-capsule-wrap{ position:absolute; will-change:transform; }

.hero-capsule{
  position:relative;
  border-radius:100px;
  overflow:hidden;
  box-shadow:0 16px 24px -12px rgba(28,26,21,.34);
  animation:capsuleDrift 8s ease-in-out infinite;
}
@keyframes capsuleDrift{
  0%,100%{ transform:translateY(0) rotate(var(--rot,-20deg)); }
  50%{ transform:translateY(-13px) rotate(calc(var(--rot,-20deg) + 6deg)); }
}

.hc-half{ position:absolute; inset:0; }
.hc-half-a{ bottom:50%; } /* mitad superior */
.hc-half-b{ top:50%; }    /* mitad inferior */
.hc-seam{
  position:absolute; left:0; right:0; top:50%; height:1px;
  background:rgba(28,26,21,.22); z-index:2;
}
.hc-shine{
  position:absolute; top:8%; left:20%; width:22%; height:60%;
  background:linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  border-radius:100px; filter:blur(.6px); z-index:3;
}
.hc-tone-forest .hc-half-a{ background:linear-gradient(160deg, var(--ed-forest), var(--ed-forest-deep)); }
.hc-tone-forest .hc-half-b{ background:linear-gradient(160deg, var(--ed-cream), var(--ed-cream-deep)); }
.hc-tone-sand .hc-half-a{ background:linear-gradient(160deg, var(--ed-sand), var(--ed-gold)); }
.hc-tone-sand .hc-half-b{ background:linear-gradient(160deg, var(--ed-cream), var(--ed-cream-deep)); }

/* ---------------- Cápsulas del hero — fotografía real, no dibujadas ----------------
   Un único recorte fotográfico limpio (ambos extremos visibles, sin
   solapes con otras cápsulas de la foto original) reutilizado con
   transformaciones legítimas: rotación, espejo, escala y un ligero
   matiz de color por instancia. Nunca CSS/iconos — siempre la misma
   fotografía real. La flotación reutiliza el mismo keyframe que ya
   usa el bote, con duración/retardo propios por cápsula. */
.hero-capsule-photo{
  display:block; width:var(--cap-w, 64px); height:auto;
  filter:drop-shadow(0 12px 16px rgba(10,18,13,.4));
  animation:capsuleDriftPhoto var(--cap-dur, 9s) ease-in-out infinite;
  animation-delay:var(--cap-delay, 0s);
  will-change:transform;
}
@keyframes capsuleDriftPhoto{
  0%,100%{ transform:rotate(var(--cap-rot,0deg)) scaleX(var(--cap-flip,1)) translateY(0); }
  50%{ transform:rotate(calc(var(--cap-rot,0deg) + 5deg)) scaleX(var(--cap-flip,1)) translateY(-11px); }
}

/* CAPA 3 — lejana, parcialmente detrás del círculo; ligero desenfoque */
.hcw-behind{ left:16%; top:8%; z-index:0; }
.hcp-behind{
  --cap-w:76px; --cap-rot:-18deg; --cap-dur:12s;
  filter:drop-shadow(0 10px 14px rgba(10,18,13,.35)) blur(1.1px);
}

/* cerca del bote */
.hcw-1{ left:4%; top:38%; z-index:4; }
.hcp-1{
  --cap-w:62px; --cap-rot:-26deg; --cap-dur:9s; --cap-delay:.3s;
  filter:drop-shadow(0 12px 16px rgba(10,18,13,.4)) sepia(.35) saturate(1.3) hue-rotate(-8deg) brightness(1.06);
}

.hcw-2{ left:80%; top:22%; z-index:4; }
.hcp-2{
  --cap-w:56px; --cap-rot:20deg; --cap-flip:-1; --cap-dur:10s; --cap-delay:1.2s;
}

/* CAPA 5 — primer plano, más grandes y nítidas */
.hcw-3{ left:88%; top:58%; z-index:6; }
.hcp-3{
  --cap-w:94px; --cap-rot:-16deg; --cap-dur:7.5s;
}

.hcw-4{ left:10%; top:74%; z-index:6; }
.hcp-4{
  --cap-w:84px; --cap-rot:24deg; --cap-flip:-1; --cap-dur:8.5s; --cap-delay:.6s;
  filter:drop-shadow(0 14px 18px rgba(10,18,13,.4)) sepia(.2) saturate(1.15) hue-rotate(-14deg) brightness(1.04);
}

/* pequeña, al fondo, desenfocada por profundidad de campo */
.hcw-5{ left:58%; top:2%; z-index:1; }
.hcp-5{
  --cap-w:44px; --cap-rot:10deg; --cap-dur:11s; --cap-delay:1.8s;
  opacity:.6; filter:drop-shadow(0 8px 10px rgba(10,18,13,.3)) blur(1.6px);
}

@media (max-width:640px){
  /* menos elementos y algo más discretos en móvil, sin tapar el texto */
  .hcw-behind, .hcw-5{ display:none; }
}

/* ============================================================
   TRANSICIÓN HERO → CATEGORÍAS
   Zona compacta (ya no un hueco vacío): degradado del crema del hero
   al crema-profundo de categorías, con puntos dorados, una línea fina
   y dos cápsulas desenfocadas heredando el lenguaje visual del hero.
   Reutiliza las clases .hero-capsule/.hc-half/.hc-tone-* ya definidas
   arriba — no duplica estilos de cápsula.
   ============================================================ */
.hero-transition{
  position:relative;
  height:clamp(56px, 7vw, 80px);
  overflow:hidden;
  background:linear-gradient(180deg, #F8F3E8 0%, #F7F2E6 20%, #F6EFE2 40%, #F3EDDE 60%, #F2EADA 80%, #F1E9D8 100%);
}

.ht-particle{
  position:absolute; width:6px; height:6px; border-radius:50%; background:var(--ed-gold);
  will-change:transform;
}
.ht-particle--a{ left:18%; top:28%; opacity:.6; }
.ht-particle--b{ left:52%; top:62%; opacity:.4; width:4px; height:4px; }
.ht-particle--c{ left:82%; top:22%; opacity:.55; }

.ht-line{
  position:absolute; left:50%; top:0; bottom:0; width:1px;
  background:linear-gradient(180deg, transparent, var(--ed-cream-line) 40%, var(--ed-cream-line) 60%, transparent);
  transform:translateX(-50%);
  will-change:transform;
}

.ht-capsule-wrap{ position:absolute; will-change:transform; }
.ht-capsule-wrap--a{ left:30%; top:10%; }
.ht-capsule-wrap--b{ left:68%; top:40%; }
.ht-capsule{
  width:15px; height:38px;
  opacity:.5; filter:blur(1.6px);
  animation:none; /* estática: es una capa de fondo discreta, no protagonista */
}

@media (max-width:640px){
  .ht-particle--c, .ht-capsule-wrap--b{ display:none; }
}

/* ============================================================
   CATEGORÍAS — colección premium de botes
   ============================================================ */
.editorial-categories{ background:var(--ed-cream-deep); padding-top:24px; }
.editorial-categories .section-head p{ max-width:52ch; }

.cat-grid{
  display:grid; grid-template-columns:1fr; gap:20px;
}
@media (min-width:760px){
  .cat-grid{ grid-template-columns:repeat(3, 1fr); gap:24px; }
}

.cat-card{
  position:relative;
  display:block; width:100%;
  aspect-ratio:1/1;
  border-radius:var(--ed-radius-l);
  box-shadow:0 24px 40px -28px rgba(20,34,26,.35);
  transition:transform .4s var(--ed-ease), box-shadow .4s var(--ed-ease);
  perspective:1500px;
  outline-offset:4px;
}

/* contenedor que gira — preserva la profundidad 3D de sus dos caras */
.cat-card-flip-inner{
  position:absolute; inset:0;
  display:block;
  transform-style:preserve-3d;
  transition:transform .6s cubic-bezier(.22,.61,.36,1);
  border-radius:inherit;
}
.cat-card.is-flipped .cat-card-flip-inner{ transform:rotateY(180deg); }

.cat-card-face{
  position:absolute; inset:0;
  backface-visibility:hidden; -webkit-backface-visibility:hidden;
  border-radius:inherit; overflow:hidden;
  display:block;
}
.cat-card-face--front{ transform:rotateY(0deg); }
.cat-card-face--back{
  transform:rotateY(180deg);
  background:var(--ed-forest-deep);
  display:flex; flex-direction:column;
  padding:22px;
}

.cat-card-img{
  display:block; width:100%; height:100%;
  object-fit:cover;
}

.cat-card.is-live{ cursor:pointer; }
.cat-card.is-live:hover,
.cat-card.is-live:focus-visible{
  transform:translateY(-6px);
  box-shadow:0 34px 54px -26px rgba(20,34,26,.42);
}

.cat-card.is-soon{ cursor:pointer; }
.cat-card.is-soon .cat-card-img{ filter:grayscale(.25); opacity:.82; }

.cat-card-soon-badge{
  position:absolute; top:16px; left:16px;
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
  color:#F2EFE6; background:rgba(20,42,30,.82);
  padding:6px 12px; border-radius:100px;
  backdrop-filter:blur(2px);
}

/* ---------------- Cara trasera: "¿Qué es?" / "¿Para qué sirve?" ---------------- */
.cc-back-name{
  font-family:var(--font-display); font-weight:700; font-size:clamp(17px,2.4vw,20px);
  color:#F2EFE6; margin-bottom:14px; flex-shrink:0;
}
.cc-back-scroll{
  flex:1; min-height:0; overflow-y:auto;
  display:flex; flex-direction:column; gap:14px;
}
.cc-back-block{ display:flex; flex-direction:column; gap:3px; }
.cc-back-h{
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ed-sand);
}
.cc-back-p{ font-size:12.5px; line-height:1.5; color:#DCE3DC; }
.cc-back-hint{
  flex-shrink:0; margin-top:14px; padding-top:12px; border-top:1px solid rgba(255,255,255,.14);
  display:flex; align-items:center; gap:6px;
  font-family:var(--font-mono); font-size:10px; letter-spacing:.05em; text-transform:uppercase;
  color:var(--ed-sand);
}
.cc-back-hint svg{ width:12px; height:12px; }

.cc-back-cta{
  flex-shrink:0; margin-top:14px; padding-top:14px; border-top:1px solid rgba(255,255,255,.14);
  display:flex; align-items:center; gap:7px;
  font-family:var(--font-mono); font-size:11.5px; font-weight:600; letter-spacing:.03em;
  color:var(--ed-sand);
  transition:color .2s ease, gap .2s ease;
}
.cc-back-cta svg{ width:14px; height:14px; transition:transform .25s var(--ed-ease); }
.cc-back-cta:hover, .cc-back-cta:focus-visible{ color:#F2EFE6; }
.cc-back-cta:hover svg, .cc-back-cta:focus-visible svg{ transform:translateX(3px); }

@media (max-width:759px){
  .cat-card{ aspect-ratio:1/0.9; }
  .cat-card-face--back{ padding:18px; }
}

/* ============================================================
   TRANSICIÓN CATEGORÍAS → CÓMO FUNCIONA
   Banda compacta (misma idea que .hero-transition): degradado del
   crema-profundo de las tarjetas al crema de "Cómo funciona", con
   una línea fina y dos puntos dorados — nunca un hueco vacío.
   ============================================================ */
.section-transition{
  position:relative;
  height:clamp(72px, 9vw, 108px);
  overflow:hidden;
  background:linear-gradient(180deg, #F1E9D8 0%, #F2EADA 20%, #F3EDDE 40%, #F6EFE2 60%, #F7F2E6 80%, #F8F3E8 100%);
}
.st-line{
  position:absolute; left:50%; top:0; bottom:0; width:1px;
  background:linear-gradient(180deg, transparent, var(--ed-gold) 45%, var(--ed-gold) 55%, transparent);
  opacity:.5; transform:translateX(-50%);
}
.st-dot{ position:absolute; width:5px; height:5px; border-radius:50%; background:var(--ed-gold); }
.st-dot--a{ left:32%; top:38%; opacity:.55; }
.st-dot--b{ left:66%; top:60%; opacity:.4; }

/* ============================================================
   CÓMO FUNCIONA — proceso editorial en 3 pasos conectados
   ============================================================ */
.steps-section{ background:var(--ed-cream); padding-top:16px; }

.steps-head{ max-width:640px; margin-bottom:56px; }
.steps-title{
  font-family:var(--font-display); font-weight:600; color:var(--ed-charcoal);
  font-size:clamp(28px,4.4vw,42px); line-height:1.12; margin:16px 0 16px;
}
.steps-title em{
  font-family:var(--ed-font-serif); font-style:italic; font-weight:500; color:var(--ed-forest);
}
.steps-lead{ font-size:16px; color:var(--ed-charcoal-soft); max-width:56ch; }

.steps-flow{
  display:flex; flex-direction:column; gap:0;
}
@media (min-width:860px){
  .steps-flow{ flex-direction:row; align-items:flex-start; gap:0; }
}

.step-flow{
  position:relative;
  padding:28px 0;
  border-top:1px solid var(--ed-cream-line);
  transition:transform .4s var(--ed-ease);
}
.step-flow:first-child{ padding-top:0; border-top:none; }
@media (min-width:860px){
  .step-flow{ flex:1; padding:0; border-top:none; min-width:0; }
}

.step-flow-num{
  display:block;
  font-family:var(--ed-font-serif); font-style:italic; font-weight:500;
  font-size:clamp(46px,6.2vw,68px); line-height:1; color:var(--ed-sand);
  margin-bottom:18px; will-change:transform;
}

.step-flow-visual{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; margin-bottom:20px;
  color:var(--ed-forest); opacity:.75;
  transition:opacity .35s ease, transform .35s var(--ed-ease);
}
.step-flow-visual svg{ width:100%; height:100%; }

.step-flow h3{
  font-family:var(--font-display); font-weight:600; font-size:19px;
  color:var(--ed-charcoal); margin:0 0 8px; max-width:26ch;
}
.step-flow p{ font-size:14px; color:var(--ed-charcoal-soft); max-width:32ch; margin:0; }

@media (min-width:860px){
  .step-flow:not(:last-child){ padding-right:28px; }
  .step-flow:not(:first-child){ padding-left:0; }
}

/* al pasar el cursor: profundidad muy sutil, el micrográfico gana
   presencia — nunca parece un botón, solo una explicación visual */
@media (hover:hover) and (pointer:fine){
  .step-flow:hover{ transform:translateY(-3px); }
  .step-flow:hover .step-flow-visual{ opacity:1; transform:scale(1.08); }
}

/* conector entre pasos: una línea que se "dibuja" al hacer scroll,
   nunca una simple raya recta y estática */
.step-connector{
  position:relative;
  height:2px; margin:0;
  background:var(--ed-cream-line);
  overflow:hidden;
  flex-shrink:0;
}
.step-connector::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(90deg, var(--ed-gold), var(--ed-sand));
  transform:scaleX(0); transform-origin:left;
  transition:transform 1s var(--ed-ease);
}
.step-connector.is-visible::after{ transform:scaleX(1); }

@media (max-width:859px){
  .step-connector{ width:2px; height:32px; margin-left:0; }
  .step-connector::after{ transform:scaleY(0); transform-origin:top; background:linear-gradient(180deg, var(--ed-gold), var(--ed-sand)); }
  .step-connector.is-visible::after{ transform:scaleY(1); }
}
@media (min-width:860px){
  .step-connector{ width:56px; flex-shrink:0; align-self:flex-start; margin-top:26px; }
}

/* stagger propio de esta sección: más espaciado que el genérico, para
   que el proceso se sienta "construirse" paso a paso, no aparecer de golpe */
.steps-flow.reveal-stagger .reveal-item:nth-child(1){ transition-delay:.05s; }
.steps-flow.reveal-stagger .reveal-item:nth-child(2){ transition-delay:.45s; }
.steps-flow.reveal-stagger .reveal-item:nth-child(3){ transition-delay:.65s; }
.steps-flow.reveal-stagger .reveal-item:nth-child(4){ transition-delay:1.05s; }
.steps-flow.reveal-stagger .reveal-item:nth-child(5){ transition-delay:1.25s; }

/* ============================================================
   (Antes había aquí una franja de transición degradada entre
   "Cómo funciona" y "Cómo puntuamos". Ahora el corte es sólido:
   .steps-section (crema) pasa directamente a .editorial-methodology
   (verde bosque profundo), sin banda intermedia.)
   ============================================================ */


/* ============================================================
   METODOLOGÍA — sistema de análisis: sección oscura
   ============================================================ */
.editorial-methodology{
  background:var(--ed-forest-deep);
  color:#F2EFE6;
  padding:76px 0;
}
.method-head{ max-width:640px; margin-bottom:8px; }
.editorial-methodology .eyebrow{
  color:#CFE0D3; background:rgba(255,255,255,0.08);
}
.editorial-methodology .eyebrow .dot{ background:var(--ed-sand); }
.method-title{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(28px,4.4vw,42px); line-height:1.1; margin:16px 0 14px;
}
.method-title em{
  font-family:var(--ed-font-serif); font-style:italic; font-weight:500; color:var(--ed-sand);
}
.method-lead{ font-size:15.5px; color:#CFCABB; max-width:56ch; }

/* ---------------- Diagrama (escritorio / tablet) ----------------
   Secuencia de entrada: 1) título (ya via .reveal) 2) los 5 criterios
   aparecen progresivamente 3) las líneas se dibujan hacia el centro
   4) la puntuación final se revela la última. */
.method-diagram{
  position:relative;
  width:100%; max-width:540px; aspect-ratio:1;
  margin:64px auto 0;
  opacity:0; transform:scale(.92);
  transition:opacity .8s var(--ed-ease), transform .8s var(--ed-ease);
}
.method-diagram.is-visible{ opacity:1; transform:scale(1); }
.method-diagram svg{ position:absolute; inset:0; width:100%; height:100%; }
.method-diagram line{
  stroke:rgba(242,239,230,0.32); stroke-width:1;
  stroke-dasharray:220; stroke-dashoffset:220;
  transition:stroke-dashoffset 1s var(--ed-ease), stroke .3s ease, stroke-width .3s ease;
}
.method-diagram.is-visible line{ stroke-dashoffset:0; }
/* las líneas se dibujan DESPUÉS de que los 5 criterios hayan aparecido
   — el orden de retardos coincide con las 3 propiedades declaradas en
   la transición base (stroke-dashoffset, stroke, stroke-width): solo
   el dibujado inicial se retrasa; el color de hover siempre es inmediato */
.method-diagram line:nth-child(1){ transition-delay:.8s, 0s, 0s; }
.method-diagram line:nth-child(2){ transition-delay:.9s, 0s, 0s; }
.method-diagram line:nth-child(3){ transition-delay:1s, 0s, 0s; }
.method-diagram line:nth-child(4){ transition-delay:1.1s, 0s, 0s; }
.method-diagram line:nth-child(5){ transition-delay:1.2s, 0s, 0s; }
/* línea resaltada al interactuar con su criterio (ver home-animations.js) */
.method-diagram.has-active-line line{ opacity:.35; }
.method-diagram line.is-active-line{
  opacity:1; stroke:var(--ed-sand); stroke-width:1.6px;
}

/* ---------------- Elemento central: puntuación de ejemplo ---------------- */
.method-center{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) scale(.72);
  width:172px; height:172px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, rgba(255,255,255,.06), transparent 60%), var(--ed-forest);
  border:1px solid rgba(242,239,230,0.32);
  box-shadow:0 20px 40px -20px rgba(0,0,0,.5);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  padding:12px;
  opacity:0; transition:opacity .7s var(--ed-ease) 1.35s, transform .7s var(--ed-ease) 1.35s;
}
.method-diagram.is-visible .method-center{ opacity:1; transform:translate(-50%,-50%) scale(1); }
.mc-label{
  font-family:var(--font-mono); font-size:10px; letter-spacing:.06em; text-transform:uppercase;
  color:#B9C9BC; margin-bottom:6px;
}
.mc-score{
  font-family:var(--ed-font-serif); font-style:italic; font-weight:500;
  font-size:38px; line-height:1; color:#F2EFE6;
}
.mc-max{ font-family:var(--font-mono); font-style:normal; font-size:15px; color:var(--ed-sand); margin-left:2px; }
.mc-caption{ font-size:10.5px; color:#B9C9BC; line-height:1.35; margin-top:8px; max-width:22ch; }

/* ---------------- Criterios ---------------- */
.method-node{
  position:absolute; transform:translate(-50%,-50%) scale(.7);
  width:150px; text-align:center;
  opacity:0; transition:opacity .5s var(--ed-ease), transform .5s var(--ed-ease);
  cursor:default;
}
.method-diagram.is-visible .method-node{ opacity:1; transform:translate(-50%,-50%) scale(1); }
/* los 5 criterios aparecen progresivamente, ANTES de que se dibujen las líneas */
.method-diagram.is-visible .method-node:nth-of-type(1){ transition-delay:.15s; }
.method-diagram.is-visible .method-node:nth-of-type(2){ transition-delay:.3s; }
.method-diagram.is-visible .method-node:nth-of-type(3){ transition-delay:.45s; }
.method-diagram.is-visible .method-node:nth-of-type(4){ transition-delay:.6s; }
.method-diagram.is-visible .method-node:nth-of-type(5){ transition-delay:.75s; }

.method-node-num{
  display:flex; align-items:center; justify-content:center;
  width:26px; height:26px; margin:0 auto 8px;
  border-radius:50%; border:1px solid rgba(242,239,230,.35);
  font-family:var(--font-mono); font-size:10.5px; color:var(--ed-sand);
  transition:border-color .3s ease, background-color .3s ease, color .3s ease;
}
.method-node-label{
  font-size:13.5px; font-weight:600; color:#F2EFE6;
  transition:color .3s ease;
}
.method-node-desc{
  font-size:11.5px; color:#B9C9BC; line-height:1.4; margin:6px 0 0;
  max-width:26ch; margin-left:auto; margin-right:auto;
  opacity:0; max-height:0; overflow:hidden;
  transition:opacity .3s ease, max-height .3s ease, margin-top .3s ease;
}

/* hover / foco en escritorio: resalta el criterio y revela su explicación */
@media (hover:hover) and (pointer:fine){
  .method-node:hover .method-node-num,
  .method-node:focus-visible .method-node-num{
    border-color:var(--ed-sand); background:var(--ed-sand); color:var(--ed-forest-deep);
  }
  .method-node:hover .method-node-desc,
  .method-node:focus-visible .method-node-desc{
    opacity:1; max-height:60px; margin-top:6px;
  }
}
.method-node:focus-visible{ outline:none; }

/* ---------------- Lista (móvil) ---------------- */
.method-list{ display:none; margin-top:44px; }
.method-score-mobile{ display:none; }
@media (max-width:679px){
  .method-diagram{ display:none; }
  .method-list{ display:grid; gap:14px; }
  .method-score-mobile{
    display:flex; flex-direction:column; align-items:center; text-align:center;
    margin-top:40px; padding:28px 20px;
    border:1px solid rgba(242,239,230,.2); border-radius:var(--ed-radius-l);
    background:var(--ed-forest);
  }
  .method-score-mobile .mc-score{ font-size:34px; margin-top:4px; }
  .method-score-mobile .mc-caption{ margin-top:10px; }
}
.method-list .reveal-item{
  display:flex; align-items:flex-start; gap:14px;
  border-top:1px solid rgba(242,239,230,0.14); padding-top:14px;
}
.method-list .reveal-item:first-child{ border-top:none; padding-top:0; }
.m-num{
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  width:26px; height:26px; margin-top:2px;
  border-radius:50%; border:1px solid rgba(242,239,230,.35);
  font-family:var(--font-mono); font-size:10.5px; color:var(--ed-sand);
}
.method-list h4{ font-size:14.5px; font-weight:600; margin:0 0 3px; }
.method-list p{ font-size:13px; color:#B9C9BC; margin:0; }

.method-foot{
  margin-top:48px; padding-top:24px; border-top:1px solid rgba(242,239,230,.14);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px;
}
.method-disclaimer{
  font-size:12.5px; color:#B9C9BC; max-width:60ch; margin:0; line-height:1.5;
}
.method-foot a{
  font-size:13.5px; font-weight:600; color:#F2EFE6; white-space:nowrap;
  border-bottom:1px solid rgba(242,239,230,0.4);
  padding-bottom:2px;
}
.method-foot a:hover{ border-color:#F2EFE6; }

/* ============================================================
   (Antes había aquí una franja de transición degradada entre
   "Cómo puntuamos" y el cierre. Ahora el corte es sólido: pasa
   directamente del verde bosque profundo al crema, sin banda.)
   ============================================================ */


/* ============================================================
   CIERRE — CTA final antes del footer
   ============================================================ */
.closing-cta{
  position:relative;
  background:var(--ed-cream);
  overflow:hidden;
  padding:88px 0 96px;
}

/* ---------------- composición abstracta de fondo ---------------- */
.closing-visual{ position:absolute; inset:0; z-index:0; }
.cc-ring{
  position:absolute; border-radius:50%; border:1px solid var(--ed-forest);
}
.cc-ring--a{ width:min(46vw,420px); aspect-ratio:1; right:-8%; top:-12%; opacity:.14; }
.cc-ring--b{ width:min(26vw,220px); aspect-ratio:1; left:-6%; bottom:-10%; opacity:.12; border-color:var(--ed-sage); }
.cc-dot{ position:absolute; width:6px; height:6px; border-radius:50%; background:var(--ed-gold); }
.cc-dot--a{ right:18%; top:20%; opacity:.5; }
.cc-dot--b{ left:12%; top:38%; opacity:.4; }
.cc-dot--c{ right:28%; bottom:16%; opacity:.45; }
.cc-line{
  position:absolute; left:50%; top:8%; bottom:8%; width:1px;
  background:linear-gradient(180deg, transparent, var(--ed-cream-line) 30%, var(--ed-cream-line) 70%, transparent);
  opacity:.6; transform:translateX(-50%);
}

/* ---------------- contenido ---------------- */
.closing-inner{
  position:relative; z-index:1;
  max-width:660px; margin:0 auto; text-align:center;
  display:flex; flex-direction:column; align-items:center;
}
.closing-title{
  font-family:var(--font-display); font-weight:600; color:var(--ed-charcoal);
  font-size:clamp(30px,4.8vw,46px); line-height:1.14; margin:18px 0 16px;
}
.closing-title em{
  font-family:var(--ed-font-serif); font-style:italic; font-weight:500; color:var(--ed-forest);
}
.closing-lead{
  font-size:16.5px; color:var(--ed-charcoal-soft); max-width:52ch; margin-bottom:34px;
}

.closing-cta-btn{ margin-bottom:40px; }

.closing-trust{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:12px 28px; width:100%;
}
.closing-trust li{
  display:flex; align-items:center; gap:9px;
  font-family:var(--font-mono); font-size:12px; letter-spacing:.04em; text-transform:uppercase;
  color:var(--ed-charcoal-soft);
  position:relative; padding-left:0;
}
.closing-trust li:not(:last-child)::after{
  content:""; position:absolute; right:-14px; top:50%; transform:translateY(-50%);
  width:1px; height:14px; background:var(--ed-cream-line);
}
@media (max-width:640px){
  .closing-trust li:not(:last-child)::after{ display:none; }
}
.ct-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px; color:var(--ed-forest); flex-shrink:0;
}
.ct-icon svg{ width:100%; height:100%; }

/* stagger propio: fondo ya visible vía .closing-visual (CSS puro, sin
   depender del observer) — título, texto, CTA y confianza entran en
   cascada, más pausado que el genérico para sensación de cierre calmado */
.closing-inner .reveal:nth-child(1){ transition-delay:.05s; }
.closing-inner .reveal:nth-child(2){ transition-delay:.2s; }
.closing-inner .reveal:nth-child(3){ transition-delay:.35s; }
.closing-inner .reveal:nth-child(4){ transition-delay:.5s; }
.closing-trust.reveal-stagger .reveal-item:nth-child(1){ transition-delay:.65s; }
.closing-trust.reveal-stagger .reveal-item:nth-child(2){ transition-delay:.75s; }
.closing-trust.reveal-stagger .reveal-item:nth-child(3){ transition-delay:.85s; }

@media (max-width:640px){
  .closing-cta{ padding:64px 0 72px; }
  .cc-ring--a{ width:70vw; }
  .cc-ring--b{ display:none; }
}

