/* =========================================================
   Gestión 360 · Trámites legales — estilos
   Estructura basada en la plantilla "Fuero" (Framer).
   ========================================================= */

:root {
  --bg: #FAFAF9;
  --bg-alt: #F1F0EE;
  --bg-alt2: #E4E4E3;
  --ink: #0F0F0F;
  --ink-2: #33312C;
  --muted: #6B6761;
  --line: rgba(15, 15, 15, .14);
  --line-strong: rgba(15, 15, 15, .32);
  --navy: #0B2545;
  --gold: #B8923A;
  --gold-l: #D4B15F;
  --btn-bg: #0B2545;
  --btn-ink: #FAFAF9;
  --btn-hover: #12345E;
  --logo-ink: #0B2545;
  --on-media: #FAFAF9;
  --nav-bg: rgba(250, 250, 249, .86);
  --card-shadow: 0 1px 0 rgba(15, 15, 15, .04);
  --gutter: clamp(20px, 4.86vw, 70px);
  --wrap: 1300px;
  --serif: "Hedvig Letters Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "TASA Orbiter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --brand-serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 80px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121211;
  --bg-alt: #1A1A19;
  --bg-alt2: #222220;
  --ink: #F1F0EE;
  --ink-2: #D9D6D0;
  --muted: #A29E97;
  --line: rgba(250, 250, 249, .14);
  --line-strong: rgba(250, 250, 249, .34);
  --btn-bg: #D4B15F;
  --btn-ink: #0F0F0F;
  --btn-hover: #E0C27A;
  --logo-ink: #F1F0EE;
  --nav-bg: rgba(18, 18, 17, .86);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold-l); color: #0F0F0F; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 12px; line-height: 1.2; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.h-display {
  font-family: var(--serif);
  font-size: clamp(40px, 4.45vw, 64px);
  line-height: 1.06; letter-spacing: -.015em;
}
.h-section {
  font-family: var(--serif);
  font-size: clamp(40px, 4.45vw, 64px);
  line-height: 1.06; letter-spacing: -.02em;
}
.h-row { font-family: var(--serif); font-size: clamp(22px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -.01em; }
.h-ui { font-size: 20px; line-height: 1.3; letter-spacing: -.005em; }
.lead { font-size: clamp(17px, 1.39vw, 20px); line-height: 1.45; color: var(--muted); }
.small { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* palabras con desenfoque al entrar */
.split .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.18em);
  transition: opacity .9s var(--ease-out), filter .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms); }
.split.in .w { opacity: 1; filter: blur(0); transform: none; }

/* aparición de bloques */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 18px;
  height: 48px; padding: 0 20px;
  font-size: 14px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; border-radius: 0;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn .arr { width: 10px; height: 10px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .arr, a:hover > .arr, .arrow-link:hover .arr { transform: translate(2px, -2px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: #FAFAF9; color: #0F0F0F; }
.btn-light:hover { background: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arr-r { width: 12px; height: 12px; flex: none; transition: transform .35s var(--ease); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--logo-ink); }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-mark .ink { fill: var(--logo-ink); stroke: var(--logo-ink); transition: fill .4s, stroke .4s; }
.logo-text { display: flex; flex-direction: column; align-items: stretch; }
.logo-name { font-family: var(--brand-serif); font-weight: 600; font-size: 21px; line-height: 1; letter-spacing: .1em; padding-top: 2px; }
.logo-name b { font-weight: 600; color: var(--gold); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.logo-rule { height: 1px; background: var(--gold); margin: 5px 0 4px; }
.logo-sub { font-family: var(--sans); font-size: 7.6px; font-weight: 500; letter-spacing: .36em; line-height: 1; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  transition: transform .45s var(--ease), background-color .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: var(--nav-bg); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.nav.menu-open { background: var(--bg); transform: none; }
.nav-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav-links a, .nav-links button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; position: relative; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .chev { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.nav-links button[aria-expanded="true"] { color: var(--muted); }
.nav-links button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.lang { position: relative; display: inline-flex; align-items: center; font-size: 15px; }
.lang select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; padding: 6px 18px 6px 0; cursor: pointer; }
.lang select option { color: #0F0F0F; background: #fff; }
.lang .chev { position: absolute; right: 0; width: 10px; height: 10px; pointer-events: none; color: var(--muted); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
.menu-btn { display: none; height: 40px; padding: 0 18px; border: 1px solid var(--line); font-size: 14px; }

/* Mega menú de áreas */
.mega {
  position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: var(--bg); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.mega-inner { display: grid; grid-template-columns: 1fr 1fr 360px; gap: 0 48px; padding: 36px 0 44px; }
.mega-list { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.mega-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.mega-item .h-ui { grid-column: 1; }
.mega-item .arr-r { grid-column: 2; grid-row: 1; align-self: center; }
.mega-item .small { grid-column: 1 / -1; }
.mega-item:hover .arr-r { transform: translateX(4px); }
.mega-aside { border-left: 1px solid var(--line); padding: 14px 0 0 40px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.mega-aside p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 59; background: var(--bg);
  overflow-y: auto; padding: 0 0 120px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.mobile-menu ul { border-top: 1px solid var(--line); }
.mobile-menu li > a, .mobile-menu li > button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 0; font-size: 20px; border-bottom: 1px solid var(--line); text-align: left; }
.mobile-menu .sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.mobile-menu .sub > div { overflow: hidden; }
.mobile-menu .sub.open { grid-template-rows: 1fr; }
.mobile-menu .sub a { display: block; padding: 11px 0 11px 16px; font-size: 16px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 24px; }
.mobile-menu .phone { display: block; margin-top: 18px; font-size: 15px; }
.mobile-menu .chev { width: 12px; height: 12px; transition: transform .3s; }
.mobile-menu button[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Barra fija móvil */
.mobile-cta { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 178vh; --p: 0; }
.hero-sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: 1;
  --l: 46%; --t: 11vh; --b: 16vh;
  clip-path: inset(calc(var(--t) * (1 - var(--p))) 0 calc(var(--b) * (1 - var(--p))) calc(var(--l) * (1 - var(--p))));
  will-change: clip-path;
}
.hero-media video, .hero-media .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-media .is-active { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 16, .62) 0%, rgba(10, 12, 16, .38) 45%, rgba(10, 12, 16, .22) 100%), linear-gradient(0deg, rgba(10, 12, 16, .45) 0%, rgba(10, 12, 16, 0) 32%); opacity: var(--p); pointer-events: none; }
.hero-content { position: relative; z-index: 2; height: 100%; }
.hero-content .wrap { position: relative; height: 100%; }
.hero-slides { position: absolute; left: 0; top: 0; bottom: 0; width: min(564px, calc(46vw - var(--gutter) - 28px)); }
.hero-slide { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-46%); visibility: hidden; transition: visibility 0s .7s; }
.hero-slide.is-active { visibility: visible; transition: none; }
.hero-slide .eyebrow { margin-bottom: 23px; transition: color .5s var(--ease); }
.hero-slide .h-display { margin-bottom: 25px; transition: color .5s var(--ease); }
.hero-slide .lead { max-width: 520px; color: var(--ink-2); margin-bottom: 32px; transition: color .5s var(--ease); opacity: 0; transform: translateY(10px); }
.hero-slide .btn { opacity: 0; transform: translateY(10px); }
.hero-slide.is-active .lead, .hero-slide.is-active .btn { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) .25s, transform .9s var(--ease-out) .25s, background-color .3s, color .3s; }
.hero-slide:not(.is-active) .lead, .hero-slide:not(.is-active) .btn, .hero-slide:not(.is-active) .eyebrow { opacity: 0; transition: opacity .35s var(--ease); }
.hero-slide .split .w { transition-duration: .8s; transition-delay: calc(var(--i, 0) * 45ms); }
.hero-slide:not(.is-active) .split .w { opacity: 0; filter: blur(8px); transition-duration: .35s; transition-delay: 0s; }
.hero-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 16vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; padding-top: 6.5vh; }
.hero-tab { text-align: left; padding: 18px 0 0; position: relative; font-size: 17px; line-height: 1.3; color: var(--muted); transition: color .4s var(--ease); }
.hero-tab::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); transition: background-color .4s; }
.hero-tab .bar { position: absolute; left: 0; top: -0.5px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-tab.is-active { color: var(--ink); }
.hero-tab.is-active .bar { animation: tabfill var(--dur, 8s) linear forwards; }
.hero.paused .hero-tab.is-active .bar { animation-play-state: paused; }
@keyframes tabfill { to { transform: scaleX(1); } }
.hero-tab:hover { color: var(--ink); }
.hero-tab-current { display: none; }

/* estado expandido: texto blanco sobre el video */
.hero.is-full .hero-slide .eyebrow { color: rgba(250, 250, 249, .78); }
.hero.is-full .hero-slide .h-display { color: var(--on-media); }
.hero.is-full .hero-slide .lead { color: rgba(250, 250, 249, .86); }
.hero.is-full .hero-slide .btn-primary { background: #FAFAF9; color: #0F0F0F; }
.hero.is-full .hero-slide .btn-primary:hover { background: #fff; }
.hero.is-full .hero-tab { color: rgba(250, 250, 249, .62); }
.hero.is-full .hero-tab.is-active, .hero.is-full .hero-tab:hover { color: #FAFAF9; }
.hero.is-full .hero-tab::before { background: rgba(250, 250, 249, .3); }

/* ---------- Barra de confianza ---------- */
.trust { position: relative; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.trust-item { padding: 30px 0 30px 28px; font-size: clamp(16px, 1.39vw, 20px); line-height: 1.3; letter-spacing: -.005em; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item .star { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ---------- Declaración con revelado por palabra ---------- */
.statement { position: relative; height: 210vh; }
.statement-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.statement-text { font-family: var(--serif); font-size: clamp(30px, 3.9vw, 56px); line-height: 1.2; letter-spacing: -.01em; max-width: 1180px; }
.statement-text .sw { color: var(--ink); opacity: .16; transition: opacity .25s linear; }
.statement-text .sw.lit { opacity: 1; }

/* ---------- Secciones genéricas ---------- */
.section { padding: 96px 0 120px; position: relative; }
.bg-alt { background: var(--bg-alt); }
.bg-alt2 { background: var(--bg-alt2); }
.sec-head { border-top: 1px solid var(--line); padding-top: 31px; margin-bottom: 64px; }
.sec-head .eyebrow { margin-bottom: 24px; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.sec-row .h-section { max-width: 820px; }
.sec-row .btn { flex: none; margin-bottom: 8px; }

/* ---------- La firma ---------- */
.firm { padding: 0 0 120px; }
.firm .sec-head { margin-bottom: 34px; }
.firm-figure { position: relative; height: clamp(300px, 42vw, 605px); margin: 0 auto; width: calc(min(var(--wrap), 100% - 2 * var(--gutter)) + var(--g, 0) * min(104px, 2 * var(--gutter) - 8px)); overflow: hidden; }
.firm-figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.1 - var(--g, 0) * .1)); transform-origin: center; will-change: transform; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 56px; }
.stat-num { font-family: var(--serif); font-size: clamp(56px, 6.7vw, 96px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: lining-nums; }
.stat-num .unit { font-size: .72em; letter-spacing: 0; margin-left: .06em; }
.stat .eyebrow { margin-top: clamp(36px, 6vw, 86px); }
.firm .btn-row { margin-top: 56px; }

/* ---------- Áreas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px 32px; }
.area-card { display: block; }
.area-media { position: relative; aspect-ratio: 412 / 320; overflow: hidden; background: var(--bg-alt2); }
.area-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.area-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 45%); }
.area-media .eyebrow { position: absolute; left: 20px; bottom: 18px; z-index: 1; color: #FAFAF9; }
.area-card:hover .area-media img { transform: scale(1.05); }
.area-body { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding-top: 24px; }
.area-body .arr-r { align-self: center; }
.area-body .small { grid-column: 1 / -1; }
.area-card:hover .arr-r { transform: translateX(4px); }

/* ---------- Cómo trabajamos ---------- */
.steps-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 640px); justify-content: space-between; gap: 48px; align-items: start; }
.steps { border-bottom: 1px solid var(--line); }
.step { position: relative; border-top: 1px solid var(--line); }
.step-btn { display: block; width: 100%; text-align: left; padding: 24px 0; }
.step-title { font-size: 20px; line-height: 1.3; color: var(--muted); transition: color .35s var(--ease); }
.step.is-active .step-title, .step-btn:hover .step-title { color: var(--ink); }
.step-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.step-desc > p { overflow: hidden; font-size: 16px; line-height: 1.5; color: var(--muted); }
.step.is-active .step-desc { grid-template-rows: 1fr; }
.step.is-active .step-desc > p { padding-top: 10px; }
.step .bar { position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.step.is-active .bar { animation: tabfill var(--dur, 6s) linear forwards; }
.steps-grid.paused .step.is-active .bar { animation-play-state: paused; }
.step-media { position: relative; aspect-ratio: 640 / 456; overflow: hidden; background: #111; color: #FAFAF9; }
.step-media .m { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 1.6s var(--ease-out); }
.step-media .m.is-active { opacity: 1; transform: none; }
.step-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 8, .7) 0%, rgba(8, 8, 8, .1) 50%, rgba(8, 8, 8, .35) 100%); }
.step-cap { position: absolute; inset: 0; z-index: 1; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.step-cap .eyebrow { color: #FAFAF9; letter-spacing: .14em; }
.step-cap-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(250, 250, 249, .35); }
.step-num { white-space: nowrap; font-family: var(--serif); font-size: clamp(40px, 3.9vw, 56px); line-height: 1; letter-spacing: -.02em; }
.step-cap-bottom .eyebrow { color: rgba(250, 250, 249, .78); padding-bottom: 6px; text-align: right; max-width: 60%; }
.step-cap [data-cap] { transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
.step-cap.swap [data-cap] { opacity: 0; transform: translateY(6px); }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person-media { aspect-ratio: 307 / 400; overflow: hidden; background: var(--bg-alt2); }
.person-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.1s var(--ease-out), filter .6s var(--ease); filter: grayscale(.25) contrast(1.02); }
.person:hover .person-media img { transform: scale(1.04); filter: none; }
.person-line { position: relative; height: 1px; background: var(--line); margin-top: 16px; }
.person-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.person:hover .person-line::after { transform: scaleX(1); }
.person h3 { margin-top: 28px; }
.person .small { margin-top: 4px; }

/* ---------- Resultados ---------- */
.results { border-bottom: 1px solid var(--line); }
.result { position: relative; display: grid; grid-template-columns: minmax(0, 640px) 1fr 240px 40px; align-items: center; gap: 24px; padding: 34px 0 32px; border-top: 1px solid var(--line); }
.result::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.result:hover::before { transform: scaleX(1); }
.result-meta { display: flex; gap: 18px; margin-top: 12px; }
.result-area { grid-column: 3; font-size: 15px; line-height: 1.5; }
.result .arr { grid-column: 4; justify-self: end; width: 11px; height: 11px; transition: transform .35s var(--ease); }
.result:hover .arr { transform: translate(2px, -2px); }
.result-preview { position: absolute; left: 0; top: 50%; width: 213px; height: 151px; margin: -75px 0 0 -106px; pointer-events: none; z-index: 2; overflow: hidden; opacity: 0; transform: translate3d(var(--x, 800px), 0, 0) scale(.85); transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
.result-preview img { width: 100%; height: 100%; object-fit: cover; }
.result:hover .result-preview { opacity: 1; transform: translate3d(var(--x, 800px), 0, 0) scale(1); }

/* ---------- Clientes ---------- */
.clients-head .sec-row { align-items: flex-end; }
.rating { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 6px; }
.stars { display: inline-flex; gap: 4px; color: var(--gold); }
.stars svg { width: 13px; height: 13px; }
.rating .r-main { font-size: 15px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tcard { width: 360px; flex: none; padding: 8px 28px 8px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.tcard .stars svg { width: 11px; height: 11px; color: var(--ink); }
.tcard .stars { color: var(--ink); }
.tcard blockquote { margin: 0; font-size: 17px; line-height: 1.55; flex: 1; }
.tcard .who { font-size: 15px; }
.verified { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.verified .chk { width: 12px; height: 12px; color: var(--muted); }
.verified span + span::before { content: "·"; margin-right: 10px; }
.featured { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 640px); justify-content: space-between; gap: 56px; align-items: center; margin: 72px auto; }
.featured-media { aspect-ratio: 520 / 550; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured .stars { color: var(--ink); margin-bottom: 26px; }
.featured blockquote { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(28px, 2.64vw, 38px); line-height: 1.3; letter-spacing: -.01em; }
.featured .who { font-size: 15px; margin-bottom: 6px; }
.facts { margin-top: 44px; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; text-align: right; }

/* ---------- Artículos ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post .eyebrow { margin-bottom: 16px; }
.post-media { aspect-ratio: 412 / 260; overflow: hidden; background: var(--bg-alt2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.post:hover .post-media img { transform: scale(1.05); }
.post h3 { margin-top: 22px; transition: color .3s; }
.post:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---------- Preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 800px); justify-content: space-between; gap: 56px; }
.faq-side .eyebrow { margin-bottom: 24px; }
.faq-side .h-section { margin-bottom: 26px; }
.mail-link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mail-link .arr { width: 9px; height: 9px; transition: transform .35s var(--ease); }
.faq { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; text-align: left; font-size: 20px; line-height: 1.3; letter-spacing: -.005em; }
.faq-icon { position: relative; width: 34px; height: 34px; flex: none; border: 1px solid var(--line-strong); transition: transform .45s var(--ease), border-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.4px; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q:hover .faq-icon { border-color: var(--ink); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 64px 26px 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- CTA ---------- */
.cta-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 440px); justify-content: space-between; gap: 56px; align-items: center; }
.cta-grid .h-section { margin-bottom: 26px; }
.cta-grid .lead { max-width: 520px; margin-bottom: 30px; font-size: 17px; }
.offices { border-top: 1px solid var(--line); }
.office { padding: 18px 0; border-bottom: 1px solid var(--line); }
.office-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 6px; }
.office-top .h-ui { font-size: 20px; }
.clock { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.status { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .6; }
.status.open::before { background: var(--gold); opacity: 1; box-shadow: 0 0 0 3px rgba(184, 146, 58, .18); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); padding: 96px 0 0; overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); }
.foot-col { border-left: 1px solid var(--line); padding: 0 28px 10px; }
.foot-col .eyebrow { margin-bottom: 22px; }
.foot-col li + li { margin-top: 10px; }
.foot-col a { font-size: 15px; position: relative; transition: color .25s; }
.foot-col a:hover { color: var(--muted); }
.foot-office + .foot-office { margin-top: 22px; }
.foot-office .h-ui { font-size: 15px; margin-bottom: 6px; }
.foot-office .small { margin-top: 4px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 64px; }
.foot-bottom .small { margin-top: 12px; max-width: 640px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.foot-legal a:hover { color: var(--ink); }
.wordmark { position: relative; margin: 40px auto 0; width: min(var(--wrap), 100% - 2 * var(--gutter)); aspect-ratio: var(--wm-ar, 4.3); }
.wordmark video, .wordmark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wordmark svg { position: absolute; max-width: none; left: -2px; top: -2px; width: calc(100% + 4px); height: calc(100% + 4px); }
.wordmark .wm-fill { fill: var(--bg-alt); transition: fill .4s var(--ease); }
.wordmark text { font-family: var(--serif); }

/* ---------- Página de créditos ---------- */
.page-head { padding: calc(var(--nav-h) + 72px) 0 48px; }
.page-head .h-display { margin: 20px 0 18px; }
.credits-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.credits-table th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.credits-table td { overflow-wrap: anywhere; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits-table img { width: 96px; height: 64px; object-fit: cover; }
.credits-table a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.credits-table .cell-img { width: 112px; }
.credits-note { margin-top: 32px; max-width: 760px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav-links { gap: 22px; }
}
@media (max-width: 1100px) {
  .nav-links, .nav-right .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .mega { display: none; }
  .result { grid-template-columns: minmax(0, 1fr) 220px 32px; }
  .result-area { grid-column: 2; }
  .result .arr { grid-column: 3; }
}
@media (min-width: 1101px) {
  .mobile-menu { display: none; }
}

@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .logo { gap: 9px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-name { font-size: 16px; letter-spacing: .07em; white-space: nowrap; }
  .logo-rule { margin: 4px 0 3px; }
  .logo-sub { font-size: 6px; letter-spacing: .3em; white-space: nowrap; }
  .nav-right { gap: 8px; }
  .lang { font-size: 14px; }
  .step-cap { padding: 20px; }
  .step-cap-bottom { padding-bottom: 14px; }
  .icon-btn { width: 36px; height: 36px; }
  .menu-btn { height: 36px; padding: 0 14px; }

  /* hero apilado, sin expansión */
  .hero { height: auto; }
  .hero-sticky { position: relative; height: auto; min-height: 0; overflow: visible; padding-top: var(--nav-h); display: flex; flex-direction: column; }
  .hero-content, .hero-content .wrap { display: contents; }
  .hero-slides { order: 1; position: relative; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; }
  .hero-media { order: 2; }
  .hero-tabs { order: 3; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
  .hero-slide { position: relative; top: auto; transform: none; grid-area: 1 / 1; padding: 36px 0 32px; }
  .hero-media { position: relative; clip-path: none; aspect-ratio: 390 / 230; width: 100%; }
  .hero-shade { display: none; }
  .hero-tabs { position: relative; height: auto; padding: 14px 0 0; gap: 16px; }
  .hero-tab { padding: 10px 0; }
  .hero-tab span { display: none; }
  .hero-tab::before { top: 10px; }
  .hero-tab .bar { top: 9.5px; }
  .hero-tab-current { display: block !important; grid-column: 1 / -1; font-size: 17px; padding: 8px 0 26px; }

  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 20px 0 20px 16px; font-size: 15px; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }

  .statement { height: 170vh; }

  .section { padding: 72px 0 88px; }
  .sec-head { margin-bottom: 40px; }
  .sec-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .sec-row .btn { margin-bottom: 0; }
  .rating { align-items: flex-start; text-align: left; }

  .stats { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .stat .eyebrow { margin-top: 14px; }
  .firm { padding-bottom: 88px; }

  .areas-grid { grid-template-columns: 1fr 1fr; gap: 48px 20px; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .result { grid-template-columns: 1fr 24px; gap: 10px 16px; padding: 26px 0; }
  .result-area { grid-column: 1; grid-row: 2; font-size: 14px; color: var(--muted); }
  .result .arr { grid-column: 2; grid-row: 1; align-self: start; margin-top: 8px; }
  .result-preview { display: none; }
  .featured { grid-template-columns: 1fr; gap: 32px; margin: 48px auto; }
  .featured-media { aspect-ratio: 4 / 3; }
  .tcard { width: 290px; padding: 6px 20px; }
  .posts { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-q { font-size: 18px; }
  .faq-a p { padding-right: 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .foot-col:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-col:first-child { padding-left: 0; border-left: 0; }

  .mobile-cta { display: flex; position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 55; gap: 8px; transition: transform .45s var(--ease); }
  .mobile-cta .btn { height: 46px; }
  .mobile-cta .btn-primary { flex: 1; justify-content: center; }
  .mobile-cta .btn-outline { background: var(--bg); padding: 0 16px; }
  .mobile-cta.hide { transform: translateY(140%); }
  body { padding-bottom: 66px; }
}

@media (max-width: 599px) {
  .areas-grid, .team-grid { grid-template-columns: 1fr; }
  .team-grid { gap: 36px; }
  .person-media { aspect-ratio: 4 / 4.6; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-col { border-left: 0; padding: 0; }
  .lang select { padding-right: 14px; }
  .lang { font-size: 13px; }
  .h-section { font-size: clamp(34px, 9.5vw, 42px); }
  .h-display { font-size: clamp(36px, 10vw, 44px); }
  .credits-table .cell-img { display: none; }
  .credits-table td, .credits-table th { padding-right: 10px; font-size: 13px; }
}

@media (max-width: 380px) {
  .logo-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none !important; }
}
