/* ==========================================================================
   ALVAREZ ORDOÑEZ & ASOCIADOS — Hoja de estilos
   --------------------------------------------------------------------------
   1. Variables (EDITAR aquí colores, tipografías y espaciados)
   2. Base y utilidades
   3. Botones
   4. Encabezado y menú
   5. Portada (hero)
   6. Scrollytelling
   7. Cifras
   8. Servicios (pestañas y tarjetas)
   9. Proceso
   10. Clientes y testimonios
   11. Quiénes somos
   12. Preguntas frecuentes
   13. Llamado a la acción
   14. Contacto y formulario
   15. Pie, flotantes y aviso de privacidad
   16. Animaciones de aparición
   17. Responsive
   ========================================================================== */

/* 1. VARIABLES ----------------------------------------------------------- */
:root {
  /* Paleta tomada del logotipo: dorado sobre tinta negra con matiz violeta */
  --ink: #0c0a12;          /* fondo principal oscuro */
  --ink-2: #14101e;        /* fondo oscuro secundario */
  --ink-3: #1e1830;        /* tarjetas sobre oscuro */
  --violet: #3a1f6b;       /* acento violeta (fondo de la versión morada del logo) */
  --gold: #d6ab5e;         /* dorado principal */
  --gold-light: #f2cf8a;   /* dorado claro / brillos */
  --gold-deep: #8a6326;    /* dorado oscuro: texto dorado sobre fondo claro (contraste AA) */
  --ivory: #f7f2e8;        /* fondo claro */
  --paper: #eee5d3;        /* fondo claro secundario */
  --text-dark: #1d1826;    /* texto sobre claro */
  --text-mid: #5b5466;     /* texto secundario sobre claro */
  --text-light: #ece6da;   /* texto sobre oscuro */
  --text-dim: #a69fb3;     /* texto secundario sobre oscuro */
  --line-dark: rgba(214, 171, 94, .18);
  --line-light: rgba(29, 24, 38, .12);
  --ok: #3f8f5a;
  --error: #b3392f;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 11vw, 140px);
  --header-h: 76px;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow: 0 18px 50px -20px rgba(12, 10, 18, .45);
}

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.flip { transform: scaleX(-1); }
.ico.up { transform: rotate(-90deg); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-light .eyebrow, .about .eyebrow { color: var(--gold-deep); }
.about .eyebrow { color: var(--gold); }

.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.01em; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-lead { font-size: 1.06rem; color: var(--text-dim); margin-top: 16px; max-width: 620px; }

/* Secciones claras (papel) */
.section-light { background: var(--ivory); color: var(--text-dark); position: relative; }
.section-light .section-lead { color: var(--text-mid); }
.section-light a { color: var(--gold-deep); }

/* Texturas: líneas topográficas (images/topografia.svg) */
.topo { position: absolute; inset: 0; background: url("images/topografia.svg") center / cover no-repeat; pointer-events: none; }
.topo-hero { opacity: .22; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.topo-soft { opacity: .08; }

/* 3. BOTONES ------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  background: var(--btn-bg); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #b98b3f); color: #1a1208; box-shadow: 0 10px 30px -12px rgba(214, 171, 94, .7); }
.btn-gold::after { /* brillo que cruza el botón al pasar el cursor */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(214, 171, 94, .85); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { border-color: rgba(214, 171, 94, .45); color: var(--gold-light); }
.btn-ghost:hover { background: rgba(214, 171, 94, .1); border-color: var(--gold); transform: translateY(-2px); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* 4. ENCABEZADO ---------------------------------------------------------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background-color .4s, box-shadow .4s, height .4s; }
.site-header.is-scrolled { background: rgba(12, 10, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); --header-h: 66px; height: 66px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: auto; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.brand-text { font-size: 1.02rem; color: var(--gold-light); letter-spacing: .01em; font-weight: 300; line-height: 1.1; }
.brand-text strong { font-weight: 700; }
.brand-text em { display: block; font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a { display: block; position: relative; padding: 8px 12px; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--text-light); transition: color .25s; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover, .main-nav a.is-current { color: var(--gold-light); }
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--gold-light); transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 5. PORTADA ------------------------------------------------------------- */
.hero { position: relative; min-height: max(640px, min(100svh, 980px)); display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 48px); overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -1; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); filter: saturate(.8) contrast(1.05); }
.slide.is-active { opacity: 1; }
.slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1.5%, -1%, 0); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(12, 10, 18, .96) 0%, rgba(12, 10, 18, .86) 38%, rgba(12, 10, 18, .45) 70%, rgba(12, 10, 18, .6) 100%),
  linear-gradient(0deg, rgba(12, 10, 18, 1) 0%, rgba(12, 10, 18, 0) 32%),
  radial-gradient(ellipse at 85% 0%, rgba(58, 31, 107, .55), transparent 60%); }
.hero-grain { position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay; 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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.topo-hero { opacity: .16; mask-image: linear-gradient(90deg, #000 0%, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%); }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; flex: 1; }
.hero-copy { min-width: 0; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.02em; color: #fff; margin-bottom: 26px; text-wrap: balance; }
.hero-title .line { display: block; }
.hero-title em { font-style: italic; color: var(--gold-light); position: relative; white-space: nowrap; }
.hero-title em::after { content: ""; position: absolute; left: 0; right: 6%; bottom: .02em; height: .06em; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform-origin: left; transform: scaleX(var(--ul, 1)); }
.split-ch { display: inline-block; will-change: transform; }
.split-word { display: inline-block; white-space: nowrap; }
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

.hero-rotator { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 18px; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--text-light); }
.rot-label { color: var(--text-dim); }
.rot-window { position: relative; display: inline-grid; height: 1.6em; overflow: hidden; color: var(--gold-light); font-weight: 600; }
.rot-word { grid-area: 1 / 1; white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.rot-word.is-on { transform: none; opacity: 1; }
.rot-word.is-out { transform: translateY(-110%); opacity: 0; }
.hero-lead { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--text-dim); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-glass { background: rgba(255, 255, 255, .06); border-color: rgba(242, 207, 138, .35); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); border-color: var(--gold); transform: translateY(-2px); }

.hero-visual { position: relative; display: grid; justify-items: end; gap: 14px; }
.ledger-card {
  position: relative; width: min(100%, 420px); padding: 24px 22px 30px;
  background: linear-gradient(160deg, rgba(30, 24, 48, .78), rgba(16, 13, 24, .86));
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(242, 207, 138, .22); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(242, 207, 138, .14);
  font-size: .84rem; transform-style: preserve-3d; transition: transform .5s var(--ease);
}
.ledger-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ledger-head img { width: 34px; }
.ledger-head span:nth-child(2) { font-family: var(--font-display); font-size: 1.45rem; color: var(--gold-light); font-weight: 600; margin-right: auto; }
.ledger-period { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.ledger-cols, .ledger-row, .ledger-total { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; padding: 9px 0; }
.ledger-cols { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line-dark); }
.ledger-row { border-bottom: 1px dashed rgba(214, 171, 94, .14); color: var(--text-light); transition: background .5s; }
.ledger-total { font-weight: 700; color: var(--gold-light); border-top: 1px solid var(--gold); margin-top: 4px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ledger-stamp { position: absolute; right: -12px; bottom: -18px; display: flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 10px; background: var(--gold); color: #1a1208; font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-6deg); box-shadow: 0 12px 30px -10px rgba(214, 171, 94, .8); }

.toasts { position: relative; width: min(100%, 360px); height: 74px; margin-right: 28px; margin-top: 12px; }
.toast { position: absolute; inset: 0; display: grid; grid-template-columns: 40px 1fr 22px; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(247, 242, 232, .96); color: var(--text-dark); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); font-size: .8rem; line-height: 1.35; opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.toast strong { display: block; font-size: .88rem; }
.toast.is-on { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateY(-14px) scale(.98); }
.toast-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--gold-light); }
.toast-ok { color: var(--ok); width: 22px; height: 22px; stroke-width: 2.4; }

.hero-bar { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 40px 30px; }
.slide-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 18px; }
.slide-dot { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: baseline; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--text-dim); transition: color .3s; }
.slide-dot:hover, .slide-dot.is-active { color: #fff; }
.sd-num { font-family: var(--font-display); font-size: 1rem; color: var(--gold); }
.sd-text { font-size: .78rem; letter-spacing: .02em; }
.sd-bar { grid-column: 1 / -1; height: 2px; background: rgba(255, 255, 255, .15); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.sd-bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.slide-dot.is-active .sd-bar span { animation: sdfill var(--slide-ms, 7000ms) linear forwards; }
.slide-dot.is-done .sd-bar span { transform: scaleX(1); }
@keyframes sdfill { to { transform: scaleX(1); } }
.hero.is-paused .slide-dot.is-active .sd-bar span { animation-play-state: paused; }

.scroll-cue { position: relative; flex: none; width: 26px; height: 42px; border: 1.5px solid rgba(214, 171, 94, .55); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: translateY(0); opacity: 0; } 100% { opacity: 1; } }

/* 6. SCROLLYTELLING ------------------------------------------------------ */
.story { position: relative; background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); border-top: 1px solid var(--line-dark); }
.story-pin { padding-block: var(--section-y); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-copy .section-title { margin-bottom: 34px; color: #fff; }
.story-steps { display: grid; gap: 8px; }
.story-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border-left: 2px solid transparent; transition: background-color .5s, border-color .5s, opacity .5s; }
.story-step h3 { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 6px; font-family: var(--font-body); }
.story-step p { font-size: .92rem; color: var(--text-dim); margin: 0; }
.step-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); line-height: 1; }
.gsap-on .story-step { opacity: .38; }
.gsap-on .story-step.is-active { opacity: 1; background: rgba(214, 171, 94, .06); border-left-color: var(--gold); }

.story-stage { position: relative; }
.stage-frame { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); background: radial-gradient(ellipse at 50% 0%, rgba(58, 31, 107, .45), transparent 70%), var(--ink-3); overflow: hidden; }
.stage-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 40px 40px; opacity: .35; mask-image: radial-gradient(ellipse, #000 40%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse, #000 40%, transparent 85%); }

/* Sin GSAP: los documentos se muestran como una lista ordenada */
.stage-frame .doc { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 16px; padding: 8px 14px; border-radius: 8px; background: #f7f2e8; color: var(--text-dark); font-size: .78rem; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
.doc-label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-amt { font-variant-numeric: tabular-nums; color: var(--gold-deep); font-weight: 600; white-space: nowrap; }
.doc-bar { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-deep)); opacity: 0; pointer-events: none; }
.stage-trend { display: none; }
.stage-caption { display: none; }

/* Con GSAP: escenario animado */
.gsap-on .stage-frame .doc { position: absolute; margin: 0; left: 0; top: 0; will-change: transform; }
.gsap-on .stage-trend { display: block; position: absolute; left: 6%; right: 6%; top: 10%; height: 52%; width: 88%; opacity: 0; }
.stage-trend path { fill: none; stroke: var(--gold-light); stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.gsap-on .stage-caption { display: block; position: absolute; left: 20px; bottom: 14px; margin: 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.stage-caption span { position: absolute; left: 0; bottom: 0; white-space: nowrap; opacity: 0; transition: opacity .4s; }
.stage-caption span.is-on { opacity: 1; }

/* 7. CIFRAS -------------------------------------------------------------- */
.stats { background: var(--ink-2); border-block: 1px solid var(--line-dark); padding: clamp(48px, 7vw, 80px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -12px; top: 15%; bottom: 15%; width: 1px; background: var(--line-dark); }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; color: var(--gold-light); line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .85rem; color: var(--text-dim); letter-spacing: .02em; }

/* 8. SERVICIOS ----------------------------------------------------------- */
.services { padding: var(--section-y) 0; background-image: linear-gradient(var(--line-light) 1px, transparent 1px); background-size: 100% 40px; background-color: var(--ivory); }
.services::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ivory) 0%, rgba(247, 242, 232, .82) 30%, rgba(247, 242, 232, .82) 70%, var(--ivory) 100%); pointer-events: none; }
.services > .container { position: relative; }

.tabs { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line-light); box-shadow: 0 10px 30px -18px rgba(29, 24, 38, .4); margin-bottom: 36px; }
.tab { position: relative; z-index: 1; border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--text-mid); cursor: pointer; transition: color .3s; }
.tab:hover { color: var(--text-dark); }
.tab.is-active { color: #1a1208; }
.tab-indicator { position: absolute; z-index: 0; top: 0; left: 0; height: 0; width: 0; border-radius: 999px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 6px 18px -8px rgba(214, 171, 94, .9); transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }

.tab-panel[hidden] { display: none; }
.tab-panel.is-active .card { animation: cardIn .6s var(--ease) both; }
.tab-panel.is-active .card:nth-child(2) { animation-delay: .07s; }
.tab-panel.is-active .card:nth-child(3) { animation-delay: .14s; }
.tab-panel.is-active .card:nth-child(4) { animation-delay: .21s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line-light); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card::before { /* foco de luz que sigue al cursor */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(214, 171, 94, .16), transparent 60%); pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(214, 171, 94, .55); }
.card:hover::before { opacity: 1; }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 22px; color: var(--gold-deep); background: linear-gradient(145deg, #fbf3e2, #f1e2c2); border: 1px solid rgba(214, 171, 94, .4); transition: transform .5s var(--ease), background .4s, color .4s; }
.card-icon .ico { width: 26px; height: 26px; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.06); background: var(--ink); color: var(--gold-light); }
.card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-bottom: 10px; color: var(--text-dark); }
.card p { font-size: .93rem; color: var(--text-mid); }
.card-for { font-size: .78rem !important; font-weight: 600; letter-spacing: .04em; color: var(--gold-deep) !important; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tags li { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--text-mid); }
.card-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--gold-deep); border-bottom: 1px solid transparent; transition: border-color .3s, gap .3s var(--ease); }
.card-link:hover { gap: 12px; border-bottom-color: currentColor; }

/* 9. PROCESO ------------------------------------------------------------- */
.process { position: relative; padding: var(--section-y) 0; background: var(--ink); overflow: hidden; }
.process .container { position: relative; }
.process .section-title { color: #fff; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.timeline-track { position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: var(--line-dark); }
.timeline-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transform-origin: left; transform: scaleX(var(--fill, 1)); }
.t-step { position: relative; text-align: center; padding: 0 6px; }
.t-node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--gold-light); background: var(--ink-3); border: 1px solid var(--gold); transition: background .5s, color .5s, box-shadow .5s, transform .5s var(--ease); }
.t-step.is-lit .t-node { background: var(--gold); color: #1a1208; box-shadow: 0 0 0 8px rgba(214, 171, 94, .12); transform: scale(1.06); }
.t-step h3 { font-family: var(--font-display); font-size: 1.45rem; color: #fff; margin-bottom: 8px; }
.t-step p { font-size: .88rem; color: var(--text-dim); }

/* 10. CLIENTES ----------------------------------------------------------- */
.clients { padding: var(--section-y) 0; }

.logo-strip { overflow: hidden; margin-bottom: 64px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-track { display: flex; gap: 18px; width: max-content; animation: marquee 32s linear infinite; }
.logo-strip:hover .logo-track { animation-play-state: paused; }
.logo-track li { flex: none; display: grid; place-items: center; width: 180px; height: 76px; border-radius: 12px; }
.logo-track img { max-height: 46px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logo-track li:hover img { filter: none; opacity: 1; }
.logo-ph { border: 1.5px dashed rgba(138, 99, 38, .35); color: rgba(91, 84, 102, .8); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

.testimonials { max-width: 860px; margin-inline: auto; }
.t-viewport { overflow: hidden; border-radius: var(--radius-lg); touch-action: pan-y; }
.t-track { display: flex; transition: transform .7s var(--ease); }
.t-card { flex: 0 0 100%; margin: 0; padding: clamp(32px, 5vw, 56px); background: var(--ink); color: var(--text-light); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.t-card::before { content: "“"; position: absolute; right: 26px; top: -30px; font-family: var(--font-display); font-size: 14rem; line-height: 1; color: rgba(214, 171, 94, .12); }
.t-card blockquote { margin: 0 0 28px; font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.35; font-style: italic; color: #fff; position: relative; }
.t-card figcaption { display: flex; align-items: center; gap: 14px; font-size: .85rem; color: var(--text-dim); }
.t-card figcaption strong { display: block; color: var(--gold-light); font-size: .95rem; }
.t-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--gold); color: var(--gold-light); font-weight: 700; font-size: .85rem; letter-spacing: .05em; }
.t-card.is-sample::after { content: "Ejemplo"; position: absolute; top: 18px; left: 18px; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--gold); color: var(--gold); }
.t-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.t-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-light); background: #fff; color: var(--text-dark); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.t-btn:hover { background: var(--ink); color: var(--gold-light); transform: scale(1.06); }
.t-dots { display: flex; gap: 8px; }
.t-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(29, 24, 38, .2); cursor: pointer; transition: width .4s var(--ease), background .3s; }
.t-dots button[aria-current="true"] { width: 30px; background: var(--gold-deep); }

/* 11. QUIÉNES SOMOS ------------------------------------------------------ */
.about { position: relative; padding: var(--section-y) 0; background: linear-gradient(180deg, var(--ink-2), var(--ink)); overflow: hidden; }
.about-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.about .section-title { color: #fff; margin-bottom: 22px; }
.about-copy > p { color: var(--text-dim); font-size: 1.04rem; }
.about-media { position: sticky; top: calc(var(--header-h) + 30px); }
.photo-frame { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-dark); background: radial-gradient(circle at 30% 20%, rgba(58, 31, 107, .7), transparent 60%), linear-gradient(160deg, var(--ink-3), #0a0810); }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 10, 18, 0) 40%, rgba(12, 10, 18, .85)), linear-gradient(135deg, rgba(58, 31, 107, .35), rgba(214, 171, 94, .15)); pointer-events: none; }
.about-photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05) sepia(.15); transform: scale(var(--zoom, 1.08)); }
.about-photo.is-broken { display: none; }
.photo-mark { position: absolute; z-index: 1; right: 20px; bottom: 20px; width: 72px; opacity: .95; }
.about-quote { margin: 22px 0 0; padding-left: 18px; border-left: 2px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--gold-light); }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0; }
.mv > div { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark); }
.mv h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light); margin-bottom: 10px; }
.mv p { font-size: .9rem; color: var(--text-dim); margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.values li { position: relative; padding: 22px 18px 22px 0; font-size: .84rem; color: var(--text-dim); border-bottom: 1px solid var(--line-dark); transition: color .3s; }
.values li span { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--gold); margin-bottom: 4px; }
.values li strong { display: block; color: #fff; font-size: .98rem; margin-bottom: 4px; }
.values li:hover { color: var(--text-light); }

.team { position: relative; margin-top: clamp(60px, 8vw, 100px); }
.team-title { font-family: var(--font-display); font-size: 2rem; color: #fff; margin-bottom: 24px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .02); transition: border-color .4s, background .4s; }
.member:hover { border-color: var(--gold); background: rgba(214, 171, 94, .05); }
.member-mono, .member img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.member-mono { display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--gold-light); background: radial-gradient(circle at 30% 30%, var(--violet), var(--ink-3)); border: 1px solid var(--gold); }
.member h4 { font-size: 1rem; color: #fff; margin-bottom: 4px; }
.member-role { font-size: .84rem; color: var(--gold-light); margin: 0 0 2px; }
.member-note { font-size: .76rem; color: var(--text-dim); margin: 0; }

/* 12. FAQ ---------------------------------------------------------------- */
.faq { padding: var(--section-y) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 30px); }
.acc { border-bottom: 1px solid var(--line-light); }
.acc summary { position: relative; display: block; list-style: none; cursor: pointer; padding: 22px 52px 22px 0; font-weight: 600; font-size: 1.02rem; color: var(--text-dark); transition: color .3s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after, .acc summary::before { content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 1.6px; background: var(--gold-deep); transition: transform .4s var(--ease); }
.acc summary::before { transform: rotate(90deg); }
.acc[open] summary::before { transform: rotate(0); }
.acc summary:hover { color: var(--gold-deep); }
.acc-body { overflow: hidden; }
.acc-body p { color: var(--text-mid); padding-bottom: 22px; margin: 0; max-width: 640px; }

/* 13. CTA ---------------------------------------------------------------- */
.cta-band { position: relative; padding: clamp(80px, 10vw, 120px) 0; text-align: center; background: radial-gradient(ellipse at 50% 120%, rgba(58, 31, 107, .9), var(--ink) 70%); overflow: hidden; }
.cta-inner { position: relative; max-width: 780px; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); margin-bottom: 34px; font-size: 1.06rem; }
.cta-band .hero-actions { justify-content: center; }

/* 14. CONTACTO ----------------------------------------------------------- */
.contact { padding: var(--section-y) 0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 4px; margin-top: 34px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line-light); font-size: .95rem; }
.contact-list .ico { width: 22px; height: 22px; color: var(--gold-deep); margin-top: 3px; }
.contact-list span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mid); }
.contact-list a { color: var(--text-dark); text-decoration: none; border-bottom: 1px solid rgba(138, 99, 38, .35); transition: color .3s, border-color .3s; }
.contact-list a:hover { color: var(--gold-deep); border-color: currentColor; }

.contact-form { padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-light); box-shadow: 0 30px 70px -40px rgba(29, 24, 38, .5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 7px; }
.field label small { font-weight: 400; color: var(--text-mid); }
.field label > span { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1.5px solid #ddd5c5; background: #fcfaf6; color: var(--text-dark);
  font-size: .95rem; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c8bba2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(214, 171, 94, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); box-shadow: 0 0 0 4px rgba(179, 57, 47, .1); }
.field.is-valid input, .field.is-valid textarea { border-color: rgba(63, 143, 90, .55); }
.field-error { min-height: 0; margin: 6px 0 0; font-size: .78rem; color: var(--error); }
.field-error:empty { margin: 0; }
.field-hint { margin: 4px 0 0; font-size: .72rem; color: var(--text-mid); text-align: right; }
.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold-deep); }
.field-check label { font-weight: 400; font-size: .86rem; color: var(--text-mid); margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }
.field-check .link-btn { color: var(--gold-deep); font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row .field { min-width: 0; }

.btn-submit { width: 100%; margin-top: 6px; min-height: 56px; }
.btn-spinner, .btn-done { position: absolute; opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.btn-spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(26, 18, 8, .25); border-top-color: #1a1208; animation: spin .8s linear infinite; }
.btn-done { width: 26px; height: 26px; stroke-width: 2.4; transform: scale(.4); }
.btn-label { transition: opacity .25s, transform .3s var(--ease); }
.btn-submit.is-loading .btn-label, .btn-submit.is-done .btn-label { opacity: 0; transform: translateY(-8px); }
.btn-submit.is-loading .btn-spinner { opacity: 1; }
.btn-submit.is-done { background: var(--ok); color: #fff; }
.btn-submit.is-done .btn-done { opacity: 1; transform: scale(1); }
.btn-submit:disabled { cursor: wait; }
.btn-submit.shake { animation: shake .45s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.form-status { margin: 14px 0 0; font-size: .9rem; font-weight: 600; }
.form-status:empty { margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--error); }
.form-note { margin: 12px 0 0; font-size: .74rem; color: var(--text-mid); }

/* 15. PIE Y FLOTANTES ---------------------------------------------------- */
.site-footer { background: #08070c; color: var(--text-dim); padding: 70px 0 28px; border-top: 1px solid var(--line-dark); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { width: 220px; margin-bottom: 14px; }
.footer-brand p { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold-light); }
.site-footer h3 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .link-btn:hover { color: var(--gold-light); }

.wa-float, .to-top { position: fixed; right: 20px; z-index: 90; display: grid; place-items: center; border-radius: 50%; text-decoration: none; transition: transform .4s var(--ease), opacity .4s, box-shadow .3s; }
.wa-float { bottom: 20px; width: 58px; height: 58px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #1a1208; box-shadow: 0 14px 30px -10px rgba(214, 171, 94, .8); }
.wa-float .ico { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.to-top { bottom: 90px; width: 44px; height: 44px; background: rgba(20, 16, 30, .9); color: var(--gold-light); border: 1px solid var(--line-dark); opacity: 0; transform: translateY(16px); pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.privacy { width: min(640px, calc(100% - 32px)); max-height: 86vh; padding: 0; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--ivory); color: var(--text-dark); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7); }
.privacy::backdrop { background: rgba(12, 10, 18, .7); backdrop-filter: blur(4px); }
.privacy[open] { animation: dialogIn .45s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.privacy-inner { padding: clamp(24px, 4vw, 40px); }
.privacy h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 18px; }
.privacy p { font-size: .9rem; color: var(--text-mid); }
.privacy strong { color: var(--text-dark); }
.privacy a { color: var(--gold-deep); }
.privacy .btn { margin-top: 8px; }

/* 16. APARICIÓN AL HACER SCROLL ----------------------------------------- */
/* Solo se ocultan si JavaScript está activo (clase .js en <html>) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero-anim { opacity: 0; transform: translateY(26px); }
.js.loaded .hero-anim { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .ledger-stamp { opacity: 0; transform: rotate(-6deg) scale(1.7); }
.js .ledger-stamp.is-on { opacity: 1; transform: rotate(-6deg) scale(1); transition: opacity .3s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.ledger-row.is-hit { background: linear-gradient(90deg, rgba(214, 171, 94, .1), transparent); }

@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, .js .hero-anim { opacity: 1 !important; transform: none !important; }
  .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* 17. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 9px; font-size: .86rem; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .header-cta { display: none; }
  .menu-toggle { display: block; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
    background: rgba(12, 10, 18, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .main-nav::before { content: ""; position: absolute; inset: 0; background: url("images/topografia.svg") center / cover; opacity: .07; pointer-events: none; }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul { position: relative; flex-direction: column; align-items: center; gap: 4px; }
  .main-nav li { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
  .main-nav.is-open li { opacity: 1; transform: none; }
  .main-nav.is-open li:nth-child(2) { transition-delay: .05s; }
  .main-nav.is-open li:nth-child(3) { transition-delay: .1s; }
  .main-nav.is-open li:nth-child(4) { transition-delay: .15s; }
  .main-nav.is-open li:nth-child(5) { transition-delay: .2s; }
  .main-nav.is-open li:nth-child(6) { transition-delay: .25s; }
  .main-nav a { font-family: var(--font-display); font-size: 2rem; padding: 8px 20px; }
  .main-nav a::after { left: 20px; right: 20px; }
  .nav-cta-mobile { display: block; margin-top: 18px; }
  .nav-cta-mobile .btn { font-family: var(--font-body); font-size: 1rem; padding: 14px 28px; }
  .nav-cta-mobile .btn::after { content: none; }
  body.menu-open { overflow: hidden; }
  .brand { position: relative; z-index: 2; }

  .story-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .story-grid { gap: 22px; }
  .story-copy .section-title { margin-bottom: 14px; font-size: 2rem; }
  .stage-frame { aspect-ratio: 4 / 3; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stat:nth-child(3)::before { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline-track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .timeline-fill { height: 100%; width: 100%; transform-origin: top; transform: scaleY(var(--fill, 1)); }
  .t-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: left; padding: 0 0 30px; }
  .t-node { grid-row: span 2; margin: 0; }
  .t-step h3 { align-self: end; }
  .about-media { position: relative; top: 0; max-width: 520px; }
  .faq .section-head { position: static; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand-text { font-size: .92rem; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .tabs { display: flex; border-radius: 18px; }
  .tab { flex: 1 1 calc(50% - 4px); padding: 10px 8px; font-size: .82rem; border-radius: 12px; }
  .tab-indicator { border-radius: 12px; }
  .cards, .cards-4, .mv, .form-row { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .stat::before { display: none; }
  .hide-sm { display: none; }
  .gsap-on .stage-frame .doc { font-size: .66rem; padding: 6px 9px; }
  .footer-grid { grid-template-columns: 1fr; }
  .t-card::before { font-size: 9rem; top: -16px; }
}

/* Botón dorado dentro del menú (mantiene su color) */
.main-nav .btn-gold, .main-nav .btn-gold:hover { color: #1a1208; }

/* ==========================================================================
   AMPLIACIÓN v2 — imágenes, chequeo, cotizador y movimiento
   ========================================================================== */

/* Lenis (desplazamiento suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-line { border-color: var(--line-light); color: var(--text-dark); background: #fff; }
.btn-line:hover { border-color: var(--gold-deep); color: var(--gold-deep); transform: translateY(-2px); }
.btn-line:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.magnetic { will-change: transform; }

/* Revelado de imágenes: cortina dorada + zoom */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); transform-origin: right; transform: scaleX(0); pointer-events: none; }
.gsap-on .img-reveal.is-pending::after { transform: scaleX(1); transform-origin: left; }
.gsap-on .img-reveal.is-pending img { transform: scale(1.25); }

/* Servicios con imagen */
.panel-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 26px; align-items: start; }
.panel-media { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; box-shadow: var(--shadow); }
.panel-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); transition: transform 1.2s var(--ease); }
.tab-panel.is-active .panel-media img { animation: panelImg 1.1s var(--ease) both; }
@keyframes panelImg { from { transform: scale(1.18); clip-path: inset(0 0 100% 0); } to { transform: scale(1); clip-path: inset(0 0 0 0); } }
.panel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12, 10, 18, .75)); }
.panel-media figcaption { position: absolute; z-index: 1; left: 22px; bottom: 20px; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: #fff; }
.panel-grid .cards, .panel-grid .cards-4 { grid-template-columns: 1fr; gap: 14px; }
.panel-grid .card { display: grid; grid-template-columns: 54px 1fr; column-gap: 20px; padding: 24px; }
.panel-grid .card > *:not(.card-icon) { grid-column: 2; }
.panel-grid .card-icon { grid-row: span 6; margin: 0; }
.panel-grid .card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.panel-grid .card p { margin-bottom: .6em; }
.panel-grid .card-link { margin-top: 4px; }
.card.tilt, .ledger-card.tilt { transform-style: preserve-3d; }

/* --- CHEQUEO ----------------------------------------------------------- */
.checkup { position: relative; padding: var(--section-y) 0; background: var(--paper); color: var(--text-dark); }
.checkup .eyebrow { color: var(--gold-deep); }
.checkup .section-lead { color: var(--text-mid); }
.checkup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.checkup-side { min-width: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.checkup .section-head { margin-bottom: 28px; }
.gauge-card { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-light); box-shadow: 0 24px 50px -30px rgba(29, 24, 38, .45); }
.gauge { width: 100%; max-width: 220px; overflow: visible; }
.gauge-track, .gauge-fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.gauge-track { stroke: #ece5d6; }
.gauge-fill { stroke: url(#gauge-grad); stroke-dasharray: 100; stroke-dashoffset: var(--gauge-off, 100); transition: stroke-dashoffset 1s var(--ease); }
.gauge-ticks line { stroke: rgba(29, 24, 38, .25); stroke-width: 1.4; }
.gauge-needle { transform-origin: 110px 112px; transform: rotate(var(--needle, -90deg)); transition: transform 1.1s cubic-bezier(.34, 1.4, .5, 1); }
.gauge-needle line { stroke: var(--text-dark); stroke-width: 4; stroke-linecap: round; }
.gauge-needle circle { fill: var(--text-dark); }
.gauge-score { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.gauge-level { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--error); margin-bottom: 10px; transition: background .4s; }
.gauge-level[data-level="1"] { background: #c07a2c; }
.gauge-level[data-level="2"] { background: var(--gold-deep); }
.gauge-level[data-level="3"] { background: var(--ok); }
.gauge-msg { font-size: .9rem; color: var(--text-mid); margin: 0; }

.priorities { display: grid; gap: 10px; margin-top: 18px; counter-reset: pr; }
.priority { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px dashed rgba(138, 99, 38, .35); font-size: .88rem; animation: prIn .5s var(--ease) both; }
.priority::before { counter-increment: pr; content: counter(pr); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--gold-light); font-size: .72rem; font-weight: 700; }
@keyframes prIn { from { opacity: 0; transform: translateX(-12px); } }
.pr-chip { border: 1.5px solid var(--gold-deep); background: transparent; color: var(--gold-deep); border-radius: 999px; padding: 6px 14px; font-size: .74rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .3s, color .3s; }
.pr-chip:hover { background: var(--gold-deep); color: #fff; }
.priorities-more { font-size: .8rem; color: var(--text-mid); margin: 10px 0 0; }
.priorities-more:empty { display: none; }
.priority.is-done { border-style: solid; border-color: rgba(63, 143, 90, .4); background: rgba(63, 143, 90, .08); }
.priority.is-done::before { content: "✓"; background: var(--ok); color: #fff; }
.checkup-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.checklist { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.check-group { margin: 14px 0 0; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.check-group:first-of-type { margin-top: 0; }
.check-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1.5px solid transparent; box-shadow: 0 10px 26px -20px rgba(29, 24, 38, .5); cursor: pointer; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.check-item:hover { transform: translateX(4px); box-shadow: 0 16px 30px -18px rgba(29, 24, 38, .5); }
.check-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1.8px solid #cfc4ad; background: #fcfaf6; transition: background .3s, border-color .3s; }
.check-box .ico { width: 16px; height: 16px; stroke-width: 2.6; color: #fff; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s var(--ease) .05s; }
.check-item:has(input:checked) { border-color: rgba(63, 143, 90, .5); }
.check-item input:checked + .check-box { background: var(--ok); border-color: var(--ok); }
.check-item input:checked + .check-box .ico { stroke-dashoffset: 0; }
.check-item input:focus-visible + .check-box { outline: 2px solid var(--gold); outline-offset: 3px; }
.check-text { font-size: .95rem; font-weight: 500; }
.check-item input:checked ~ .check-text { color: var(--text-mid); }

/* --- COTIZADOR --------------------------------------------------------- */
.quote { position: relative; padding: var(--section-y) 0; background: radial-gradient(ellipse at 0% 0%, rgba(58, 31, 107, .55), transparent 55%), var(--ink-2); overflow: hidden; }
.quote .container { position: relative; }
.quote .section-title { color: #fff; }
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.quote-side { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.quote .section-head { margin-bottom: 26px; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 26px; }
.step-btn { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--text-dim); font-size: .88rem; font-weight: 600; cursor: pointer; transition: color .3s; }
.step-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-dark); font-size: .8rem; transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease); }
.step-btn.is-current, .step-btn.is-done { color: #fff; }
.step-btn.is-current .step-dot { background: var(--gold); border-color: var(--gold); color: #1a1208; transform: scale(1.08); }
.step-btn.is-done .step-dot { background: transparent; border-color: var(--gold); color: var(--gold-light); }

.summary { position: relative; padding: 24px 24px 22px 28px; border-radius: var(--radius-lg); background: rgba(247, 242, 232, .98); color: var(--text-dark); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); overflow: hidden; }
.summary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); }
.summary-kicker { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 6px; }
.summary-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.summary-title.flash { animation: flash .5s var(--ease); }
@keyframes flash { 50% { color: var(--gold-deep); } }
.summary-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; min-height: 26px; }
.summary-chips li { padding: 4px 11px; border-radius: 999px; background: #efe2c5; color: var(--gold-deep); font-size: .74rem; font-weight: 700; animation: chipIn .35s var(--ease) both; }
@keyframes chipIn { from { opacity: 0; transform: scale(.8); } }
.summary-plan { padding-top: 16px; border-top: 1px solid var(--line-light); }
.plan-label { display: block; font-size: .72rem; color: var(--text-mid); letter-spacing: .04em; }
.plan-name { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-deep); line-height: 1.1; margin: 2px 0 6px; }
.plan-desc { font-size: .88rem; color: var(--text-mid); margin-bottom: 10px; }
.plan-list { display: grid; gap: 6px; font-size: .84rem; }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--gold); }
.plan-price { margin: 14px 0 0; font-size: .8rem; color: var(--text-mid); }
.plan-price strong { color: var(--text-dark); font-size: 1rem; }

.wizard { position: relative; padding: clamp(24px, 3.4vw, 36px); border-radius: var(--radius-lg); background: #fff; color: var(--text-dark); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); overflow: hidden; }
.wizard-track { display: grid; }
.wz-step { grid-area: 1 / 1; margin: 0; padding: 0; border: 0; min-width: 0; opacity: 0; visibility: hidden; transform: translateX(40px); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s; }
.wz-step.is-current { opacity: 1; visibility: visible; transform: none; }
.wz-step.is-past { transform: translateX(-40px); }
.wz-field { margin-bottom: 22px; }
.wz-label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 10px; }
.wz-label small { font-weight: 400; color: var(--text-mid); }
.wizard select, .wizard input[type="text"] { width: 100%; padding: 13px 15px; border-radius: 10px; border: 1.5px solid #ddd5c5; background: #fcfaf6; font-size: .95rem; transition: border-color .25s, box-shadow .25s; }
.wizard select:focus, .wizard input[type="text"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 171, 94, .2); background: #fff; }
.wz-error { margin: 6px 0 0; font-size: .78rem; color: var(--error); }
.wz-error:empty { display: none; }

.segmented { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 12px; background: #f1ebde; isolation: isolate; }
.segmented label { position: relative; z-index: 1; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span:not(.seg-thumb) { display: grid; place-items: center; min-height: 44px; padding: 8px 10px; text-align: center; font-size: .86rem; font-weight: 600; color: var(--text-mid); border-radius: 9px; transition: color .3s; }
.segmented input:checked + span { color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9px; background: var(--ink); box-shadow: 0 8px 18px -8px rgba(12, 10, 18, .6); transition: transform .45s var(--ease), width .45s var(--ease); }
.seg-sm span:not(.seg-thumb) { min-height: 40px; font-size: .82rem; }

.range-wrap { position: relative; padding-top: 34px; }
.range-bubble { position: absolute; top: 0; left: var(--pos, 8%); transform: translateX(-50%); padding: 3px 10px; border-radius: 8px; background: var(--ink); color: var(--gold-light); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; transition: transform .2s; }
.range-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.wizard input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) 0 var(--fill, 8%), #e7dfcf var(--fill, 8%) 100%); cursor: pointer; }
.wizard input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--gold-deep); box-shadow: 0 4px 12px rgba(29, 24, 38, .3); transition: transform .2s; }
.wizard input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--gold-deep); }
.wizard input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.wizard input[type="range"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.range-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: .7rem; color: var(--text-mid); }

.stepper-num { display: inline-grid; grid-template-columns: 52px 90px 52px; border: 1.5px solid #ddd5c5; border-radius: 12px; overflow: hidden; }
.num-btn { border: 0; background: #fff; color: var(--gold-deep); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.num-btn:hover { background: #f6efe0; }
.num-btn:active { background: #efe2c5; }
.stepper-num input { border: 0; border-inline: 1.5px solid #ddd5c5; text-align: center; font-size: 1.05rem; font-weight: 600; background: #fcfaf6; -moz-appearance: textfield; min-height: 48px; font-variant-numeric: tabular-nums; }
.stepper-num input::-webkit-inner-spin-button, .stepper-num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-num input:focus { outline: none; background: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid #ddd5c5; font-size: .86rem; font-weight: 600; color: var(--text-mid); background: #fff; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.chip span::before { content: "+"; font-weight: 700; color: var(--gold-deep); transition: transform .3s var(--ease); }
.chip:hover span { border-color: var(--gold); transform: translateY(-2px); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span::before { content: "✓"; color: var(--gold-light); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.reveal-field:not([hidden]) { animation: cardIn .45s var(--ease) both; }

.wz-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .84rem; color: var(--text-mid); cursor: pointer; }
.wz-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold-deep); }
.wz-consent .link-btn { color: var(--gold-deep); font-weight: 600; }

.wizard-nav { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.wz-progress { flex: 1; height: 4px; border-radius: 4px; background: #eee6d6; overflow: hidden; }
.wz-progress span { display: block; height: 100%; width: 33.3%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transition: width .6s var(--ease); }
.wz-status { margin: 12px 0 0; font-size: .86rem; font-weight: 600; color: var(--ok); }
.wz-status:empty { display: none; }
.btn-send[hidden] { display: none; }

/* --- CLIENTES CON FOTO -------------------------------------------------- */
.profiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.profile { position: relative; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: #fff; aspect-ratio: 4 / 5; max-width: 100%; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s; }
.profile:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--ink); }
.profile-media { position: absolute; inset: 0; margin: 0; z-index: -1; }
.profile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.profile:hover .profile-media img { transform: scale(1.07); filter: saturate(1); }
.profile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 10, 18, 0) 30%, rgba(12, 10, 18, .92) 100%); }
.profile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.profile-body h3 { font-family: var(--font-display); font-size: 1.55rem; margin-bottom: 6px; color: #fff; }
.profile-body p { font-size: .85rem; color: rgba(255, 255, 255, .78); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.profile:hover .profile-body p, .profile:focus-within .profile-body p { max-height: 120px; opacity: 1; }
@media (hover: none) { .profile-body p { max-height: none; opacity: 1; } }

/* --- CTA CON FOTO ------------------------------------------------------- */
.cta-bg { position: absolute; inset: -12% 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .62; filter: saturate(.75) contrast(1.05); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(12, 10, 18, .35) 35%, rgba(12, 10, 18, .55) 70%, var(--ink) 100%), radial-gradient(ellipse at 50% 50%, rgba(12, 10, 18, .55), transparent 70%); }
.cta-band .topo, .cta-inner { z-index: 1; }

.about-photo { transform: none; }

/* --- RESPONSIVE v2 ------------------------------------------------------ */
@media (max-width: 1080px) {
  .gauge-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-items: start; }
  .toasts { margin-right: 0; }
  .slide-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .sd-text { display: none; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-media { position: relative; top: 0; aspect-ratio: 16 / 9; }
  .checkup-grid, .quote-grid { grid-template-columns: 1fr; }
  .checkup-side, .quote-side { position: static; }
  .gauge-card { grid-template-columns: 180px 1fr; text-align: left; justify-items: start; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-title { font-size: clamp(2.5rem, 11.5vw, 3.3rem); }
  .ledger-card { font-size: .76rem; padding: 20px 16px 26px; }
  .ledger-stamp { right: 8px; }
  .toasts { width: 100%; }
  .gauge-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .priority { grid-template-columns: 26px 1fr; }
  .pr-chip { grid-column: 2; justify-self: start; }
  .segmented span:not(.seg-thumb) { font-size: .78rem; padding: 6px; }
  .profiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .profile-body { padding: 14px; }
  .profile-body h3 { font-size: 1.15rem; }
  .profile-body p { display: none; }
  .wizard-nav { flex-wrap: wrap; }
  .wz-progress { order: -1; flex-basis: 100%; }
  .wizard-nav .btn { flex: 1; }
}

.op-left { --op: 22% 50%; }
.op-right { --op: 75% 50%; }
@media (max-width: 960px) {
  .quote-side { display: contents; }
  .quote-grid { gap: 22px; }
  .quote .section-head { order: 1; margin-bottom: 0; }
  .stepper { order: 2; margin-bottom: 0; }
  .wizard { order: 3; }
  .summary { order: 4; }
}
@media (max-width: 640px) {
  .stepper { gap: 14px; flex-wrap: nowrap; }
  .step-btn { font-size: .78rem; gap: 6px; }
  .step-dot { width: 28px; height: 28px; }
}

/* --- v3: historia animada sin fijar la pantalla ------------------------ */
.gsap-on .story-step { cursor: pointer; position: relative; overflow: hidden; }
.gsap-on .story-step:hover { opacity: .75; }
.gsap-on .story-step.is-active:hover { opacity: 1; }
.story-step:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.story-step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--step-p, 0)); opacity: 0; }
.gsap-on .story-step.is-active::after { opacity: .7; }
.story-replay { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--gold-light); font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .3s, border-color .3s; }
.story-replay:hover { background: rgba(214, 171, 94, .1); border-color: var(--gold); }
.story-replay[hidden] { display: none; }

/* --- v3: cinta de clientes con nombres --------------------------------- */
.logo-kicker { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; }
.logo-track { gap: 0; }
.logo-track li.logo-name { width: auto; height: 64px; padding: 0 34px; border: 0; border-radius: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-dark); white-space: nowrap; opacity: .72; transition: opacity .3s, color .3s; position: relative; }
.logo-track li.logo-name::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; transform: rotate(45deg); border: 1.5px solid var(--gold); }
.logo-track li.logo-name:hover { opacity: 1; color: var(--gold-deep); }
.logo-track li.logo-more { font-style: italic; color: var(--gold-deep); }
.logo-track img { max-height: 44px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   v4 — Portada en dos columnas: texto sobre fondo oscuro, fotos en su panel
   ========================================================================== */
.hero { min-height: 0; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 84px)); background: radial-gradient(ellipse at 88% 8%, rgba(58, 31, 107, .6), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(214, 171, 94, .1), transparent 50%), var(--ink); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero .topo-hero { opacity: .16; mask-image: radial-gradient(ellipse at 25% 45%, #000 15%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 25% 45%, #000 15%, transparent 70%); }
.hero-grid { grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); }
.hero-title { font-size: clamp(2.7rem, 5.6vw, 5rem); }

.hero-visual { position: relative; display: block; padding: 0 0 64px 44px; }
.hero-photo { position: relative; width: 100%; aspect-ratio: 6 / 5; max-width: 100%; border-radius: 28px; overflow: hidden; border: 1px solid rgba(242, 207, 138, .28); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); isolation: isolate; background: var(--ink-3); }
.hero-photo .hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-photo .slide img { filter: saturate(.95) contrast(1.03); transform: scale(1.08); }
.hero-photo .slide.is-active img { animation: kenburns2 9s linear forwards; }
@keyframes kenburns2 { from { transform: scale(1.1); } to { transform: scale(1.01); } }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(12, 10, 18, .25) 0%, transparent 25%, transparent 60%, rgba(12, 10, 18, .55) 100%); }
.photo-tag { position: absolute; z-index: 2; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(12, 10, 18, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .06em; }
.photo-tag img { width: 20px; }

.hero-visual .ledger-card { position: absolute; z-index: 3; left: 0; bottom: 0; width: min(330px, 64%); padding: 18px 16px 24px; font-size: .74rem; transform: none; }
.hero-visual .ledger-head { margin-bottom: 10px; }
.hero-visual .ledger-head span.ledger-period { font-family: var(--font-body); font-size: .62rem; font-weight: 500; letter-spacing: .16em; color: var(--text-dim); margin: 0; }
.hero-visual .ledger-head span:first-child { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--gold-light); margin-right: auto; }
.hero-visual .ledger-cols, .hero-visual .ledger-row, .hero-visual .ledger-total { padding: 6px 0; }
.hero-visual .ledger-stamp { right: -10px; bottom: -14px; padding: 7px 12px; font-size: .64rem; }
.hero-visual .toasts { position: absolute; z-index: 3; right: -18px; top: 26px; width: min(290px, 66%); height: 66px; margin: 0; }
.hero-visual .toast { font-size: .74rem; padding: 10px 14px; grid-template-columns: 34px 1fr 20px; gap: 10px; }
.hero-visual .toast strong { font-size: .82rem; }
.hero-visual .toast-ico { width: 34px; height: 34px; border-radius: 10px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding: 0 0 56px; max-width: 620px; }
  .hero-visual .ledger-card { left: 12px; }
  .hero-visual .toasts { right: 12px; top: 14px; }
}
@media (max-width: 640px) {
  .hero-visual .ledger-card { width: 82%; }
  .hero-visual .toasts { width: calc(100% - 24px); }
  .photo-tag { top: auto; bottom: 14px; left: auto; right: 14px; }
}

/* v4.1 — paneles en las esquinas, sin tapar a la persona ni el letrero */
.hero-visual { padding: 0 0 110px 0; }
.hero-photo { aspect-ratio: 5 / 4; }
.hero-visual .ledger-card { left: -36px; bottom: 0; width: min(300px, 58%); }
.hero-visual .toasts { right: -22px; top: auto; bottom: 34px; width: min(280px, 60%); }
@media (max-width: 960px) {
  .hero-visual { padding: 0; display: grid; gap: 14px; }
  .hero-visual .ledger-card { position: relative; left: auto; bottom: auto; width: 100%; max-width: 420px; }
  .hero-visual .toasts { position: relative; right: auto; bottom: auto; width: 100%; max-width: 420px; margin-top: 6px; }
}

/* ==========================================================================
   v5 — PORTADA INTRODUCTORIA (#bienvenida)
   ========================================================================== */
.intro { position: relative; min-height: max(620px, 100svh); display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 24px) 104px; overflow: hidden; isolation: isolate; text-align: center;
  background: radial-gradient(ellipse at 50% 38%, #24183a 0%, var(--ink) 62%), var(--ink); }
.intro-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; }
.intro-vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(12, 10, 18, .75) 85%), linear-gradient(180deg, rgba(12, 10, 18, .4), transparent 20%, transparent 80%, var(--ink)); }
.intro-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.intro-emblem { position: relative; width: clamp(112px, 14vw, 156px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 22px; transform-style: preserve-3d; will-change: transform; }
.intro-emblem img { width: 78%; filter: drop-shadow(0 10px 30px rgba(214, 171, 94, .45)); }
.intro-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro-ring circle { fill: none; stroke: var(--gold); }
.ring-a { stroke-width: .9; stroke-dasharray: 604; stroke-dashoffset: 0; opacity: .75; }
.ring-b { stroke-width: .5; stroke-dasharray: 2 6; opacity: .5; transform-origin: 100px 100px; animation: ringSpin 40s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.intro-kicker { font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.intro-title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 600; line-height: .95; color: #fff; letter-spacing: -.015em; }
.it-line { display: block; font-size: clamp(2.9rem, 8.4vw, 7rem); }
.it-sub { font-size: clamp(1.7rem, 4.2vw, 3.4rem); font-weight: 500; color: var(--gold-light); letter-spacing: .02em; margin-top: .12em; }
.it-sub em { font-style: italic; color: var(--gold); }
.intro-motto { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--text-dim); margin-bottom: 26px; }

.intro-deadline { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); font-size: .84rem; color: var(--text-light); margin-bottom: 34px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.intro-deadline strong { color: var(--gold-light); font-weight: 600; }
.dl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(214, 171, 94, .7); animation: dlPulse 2s infinite; }
@keyframes dlPulse { 70% { box-shadow: 0 0 0 9px rgba(214, 171, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 171, 94, 0); } }
.dl-count { padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #1a1208; font-weight: 700; font-size: .74rem; font-variant-numeric: tabular-nums; }
.dl-count:empty { display: none; }
.dl-count.is-urgent { background: #e07a5f; color: #fff; }

.intro-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(100%, 900px); margin-bottom: 30px; }
.door { --mx: 50%; --my: 50%; position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 18px 18px 20px; border-radius: 18px; text-align: left; text-decoration: none; color: var(--text-light); background: rgba(30, 24, 48, .55); border: 1px solid var(--line-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; transition: transform .45s var(--ease), border-color .4s, background .4s; }
.door::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(214, 171, 94, .22), transparent 65%); }
.door:hover, .door:focus-visible { transform: translateY(-4px); border-color: rgba(214, 171, 94, .6); background: rgba(30, 24, 48, .8); }
.door:hover::before, .door:focus-visible::before { opacity: 1; }
.door-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); line-height: 1; }
.door-text { min-width: 0; font-size: .8rem; color: var(--text-dim); line-height: 1.4; }
.door-text strong { display: block; color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.door-arrow { color: var(--gold-light); transition: transform .4s var(--ease); }
.door:hover .door-arrow { transform: translateX(4px); }

.intro-enter .intro-down { transform: rotate(90deg); }
.intro-enter:hover .intro-down { transform: rotate(90deg) translateX(3px); }
.intro-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); }
.intro-hint span { width: 1px; height: 34px; background: linear-gradient(180deg, transparent, var(--gold)); animation: hintLine 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes hintLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Entrada (solo con JavaScript; sin JS todo queda visible) */
.js .intro [data-intro] { opacity: 0; transform: translateY(22px); }
.js .intro.is-ready [data-intro] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .intro .ring-a { stroke-dashoffset: 604; }
.js .intro.is-ready .ring-a { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease) .2s; }

@media (max-width: 860px) {
  .intro-doors { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 640px) {
  .intro { padding-block: calc(var(--header-h) + 20px) 72px; }
  .intro-deadline { font-size: .78rem; border-radius: 16px; }
  .dl-dot { display: none; }
  .door { padding: 14px 16px; }
  .intro-enter { width: 100%; max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .ring-b, .dl-dot, .intro-hint span { animation: none; }
}
/* Unión suave entre la bienvenida y la portada */
.hero-bg::before { content: ""; position: absolute; inset: 0 0 auto; height: 160px; z-index: 1; background: linear-gradient(180deg, var(--ink), transparent); }
