/* =============================================================
   ABOGADOS & ASOCIADOS — "Expediente institucional"
   Papel gris-frío + tinta grafito + acento carmesí institucional.
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --paper:      #F2F1EE;   /* papel gris-blanco frío */
  --paper-2:    #E9E7E1;   /* alterna */
  --paper-3:    #DFDCD3;   /* tabs / bordes de carpeta */
  --ink:        #1C1A18;   /* grafito casi negro */
  --ink-soft:   #56514B;
  --ink-faint:  #85807A;
  --line:       rgba(28,26,24,.16);
  --line-soft:  rgba(28,26,24,.09);

  --dark:       #131110;   /* bloques oscuros (hero scrim, cierre) */
  --dark-2:     #1D1918;
  --cream:      #F5F1E9;   /* texto sobre oscuro */

  --accent:     #A32328;   /* carmesí institucional — "tinta de sello" */
  --accent-2:   #C93A3F;   /* realce / hover */
  --accent-deep:#7A181C;
  --accent-soft:rgba(163,35,40,.12);

  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans:  "Karla", "Inter", -apple-system, sans-serif;
  --mono:  "PT Mono", "IBM Plex Mono", ui-monospace, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); font-family: var(--serif); font-weight: 600; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; padding: .7rem 1.1rem;
  background: var(--ink); color: var(--cream); z-index: 9999; border-radius: 4px; font-weight: 600;
  font-size: .85rem;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: .55em; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block; }
.eyebrow--light { color: var(--cream); }
.eyebrow--light::before { background: var(--cream); opacity: .7; }

section { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { font-size: 1.05rem; color: var(--ink-soft); margin-top: 1rem; }
.bg-alt { background: var(--paper-2); }
.bg-dark { background: var(--dark); color: var(--cream); }
.bg-dark h2, .bg-dark h3 { color: var(--cream); }
.bg-dark .eyebrow { color: var(--accent-2); }

.hairline { height: 1px; background: var(--line); border: 0; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
em, i.accent { font-style: italic; color: var(--accent); }
.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 700; font-size: .92rem;
  padding: .95rem 1.6rem; border-radius: 2px; transition: transform .3s var(--ease-out), background .3s, box-shadow .3s, color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--cream); box-shadow: 0 14px 30px -14px rgba(163,35,40,.55); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(163,35,40,.6); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-ghost-light { border: 1.5px solid rgba(245,241,233,.35); color: var(--cream); }
.btn-ghost-light:hover { border-color: var(--cream); background: rgba(245,241,233,.08); transform: translateY(-3px); }

/* --- Sello institucional (dispositivo-firma) --- */
.seal { width: 100%; height: 100%; }
.seal circle, .seal path, .seal text { fill: none; stroke: currentColor; }
.seal-mark { color: var(--accent); }

/* --- Nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500; padding-block: 1.15rem;
  transition: background .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s;
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: flex; align-items: center; gap: .7rem; color: var(--cream); }
.nav__mark { width: 34px; height: 34px; flex: none; color: var(--accent-2); }
.nav__word { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; line-height: 1.05; }
.nav__word small { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream); opacity: .68; font-weight: 400; margin-top: .18rem; }
.nav__links { display: none; align-items: center; gap: 1.9rem; }
.nav__links a { font-size: .88rem; font-weight: 600; color: var(--cream); opacity: .85; position: relative; padding-block: .3rem; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--accent-2); transition: width .35s var(--ease-out); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: none; }
.nav__burger { display: grid; place-items: center; width: 42px; height: 42px; color: var(--cream); }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 22px; height: 1.6px; background: currentColor; position: relative; transition: transform .3s var(--ease-out), opacity .3s;
}
.nav__burger span::before { position: absolute; top: -7px; }
.nav__burger span::after { position: absolute; top: 7px; }

.nav.is-stuck { background: rgba(242,241,238,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding-block: .75rem; }
.nav.is-stuck .nav__brand, .nav.is-stuck .nav__links a, .nav.is-stuck .nav__burger { color: var(--ink); }
.nav.is-stuck .nav__word small { color: var(--ink-soft); }
.nav.is-stuck .nav__mark { color: var(--accent); }

.nav__mobile {
  position: fixed; inset: 0; z-index: 490; background: var(--paper); transform: translateY(-100%);
  transition: transform .5s var(--ease-out); display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
}
.nav__mobile.is-open { transform: translateY(0); }
.nav__mobile ul { display: flex; flex-direction: column; gap: 1.1rem; }
.nav__mobile a { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); }
.nav__mobile .btn { margin-top: 2rem; width: fit-content; }

/* --- Chips --- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; padding: .5rem .9rem;
  border: 1px solid rgba(245,241,233,.28); border-radius: 999px; color: var(--cream); background: rgba(245,241,233,.06);
}

/* --- Pestaña de expediente (dispositivo-firma principal) --- */
.folder {
  border: 1.5px solid var(--paper-3); border-radius: 3px; background: var(--paper); overflow: hidden;
}
.exp {
  display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-soft);
}
.exp:first-child { border-top: 0; }
.exp__tab {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem clamp(1.2rem, 3vw, 2.2rem); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.exp__tab-l { display: flex; align-items: baseline; gap: 1rem; min-width: 0; }
.exp__code { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; color: var(--accent); flex: none; }
.exp__name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink); }
.exp__plus { width: 26px; height: 26px; flex: none; position: relative; }
.exp__plus::before, .exp__plus::after { content:""; position:absolute; background: var(--ink); transition: transform .35s var(--ease-out), background .3s; }
.exp__plus::before { top:50%; left:2px; right:2px; height:1.5px; transform: translateY(-50%); }
.exp__plus::after { left:50%; top:2px; bottom:2px; width:1.5px; transform: translateX(-50%); }
.exp.is-open .exp__plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.exp.is-open .exp__code, .exp.is-open .exp__name { color: var(--accent); }
.exp__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.exp__body-in { overflow: hidden; }
.exp.is-open .exp__body { grid-template-rows: 1fr; }
.exp__desc { padding: 0 clamp(1.2rem, 3vw, 2.2rem) 1.5rem; max-width: 640px; }
.exp__desc p { margin-bottom: 1rem; }
.exp__link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: .15rem; }
.exp__link:hover { color: var(--accent-2); border-color: var(--accent-2); }
.exp__more { padding: 1.4rem clamp(1.2rem, 3vw, 2.2rem); font-family: var(--mono); font-size: .82rem; color: var(--ink-faint); border-top: 1px solid var(--line-soft); }

/* --- Confianza / stats --- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
.trust__item { border-top: 1.5px solid var(--line); padding-top: 1rem; }
.trust__num { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--ink); display: block; }
.trust__num .accent-mark { color: var(--accent); }
.trust__label { font-size: .86rem; color: var(--ink-soft); margin-top: .35rem; }

/* --- Diferenciador --- */
.why { display: grid; gap: 0; }
.why__item { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; padding-block: 1.5rem; border-top: 1px solid var(--line-soft); }
.why__item:first-child { border-top: 0; }
.why__num { font-family: var(--mono); font-size: .82rem; color: var(--accent); padding-top: .25rem; }
.why__item h3 { margin-bottom: .4rem; }
.why__item p { max-width: 60ch; }

/* --- Compromiso (bloque oscuro) --- */
.compromiso { position: relative; overflow: hidden; }
.compromiso__grid { display: grid; gap: 2.5rem; align-items: center; }
.compromiso__seal { width: clamp(140px, 22vw, 220px); aspect-ratio: 1; margin-inline: auto; opacity: .92; }
.compromiso p { color: rgba(245,241,233,.82); font-size: 1.08rem; max-width: 62ch; }
.compromiso p + p { margin-top: 1.1rem; }
.compromiso .btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.compromiso__photo { position: relative; border-radius: 3px; overflow: hidden; aspect-ratio: 4/5; max-width: 380px; margin-inline: auto; }
.compromiso__photo img { width: 100%; height: 100%; object-fit: cover; }
.compromiso__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: var(--cream);
  background: linear-gradient(to top, rgba(11,10,9,.82), transparent);
}

/* --- Momento (banda ancha entre secciones) --- */
.momento { padding: 0; position: relative; }
.momento__frame { aspect-ratio: 21/9; overflow: hidden; }
.momento__frame img { width: 100%; height: 100%; object-fit: cover; }
.momento__cap {
  position: absolute; left: var(--gutter); bottom: 1.1rem; max-width: 34ch;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

/* --- Equipo --- */
.team { display: grid; gap: 2.2rem; }
.member { position: relative; }
.member__frame { position: relative; border-radius: 3px; overflow: hidden; aspect-ratio: 4/5; background: var(--paper-3); }
.member__frame img { width: 100%; height: 100%; object-fit: cover; }
.member__badge {
  position: absolute; top: .9rem; left: .9rem; background: var(--accent); color: var(--cream);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .7rem; border-radius: 999px;
}
.member__info { padding-top: 1.1rem; border-top: 2px solid var(--ink); margin-top: 1.1rem; }
.member__info h3 { margin-bottom: .25rem; }
.member__role { font-size: .95rem; color: var(--ink-soft); margin-bottom: .5rem; }
.member__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); }

/* --- Proceso --- */
.steps { display: grid; gap: 1.8rem; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; }
.step__n { font-family: var(--mono); font-size: 1rem; color: var(--accent); border: 1.5px solid var(--line); border-radius: 999px; width: 46px; height: 46px; display: grid; place-items: center; flex: none; background: var(--paper); }
.step h3 { margin-bottom: .35rem; }

/* --- Cobertura / mapa --- */
.coverage__wrap { max-width: 640px; }
.coverage__note { font-size: .82rem; color: var(--ink-faint); margin-top: 1rem; max-width: 46ch; }

/* --- Opiniones --- */
.reviews { columns: 1; column-gap: 1.5rem; }
.review { break-inside: avoid; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 1.6rem; margin-bottom: 1.5rem; }
.review__stars { color: var(--accent); font-size: .9rem; letter-spacing: .12em; margin-bottom: .8rem; }
.review p { color: var(--ink-soft); font-size: .98rem; }
.review__who { margin-top: 1.1rem; font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 1rem; }

/* --- FAQ --- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ic { width: 22px; height: 22px; flex: none; position: relative; }
.faq__ic::before, .faq__ic::after { content:""; position:absolute; background: var(--ink); transition: transform .3s var(--ease-out); }
.faq__ic::before { top:50%; left:0; right:0; height:1.5px; transform: translateY(-50%); }
.faq__ic::after { left:50%; top:0; bottom:0; width:1.5px; transform: translateX(-50%); }
.faq__item[open] .faq__ic::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq__a { padding-bottom: 1.4rem; max-width: 62ch; color: var(--ink-soft); }

/* --- Cierre / CTA final --- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,10,9,.78), rgba(11,10,9,.35) 55%, rgba(11,10,9,.55)); }
.cta h2 { max-width: 720px; margin-inline: auto; }
.cta p { max-width: 52ch; margin: 1.1rem auto 0; color: rgba(245,241,233,.8); }
.cta .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.2rem; }
.cta__meta { margin-top: 1.6rem; font-family: var(--mono); font-size: .78rem; color: rgba(245,241,233,.6); }

/* --- Footer --- */
.foot { background: var(--dark-2); color: var(--cream); padding-block: 3rem 2rem; }
.foot__top { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(245,241,233,.14); }
.foot__brand { display: flex; align-items: center; gap: .7rem; }
.foot__mark { width: 30px; height: 30px; color: var(--accent-2); flex: none; }
.foot__word { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.foot p.foot__tag { margin-top: .8rem; color: rgba(245,241,233,.6); font-size: .9rem; max-width: 42ch; }
.foot__cols { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.foot__cols h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,241,233,.55); margin-bottom: .9rem; }
.foot__cols ul { display: flex; flex-direction: column; gap: .55rem; }
.foot__cols a { font-size: .9rem; color: rgba(245,241,233,.82); }
.foot__cols a:hover { color: var(--accent-2); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-top: 1.6rem; font-size: .8rem; color: rgba(245,241,233,.5); }
.foot__bottom a { color: rgba(245,241,233,.7); }
.foot__bottom a:hover { color: var(--accent-2); }

/* --- WhatsApp flotante (móvil) --- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 400; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--cream); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(163,35,40,.6);
  transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 27px; height: 27px; }

/* --- Barra de progreso de scroll --- */
.progress { position: fixed; top: 0; left: 0; height: 2.5px; width: 0%; background: var(--accent); z-index: 1001; transition: width .12s linear; }

/* --- Brillo que sigue el cursor (secciones oscuras) --- */
[data-glow] { position: relative; }
[data-glow] > .container { position: relative; z-index: 2; }
[data-glow]::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(201,58,63,.22), transparent 68%);
  transition: opacity .4s var(--ease-out);
}
[data-glow].is-hovering::before { opacity: 1; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero { min-height: 100svh; display: flex; align-items: flex-end; position: relative; padding-top: 6rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 80% center; will-change: transform; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(17,15,14,.96) 0%, rgba(17,15,14,.92) 38%, rgba(17,15,14,.6) 58%, rgba(17,15,14,.15) 80%),
    linear-gradient(to top, rgba(17,15,14,.65) 0%, rgba(17,15,14,0) 40%);
}
.hero__in { padding-bottom: clamp(3rem, 8vw, 5.5rem); max-width: 760px; }
.hero h1 { color: var(--cream); margin-bottom: 1.2rem; }
.hero__sub { color: rgba(245,241,233,.86); font-size: 1.12rem; max-width: 56ch; margin-bottom: 1.8rem; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }

/* =============================================================
   7. Splash "gate trace" (intro, ~2.6s)
   ============================================================= */
.splash { position: fixed; inset: 0; z-index: 1000; background: var(--dark); display: grid; place-items: center; overflow: hidden; animation: splashSafety .01s 6s forwards; }
.splash__bg { position: absolute; inset: 0; }
.splash__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transform: scale(1.04); animation: splashKB 3.4s ease-out forwards; }
.splash__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(19,17,16,.35) 0%, rgba(19,17,16,.88) 72%); }
@keyframes splashKB { from { transform: scale(1.1); } to { transform: scale(1); } }
.splash__frame { position: absolute; inset: clamp(16px, 5.5vmin, 52px); pointer-events: none; z-index: 1; }
.splash__edge { position: absolute; background: rgba(245,241,233,.22); }
.splash__edge::after { content:""; position:absolute; inset:0; background: var(--accent); }
.splash__edge--t, .splash__edge--b { left:0; width:100%; height:1.5px; }
.splash__edge--t { top:0; } .splash__edge--b { bottom:0; }
.splash__edge--l, .splash__edge--r { top:0; width:1.5px; height:100%; }
.splash__edge--l { left:0; } .splash__edge--r { right:0; }
.splash__edge--t::after, .splash__edge--b::after { transform: scaleX(0); }
.splash__edge--l::after, .splash__edge--r::after { transform: scaleY(0); }
.splash__edge--t::after { transform-origin:left;   animation: edgeX .62s linear 0s   forwards; }
.splash__edge--r::after { transform-origin:top;    animation: edgeY .62s linear .6s  forwards; }
.splash__edge--b::after { transform-origin:right;  animation: edgeX .62s linear 1.2s forwards; }
.splash__edge--l::after { transform-origin:bottom; animation: edgeY .62s linear 1.8s forwards; }
@keyframes edgeX { to { transform: scaleX(1); } }
@keyframes edgeY { to { transform: scaleY(1); } }
.splash__runner { position:absolute; top:-4.5px; left:-4.5px; width:10px; height:10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px 2px var(--accent); animation: runnerLap 2.42s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes runnerLap {
  0%   { top:-4.5px; left:-4.5px; }
  25%  { top:-4.5px; left:calc(100% - 5.5px); }
  50%  { top:calc(100% - 5.5px); left:calc(100% - 5.5px); }
  75%  { top:calc(100% - 5.5px); left:-4.5px; }
  100% { top:-4.5px; left:-4.5px; }
}
.splash__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .9rem; opacity: 0; animation: splashLogo .8s var(--ease-out) .5s forwards; }
.splash__word { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2rem); color: var(--cream); text-align: center; letter-spacing: .01em; }
.splash__word small { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-top: .5rem; }
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity .55s var(--ease-out); }
@keyframes splashLogo { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .team { grid-template-columns: repeat(3, 1fr); }
  .compromiso__grid { grid-template-columns: 1fr 1.4fr; }
  .reviews { columns: 2; }
}

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .why__item { grid-template-columns: 80px 1fr; }
  .step { grid-template-columns: 60px 1fr; }
  .reviews { columns: 3; }
  .foot__top { grid-template-columns: 1.2fr 2fr; }
}

@media (min-width: 1280px) {
  .exp__tab:hover .exp__name { color: var(--accent); }
}

/* =============================================================
   9. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .splash__runner, .splash__edge::after { animation: none; }
  .splash__edge::after { transform: none; }
  .splash__in { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
