/* ==========================================================================
   Sassenac — hoja de estilos (edición «maison»)
   Concepto: revista de lujo. Mucho aire, filetes finos, esquinas rectas.
   Tipografía del portal de Sassenac: Bodoni Moda para titulares y logo,
   Jost espaciada para etiquetas, botones y navegación, IBM Plex Sans para
   el texto, IBM Plex Mono para datos, Archivo para subtítulos.
   Paleta oficial: lienzo, negro, slate, beige, chocolate y plata.
   ========================================================================== */

:root {
  /* Color · paleta oficial */
  --paper: #e9e8e8;
  --paper-2: #f8f7f6;
  --surface-2: #e6e2dd;
  --ink: #000000;
  --ink-2: #46413e;
  --muted: #5a5551;
  --faint: #84837f;
  --line: #cdc6bd;
  --hair: rgba(70, 65, 62, .22);
  --choco: #351c10;
  --choco-2: #4b2a19;
  --beige: #cdc6bd;
  --silver: linear-gradient(135deg, #f8f7f6 0%, #d2d1d1 32%, #e6e2dd 54%, #84837f 80%, #cdc6bd 100%);
  --silver-text: linear-gradient(100deg, #f8f7f6 0%, #d2d1d1 30%, #84837f 55%, #e6e2dd 75%, #cdc6bd 100%);
  --dark: #000000;
  --dark-2: #121110;
  --dark-line: rgba(205, 198, 189, .2);
  --on-dark: #e6e2dd;
  --on-dark-muted: #a29f9b;
  --error: #9b2c1f;

  /* Tipografía */
  --f-serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --f-label: "Jost", Futura, "Century Gothic", sans-serif;
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --t-hero: clamp(2.9rem, 7vw, 6.6rem);
  --t-h2: clamp(2.2rem, 4.6vw, 4rem);
  --t-lead: clamp(1.05rem, 1.3vw, 1.2rem);
  --t-body: 1rem;
  --t-label: .72rem;

  /* Layout */
  --max: 1280px;
  --gutter: clamp(20px, 5.5vw, 72px);
  --header-h: 84px;
  --section: clamp(100px, 13vw, 190px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grano de papel muy sutil */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-serif); font-weight: 400; letter-spacing: -.012em; line-height: 1.04; text-wrap: balance; }
h1 em, h2 em, .quote em { font-style: italic; }
:focus-visible { outline: 1px solid var(--choco); outline-offset: 4px; }
.band--dark :focus-visible, .final :focus-visible { outline-color: var(--beige); }
::selection { background: var(--choco); color: var(--paper-2); }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; text-decoration: none; font-family: var(--f-label); }
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .55); }
.band--dark { background: var(--dark); color: var(--on-dark); }
.band--paper2 { background: var(--paper-2); }

/* ---------- Utilidades tipográficas ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px; margin: 0;
  font-family: var(--f-label); font-size: var(--t-label); font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .55; }
.band--dark .eyebrow, .final .eyebrow { color: var(--on-dark-muted); }
.lead { font-size: var(--t-lead); font-weight: 300; line-height: 1.75; color: var(--ink-2); max-width: 56ch; }
.band--dark .lead, .final .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.h2 { font-size: var(--t-h2); }
.section-head { display: grid; gap: 26px; margin-bottom: clamp(56px, 8vw, 104px); max-width: 900px; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.3fr 1fr; gap: 40px 96px; } }
.arw { width: 30px; height: 10px; flex: none; transition: transform .5s var(--ease); }

/* ---------- Botones ---------- */
.btn, .hbtn {
  --btn-bg: var(--ink); --btn-fg: var(--paper-2); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 56px; padding: 0 32px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd); border-radius: 0;
  font-family: var(--f-label); font-weight: 400; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover .arw, .hbtn:hover .arw, .link-arrow:hover .arw { transform: translateX(6px); }
.btn:hover, .hbtn--primary:hover { --btn-bg: var(--choco); --btn-bd: var(--choco); }
.btn--ghost, .hbtn--secondary { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost:hover, .hbtn--secondary:hover { --btn-bg: var(--ink); --btn-fg: var(--paper-2); --btn-bd: var(--ink); }
.btn--light { --btn-bg: var(--silver); --btn-fg: var(--ink); --btn-bd: transparent; }
.btn--light:hover { --btn-bg: var(--paper-2); --btn-bd: var(--paper-2); --btn-fg: var(--ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: color-mix(in srgb, var(--on-dark) 45%, transparent); }
.btn--ghost-light:hover { --btn-bg: var(--on-dark); --btn-fg: var(--ink); --btn-bd: var(--on-dark); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: .7rem; }
.btn-row, .hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px; justify-self: start; align-self: start; width: fit-content;
  padding-block: 12px; font-family: var(--f-label); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .4s;
}
.site-header.is-scrolled { border-bottom-color: var(--hair); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand__word { font-family: var(--f-serif); font-weight: 500; font-size: 1.45rem; line-height: 1; letter-spacing: .24em; text-transform: uppercase; margin-right: -.24em; }
.nav__links { display: none; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; font-family: var(--f-label); font-size: .72rem; letter-spacing: .2em; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; text-decoration: none; color: var(--faint); }
.lang span[aria-hidden] { min-width: 0; padding: 0 2px; opacity: .5; }
.lang [aria-current="true"] { color: var(--ink); }
.lang a:hover { color: var(--ink); }
.nav__cta { display: none; }
.nav__toggle { width: 46px; height: 46px; display: inline-grid; place-items: center; padding: 0; background: transparent; border: 0; cursor: pointer; color: var(--ink); }
.nav__toggle span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .4s var(--ease); grid-area: 1 / 1; }
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
@media (max-width: 380px) { .brand__word { letter-spacing: .16em; font-size: 1.2rem; } .lang a, .lang span { min-width: 30px; } }

.mobile-menu {
  position: fixed; z-index: 45;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0;
  background: var(--paper);
  padding: 32px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-menu li a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--hair);
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -.01em; line-height: 1.1; text-decoration: none;
}
.mobile-menu li a small { font-family: var(--f-label); font-size: .68rem; letter-spacing: .24em; color: var(--faint); }
.mobile-menu li a[aria-current="page"] { font-style: italic; color: var(--choco); }
.mobile-menu__foot { display: grid; gap: 18px; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__mail { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }

@media (min-width: 1040px) {
  .nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
  .nav__links a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    font-family: var(--f-label); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
    text-decoration: none; color: var(--ink-2); transition: color .3s;
  }
  .nav__links a::after { content: ""; position: absolute; left: 16px; right: calc(16px + .24em); bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
  .nav__links a:hover { color: var(--ink); }
  .nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
  .nav__links a[aria-current="page"] { color: var(--ink); }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .mobile-menu { display: none; }
}

/* ---------- CTA fija en móvil ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hair);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: none; }
body.menu-open .sticky-cta { transform: translateY(110%); }
@media (min-width: 1040px) { .sticky-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 140px) clamp(72px, 10vw, 150px); }
.hero__grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: clamp(26px, 3vw, 40px); min-width: 0; }
.hero__eyebrow {
  display: flex; align-items: flex-start; gap: 16px; margin: 0;
  font-family: var(--f-label); font-size: var(--t-label); line-height: 1.8; letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}
.hero__eyebrow::before { content: ""; flex: none; width: 40px; height: 1px; margin-top: .9em; background: currentColor; opacity: .55; }
.hero__title { font-size: var(--t-hero); line-height: .98; letter-spacing: -.02em; }
.hero__title em { display: block; color: var(--choco); }
.hero__lead { font-size: var(--t-lead); font-weight: 300; line-height: 1.75; color: var(--ink-2); max-width: 34em; }
.hero__visual { min-width: 0; position: relative; }
@media (min-width: 1040px) { .hero__grid { grid-template-columns: 1.3fr 1fr; } }

/* Diagrama de los dos caminos */
.hero-paths { width: 100%; height: auto; overflow: visible; }
.hero-path { fill: none; stroke: var(--ink); stroke-width: 1; }
.hero-path.p2 { stroke: var(--choco); }
.hero-dot { fill: var(--ink); }
.hero-dot:last-of-type { fill: var(--choco); }
.hero-label { font-family: var(--f-label); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; fill: var(--muted); }
.js .hero-path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.8s var(--ease) .3s forwards; }
.js .hero-path.p2 { animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 1039px) { .hero-label { font-size: 15px; letter-spacing: .14em; } }

/* ---------- Referencias (prueba social) ---------- */
.proof { border-block: 1px solid var(--hair); }
.proof__inner { display: grid; gap: 22px; padding-block: clamp(36px, 5vw, 56px); justify-items: center; text-align: center; }
.proof__label { font-family: var(--f-label); font-size: var(--t-label); letter-spacing: .32em; text-transform: uppercase; color: var(--faint); }
.proof__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(26px, 3.4vw, 52px); max-width: 1080px; }
.proof__list li { display: inline-flex; align-items: center; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.05rem, 1.7vw, 1.4rem); color: var(--ink-2); white-space: nowrap; }

/* ---------- Frentes / servicios ---------- */
.fronts { display: grid; gap: 0; border-top: 1px solid var(--hair); }
@media (min-width: 900px) { .fronts { grid-template-columns: 1fr 1fr; } }
.front { position: relative; display: grid; gap: 24px; align-content: start; padding: clamp(36px, 5vw, 64px) clamp(0px, 2vw, 8px) clamp(36px, 5vw, 64px) 0; min-width: 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 900px) { .front { padding-right: clamp(32px, 5vw, 72px); border-bottom: 0; } .front + .front { padding-left: clamp(32px, 5vw, 72px); border-left: 1px solid var(--hair); } }
.front--dark { background: var(--choco); color: var(--on-dark); padding: clamp(36px, 5vw, 64px) !important; border: 0 !important; margin-top: -1px; }
.front__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.front__tag { font-family: var(--f-label); font-size: var(--t-label); letter-spacing: .28em; text-transform: uppercase; color: var(--faint); }
.front--dark .front__tag { color: var(--beige); }
.front h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.front p { color: var(--ink-2); max-width: 50ch; font-weight: 300; }
.front--dark p { color: color-mix(in srgb, var(--on-dark) 85%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.chips li { font-family: var(--f-label); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.front--dark .chips li { color: var(--beige); }
.front--dark .link-arrow { color: var(--on-dark); }

/* ---------- Resultados ---------- */
.stats { display: grid; border-top: 1px solid var(--dark-line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { display: grid; gap: 18px; align-content: start; padding: 44px 0; border-bottom: 1px solid var(--dark-line); min-width: 0; }
@media (min-width: 900px) { .stat { padding: 56px 40px 56px 0; border-bottom: 0; } .stat + .stat { padding-left: 40px; border-left: 1px solid var(--dark-line); } }
.stat__client { font-family: var(--f-label); font-size: var(--t-label); letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-muted); }
.stat__num {
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(3.6rem, 7.4vw, 6.2rem); line-height: .95; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums;
  background: var(--silver-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__num small { font-style: italic; font-size: .5em; margin-left: 6px; }
.stat__desc { color: var(--on-dark-muted); max-width: 30ch; font-weight: 300; }
.stats-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; }
.stats-foot p { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--on-dark-muted); }

/* ---------- Casos ---------- */
.cases { display: grid; gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
@media (min-width: 680px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.case__media { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--choco); }
.case__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.4s var(--ease), filter .8s; }
.case:hover .case__media img { transform: scale(1.035); filter: saturate(1); }
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px;
  background: radial-gradient(90% 70% at 30% 20%, color-mix(in srgb, var(--beige) 16%, transparent), transparent 70%), linear-gradient(170deg, var(--choco-2), var(--choco) 45%, var(--dark));
  color: var(--on-dark);
}
.ph--cc { background: radial-gradient(90% 70% at 70% 20%, color-mix(in srgb, var(--beige) 12%, transparent), transparent 70%), linear-gradient(190deg, var(--ink-2), var(--dark-2) 55%, var(--dark)); }
.ph::after { content: ""; position: absolute; inset: 14px; border: 1px solid color-mix(in srgb, var(--beige) 28%, transparent); pointer-events: none; }
.ph__initials { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(3.4rem, 7vw, 4.6rem); line-height: 1; letter-spacing: .02em; }
.ph__handle { font-family: var(--f-label); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--beige); }
.case__badge { position: absolute; left: 26px; bottom: 26px; z-index: 2; font-family: var(--f-label); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark); }
.case__body { display: grid; gap: 16px; align-content: start; grid-template-rows: auto auto 1fr; padding-top: 26px; }
.case__head { display: grid; gap: 6px; }
.case__name { font-size: clamp(1.6rem, 2.2vw, 1.9rem); }
.case__handle { font-family: var(--f-mono); font-size: .8rem; color: var(--faint); text-decoration: none; width: fit-content; }
.case__handle:hover { color: var(--choco); }
.case__text { color: var(--ink-2); font-size: .95rem; font-weight: 300; }
.case__metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px; margin: 0; padding-top: 20px; border-top: 1px solid var(--hair); align-self: end; }
.case__metrics div { display: grid; gap: 4px; min-width: 0; }
.case__metrics dt { order: 2; font-family: var(--f-label); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.case__metrics dd { order: 1; margin: 0; font-family: var(--f-serif); font-size: 1.75rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }

.filters { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--hair); }
.filter { position: relative; min-height: 48px; padding: 0; border: 0; background: transparent; font-family: var(--f-label); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); cursor: pointer; transition: color .3s; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .5s var(--ease); }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.filter span { font-family: var(--f-serif); font-style: italic; letter-spacing: 0; text-transform: none; font-size: .95rem; margin-left: 6px; }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--hair); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; padding: 36px 28px 36px 0; border-bottom: 1px solid var(--hair); min-width: 0; }
.step__n { grid-row: span 2; font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--choco); padding-top: 4px; }
.step h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -.005em; line-height: 1.3; }
.step p { color: var(--ink-2); font-size: .95rem; font-weight: 300; }
.steps--dark { border-top-color: var(--dark-line); }
.steps--dark .step { border-bottom-color: var(--dark-line); }
.steps--dark .step__n { color: var(--beige); }
.steps--dark .step p { color: var(--on-dark-muted); }

/* ---------- Manifiesto / cita ---------- */
.manifesto { display: grid; gap: 56px; }
@media (min-width: 1040px) { .manifesto { grid-template-columns: 1.45fr 1fr; gap: 104px; align-items: end; } }
.quote { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 3.8vw, 3.3rem); line-height: 1.16; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.quote::before { content: "“"; display: block; font-style: normal; font-size: 2.2em; line-height: .55; color: var(--choco); margin-bottom: 18px; }
.band--dark .quote::before { color: var(--beige); }
.quote-by { margin-top: 28px; font-family: var(--f-label); font-size: var(--t-label); letter-spacing: .28em; text-transform: uppercase; color: var(--faint); }
.roles { display: grid; border-top: 1px solid var(--hair); }
.role { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--hair); }
.role h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; line-height: 1.3; }
.role p { color: var(--ink-2); font-size: .95rem; font-weight: 300; }

/* ---------- Testimonios (preparado, oculto) ---------- */
.testimonials { display: grid; gap: 24px; }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
.testimonial { display: grid; gap: 28px; padding: clamp(32px, 4vw, 52px); background: var(--paper); margin: 0; }
.testimonial blockquote { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.45rem; line-height: 1.35; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.testimonial img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption strong { display: block; font-family: var(--f-display); font-weight: 500; }
.testimonial figcaption span { font-family: var(--f-label); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Valores ---------- */
.values { display: grid; border-top: 1px solid var(--hair); }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value { display: grid; gap: 14px; padding: 40px 40px 40px 0; border-bottom: 1px solid var(--hair); align-content: start; }
@media (min-width: 700px) { .value:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--hair); } }
.value h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.value p { color: var(--ink-2); font-weight: 300; }

/* ---------- Detalle de servicio ---------- */
.service { display: grid; gap: 48px; padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--hair); }
.service:first-of-type { border-top: 0; }
@media (min-width: 1040px) { .service { grid-template-columns: 1fr 1.1fr; gap: 104px; } }
.service__intro { display: grid; gap: 26px; align-content: start; }
.service__intro h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
@media (min-width: 1040px) { .service__intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.service__detail { display: grid; gap: 40px; min-width: 0; }
.include { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.include li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.include li svg { width: 16px; height: 16px; margin-top: 5px; color: var(--choco); }
.include strong { display: block; font-family: var(--f-display); font-weight: 500; }
.include span { color: var(--ink-2); font-size: .95rem; font-weight: 300; }
.for-who { padding: 32px 34px; background: var(--paper-2); display: grid; gap: 12px; border-left: 1px solid var(--choco); }
.for-who h3 { font-family: var(--f-label); font-weight: 400; font-size: var(--t-label); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.for-who p { font-weight: 300; }

.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.compare thead th { font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: 1.35rem; color: var(--ink); border-bottom-color: var(--ink); }
.compare tbody th { font-family: var(--f-label); font-weight: 400; font-size: var(--t-label); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); width: 22%; padding-top: 26px; }
.compare td { color: var(--ink-2); font-weight: 300; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; cursor: pointer; list-style: none;
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center/16px 1px no-repeat, linear-gradient(currentColor, currentColor) center/1px 16px no-repeat; transition: transform .5s var(--ease), background-size .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); background-size: 16px 1px, 1px 0; }
.faq__a { padding: 0 0 30px; color: var(--ink-2); max-width: 66ch; font-weight: 300; }
.faq-layout { display: grid; gap: 48px; }
@media (min-width: 1040px) { .faq-layout { grid-template-columns: 1fr 1.6fr; gap: 104px; } }

/* ---------- Cierre (chocolate) ---------- */
.final { position: relative; overflow: hidden; background: var(--choco); color: var(--on-dark); }
.final__inner { display: grid; gap: 36px; justify-items: center; text-align: center; padding-block: clamp(110px, 14vw, 200px); }
.final h2 { font-size: clamp(2.6rem, 6.6vw, 6rem); line-height: 1; max-width: 14ch; }
.final .lead { max-width: 50ch; color: color-mix(in srgb, var(--on-dark) 78%, transparent); }
.final .btn-row { justify-content: center; }
.final__mail { font-family: var(--f-mono); font-size: .85rem; color: color-mix(in srgb, var(--on-dark) 65%, transparent); }
.final__mail a { color: var(--on-dark); }

/* ---------- Pie ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); }
.footer__grid { display: grid; gap: 44px; padding-block: 80px 48px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { display: grid; gap: 20px; align-content: start; }
.footer__brand p { color: var(--on-dark-muted); max-width: 34ch; font-weight: 300; }
.footer__brand .brand { color: var(--on-dark); }
.footer__col h2 { font-family: var(--f-label); font-size: var(--t-label); font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 12px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-dark); font-weight: 300; }
.footer__col a:hover { color: var(--beige); }
.footer__word { font-family: var(--f-serif); font-weight: 400; font-size: clamp(3.2rem, 14.5vw, 14.5rem); line-height: .82; letter-spacing: .08em; color: transparent; -webkit-text-stroke: 1px rgba(205, 198, 189, .22); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-align: center; padding-block: 12px 0; user-select: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--dark-line); font-family: var(--f-label); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (max-width: 1039px) { .site-footer { padding-bottom: 80px; } }

/* ---------- Páginas interiores ---------- */
.page-hero { padding-block: clamp(72px, 11vw, 160px) clamp(48px, 7vw, 96px); }
.page-hero__inner { display: grid; gap: 30px; }
.page-hero__inner > * { max-width: 1000px; }
.page-hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.8rem); line-height: 1; letter-spacing: -.02em; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1040px) { .contact-grid { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.panel { padding: clamp(30px, 4vw, 52px); background: var(--paper-2); display: grid; gap: 24px; min-width: 0; }
.panel--dark { background: var(--choco); color: var(--on-dark); }
.panel h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.panel--dark p { color: color-mix(in srgb, var(--on-dark) 82%, transparent); font-weight: 300; }
.panel__note { font-family: var(--f-mono); font-size: .76rem; line-height: 1.6; opacity: .8; }
.booking-embed { min-height: 640px; overflow: hidden; background: var(--paper-2); }
.booking-embed iframe { width: 100%; height: 680px; border: 0; display: block; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: baseline; font-weight: 300; }
.next-steps li::before { counter-increment: ns; content: counter(ns, upper-roman) "."; font-family: var(--f-serif); font-style: italic; font-size: 1.1rem; color: var(--beige); }
.copy-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.copy-mail a { font-family: var(--f-serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-decoration: none; word-break: break-all; }
.copy-btn { min-height: 40px; padding: 0 16px; border: 1px solid var(--hair); background: transparent; font-family: var(--f-label); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; color: var(--ink-2); }
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }

.form { display: grid; gap: 26px; }
.form__row { display: grid; gap: 26px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .radio-group legend { font-family: var(--f-label); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0;
  font: 300 1.05rem var(--f-body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  transition: border-color .3s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--choco); }
.field small { font-size: .8rem; color: var(--muted); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--error); }
.field__error { font-size: .85rem; color: var(--error); }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.radio-group legend { margin-bottom: 12px; padding: 0; }
.radio-group input { position: absolute; opacity: 0; pointer-events: none; }
.radio-group label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); cursor: pointer; font-family: var(--f-label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); transition: all .3s; }
.radio-group input:checked + label { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.radio-group input:focus-visible + label { outline: 1px solid var(--choco); outline-offset: 3px; }
.form__status { padding: 18px 20px; font-size: .95rem; }
.form__status--ok { background: var(--surface-2); color: var(--choco); border-left: 1px solid var(--choco); }
.form__status--err { background: var(--surface-2); color: var(--error); border-left: 1px solid var(--error); }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Banner de cookies ---------- */
.consent { position: fixed; z-index: 70; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 520px; padding: 26px; background: var(--dark); color: var(--on-dark); display: grid; gap: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.consent p { font-size: .92rem; color: var(--on-dark-muted); font-weight: 300; }
.consent .btn-row .btn { flex: 1; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 28px; padding-block: 120px; }
.notfound .big { font-family: var(--f-serif); font-style: italic; font-size: clamp(6rem, 24vw, 16rem); line-height: .85; color: var(--choco); }

/* ---------- Entradas suaves ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .12s; }
.js .reveal[data-delay="2"] { transition-delay: .24s; }
.js .reveal[data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-path { stroke-dashoffset: 0; }
}

/* ---------- Medallón con foto de perfil (casos con avatar) ---------- */
.ph { gap: 22px; }
.case__avatar { position: relative; display: block; width: 54%; max-width: 230px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--beige) 55%, transparent), 0 0 0 10px color-mix(in srgb, var(--beige) 8%, transparent), 0 24px 50px rgba(0, 0, 0, .35); background: var(--paper-2); }
.case__media .case__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: saturate(.9); transition: transform 1.4s var(--ease), filter .8s; }
.case:hover .case__media .case__avatar img { transform: scale(1.16); filter: saturate(1); }
.case__media .case__avatar--logo { background: #fff; }
.case__media .case__avatar--logo img, .case:hover .case__media .case__avatar--logo img { transform: scale(.86); filter: none; }

/* ---------- Animación del diagrama del hero ----------
   1) aparece «Tu marca»  2) se bifurcan los dos caminos  3) surgen las etiquetas
   4) llega al resultado y late  5) luces recorren las curvas en bucle */
.hero-dot--end { fill: var(--choco); }
.hero-ring { fill: none; stroke: var(--choco); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hero-spark { filter: drop-shadow(0 0 4px rgba(205, 198, 189, .9)); }
.hero-spark--ink { fill: var(--ink); }
.hero-spark--choco { fill: var(--choco); }
.hero-dot--start, .hero-dot--end { transform-box: fill-box; transform-origin: center; }
.js .hero-path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.4s var(--ease) .7s forwards; }
.js .hero-path.p2 { animation-delay: .85s; }
.js .hero-dot--start { transform: scale(0); animation: pop .7s var(--ease) .2s forwards; }
.js .hero-dot--end { transform: scale(0); animation: pop .7s var(--ease) 2.9s forwards; }
.js .hero-ring { animation: ring 2.6s ease-out 3.3s infinite; }
.js .hero-label { opacity: 0; animation: label-in 1.2s var(--ease) forwards; }
.js .hl-start { animation-delay: .4s; }
.js .hl-top { animation-delay: 1.5s; }
.js .hl-bottom { animation-delay: 1.7s; }
.js .hl-end { animation-delay: 3.1s; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(4.2); opacity: 0; } }
@keyframes label-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero-paths:hover .hero-path { stroke-width: 1.4; transition: stroke-width .4s; }
@media (prefers-reduced-motion: reduce) {
  .hero-spark, .hero-ring { display: none; }
  .js .hero-dot--start, .js .hero-dot--end, .js .hero-label { transform: none; opacity: 1; }
}

/* ---------- Tarjetas de caso v2: cifras alineadas y jerarquía ---------- */
@supports (grid-template-rows: subgrid) {
  .case { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .case__body { display: contents; }
  .case__head { padding-top: 28px; }
  .case__text { padding-top: 14px; }
  .case__metrics { margin-top: 24px; }
}
.case { transition: transform .8s var(--ease); }
.case:hover { transform: translateY(-4px); }
.case__metrics { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; padding-top: 0; border-top: 1px solid var(--ink); align-self: start; }
.case__metrics div { padding: 16px 16px 0 0; }
.case__metrics div + div:not(.metric--lead) { padding-left: 16px; border-left: 1px solid var(--hair); }
.case__metrics .metric--lead + div { padding-left: 0; border-left: 0; }
.case__metrics .metric--lead { grid-column: 1 / -1; padding: 20px 0 18px; border-bottom: 1px solid var(--hair); }
.case__metrics .metric--lead dd { font-size: clamp(2.5rem, 3.6vw, 3.1rem); line-height: 1; letter-spacing: -.02em; color: var(--choco); }
.case__metrics .metric--lead dt { font-family: var(--f-serif); font-style: italic; font-size: 1.02rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); margin-top: 8px; }
.case__metrics dd { font-size: 1.35rem; }
.case__metrics dt { font-size: .6rem; }
.case__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case__metrics div.metric--lead + div { padding-left: 0; border-left: 0; }

/* ==========================================================================
   Hero interactivo tipo Apple (solo en la home)
   Sin JS o con «reducir movimiento»: todo se muestra apilado y estático.
   Con JS: escena fija de 100svh dentro de una sección alta; el scroll la cuenta.
   ========================================================================== */
.ah { position: relative; background: var(--dark); color: var(--on-dark); }
.ah__sticky { position: relative; overflow: hidden; display: grid; gap: 56px; padding: clamp(64px, 10vw, 120px) max(var(--gutter), env(safe-area-inset-left, 0px)); isolation: isolate; }
.ah__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 420px at var(--gx, 50%) var(--gy, 40%), rgba(90, 53, 34, .55), transparent 70%), radial-gradient(900px 600px at 50% 120%, rgba(53, 28, 16, .9), transparent 70%); }
.ah__cv { display: none; }
.ah__intro { display: grid; justify-items: center; text-align: center; gap: 28px; max-width: 1100px; margin: 0 auto; }
.ah__eyebrow { font-family: var(--f-label); font-size: var(--t-label); letter-spacing: .32em; text-transform: uppercase; color: var(--on-dark-muted); }
.ah__title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(3rem, 8.4vw, 8.4rem); line-height: .96; letter-spacing: -.025em; text-wrap: balance; }
.ah__title em { display: block; font-style: italic; padding-bottom: .06em; }
.ah__title em .w { background: var(--silver-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.ah:not(.ah--live) .ah__title em .w { animation: ahShine 8s linear infinite; }
@keyframes ahShine { to { background-position: -220% 0; } }
.ah__lead { max-width: 40em; font-size: var(--t-lead); font-weight: 300; color: var(--on-dark-muted); }
.ah__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hbtn--light { --btn-bg: var(--silver); --btn-fg: var(--ink); --btn-bd: transparent; }
.hbtn--light:hover { --btn-bg: var(--paper-2); --btn-bd: var(--paper-2); --btn-fg: var(--ink); }
.hbtn--ghost { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(230, 226, 221, .45); }
.hbtn--ghost:hover { --btn-bg: var(--on-dark); --btn-fg: var(--ink); --btn-bd: var(--on-dark); }
.ah__call { max-width: 30rem; display: grid; gap: 10px; }
.ah__k { font-family: var(--f-serif); font-style: italic; font-size: 1.4rem; color: var(--beige); }
.ah__call h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.ah__call p:last-child { color: var(--on-dark-muted); font-weight: 300; }
.ah__end { display: grid; justify-items: center; text-align: center; gap: 22px; }
.ah__end-t { font-family: var(--f-serif); font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: 1; letter-spacing: -.02em; }
.ah__end-t em { font-style: italic; color: var(--beige); }
.ah__end-p { color: var(--on-dark-muted); font-weight: 300; font-size: var(--t-lead); }
.ah__meta { font-family: var(--f-label); font-size: var(--t-label); letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted); }
.ah__cue, .ah__bar { display: none; }

/* ----- Modo escena (JS activo y movimiento permitido) ----- */
.ah--live { height: 340vh; }
@media (max-width: 760px) { .ah--live { height: 300vh; } }
.ah--live .ah__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: block; padding: 0; }
.ah--live .ah__cv { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.ah--live .ah__intro, .ah--live .ah__call, .ah--live .ah__end { position: absolute; will-change: opacity, transform; }
.ah--live .ah__intro { left: 50%; top: 50%; width: min(1100px, calc(100% - 2 * var(--gutter))); transform: translate(-50%, -46%); }
.ah--live .ah__call { opacity: 0; width: min(26rem, calc(100% - 2 * var(--gutter))); }
.ah--live .ah__call--mk { left: max(var(--gutter), 6vw); top: calc(var(--header-h) + 5vh); }
.ah--live .ah__call--cc { right: max(var(--gutter), 6vw); bottom: 8vh; text-align: right; justify-items: end; }
.ah--live .ah__end { left: 50%; bottom: 7vh; width: min(900px, calc(100% - 2 * var(--gutter))); transform: translateX(-50%); opacity: 0; pointer-events: none; }
.ah--live .ah__end.on { pointer-events: auto; }
.ah--live .ah__cue { display: flex; flex-direction: column; align-items: center; gap: 12px; position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); font-family: var(--f-label); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted); }
.ah--live .ah__cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--beige), transparent); animation: ahCue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes ahCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.ah--live .ah__bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(205, 198, 189, .12); }
.ah--live .ah__bar i { display: block; height: 100%; width: 100%; background: var(--silver); transform-origin: left; transform: scaleX(var(--p, 0)); }
/* Entrada del titular palabra a palabra */
.ah--live .ah__title .w { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(10px); animation: ahWord 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .09s); }
.ah--live .ah__title em .w { animation-name: ahWordEm; }
@keyframes ahWord { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes ahWordEm { to { opacity: 1; transform: none; filter: blur(0); } }
.ah--live .ah__title em .w { animation: ahWordEm 1.1s var(--ease) forwards, ahShine 8s linear 1.4s infinite; animation-delay: calc(.15s + var(--i) * .09s), 1.6s; }
.ah--live .ah__eyebrow, .ah--live .ah__lead, .ah--live .ah__intro .ah__btns { opacity: 0; animation: ahFade 1.2s var(--ease) forwards; }
.ah--live .ah__eyebrow { animation-delay: .05s; }
.ah--live .ah__lead { animation-delay: .9s; }
.ah--live .ah__intro .ah__btns { animation-delay: 1.1s; }
@keyframes ahFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .ah--live .ah__call--mk { left: var(--gutter); top: calc(var(--header-h) + 3vh); }
  .ah--live .ah__call--cc { right: var(--gutter); bottom: 6vh; }
  .ah--live .ah__call h2 { font-size: 1.8rem; }
  .ah--live .ah__call p:last-child { font-size: .92rem; }
}
.ah > [data-hero-end] { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; }
@media (max-width: 760px) { .ah--live .ah__cue { display: none; } }

/* ----- Ramas del hero (lista estática / chips en móvil) ----- */
.ah__groups { display: grid; gap: 40px; max-width: 1100px; margin: 0 auto; width: 100%; }
@media (min-width: 900px) { .ah:not(.ah--live) .ah__groups { grid-template-columns: 1fr 1fr; } }
.ah__group { display: grid; gap: 12px; align-content: start; }
.ah__group h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.ah__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ah__group li { font-family: var(--f-label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border: 1px solid rgba(205, 198, 189, .28); color: var(--on-dark-muted); transition: color .4s, border-color .4s, background .4s; }
.ah__group li span { color: var(--beige); }
.ah__group--cc li { border-color: rgba(214, 170, 130, .3); }
/* En escritorio, en modo escena, las ramas se dibujan en el lienzo */
.ah--live .ah__groups { display: none; }
@media (max-width: 760px) {
  .ah--live .ah__groups { display: block; position: absolute; inset: 0; pointer-events: none; }
  .ah--live .ah__group { position: absolute; left: var(--gutter); right: var(--gutter); gap: 8px; opacity: 0; transition: opacity .5s; }
  .ah--live .ah__group--mk { top: calc(var(--header-h) + 2vh); }
  .ah--live .ah__group--cc { bottom: 5vh; }
  .ah--live .ah__group h2 { font-size: 1.35rem; }
  .ah--live .ah__group .ah__k { display: none; }
  .ah--live .ah__group ul { gap: 5px; }
  .ah--live .ah__group li { font-size: .58rem; padding: 5px 7px; letter-spacing: .1em; opacity: .25; }
  .ah--live .ah__group li.on { opacity: 1; color: var(--on-dark); border-color: rgba(230, 226, 221, .7); background: rgba(230, 226, 221, .06); }
  .ah--live .ah__group--cc li.on { border-color: rgba(214, 170, 130, .8); }
}
.ah--live { height: 440vh; }
@media (max-width: 760px) { .ah--live { height: 380vh; } }

/* ==========================================================================
   Ajustes para móvil
   ========================================================================== */
.ah__caption { display: none; }
@media (max-width: 760px) {
  /* Hero: rótulo grande con la rama actual en lugar de la lista de etiquetas */
  .ah--live .ah__groups { display: none; }
  .ah--live .ah__caption { display: grid; justify-items: center; gap: 6px; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 12vh; text-align: center; opacity: 0; pointer-events: none; }
  .ah__cap-g { font-family: var(--f-label); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--beige); }
  .ah__cap-g.is-cc { color: #d6aa82; }
  .ah__cap-n { font-family: var(--f-serif); font-size: clamp(1.9rem, 8.4vw, 2.6rem); line-height: 1.05; color: var(--on-dark); text-wrap: balance; }
  .ah__cap-n small { display: block; margin-top: 8px; font-family: var(--f-label); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--beige); }
  .ah__cap-i { font-family: var(--f-mono); font-size: .78rem; color: var(--on-dark-muted); }
  .ah__caption.swap .ah__cap-n { animation: capIn .6s var(--ease); }
  @keyframes capIn { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  .ah--live .ah__intro { top: 52%; }
  .ah__title { font-size: clamp(2.7rem, 12.5vw, 3.6rem); }
  .ah__lead { font-size: 1rem; }
  .ah__btns { width: 100%; }
  .ah__btns .hbtn { flex: 1 1 100%; }
  .ah--live .ah__end { bottom: 6vh; }
  .ah__end-t { font-size: clamp(2.2rem, 10vw, 3rem); }

  /* Tarjetas de caso más compactas y legibles */
  .case__media { aspect-ratio: 4 / 3; }
  .case__avatar { width: 42%; }
  .ph__initials { font-size: 3rem; }
  .case__metrics dt { font-size: .7rem; letter-spacing: .1em; }
  .case__metrics .metric--lead dt { font-size: 1.02rem; }
  .case__metrics dd { font-size: 1.3rem; }
  .case__metrics .metric--lead dd { font-size: 2.6rem; }
  .case__handle { display: inline-flex; align-items: center; min-height: 44px; }

  /* Etiquetas y textos pequeños: mínimo legible */
  .chips li { font-size: .74rem; }
  .eyebrow, .hero__eyebrow, .proof__label, .stat__client, .front__tag { font-size: .74rem; letter-spacing: .24em; }
  .footer__bottom { font-size: .72rem; letter-spacing: .16em; }
  .field label, .radio-group legend { font-size: .74rem; }
  .final__mail a, .copy-mail a { display: inline-block; padding-block: 12px; }
  .final__inner .btn-row { width: 100%; }
  .final__inner .btn { flex: 1 1 100%; }

  /* Tabla comparativa de Servicios → tarjetas apiladas */
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 22px 0; border-bottom: 1px solid var(--hair); }
  .compare tbody th { width: 100%; padding: 0 0 10px; border: 0; }
  .compare td { padding: 6px 0; border: 0; }
  .compare td::before { content: attr(data-col); display: block; font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--ink); margin-bottom: 2px; }
}
@media (max-width: 760px) { .case__badge { font-size: .7rem; } .ph__handle { font-size: .74rem; } }
