/* ═══════════════════════════════════════════════════════════════
   Ibarra Quezada Abogados · Home
   Tokens del sistema de marca (BROCHURE IQ):
   crema #F6EEEB / negro #0D0D0D, acento terracota #D8551D,
   esquinas cuadradas en todo. La página se lee como un instrumento
   jurídico: proemio, declaraciones, cláusulas, anexos.
═══════════════════════════════════════════════════════════════ */

:root {
  --surface-crema: #F6EEEB;
  --surface-negro: #0D0D0D;
  --card-crema: #E9E2D2;
  --ink: #201816;
  --ink-muted: #6E6864;
  --ink-negro: #F6EEEB;
  --ink-muted-negro: #A69C93;
  --accent: #D8551D;
  --line-crema: rgba(32, 24, 22, 0.14);
  --line-negro: rgba(246, 238, 235, 0.14);

  /* Tipografía: el brochure no trae metadata de fuente. Estas familias son
     una elección editorial de reemplazo, pendiente de confirmar con JC. */
  --f-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-body: 'Instrument Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Alias de compatibilidad para los estilos en línea de los modales */
  --dorado: var(--accent);
  --dorado-palo: var(--accent);
  --verde: var(--ink);
  --verde-oscuro: var(--ink);
  --gris: var(--ink-muted);
  --gris-claro: var(--ink-muted);
  --crema: var(--surface-crema);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--surface-crema);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 3000;
  background: var(--accent); color: #fff; padding: 10px 16px; text-decoration: none;
  font-size: 13px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ─── Superficies ─────────────────────────────────────────── */
.s-crema { background: var(--surface-crema); color: var(--ink); --line: var(--line-crema); --muted: var(--ink-muted); }
.s-negro { background: var(--surface-negro); color: var(--ink-negro); --line: var(--line-negro); --muted: var(--ink-muted-negro); }
.s-card  { background: var(--card-crema); color: var(--ink); --line: var(--line-crema); --muted: var(--ink-muted); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.pad { padding: clamp(88px, 12vw, 168px) 0; }

/* ─── Piezas tipográficas ─────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--accent); flex-shrink: 0; }
.s-negro .eyebrow { color: var(--ink-muted-negro); }

.clause-tag {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.s-negro .clause-tag { color: var(--accent); }

.h-display {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(44px, 7.2vw, 112px); line-height: 0.98; letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 72;
}
.h-section {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 72;
}
.h-display em, .h-section em { font-style: italic; color: var(--accent); }
.s-crema .h-section em, .s-card .h-section em { color: var(--accent); } /* titular grande: 24px+, contraste suficiente */
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }

/* ─── Botones ─────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px; font-family: var(--f-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent::before { background: var(--ink); }
.s-negro .btn-accent::before { background: var(--surface-crema); }
.s-negro .btn-accent:hover { color: var(--ink); }

.btn-line { border: 1px solid currentColor; color: inherit; }
.btn-line::before { background: var(--accent); }
.btn-line:hover { color: #fff; border-color: var(--accent); }

.link-arrow {
  display: inline-flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600;
  text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }

/* ─── Barra de progreso de lectura ────────────────────────── */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
}

/* ─── Nav ─────────────────────────────────────────────────── */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--ink-negro);
  transition: background .45s var(--ease), color .45s var(--ease), padding .45s var(--ease), transform .45s var(--ease);
}
#mainNav.scrolled { padding-top: 14px; padding-bottom: 14px; }
#mainNav.on-negro.scrolled { background: rgba(13, 13, 13, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#mainNav.on-crema { color: var(--ink); }
#mainNav.on-crema.scrolled { background: rgba(246, 238, 235, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-crema); }
#mainNav.hide { transform: translateY(-100%); }

.nav-logo { position: relative; display: block; height: 46px; width: 60px; }
.nav-logo img { position: absolute; left: 0; top: 0; height: 46px; width: auto; transition: opacity .4s var(--ease); }
.nav-logo .logo-light { opacity: 0; }
#mainNav.on-crema .nav-logo .logo-light { opacity: 1; }
#mainNav.on-crema .nav-logo .logo-dark { opacity: 0; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; text-decoration: none; letter-spacing: 0.01em;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size .45s var(--ease);
}
.nav-links a:hover { background-size: 100% 1px; }
.nav-links .nav-num { font-family: var(--f-mono); font-size: 10.5px; color: var(--accent); margin-right: 6px; }
.nav-cta { padding: 11px 18px !important; background: var(--accent) !important; color: #fff; transition: background-color .4s var(--ease) !important; }
.nav-cta:hover { background-color: var(--ink) !important; }
#mainNav.on-negro .nav-cta:hover { background-color: var(--surface-crema) !important; color: var(--ink); }

.hamburger { display: none; width: 44px; height: 44px; position: relative; }
.hamburger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.hamburger span:nth-child(1) { top: 17px; }
.hamburger span:nth-child(2) { top: 26px; left: 18px; }

.mobile-overlay { display: none; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 1300; background: var(--surface-negro); color: var(--ink-negro);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 90px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.mobile-nav.open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-nav a {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(36px, 10vw, 56px); line-height: 1.15;
  text-decoration: none; display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.mobile-nav a small { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.mobile-nav.open a { opacity: 1; transform: none; }
.mobile-nav.open a:nth-of-type(2) { transition-delay: .05s; } .mobile-nav.open a:nth-of-type(3) { transition-delay: .1s; }
.mobile-nav.open a:nth-of-type(4) { transition-delay: .15s; } .mobile-nav.open a:nth-of-type(5) { transition-delay: .2s; }
.mobile-nav.open a:nth-of-type(6) { transition-delay: .25s; }
.mobile-nav .mobile-cta { font-family: var(--f-body); font-size: 15px; font-weight: 600; color: var(--accent); margin-top: 28px; }
.mobile-nav-close { position: absolute; top: 22px; right: var(--gutter); width: 44px; height: 44px; font-size: 22px; color: var(--ink-negro); }

/* ─── Indicador de cláusula (desktop) ─────────────────────── */
.clause-indicator {
  position: fixed; left: var(--gutter); bottom: 28px; z-index: 900;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px; pointer-events: none;
  mix-blend-mode: difference; color: #F6EEEB; opacity: 0; transition: opacity .5s var(--ease);
}
.clause-indicator.show { opacity: 1; }
.clause-indicator .ci-bar { width: 40px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.clause-indicator .ci-text { display: inline-block; min-width: 20ch; }

/* ═══ PROEMIO / HERO ═══════════════════════════════════════ */
.hero { min-height: 100vh; min-height: 100svh; padding: 140px 0 90px; overflow: hidden; display: flex; align-items: center; }
.hero::after { /* veta de luz cálida, a la manera de la fotografía de marca */
  content: ''; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(216, 85, 29, 0.16), transparent 70%);
  filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; position: relative; z-index: 1; }
.hero-copy .eyebrow { margin-bottom: 36px; }
.hero h1 { margin-bottom: 32px; font-size: clamp(44px, 5.4vw, 86px); }
.hero .lead { margin-bottom: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-negro);
  display: flex; gap: 18px; align-items: baseline; max-width: 46ch;
}
.hero-note .clause-tag { flex-shrink: 0; }
.hero-note p { font-family: var(--f-display); font-style: italic; font-size: 20px; line-height: 1.35; color: var(--ink-negro); }

/* El documento */
.doc-stage { position: relative; }
.doc-window { position: relative; perspective: 1600px; }
.doc-m-claim, .m-steps, .m-dock, .mobile-nav-foot, .carousel-meta { display: none; }
.doc {
  position: relative; background: var(--surface-crema); color: var(--ink);
  padding: clamp(26px, 3.4vw, 48px) clamp(22px, 3vw, 46px);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  transform: rotateX(6deg) rotateY(-10deg) rotateZ(1.2deg);
  transform-style: preserve-3d; transition: transform 1.2s var(--ease);
  cursor: none; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.doc-stage:hover .doc { transform: rotateX(0) rotateY(0) rotateZ(0); }
.doc-layer { font-family: var(--f-display); font-size: clamp(9.5px, 0.78vw, 11.5px); line-height: 1.62; font-variation-settings: 'opsz' 8; }
.doc-layer.base { color: rgba(32, 24, 22, 0.30); }
.doc-layer.rev {
  position: absolute; inset: 0; padding: inherit; color: var(--ink);
  clip-path: inset(var(--t, 0px) var(--r, 100%) var(--b, 100%) var(--l, 0px));
  background: var(--surface-crema);
}
.doc-head { text-align: center; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.2em; }
.doc-sub { text-align: center; font-weight: 600; letter-spacing: 0.08em; margin: 1.1em 0 .6em; }
.doc p { margin-bottom: .7em; text-align: justify; hyphens: auto; }
.doc b { font-weight: 600; }
.doc-layer.rev .flag {
  background: linear-gradient(rgba(216,85,29,.22), rgba(216,85,29,.22));
  box-shadow: inset 0 -1.5px 0 var(--accent);
}
.doc-layer.rev .flag.on { background: linear-gradient(rgba(216,85,29,.38), rgba(216,85,29,.38)); }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 1.6em; text-align: center; font-size: .92em; }
.doc-sign span { display: block; border-top: 1px solid currentColor; padding-top: .4em; margin-top: 2.2em; }

.lens {
  position: absolute; left: 0; top: 0; width: var(--lw, 210px); height: var(--lh, 120px);
  pointer-events: none; z-index: 3;
  transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0);
}
.lens i { position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; }
.lens i:nth-child(1) { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.lens i:nth-child(2) { right: -1px; top: -1px; border-width: 2px 2px 0 0; }
.lens i:nth-child(3) { left: -1px; bottom: -1px; border-width: 0 0 2px 2px; }
.lens i:nth-child(4) { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.lens-label {
  position: absolute; left: -1px; top: calc(100% + 8px); white-space: nowrap;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em;
  background: var(--accent); color: #fff; padding: 6px 9px;
  max-width: min(300px, 86vw); white-space: normal; width: max-content;
  transition: opacity .3s var(--ease);
}
.lens-label:empty { opacity: 0; }
.lens-label b { font-weight: 500; opacity: .75; margin-right: 6px; }

.doc-caption {
  margin-top: 34px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted-negro);
}
.doc-caption .tally b { color: var(--accent); font-weight: 500; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  width: 1px; height: 54px; background: var(--line-negro); overflow: hidden;
}
.scroll-cue::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ═══ ÍNDICE ═══════════════════════════════════════════════ */
.indice { padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--line-crema); }
.indice-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.indice-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin-top: 18px; }
.toc { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.toc li:nth-child(-n+3) a { border-top: 1px solid var(--line-crema); }
.toc a {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-crema); text-decoration: none;
  transition: padding .5s var(--ease), color .3s;
}
.toc li:first-child a { border-top: 1px solid var(--line-crema); }
.toc .toc-n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted); }
.toc .toc-t { font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); font-weight: 300; position: relative; }
.toc .toc-p { font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted); }
.toc a:hover { padding-left: 14px; }
.toc a:hover .toc-n, .toc a:hover .toc-p { color: var(--ink); }
.toc a:hover .toc-t { font-style: italic; }

/* ═══ DECLARACIONES (La firma) ═════════════════════════════ */
.decl-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.decl-head .h-section { margin-top: 22px; }
.decl-intro p + p { margin-top: 18px; }
.decl-list { list-style: none; border-top: 1px solid var(--line); }
.decl-item {
  display: grid; grid-template-columns: 90px minmax(0, 5fr) minmax(0, 6fr); gap: 32px;
  padding: 34px 0; border-bottom: 1px solid var(--line); position: relative;
}
.decl-item::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease);
}
.decl-item.in::after { transform: scaleX(1); }
.decl-num { font-family: var(--f-display); font-size: 44px; line-height: 1; color: var(--accent); font-weight: 300; }
.decl-title { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-weight: 400; }
.decl-title small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 400; }
.decl-desc { color: var(--muted); align-self: center; max-width: 54ch; }
.decl-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 56px; }
.manifiesto {
  font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3;
  padding: 6px 0 6px 28px; border-left: 2px solid var(--accent); max-width: 30ch;
}

/* ═══ CLÁUSULAS (Servicios) ════════════════════════════════ */
.serv-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 72px; }
.serv-head .h-section { margin-top: 22px; }
.serv-group-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted);
  padding-bottom: 16px; border-bottom: 1px solid var(--ink);
}
.serv-group-label b { color: var(--ink); font-weight: 500; }
.serv-group + .serv-group { margin-top: 88px; }

.serv-row {
  position: relative; display: grid; grid-template-columns: 110px minmax(0, 5fr) minmax(0, 5fr) 48px;
  gap: 32px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line-crema);
  cursor: pointer; text-decoration: none; color: inherit; isolation: isolate;
}
.serv-row::before {
  content: ''; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1;
  background: var(--card-crema); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.serv-row:hover::before, .serv-row:focus-visible::before { transform: scaleY(1); }
.serv-num { font-family: var(--f-display); font-weight: 300; font-size: clamp(48px, 5vw, 76px); line-height: .9; color: var(--accent); font-variant-numeric: lining-nums; }
.serv-title { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; font-weight: 400; transition: transform .6s var(--ease); }
.serv-row:hover .serv-title { transform: translateX(8px); }
.serv-q { margin-top: 16px; font-family: var(--f-display); font-style: italic; font-size: 18px; line-height: 1.4; color: var(--ink-muted); }
.serv-desc { color: var(--ink-muted); font-size: 15.5px; }
.serv-more { margin-top: 18px; display: inline-flex; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.serv-go {
  width: 48px; height: 48px; border: 1px solid var(--line-crema); display: grid; place-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .6s var(--ease);
}
.serv-row:hover .serv-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

.serv-row.compact { grid-template-columns: 110px minmax(0, 5fr) minmax(0, 5fr) 48px; padding: 30px 0; }
.serv-row.compact .serv-num { font-size: clamp(36px, 3.4vw, 52px); }
.serv-row.compact .serv-title { font-size: clamp(22px, 2vw, 28px); }


/* ═══ MÉTODO IQ ═════════════════════════════════════════════ */
.metodo { overflow: clip; }
.metodo-bg { position: absolute; inset: 0; background: url('../img/metodologia-fondo.jpg') center / cover; opacity: .18; }
.metodo-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--surface-negro) 0%, transparent 30%, transparent 70%, var(--surface-negro) 100%); }
.metodo .wrap { position: relative; }
.metodo-head { max-width: 900px; margin-bottom: 80px; }
.metodo-head .h-section { margin: 22px 0 28px; }
.metodo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); }
.metodo-sticky { position: sticky; top: 18vh; height: 64vh; display: flex; align-items: center; justify-content: center; }

.stack { position: relative; width: min(340px, 80%); aspect-ratio: 1 / 1.05; }
.slab {
  position: absolute; left: 50%; width: 72%; aspect-ratio: 1; transform-style: preserve-3d;
  transform: translate(-50%, 0) rotateX(58deg) rotateZ(-45deg);
  transition: transform .9s var(--ease);
}
.slab .face {
  position: absolute; inset: 0; background: #1b1715; border: 1px solid rgba(246,238,235,.14);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 300; font-size: 54px; color: rgba(246,238,235,.24);
  transition: background .7s var(--ease), color .7s var(--ease), border-color .7s var(--ease);
}
.slab .face span { transform: rotateZ(45deg); }
.slab .side { position: absolute; left: 0; bottom: 0; width: 100%; height: 26px; background: #120f0e; transform-origin: bottom; transform: rotateX(-90deg); border: 1px solid rgba(246,238,235,.08); transition: background .7s var(--ease); }
.slab .side.r { width: 26px; height: 100%; right: 0; left: auto; top: 0; transform-origin: right; transform: rotateY(90deg); }
.slab[data-i="0"] { top: 58%; } .slab[data-i="1"] { top: 40%; } .slab[data-i="2"] { top: 22%; } .slab[data-i="3"] { top: 4%; }
.slab.done .face { background: #2a211d; color: rgba(246,238,235,.5); }
.slab.active .face { background: var(--accent); color: #fff; border-color: var(--accent); }
.slab.active .side { background: #9d3c12; }
.slab.active { transform: translate(-50%, -14px) rotateX(58deg) rotateZ(-45deg); }
.slab.ahead { transform: translate(-50%, -36px) rotateX(58deg) rotateZ(-45deg); opacity: .35; }
.slab { transition: transform .9s var(--ease), opacity .9s var(--ease); }

.steps { list-style: none; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; border-top: 1px solid var(--line-negro); opacity: .28; transition: opacity .7s var(--ease); }
.step.active { opacity: 1; }
.step-n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.step-t { font-family: var(--f-display); font-weight: 300; font-size: clamp(48px, 6vw, 96px); line-height: 1; margin: 18px 0 22px; letter-spacing: -0.02em; }
.step-d { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-muted-negro); max-width: 40ch; }

.metodo-foot { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line-negro); }
.metodo-quote { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.15; }
.pillars { list-style: none; display: grid; gap: 18px; align-content: center; }
.pillars li { display: flex; gap: 14px; align-items: baseline; color: var(--ink-muted-negro); }
.pillars li::before { content: ''; width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; transform: translateY(-2px); }

/* ═══ ETAPAS (Ecosistema de práctica) ══════════════════════ */
.etapas-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 64px; }
.etapas-head .h-section { margin-top: 22px; }
.etapas { display: flex; gap: 10px; height: clamp(520px, 70vh, 680px); }
.etapa {
  position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--surface-negro); color: var(--ink-negro);
  transition: flex 1s var(--ease); cursor: pointer; text-align: left; display: block;
}
.etapa.active { flex: 3.4; cursor: default; }
.etapa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.12); transition: transform 1.4s var(--ease), opacity 1s var(--ease); }
.etapa.active img { opacity: .38; transform: scale(1); }
.etapa::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,.1) 30%, rgba(13,13,13,.92) 100%); }
.etapa-top { position: absolute; left: 24px; right: 24px; top: 24px; z-index: 2; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; }
.etapa-top .n { color: var(--accent); }
.etapa-vert {
  position: absolute; left: 24px; bottom: 28px; z-index: 2; writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-display); font-size: 26px; font-weight: 300; white-space: nowrap; transition: opacity .5s var(--ease);
}
.etapa.active .etapa-vert { opacity: 0; }
.etapa-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 36px clamp(24px, 3vw, 44px);
  opacity: 0; transform: translateY(30px); transition: opacity .5s var(--ease), transform .8s var(--ease); pointer-events: none;
  max-width: 640px;
}
.etapa.active .etapa-body { opacity: 1; transform: none; transition-delay: .35s; pointer-events: auto; }
.etapa-title { font-family: var(--f-display); font-size: clamp(30px, 3vw, 44px); line-height: 1.05; font-weight: 300; margin-bottom: 16px; }
.etapa-desc { color: var(--ink-muted-negro); font-size: 15px; margin-bottom: 22px; }
.etapa-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.etapa-list li { font-size: 13.5px; display: flex; gap: 10px; align-items: baseline; color: var(--ink-negro); }
.etapa-list li::before { content: ''; width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; transform: translateY(-2px); }

/* ═══ SECTORES ═════════════════════════════════════════════ */
.sectores-banda { position: relative; height: clamp(260px, 42vw, 520px); overflow: hidden; margin: 64px 0 0; }
.sectores-banda img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.sectores-banda .cap {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 1; color: var(--ink-negro);
  font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 2.6vw, 36px); max-width: 24ch; line-height: 1.2;
}
.sectores-banda::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,13,13,.7), transparent 60%); }
.sectores-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line-crema); border-top: 1px solid var(--line-crema); }
.sector { padding: 40px 28px 48px; border-right: 1px solid var(--line-crema); border-bottom: 1px solid var(--line-crema); position: relative; overflow: hidden; }
.sector::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.sector:hover::before { transform: scaleX(1); }
.sector-n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted); }
.sector-name { font-family: var(--f-display); font-size: 25px; line-height: 1.15; margin: 48px 0 16px; font-weight: 400; }
.sector-desc { font-size: 14.5px; color: var(--ink-muted); }

/* ═══ EL SOCIO ═════════════════════════════════════════════ */
.socio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.socio-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.socio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.15); transition: transform 1.8s var(--ease); }
.socio-photo .curtain { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transition: transform 1.2s var(--ease); }
.socio-photo.in img { transform: scale(1); }
.socio-photo.in .curtain { transform: scaleY(0); }
.socio-photo figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--surface-negro); padding: 14px 18px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted-negro);
}
.socio-copy .h-section { margin: 22px 0 12px; }
.socio-role { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; color: var(--accent); margin-bottom: 36px; }
.socio-copy p { color: var(--ink-muted-negro); font-size: 17px; max-width: 56ch; }
.socio-copy p + p { margin-top: 18px; }
.socio-areas { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-negro); }
.socio-areas div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line-negro); font-size: 14px; display: flex; gap: 12px; align-items: baseline; }
.socio-areas div::before { content: ''; width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; transform: translateY(-2px); }
.firma { margin-top: 48px; display: flex; align-items: flex-end; gap: 22px; }
.firma-line { flex: 1; max-width: 300px; }
.firma-line svg { display: block; width: 100%; height: auto; overflow: visible; margin-bottom: -10px; }
.firma-line path {
  stroke: var(--accent); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 700); stroke-dashoffset: var(--len, 700);
  transition: stroke-dashoffset 3.2s cubic-bezier(.45, .05, .35, 1) .3s;
}
.firma.in .firma-line path { stroke-dashoffset: 0; }
.firma-line .rule { height: 1px; background: var(--ink-muted-negro); }
.firma-name { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted-negro); padding-bottom: 2px; }

/* ═══ ANEXOS (Insights) ════════════════════════════════════ */
.anexos-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.anexos-head .h-section { margin-top: 22px; }
.anexos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.anexo { text-decoration: none; display: flex; flex-direction: column; }
.anexo-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-negro); margin-bottom: 22px; }
.anexo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; opacity: .92; }
.anexo:hover .anexo-thumb img { transform: scale(1.06); opacity: 1; }
.anexo-thumb .tag { position: absolute; left: 0; top: 0; background: var(--surface-crema); padding: 8px 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.anexo-meta { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.anexo-title { font-family: var(--f-display); font-size: clamp(22px, 1.9vw, 27px); line-height: 1.18; font-weight: 400; margin-bottom: 12px; }
.anexo:hover .anexo-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.anexo-desc { font-size: 14.5px; color: var(--ink-muted); margin-bottom: 18px; }
.anexo .link-arrow { margin-top: auto; align-self: flex-start; }

/* ═══ FAQ ══════════════════════════════════════════════════ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); }
.faq-side { position: sticky; top: 120px; align-self: start; }
.faq-side .h-section { margin: 22px 0 24px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line-crema); }
.faq-q {
  width: 100%; display: grid; grid-template-columns: 54px 1fr 28px; gap: 12px; align-items: baseline; text-align: left;
  padding: 26px 0; font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; font-weight: 400;
}
.faq-q .n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted); }
.faq-q .ic { position: relative; width: 14px; height: 14px; justify-self: end; align-self: center; }
.faq-q .ic::before, .faq-q .ic::after { content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; background: var(--accent); transition: transform .5s var(--ease); }
.faq-q .ic::after { transform: rotate(90deg); }
.faq-item.open .faq-q .ic::after { transform: rotate(0); }
.faq-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-wrap > div { overflow: hidden; }
.faq-a { padding: 0 40px 28px 66px; color: var(--ink-muted); font-size: 15.5px; max-width: 70ch; }

/* ═══ CONTACTO ═════════════════════════════════════════════ */
.contacto { overflow: hidden; text-align: left; }
.contacto-bg { position: absolute; inset: 0; }
.contacto-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.contacto-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface-negro) 15%, rgba(13,13,13,.4)); }
.contacto .wrap { position: relative; }
.contacto .h-display { margin: 28px 0 32px; max-width: 14ch; }
.contacto .lead { margin-bottom: 44px; }
.contacto-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contacto-info { margin-top: 88px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-negro); }
.contacto-info > div { padding: 24px 20px 0 0; }
.info-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted-negro); margin-bottom: 10px; }
.info-val a { text-decoration: none; font-size: 15px; word-break: break-word; }
.info-val a:hover { color: var(--accent); }

/* ═══ FOOTER ═══════════════════════════════════════════════ */
footer.site-footer { padding: 88px 0 28px; border-top: 1px solid var(--line-negro); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer-brand img { height: 92px; width: auto; margin-bottom: 22px; }
.footer-brand p { font-family: var(--f-display); font-style: italic; font-size: 19px; color: var(--ink-muted-negro); max-width: 30ch; line-height: 1.4; }
.footer-col-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; font-size: 14px; color: var(--ink-muted-negro); transition: color .3s; }
.footer-links a:hover { color: var(--ink-negro); }
.footer-giant {
  font-family: var(--f-display); font-weight: 300; letter-spacing: -0.04em; line-height: .8;
  font-size: clamp(44px, 12.2vw, 180px); white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1px rgba(246,238,235,.16); margin: 88px 0 28px; overflow: hidden; user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line-negro); font-size: 12.5px; color: var(--ink-muted-negro); }
.footer-bottom a { color: inherit; }

/* ═══ Animación de entrada ═════════════════════════════════ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0s)); }
.js .split.in .w > span { transform: none; }

/* ═══ MODALES (formulario, servicios, aviso) ═══════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(13,13,13,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  align-items: flex-start; justify-content: center; overflow-y: auto; padding: 48px 16px;
}
.modal { background: var(--surface-crema); width: 100%; max-width: 720px; animation: modalIn .6s var(--ease); position: relative; }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.modal-header { background: var(--surface-negro); color: var(--ink-negro); padding: 40px 52px 36px; position: relative; border-bottom: 2px solid var(--accent); }
.modal-eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.modal-title { font-family: var(--f-display); font-size: clamp(28px, 4vw, 40px); font-weight: 300; line-height: 1.1; padding-right: 40px; }
.modal-close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; font-size: 18px; color: var(--ink-negro); transition: color .3s, transform .5s var(--ease); }
.modal-close:hover { color: var(--accent); transform: rotate(90deg); }
.modal-body { padding: 40px 52px 48px; }
.modal-body p { font-size: 15px; color: var(--ink-muted); line-height: 1.7; margin-bottom: 18px; }
.modal-body h4 { font-family: var(--f-display); font-size: 22px; color: var(--ink); margin: 30px 0 14px; font-weight: 400; }
.modal-body a { color: var(--ink); }
.modal-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.modal-list li { font-size: 14.5px; color: var(--ink-muted); display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.modal-list li::before { content: ''; width: 6px; height: 6px; margin-top: 9px; background: var(--accent); flex-shrink: 0; }
.modal-ol { margin: 0 0 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.modal-ol li { font-size: 14.5px; color: var(--ink-muted); line-height: 1.6; padding-left: 4px; }
.modal-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-crema); }
.modal-cta .btn-primary, .modal-cta .btn-secondary { display: inline-flex; padding: 15px 22px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .4s var(--ease), color .4s var(--ease); }
.modal-cta .btn-primary { background: var(--accent); color: #fff; }
.modal-cta .btn-primary:hover { background: var(--ink); }
.modal-cta .btn-secondary { border: 1px solid var(--ink); color: var(--ink); }
.modal-cta .btn-secondary:hover { background: var(--ink); color: var(--surface-crema); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.form-group { margin-bottom: 24px; }
.form-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); display: block; margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(32,24,22,.3);
  padding: 10px 0 12px; font-family: var(--f-body); font-size: 16px; color: var(--ink); outline: none;
  transition: border-color .3s; appearance: none; -webkit-appearance: none;
}
.form-select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23201816' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-bottom-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(32,24,22,.4); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-aviso { font-size: 12.5px !important; line-height: 1.6 !important; margin-bottom: 16px !important; }
.form-aviso a, .form-consent a { color: var(--ink); text-decoration: underline; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; cursor: pointer; }
.form-consent input { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); }
.form-consent span { font-size: 13.5px; color: var(--ink-muted); line-height: 1.6; }
.form-consent-error { font-size: 13px; color: #9b2c2c; line-height: 1.6; margin: -10px 0 18px; }
.form-consent input[aria-invalid="true"] { outline: 2px solid #9b2c2c; outline-offset: 2px; }
.form-submit {
  width: 100%; padding: 18px; background: var(--ink); color: var(--surface-crema); font-size: 14px; font-weight: 600;
  letter-spacing: .02em; transition: background .4s var(--ease);
}
.form-submit:hover { background: var(--accent); color: #fff; }
#formSuccess div[style] { font-family: var(--f-display) !important; }

/* ═══ Responsive ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .nav-links { gap: 22px; }
  .nav-links .nav-num { display: none; }
}
@media (max-width: 960px) {
  :root { --gutter: 20px; }
  body { font-size: 15.5px; }
  .pad { padding: 88px 0; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .clause-indicator { display: none; }
  #mainNav { padding: 14px var(--gutter); }
  #mainNav.scrolled { padding-top: 10px; padding-bottom: 10px; }
  .nav-logo, .nav-logo img { height: 40px; }
  .nav-logo { width: 52px; }

  .hero-grid, .indice-grid, .decl-head, .serv-head, .metodo-grid, .metodo-foot, .etapas-head, .socio-grid, .faq-grid { grid-template-columns: 1fr; }
  .decl-head, .serv-head, .etapas-head { gap: 20px; margin-bottom: 44px; }

  /* ─── Menú móvil ─── */
  .mobile-nav { justify-content: flex-start; padding-top: 104px; gap: 2px; }
  .mobile-nav a { font-size: 34px; padding: 6px 0; border-bottom: 1px solid var(--line-negro); }
  .mobile-nav a.mobile-cta { border: 0; margin-top: 26px; }
  .mobile-nav-foot { display: grid; gap: 8px; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line-negro); }
  .mobile-nav-foot a { font-family: var(--f-mono); font-size: 13px; border: 0; padding: 4px 0; color: var(--ink-muted-negro); }
  .mobile-nav.open .mobile-nav-foot a { opacity: 1; transform: none; transition-delay: .3s; }

  /* ─── Barra fija de contacto ─── */
  .m-dock {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1050;
    background: var(--surface-negro); box-shadow: 0 18px 40px -12px rgba(0,0,0,.55), 0 0 0 1px rgba(246,238,235,.08);
    transform: translateY(140%); transition: transform .6s var(--ease);
  }
  .m-dock.show { transform: none; }
  .m-dock-cta { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
  .m-dock-tel { width: 56px; display: grid; place-items: center; color: var(--ink-negro); }
  .m-dock-cta:active { background: #b8460f; }

  /* ─── Proemio ─── */
  .hero { min-height: 0; padding: 100px 0 56px; align-items: flex-start; }
  .hero::after { width: 140%; right: -60%; top: 10%; }
  .hero-copy .eyebrow { margin-bottom: 22px; font-size: 10.5px; }
  .hero h1 { font-size: clamp(40px, 11.6vw, 64px); line-height: 1; margin-bottom: 20px; }
  .hero .lead { font-size: 16px; margin-bottom: 28px; }
  .hero-actions { gap: 4px; }
  .hero-actions .btn-accent { width: 100%; justify-content: space-between; }
  .hero-actions .btn-line { border: 0; padding: 14px 0; width: auto; background: linear-gradient(var(--accent), var(--accent)) left 75% / 100% 1px no-repeat; padding-bottom: 14px; }
  .hero-actions .btn-line::before { display: none; }
  .hero-actions .btn-line:hover { color: inherit; }
  .hero-note { display: none; }
  .scroll-cue { display: none; }

  .doc-stage { margin-top: 36px; }
  .doc-m-claim { display: block; font-family: var(--f-display); font-style: italic; font-size: 21px; line-height: 1.3; margin-bottom: 18px; max-width: 24ch; }
  .doc-m-claim .clause-tag { display: block; font-style: normal; margin-bottom: 8px; font-size: 11px; }
  .doc-window { perspective: none; margin: 0 calc(-1 * var(--gutter) + 8px); box-shadow: 0 40px 70px -30px rgba(0,0,0,.8); }
  .doc { transform: none !important; padding: 26px 22px 30px; cursor: default; }
  .doc-layer { font-size: 10.5px; }
  .lens-label { font-size: 11px; }
  .doc-caption { margin-top: 16px; font-size: 10.5px; flex-direction: row; gap: 8px; }
  .doc-caption #docHint { flex: 1; }

  /* ─── Índice ─── */
  .indice { padding: 56px 0; }
  .indice-grid { gap: 24px; }
  .indice-title { font-size: 26px; }
  .toc { grid-template-columns: 1fr; }
  .toc li:nth-child(-n+3):not(:first-child) a { border-top: 0; }
  .toc a { grid-template-columns: 44px 1fr auto; padding: 13px 0; }
  .toc .toc-t { font-size: 19px; }
  .toc a:active { background: var(--card-crema); }

  /* ─── Declaraciones ─── */
  .decl-item { grid-template-columns: 48px 1fr; gap: 8px 16px; padding: 26px 0; }
  .decl-desc { grid-column: 2; font-size: 15px; }
  .decl-num { font-size: 32px; }
  .decl-title { font-size: 23px; }
  .decl-foot { margin-top: 36px; }
  .decl-foot .btn { width: 100%; justify-content: space-between; }

  /* ─── Áreas de práctica ─── */
  .serv-group + .serv-group { margin-top: 64px; }
  .serv-group-label { flex-direction: column; gap: 4px; }
  .serv-row, .serv-row.compact { grid-template-columns: 1fr; gap: 0; padding: 28px 0; }
  .serv-row::before { display: none; }
  .serv-row:active { background: var(--card-crema); }
  .serv-num { font-size: 15px; font-family: var(--f-mono); line-height: 1; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
  .serv-num::after { content: ''; flex: 1; height: 1px; background: var(--line-crema); }
  .serv-title, .serv-row.compact .serv-title { font-size: 27px; }
  .serv-row:hover .serv-title { transform: none; }
  .serv-q { font-size: 17px; margin: 10px 0 14px; }
  .serv-desc { font-size: 15px; }
  .serv-go { display: none; }

  .serv-track { padding-top: 20px; }
  .serv-track .serv-row.compact { background: var(--card-crema); padding: 22px 20px 26px; border: 0; }
  .serv-track .serv-row.compact .serv-num { font-size: 13px; }
  .serv-track .serv-row.compact .serv-title { font-size: 23px; }
  .serv-track .serv-q { font-size: 16px; }
  .serv-track .serv-desc { font-size: 14px; }
  
  /* ─── Carruseles deslizables ─── */
  [data-carousel] {
    display: grid !important; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none !important;
    gap: 12px !important; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { scroll-snap-align: start; }
  .carousel-meta { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
  .carousel-meta .bar { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
  .carousel-meta .bar i { position: absolute; left: 0; top: 0; height: 100%; width: 25%; background: var(--accent); transition: transform .3s var(--ease); }

  /* ─── Método IQ ─── */
  .metodo-head { margin-bottom: 36px; }
  .metodo-sticky { display: none; }
  .m-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: sticky; top: 60px; z-index: 3; transition: top .45s var(--ease);
    margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter) 16px;
    background: rgba(13,13,13,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .nav-hidden .m-steps { top: 0; }
  .m-steps span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted-negro); padding-top: 10px; border-top: 2px solid rgba(246,238,235,.14); transition: border-color .5s var(--ease), color .5s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-steps b { display: block; font-weight: 500; font-size: 12px; margin-bottom: 2px; }
  .m-steps span.done { border-top-color: rgba(216,85,29,.5); }
  .m-steps span.active { border-top-color: var(--accent); color: var(--ink-negro); }
  .m-steps span.active b { color: var(--accent); }
  .step { min-height: 0; padding: 44px 0; opacity: .3; }
  .step-t { font-size: 52px; margin: 12px 0 14px; }
  .step-d { font-size: 16px; }
  .metodo-foot { margin-top: 24px; padding-top: 40px; gap: 32px; }
  .metodo-quote { font-size: 28px; }

  /* ─── Etapas: acordeón ─── */
  .etapas { flex-direction: column; height: auto; gap: 6px; }
  .etapa { flex: none; height: 76px; }
  .etapa.active { flex: none; height: auto; }
  .etapa img { opacity: .4; }
  .etapa-top { display: none; }
  .etapa.active .etapa-top { display: flex; }
  .etapa-vert { writing-mode: horizontal-tb; transform: none; left: 20px; right: 56px; top: 50%; bottom: auto; translate: 0 -50%; font-size: 21px; white-space: normal; line-height: 1.15; }
  .etapa::before { content: '+'; position: absolute; right: 20px; top: 26px; z-index: 3; color: var(--accent); font-size: 22px; line-height: 1; font-family: var(--f-body); }
  .etapa.active::before { content: ''; }
  .etapa.active .etapa-vert { display: none; }
  .etapa-body { padding: 24px 20px 28px; }
  .etapa.active .etapa-body { position: relative; padding-top: 60px; }
  .etapa-title { font-size: 29px; }
  .etapa-desc { font-size: 14.5px; }
  .etapa-list { grid-template-columns: 1fr; }

  /* ─── Sectores ─── */
  .sectores-banda { margin-top: 36px; height: 240px; }
  .sectores-banda .cap { font-size: 22px; }
  .sectores-grid { border: 0 !important; margin-top: 24px !important; }
  .sector { border: 1px solid var(--line-crema); background: #fff9f6; padding: 22px 20px 28px; }
  .sector-name { margin: 26px 0 12px; font-size: 23px; }

  /* ─── Socio ─── */
  .socio-grid { gap: 36px; }
  .socio-photo { margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 1 / 1.1; }
  .socio-copy p { font-size: 15.5px; }
  .socio-role { margin-bottom: 24px; font-size: 11.5px; }
  .firma { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 40px; }
  .firma-line { width: 100%; max-width: 280px; }

  /* ─── Anexos ─── */
  .anexos-head { margin-bottom: 32px; }
  .anexo-title { font-size: 22px; }

  /* ─── FAQ ─── */
  .faq-side { position: static; }
  .faq-grid { gap: 32px; }
  .faq-q { grid-template-columns: 32px 1fr 20px; padding: 20px 0; font-size: 18.5px; min-height: 56px; }
  .faq-a { padding: 0 0 22px 44px; font-size: 15px; }

  /* ─── Contacto y footer ─── */
  .contacto .h-display { font-size: clamp(42px, 12vw, 64px); margin: 20px 0 22px; }
  .contacto-actions .btn { width: 100%; justify-content: space-between; }
  .contacto-info { grid-template-columns: 1fr; margin-top: 48px; }
  .contacto-info > div { padding: 16px 0; border-bottom: 1px solid var(--line-negro); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .info-label { margin: 0; }
  .info-val a { font-size: 14px; text-align: right; }
  footer.site-footer { padding: 64px 0 calc(100px + env(safe-area-inset-bottom)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { height: 72px; }
  .footer-giant { margin: 56px 0 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  /* ─── Modales a pantalla completa ─── */
  .modal-overlay { padding: 0; }
  .modal { max-width: none; min-height: 100%; animation-name: modalUp; }
  @keyframes modalUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .modal-header { padding: 28px 20px 24px; position: sticky; top: 0; z-index: 2; }
  .modal-close { top: 14px; right: 10px; }
  .modal-body { padding: 26px 20px 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-submit { padding: 19px; }
  .modal-cta { flex-direction: column; align-items: stretch; }
  .modal-cta .btn-primary, .modal-cta .btn-secondary { justify-content: center; margin: 0 !important; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .m-steps span { font-size: 0; } .m-steps b { font-size: 12px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal, .js .split .w > span { opacity: 1; transform: none; }
  .doc { transform: none; }
}
