/* =====================================================================
   propuesta7 · La Ruta del Emprendedor
   Dirección: Material limpio INVERTIDO (tema oscuro). Verde-teal intacto.
   Display: Montserrat · Body: Inter. Radios pequeños (12/8/4).
   ===================================================================== */
 :root {
  color-scheme: light;          /* canvas del navegador/preview en claro */
  --paper:    #ffffff;        /* fondo BLANCO del sitio */
  --surface:  #f7f8f9;        /* superficie elevada (gris muy claro) */
  --surface-2:#f1f3f5;
  --surface-3:#e8ebed;
  --ink:      #1a1c1e;        /* texto oscuro */
  --ink-2:    #45464d;
  --mute:     #76777d;
  --line:     rgba(0, 0, 0, 0.10);
  --line-2:   rgba(0, 0, 0, 0.05);

  --teal:      #006a61;       /* verde intacto: rellenos sólidos + texto/icono sobre claro (AA) */
  --teal-2:    #006a61;       /* alias (mismo verde) para texto/icono sobre claro */
  --teal-bright:#4dd9cc;      /* verde claro: texto/icono sobre bloque oscuro (stats/cierre) */
  --teal-hover:#007d72;       /* hover del botón sólido (mantiene contraste con texto blanco) */
  --teal-soft: #e6f4f2;       /* tinte verde claro (chip de icono) */
  --on-teal:   #ffffff;

  --block:     #1a1c1e;       /* bloque oscuro (stats/cierre) sobre página blanca */
  --block-ink: #f5f6f7;
  --block-mute:rgba(245, 246, 247, 0.70);
  --block-line:rgba(245, 246, 247, 0.16);

  --f-display: "Montserrat", system-ui, -apple-system, Segoe UI, sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  --shell: 1280px;
  --gut:   clamp(20px, 4vw, 48px);
  --r:     12px;
  --r-md:  8px;
  --r-sm:  4px;
  --pill:  999px;
  --nav-h: 64px;

  --sh-sm: 0 1px 2px rgba(0,0,0,0.04), 0 6px 18px -12px rgba(0,0,0,0.18);
  --sh:    0 2px 6px rgba(0,0,0,0.05), 0 18px 40px -28px rgba(0,0,0,0.30);
  --ease:  cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--block); }
body.p7 {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(15.5px, 0.4vw + 14.7px, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* fondo muy sutil para que el blanco no sea tan plano; se mueve solo, no interactúa.
     donde una sección tiene su propio background (surface/block) simplemente lo tapa. */
  background-color: var(--paper);
  background-image:
    radial-gradient(60% 45% at 15% 10%, rgba(0, 106, 97, 0.20), transparent 60%),
    radial-gradient(55% 40% at 85% 30%, rgba(77, 217, 204, 0.22), transparent 60%),
    radial-gradient(50% 45% at 50% 90%, rgba(0, 106, 97, 0.19), transparent 60%);
  background-repeat: no-repeat;
  background-size: 140% 140%;
  animation: bg-drift 26s ease-in-out infinite alternate;
}
@keyframes bg-drift {
  0%   { background-position: 20% 4%, 105% 14%, 63% 94%; }
  100% { background-position: -5% 4%, 75% 14%, 38% 94%; }
}
@media (prefers-reduced-motion: reduce) {
  body.p7 { animation: none; }
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: var(--r-sm); }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 250;
  transform: translateY(-160%);
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--pill); font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }

/* ------------------------------------------------------------- tipografía */
.display { font-size: clamp(2.25rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.025em; }
.eyebrow {
  font-family: var(--f-body); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-2);
}
.sec-title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 24ch; }
.sec-title::after {
  content: ""; display: block; width: 52px; height: 3px; margin-top: 14px;
  background: var(--teal); border-radius: var(--pill);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.6s var(--ease) 0.15s;
}
.sec-title.is-in::after { transform: scaleX(1); }
.sec-sub { margin-top: 12px; color: var(--ink-2); max-width: 56ch; }
.text-teal { color: var(--teal-2); }

/* ------------------------------------------------------------- botones */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  white-space: nowrap;
  padding: 12px 20px;
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body); font-weight: 600; font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn i { font-size: 1.1em; transition: transform 0.24s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-lg { padding: 14px 24px; font-size: 0.98rem; }

.btn-ink    { --bg: var(--ink); --fg: var(--paper); }
.btn-ink:hover { --bg: #000; }
.btn-teal   { --bg: var(--teal); --fg: var(--on-teal); box-shadow: var(--sh-sm); }
.btn-teal:hover { --bg: var(--teal-hover); }
.btn-outline { --bd: var(--line); --fg: var(--ink); background: var(--surface); }
.btn-outline:hover { --bd: var(--ink); }
.btn-ghost { --fg: var(--ink-2); }
.btn-ghost:hover { --fg: var(--ink); background: var(--surface-2); }

/* ------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform 0.32s var(--ease), border-color 0.25s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav:focus-within { transform: translateY(0); }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--ink); color: var(--teal);
}
.brand-mark i { font-size: 1.15rem; }
.brand span { color: var(--mute); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a {
  padding: 8px 14px;
  border-radius: var(--r-md);
  color: var(--ink-2); font-size: 0.92rem; font-weight: 500;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-links > a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links > a.is-active { color: var(--ink); }
.nav-links > a.is-active::after {
  content: ""; display: block; height: 2px; background: var(--teal-2); border-radius: var(--pill); margin-top: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.nav-toggle i { font-size: 1.25rem; }

@media (max-width: 940px) {
  .nav-toggle { display: grid; }
  .nav-links, .nav-actions { display: none; }
  .nav-links.is-open {
    display: flex; position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px var(--gut) 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh);
  }
  .nav-links.is-open > a { padding: 13px 4px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line-2); }
  .nav-links.is-open > a.is-active::after { display: none; }
}

/* ------------------------------------------------------------- header (tagline + wa) */
.brand-tag { display: none; padding-left: 14px; border-left: 1px solid var(--line); color: var(--ink-2); font-size: 0.82rem; line-height: 1.25; max-width: 15ch; }
@media (min-width: 720px) { .brand-tag { display: block; } }
.nav-wa i { font-size: 1.1rem; }

/* ------------------------------------------------------------- hero (Tailwind, ver index.html) */
#navLinks.is-open { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 8px 24px 16px; box-shadow: var(--sh-sm); }
#navLinks.is-open > a { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------- stats band */
.stats { background: var(--block); color: var(--block-ink); padding-block: clamp(36px, 4vw, 52px); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; text-align: center; }
.stats-grid > div { padding: 8px 0; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.stats-grid > div[data-reveal] { opacity: 0; transform: translateY(26px) scale(0.96); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.stats-grid > div[data-reveal].is-in { opacity: 1; transform: translateY(0) scale(1); }
.stats-num { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: var(--teal-bright); letter-spacing: -0.02em; transition: text-shadow 0.3s var(--ease); }
.stats-grid > div:hover .stats-num { text-shadow: 0 0 22px rgba(77,217,204,0.65); }
.stats-label { margin-top: 8px; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--block-mute); }
@media (min-width: 641px) {
  .stats-grid > div + div { border-left: 1px solid var(--block-line); }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div + div { border-top: 1px solid var(--block-line); margin-top: 16px; padding-top: 24px; }
}

/* ------------------------------------------------------------- head + foto compartido */
.sec-head-media { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }
.sec-head-media > div:first-child { flex: 1 1 0; max-width: 62ch; }
.sec-photo { flex: 0 0 clamp(220px, 26vw, 320px); aspect-ratio: 4 / 3; border-radius: var(--r-lg, 20px); overflow: hidden; box-shadow: var(--sh-sm); }
.sec-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .sec-head-media { flex-direction: column-reverse; align-items: stretch; } .sec-photo { flex-basis: auto; width: 100%; aspect-ratio: 16 / 9; } }

/* ------------------------------------------------------------- riesgo */
.risk { position: relative; z-index: 1; background: var(--surface); padding-block: clamp(64px, 8vw, 110px); }
.risk-head .sec-sub { margin-top: 16px; }
.risk-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(28px, 4vw, 48px); }
.risk-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 30px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); overflow: hidden; }
.risk-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(77,217,204,0.18), transparent 70%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.risk-card:hover::after { opacity: 1; }
.risk-card[data-reveal] { opacity: 0; transform: translateY(30px) scale(0.97); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.risk-card[data-reveal].is-in { opacity: 1; transform: none; }
.risk-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r-md); background: #fdeeea; color: #c2542f; }
.risk-ic i { font-size: 1.4rem; }
.risk-title { font-size: 1.15rem; line-height: 1.25; }
.risk-desc { color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 860px) { .risk-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- diagnóstico */
.diag { position: relative; z-index: 2; background: var(--paper); padding-block: clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); }
.diag-head .sec-sub { margin-top: 16px; }
.diag-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(28px, 4vw, 48px); }
.diag-item { position: relative; display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 1.6vw, 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.diag-item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(77,217,204,0.2), transparent 70%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.diag-item:hover::after { opacity: 1; }
.diag-item[data-reveal] { opacity: 0; transform: translateY(26px) scale(0.97); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.diag-item[data-reveal].is-in { opacity: 1; transform: none; }
.diag-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--teal-soft); color: var(--teal-2); }
.diag-ic i { font-size: 1.25rem; }
.diag-title { font-size: 0.98rem; line-height: 1.2; }
.diag-desc { color: var(--ink-2); font-size: 0.88rem; line-height: 1.45; }
.diag-cta { margin-top: clamp(26px, 3vw, 40px); }
.diag-note { margin-bottom: 20px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; font-weight: 500; max-width: 60ch; }
@media (max-width: 980px) { .diag-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .diag-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- about */
.about {
  position: relative; z-index: 1; padding-block: clamp(56px, 7vw, 96px);
  background-color: var(--surface);
  background-image: radial-gradient(60% 70% at 85% 0%, var(--teal-soft), transparent 65%);
}
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.about-media { position: relative; }
.about-media::before {
  content: ""; position: absolute; inset: -10px auto auto -10px; width: 100%; height: 100%;
  border-radius: var(--r); background: var(--teal); opacity: 0.14; z-index: -1;
  transition: transform 0.4s var(--ease);
}
.about-media:hover::before { transform: translate(6px, 6px); }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: var(--sh); transition: transform 0.4s var(--ease); }
.about-media:hover img { transform: translateY(-4px); }
.about-eyebrow { color: var(--teal-2); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.about-title { margin-top: 10px; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; }
.about-rule { width: 56px; height: 3px; background: var(--teal-2); border-radius: var(--pill); margin-top: 16px; }
.about-lead { margin-top: 18px; font-size: 1.1rem; color: var(--ink-2); line-height: 1.55; }
.about-body { margin-top: 14px; color: var(--ink-2); }
.about-list { margin-top: 20px; display: grid; gap: 12px; }
.about-list li { display: flex; align-items: flex-start; gap: 10px; }
.about-list i { color: var(--teal-2); font-size: 1.15rem; margin-top: 1px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- ruta */
.route { position: relative; z-index: 2; background: var(--paper); padding-top: clamp(56px, 6vw, 96px); }
.route-head { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.route-pin { position: relative; background: var(--paper); height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: clamp(26px, 4vw, 54px); overflow: hidden; }
.route-viewport { width: 100%; }
.route-track {
  position: relative; display: flex; align-items: flex-start;
  gap: clamp(18px, 2.4vw, 34px);
  padding-left: max(var(--gut), calc(50% - var(--shell) / 2 + var(--gut)));
  padding-right: var(--gut); padding-block: 8px;
  will-change: transform;
}
.route-line { position: absolute; left: 0; right: 0; top: 26px; height: 2px;
  background: linear-gradient(90deg, var(--line) 0%, var(--teal-2) 45%, var(--line) 100%); opacity: 0.6; }
.stop { position: relative; flex: 0 0 auto; width: clamp(258px, 25vw, 340px); padding-top: 68px; }
.stop-node {
  position: absolute; top: 0; left: 0; width: 54px; height: 54px;
  display: grid; place-items: center; border-radius: var(--pill);
  background: linear-gradient(150deg, var(--teal-soft), var(--surface));
  border: 1px solid var(--teal-2);
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--teal-2);
  box-shadow: 0 0 0 4px var(--teal-soft), 0 0 14px rgba(0,106,97,0.3), var(--sh-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.stop-final .stop-node { background: var(--teal); border-color: transparent; color: var(--on-teal); box-shadow: 0 0 0 5px var(--teal-soft), 0 0 22px rgba(0,106,97,0.5), var(--sh-sm); }
.stop-title { font-size: 1.24rem; line-height: 1.2; }
.stop-text { margin-top: 10px; color: var(--ink-2); font-size: 0.97rem; }
.route-progress { display: flex; align-items: center; gap: 14px; width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); font-family: var(--f-display); font-weight: 700; }
.rp-now { color: var(--teal-2); min-width: 2.4ch; }
.rp-total { color: var(--mute); min-width: 2.4ch; }
.rp-bar { flex: 1; height: 3px; border-radius: var(--pill); background: var(--line); overflow: hidden; }
.rp-fill { display: block; height: 100%; width: 11%; border-radius: var(--pill); background: var(--teal-2); }
.route-pin.is-static .route-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.route-pin.is-static .route-viewport::-webkit-scrollbar { display: none; }
.route-pin.is-static .stop { scroll-snap-align: start; }
@media (max-width: 899px) {
  .route-pin { height: auto; min-height: 0; display: block; overflow: visible; }
  .route-head { margin-bottom: 30px; }
  .route-viewport { overflow: visible; }
  .route-track { flex-direction: column; gap: 0; padding-inline: 0; max-width: var(--shell); margin-inline: auto; padding-left: calc(var(--gut) + 34px); padding-right: var(--gut); transform: none !important; }
  .route-line { left: calc(var(--gut) + 26px); right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; background: linear-gradient(180deg, var(--line) 0%, var(--teal-2) 45%, var(--line) 100%); }
  .stop { width: 100%; padding: 0 0 32px 30px; }
  .stop-node { width: 44px; height: 44px; left: -34px; top: 0; font-size: 0.9rem; }
  .route-progress { display: none; }
  .stop[data-reveal-m] { opacity: 0; transform: translateY(26px) scale(0.98); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
  .stop[data-reveal-m].is-in { opacity: 1; transform: none; }
}
@media (max-width: 1023px) {
  .stop-final .stop-node { animation: node-pulse 2.6s ease-in-out infinite; }
}
@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 0 5px var(--teal-soft), 0 0 16px rgba(0,106,97,0.4), var(--sh-sm); }
  50%      { box-shadow: 0 0 0 8px var(--teal-soft), 0 0 26px rgba(0,106,97,0.6), var(--sh-sm); }
}

/* ------------------------------------------------------------- casos */
.cases { padding-block: clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); }
.cases-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.cases-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.round-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); cursor: pointer; transition: border-color 0.18s var(--ease), transform 0.18s var(--ease); }
.round-btn:hover { border-color: var(--ink); }
.round-btn:active { transform: scale(0.94); }
.round-btn i { font-size: 1.1rem; }
.cases-rail { display: flex; gap: clamp(14px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding-inline: var(--gut); padding-bottom: 6px; scrollbar-width: none; }
.cases-rail::-webkit-scrollbar { display: none; }
.cases-rail.is-autoplay { scroll-snap-type: none; scroll-behavior: auto; }
.case { flex: 0 0 auto; width: min(380px, 82vw); scroll-snap-align: center; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.case[data-reveal] { opacity: 0; transform: translateY(30px) scale(0.96); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.case[data-reveal].is-in { opacity: 1; transform: translateY(0) scale(1); }
.case-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case-body { padding: clamp(18px, 2vw, 24px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.case-quote-mark { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--teal-2); line-height: 1; }
.case-quote { font-size: 1rem; line-height: 1.5; color: var(--ink); }
.case-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.case-av { width: 36px; height: 36px; border-radius: var(--pill); display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-2); font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; }
.case-name { font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; }
.case-role { color: var(--mute); font-size: 0.82rem; }
@media (max-width: 720px) { .cases-head { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------------------- pricing */
.pricing { padding-block: clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); }
.pricing-head { display: grid; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 62ch; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.price-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(77,217,204,0.16), transparent 70%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.price-card:hover::after { opacity: 1; }
.price-card.is-featured { border-color: var(--teal-2); box-shadow: var(--sh); }
.price-badge { position: absolute; top: -13px; left: clamp(24px, 2.4vw, 32px); padding: 4px 12px; border-radius: var(--pill); background: var(--teal); color: var(--on-teal); font-family: var(--f-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.price-tag { color: var(--teal-2); font-family: var(--f-body); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.price-name { font-size: 1.4rem; line-height: 1.15; }
.price-price { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.price-desc { color: var(--ink-2); font-size: 0.93rem; }
.price-feats { display: grid; gap: 10px; margin-top: 2px; }
.price-feats li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 0.92rem; }
.price-feats i { color: var(--teal-2); font-size: 1.1rem; margin-top: 1px; flex: 0 0 auto; }
.price-feats .is-off { color: var(--mute); }
.price-feats .is-off i { color: var(--mute); }
.price-feats .is-off span { text-decoration: line-through; }
.price-card .btn { margin-top: auto; width: 100%; }
.pricing-note { margin: clamp(20px, 2vw, 28px) auto 0; color: var(--mute); font-size: 0.88rem; text-align: center; max-width: 60ch; }
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ------------------------------------------------------------- cierre */
.closing { background: var(--block); color: var(--block-ink); padding-top: clamp(64px, 8vw, 110px); }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.closing-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.02em; }
.closing-sub { margin-top: 16px; color: var(--block-mute); font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.18rem); max-width: 40ch; }
.closing-copy .btn { margin-top: 28px; }
.closing-list { display: grid; gap: 14px; }
.closing-list li { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--block-line); color: var(--block-ink); }
.closing-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.closing-list i { color: var(--teal-bright); font-size: 1.2rem; flex: 0 0 auto; margin-top: 1px; }
.foot { border-top: 1px solid var(--block-line); padding-top: 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); margin-top: clamp(36px, 4vw, 56px); }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.9rem; color: var(--block-mute); }
.foot-brand { font-family: var(--f-display); font-weight: 700; color: var(--block-ink); }
.foot-links { display: flex; gap: 18px; }
.foot-links a { transition: color 0.18s var(--ease); }
.foot-links a:hover { color: var(--block-ink); }
@media (max-width: 900px) { .closing-grid { grid-template-columns: 1fr; } .foot-row { justify-content: flex-start; } }

/* ------------------------------------------------------------- microdetalles (lift + focus cards) */
.case, .price-card {
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.case:hover, .price-card:not(.is-featured):hover { transform: translateY(-3px); border-color: var(--ink-2); box-shadow: var(--sh); }
.value-item { transition: transform 0.18s var(--ease); }
.value-item:hover { transform: translateX(2px); }
.price-card:focus-within, .case:focus-within { box-shadow: var(--sh); border-color: var(--teal-2); }

/* ------------------------------------------------------------- modales (sheet) */
.sheet { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: clamp(12px, 3vw, 32px); visibility: hidden; opacity: 0; transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease); }
.sheet.is-open { visibility: visible; opacity: 1; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20,22,26,0.6); backdrop-filter: blur(4px); }
.sheet-card { position: relative; width: min(560px, 100%); max-height: min(92dvh, 760px); overflow-y: auto; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); transform: translateY(12px) scale(0.99); transition: transform 0.28s var(--ease); }
.sheet.is-open .sheet-card { transform: none; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); cursor: pointer; transition: border-color 0.18s var(--ease); }
.sheet-close:hover { border-color: var(--ink); }
.sheet-close i { font-size: 1.15rem; }
.sheet-head { padding-right: 50px; }
.sheet-meta { color: var(--mute); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }
.sheet-progress { margin-top: 10px; height: 3px; border-radius: var(--pill); background: var(--line); overflow: hidden; }
.sheet-fill { display: block; height: 100%; width: 12.5%; border-radius: var(--pill); background: var(--teal-2); transition: width 0.32s var(--ease); }
.sheet-title { margin-top: 20px; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.16; }
.sheet-field { margin-top: 20px; display: grid; gap: 8px; }
.sheet-field label.field-label { font-weight: 700; font-size: 0.92rem; }
.sheet-field .field-help { color: var(--mute); font-size: 0.85rem; }
.field-input { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); resize: vertical; transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease); }
.field-input::placeholder { color: var(--mute); }
.field-input:focus { border-color: var(--teal-2); background: var(--surface); outline: none; }
.field-options { display: grid; gap: 8px; }
.field-contact { display: grid; gap: 10px; }
.field-contact .field-input.has-error { border-color: #ff8a80; }
.field-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); cursor: pointer; transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease); }
.field-option:hover { border-color: var(--ink-2); }
.field-option input { accent-color: var(--teal-2); width: 18px; height: 18px; }
.field-option.is-checked { border-color: var(--teal-2); background: var(--surface); }
.field-error { display: flex; align-items: center; gap: 8px; color: #ff8a80; font-size: 0.88rem; font-weight: 600; }
.field-input.has-error, .field-options.has-error .field-option { border-color: #ff8a80; }
.sheet-nav { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-nav .btn-outline.is-hidden { visibility: hidden; }
.sheet-success { display: grid; gap: 10px; }
.sheet-success .ok-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--pill); background: var(--teal); color: var(--on-teal); margin-bottom: 6px; }
.sheet-success .ok-mark i { font-size: 1.5rem; }
.sheet-success p { color: var(--ink-2); }
.spinner { width: 15px; height: 15px; border: 2px solid color-mix(in srgb, var(--on-teal) 30%, transparent); border-top-color: var(--on-teal); border-radius: var(--pill); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- reveals + a11y */
[data-reveal] { opacity: 0; transform: translateY(30px) scale(0.985); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  #heroRisk > * { opacity: 0; animation: heroRiskFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  #heroRisk > *:nth-child(1) { animation-delay: 0.05s; }
  #heroRisk > *:nth-child(2) { animation-delay: 0.22s; }
  #heroRisk > *:nth-child(3) { animation-delay: 0.39s; }
  #heroRisk > *:nth-child(4) { animation-delay: 0.56s; }
}
@keyframes heroRiskFade { from { opacity: 0; } to { opacity: 1; } }

/* -------------------------------------------------------- glow al hover en tarjetas/botones */
.price-card, .case, .value-item, .stop {
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.price-card:hover, .case:hover {
  border-color: var(--teal-2);
  box-shadow: 0 0 0 1px var(--teal-2), 0 14px 34px -18px rgba(0,106,97,0.45);
  transform: translateY(-2px);
}
.value-item:hover .value-ic, .stop:hover .stop-node {
  box-shadow: 0 0 0 4px var(--teal-soft), 0 0 18px rgba(0,106,97,0.35);
}
.btn-outline { transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease); }
.btn-outline:hover { box-shadow: 0 0 0 3px var(--teal-soft); }
.btn-teal:hover { box-shadow: 0 0 22px rgba(0,106,97,0.45); }
@media (prefers-reduced-motion: reduce) {
  .price-card, .case, .value-item, .stop, .btn-outline, .btn-teal { transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal], [data-reveal-m] { opacity: 1; transform: none; }
  .nav { transform: none !important; }
  .cases-rail { scroll-behavior: auto; }
}

/* -------------------------------------------------------- hero: cards se elevan al hover */
.hero-card { transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@media (prefers-reduced-motion: no-preference) {
  .glass-card { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
  .glass-card:hover { --tw-translate-y: -12px; box-shadow: 0 22px 46px -22px rgba(0, 0, 0, 0.45); }
  .hero-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px -22px rgba(0, 106, 97, 0.20); }
}
