/* =============================================================
   Gestoría CelPaganetti — styles
   1. Tokens · 2. Reset · 3. Utilities · 4. Type · 5. Components
   6. Sections · 7. Effects · 8. Responsive · 9. Reduced motion
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --white: #ffffff;
  --paper: #f7faff;
  --mist: #eef4fb;
  --ink: #0a1230;
  --ink-2: #33456a;
  --mute: #6a7b99;
  --line: rgba(12, 32, 90, 0.10);
  --line-2: rgba(12, 32, 90, 0.16);

  --sky: #a5dbf3;
  --sky-2: #d6eefa;
  --steel: #2e70ad;
  --royal: #0a14bf;
  --royal-2: #1f33e6;
  --navy: #050a2b;
  --navy-2: #0b1450;
  --ok: #0fa37f;

  --ic-fill: rgba(165, 219, 243, 0.75);
  --ic-accent: var(--royal);
  --ic-badge: var(--royal);

  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 22px;
  --radius-lg: 32px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;

  --shadow-sm: 0 1px 2px rgba(10, 20, 80, .06), 0 4px 14px rgba(10, 20, 80, .05);
  --shadow: 0 2px 4px rgba(10, 20, 80, .04), 0 18px 40px -12px rgba(10, 20, 100, .18);
  --shadow-lg: 0 4px 10px rgba(10, 20, 80, .05), 0 40px 90px -24px rgba(10, 20, 120, .35);

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

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.03em; font-family: var(--display); }
::selection { background: var(--royal); color: #fff; }
:focus-visible { outline: 2px solid var(--royal-2); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilities ------------------------------------------------- */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--royal); color: #fff; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 10vw, 130px); }

.ic { width: 20px; height: 20px; flex: none; }
.ic-duo { width: 28px; height: 28px; flex: none; color: var(--royal); }
.ic-lg { width: 40px; height: 40px; }
.f { fill: var(--ic-fill); stroke: none; }
.s { stroke: var(--ic-accent); }
.b { fill: var(--ic-badge); stroke: none; }
.w { stroke: #fff; }

/* 4. Typography ------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
}
.eyebrow.on-dark, .on-dark .eyebrow { color: var(--sky); }
.h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.02;
  margin-top: 1rem;
}
em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--royal) 10%, var(--steel) 60%, #5aa6dc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.on-dark em, .contact em {
  background: linear-gradient(100deg, #cfeeff 0%, var(--sky) 50%, #7fc3ec 100%);
  -webkit-background-clip: text; background-clip: text;
}
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--ink-2); max-width: 56ch; margin-top: 1.2rem; }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }

/* 5. Components ------------------------------------------------ */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -0.01em; white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out), background .3s, color .3s;
  isolation: isolate; overflow: hidden;
}
.btn .ic { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--royal-2), var(--royal) 55%, #0710a0);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 30px -10px rgba(10, 20, 191, .65);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(165,219,243,.55), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 40px -10px rgba(10, 20, 191, .75); }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,.7); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--steel); background: #fff; }
.btn-light { color: var(--navy); background: #fff; box-shadow: 0 20px 40px -12px rgba(0,0,0,.4); }
.btn-sm { padding: .7rem 1.15rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* Plate (patente Mercosur) */
.plate {
  --pw: 220px;
  width: var(--pw); border-radius: 8px; overflow: hidden;
  background: #fff; border: 2px solid #111a33;
  box-shadow: 0 1px 0 #fff inset, 0 8px 18px -8px rgba(10,20,80,.35);
  display: grid; font-family: var(--mono);
}
.plate-band {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, #1c3fbf, #0a1f94); color: #fff;
  font-size: calc(var(--pw) * .042); letter-spacing: .18em; font-weight: 600; padding: 3px 0;
}
.flag { width: 14px; height: 9px; border-radius: 1px; background: linear-gradient(#74acdf 33%, #fff 33% 66%, #74acdf 66%); display: inline-block; }
.plate-num {
  text-align: center; font-weight: 600; font-size: calc(var(--pw) * .15); letter-spacing: .06em;
  color: #0b0f1f; padding: 2px 0 4px;
}
.plate-sm { --pw: 180px; }

/* Chips */
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem .7rem .7rem; border-radius: 18px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow);
  font-size: .82rem; line-height: 1.25;
}
.chip b { display: block; font-weight: 700; color: var(--ink); }
.chip small { color: var(--mute); font-size: .76rem; }
.chip-ic {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky-2); color: var(--royal);
}
.chip-ic.ok { background: #d9f6ee; color: var(--ok); }
.chip-ic .ic { width: 18px; height: 18px; stroke-width: 2.2; }

/* 6. Sections -------------------------------------------------- */

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: #fff;
  animation: splashAuto .8s var(--ease-out) 3.2s forwards; /* safety net */
}
.splash-inner { display: grid; justify-items: center; gap: 1.2rem; }
.splash-mark { width: 74px; height: auto; overflow: visible; }
.sm { transform-origin: 0% 50%; transform-box: fill-box; opacity: 0; animation: smIn .9s var(--ease-out) forwards; }
.sm-1 { animation-delay: .1s; } .sm-2 { animation-delay: .22s; } .sm-3 { animation-delay: .34s; }
.splash.is-out { animation: splashOut .9s var(--ease-out) forwards; }
@keyframes smIn { from { opacity: 0; transform: translateX(-18px) scaleX(.4) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes splashOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes splashAuto { to { opacity: 0; visibility: hidden; } }
html:not(.js) .splash { display: none; }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--sky), var(--steel), var(--royal)); }

/* Nav */
.nav {
  position: fixed; inset: 14px 0 auto 0; z-index: 50; padding-inline: var(--gutter);
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-130%); }
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding: .55rem .55rem .55rem 1.1rem; border-radius: 999px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 30px -14px rgba(10,20,120,.25);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled .nav-inner { background: rgba(255,255,255,.88); box-shadow: 0 10px 40px -12px rgba(10,20,120,.28); }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { width: 30px; height: 38px; }
.brand-word { display: grid; line-height: 1; font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -.02em; color: var(--ink); }
.brand-word small { font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #52708f; margin-bottom: 3px; }
.nav-links { position: relative; display: none; gap: .2rem; }
.nav-links a { position: relative; z-index: 1; padding: .55rem .95rem; font-size: .92rem; font-weight: 500; color: var(--ink-2); border-radius: 999px; transition: color .3s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--royal); }
.nav-pill { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; border-radius: 999px; background: var(--mist); opacity: 0; transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s; }

/* Hero */
.hero { position: relative; min-height: 100svh; padding-top: clamp(120px, 16vh, 170px); padding-bottom: 90px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.mesh { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; }
.mesh-1 { width: 46vw; height: 46vw; right: -8vw; top: -14vw; background: radial-gradient(circle, var(--sky) 0%, transparent 65%); animation: drift 22s ease-in-out infinite; }
.mesh-2 { width: 34vw; height: 34vw; right: 18vw; bottom: -10vw; background: radial-gradient(circle, rgba(46,112,173,.45) 0%, transparent 65%); animation: drift 28s ease-in-out -6s infinite reverse; }
.mesh-3 { width: 30vw; height: 30vw; left: -10vw; top: 10vh; background: radial-gradient(circle, rgba(10,20,191,.14) 0%, transparent 65%); animation: drift 26s ease-in-out -3s infinite; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(3vw, 2vw) scale(1.08); } 66% { transform: translate(-2vw, 3vw) scale(.95); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 0%, transparent 75%);
  opacity: .55;
}
.guilloche { position: absolute; pointer-events: none; }
.guilloche svg { width: 100%; height: 100%; overflow: visible; }
.hero .guilloche { width: 900px; height: 900px; right: -260px; top: -180px; opacity: .5; animation: spin 140s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.wv { fill: none; stroke-width: 1.4; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.4s var(--ease-out) forwards; }
.wv-1 { stroke: var(--sky); animation-delay: .9s; }
.wv-2 { stroke: rgba(46,112,173,.55); animation-delay: 1.05s; }
.wv-3 { stroke: rgba(10,20,191,.35); animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(15,163,127,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(15,163,127,0); } 100% { box-shadow: 0 0 0 0 rgba(15,163,127,0); } }
.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(2.8rem, 6.2vw, 5.5rem); font-weight: 800; letter-spacing: -0.045em; word-spacing: .07em; line-height: .98;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-size: 1.08em; letter-spacing: -0.02em; }
.hero-sub { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--ink-2); max-width: 44ch; }
.hero-ctas { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-visual { position: relative; height: clamp(520px, 62vw, 640px); }
/* 3D tilt only while the pointer is over it, so at rest the card renders as a flat, crisp layer */
.doc.is-tilting { transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); }
.hero-photo {
  position: absolute; right: 0; top: 0; width: 64%; height: 88%;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,10,43,.55)); }

.doc {
  --rx: 0deg; --ry: 0deg;
  position: absolute; left: 0; bottom: 0; z-index: 3; width: min(360px, 78%);
  padding: 1.3rem 1.3rem 1.1rem; border-radius: 24px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-lg);
  transition: transform .6s var(--ease-out);
  overflow: hidden;
}
.doc::before { /* security-paper lines */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(165,219,243,.28) 9px 10px);
  mask-image: linear-gradient(180deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
}
.doc-shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px circle at var(--sx, 50%) var(--sy, 0%), rgba(255,255,255,.7), transparent 60%); mix-blend-mode: soft-light; }
.doc-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.doc-tag { padding: .3rem .6rem; border-radius: 999px; background: var(--royal); color: #fff; font-weight: 600; }
.doc-id { color: var(--mute); }
.doc-title { margin: .9rem 0 .8rem; font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; }
.doc .plate { --pw: 190px; margin-bottom: .9rem; }
.doc-fields { display: grid; gap: .45rem; }
.doc-fields div { display: grid; grid-template-columns: 84px 1fr; align-items: baseline; gap: .6rem; padding-bottom: .45rem; border-bottom: 1px dashed var(--line-2); }
.doc-fields dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.doc-fields dd { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--ink); min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-fields dd.is-typing::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--royal); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.doc-sign { margin-top: .6rem; display: flex; align-items: flex-end; gap: .8rem; }
.doc-sign svg { width: 124px; height: 40px; }
.doc-sign path { fill: none; stroke: var(--royal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 0; }
.doc-sign span { font-size: .66rem; font-family: var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 6px; border-top: 1px solid var(--line-2); padding-top: 4px; }
.doc-progress { margin-top: .9rem; height: 6px; border-radius: 6px; background: var(--mist); overflow: hidden; }
.doc-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--dp, 1)); background: linear-gradient(90deg, var(--sky), var(--steel), var(--royal)); transition: transform .5s var(--ease-out); }
.doc-foot { margin-top: .5rem; display: flex; justify-content: space-between; font-size: .76rem; color: var(--mute); }
.doc-pct { font-family: var(--mono); font-weight: 600; color: var(--royal); }
.stamp {
  position: absolute; right: 16px; top: 88px;
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 2px;
  border: 2.5px solid var(--royal); color: var(--royal);
  font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .14em;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 4px rgba(255,255,255,.6), inset 0 0 0 4px rgba(10,20,191,.12);
  transform: rotate(-14deg); opacity: 1;
}
.stamp::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(10,20,191,.5); }
.stamp svg { width: 26px; height: 32px; }
.stamp.is-hidden { opacity: 0; transform: rotate(-14deg) scale(1.9); }
.stamp.is-slam { animation: slam .55s var(--ease-bounce) forwards; }
@keyframes slam { 0% { opacity: 0; transform: rotate(-4deg) scale(2.1); } 60% { opacity: 1; transform: rotate(-16deg) scale(.92); } 100% { opacity: 1; transform: rotate(-14deg) scale(1); } }

.chip-a { left: 8%; top: 4%; }

/* Ribbon marquee */
.ribbon { position: relative; z-index: 2; isolation: isolate; color: #fff; padding: 1.3rem 0; margin-top: -26px; overflow-x: clip; }
/* the slanted band is drawn behind; the text itself stays straight so it renders crisp */
.ribbon::before { content: ""; position: absolute; z-index: -1; inset: 0 -3%; background: linear-gradient(90deg, #0a14bf, #1426d6 50%, #0a14bf); transform: skewY(-1.6deg); box-shadow: 0 20px 50px -20px rgba(10,20,191,.6); }
.ribbon-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; will-change: transform; backface-visibility: hidden; -webkit-font-smoothing: antialiased; }
.ribbon span { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -.02em; white-space: nowrap; }
.ribbon span:nth-of-type(even) { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 2.3vw, 1.8rem); color: var(--sky); }
.ribbon i { flex: none; width: 14px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 10 12%27%3E%3Cpath fill=%27%23a5dbf3%27 d=%27M4 0C7 2 10 5 10 11 8 7 5 6 4 4 3 3 3 1 4 0Z%27/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section head */
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Trámites */
.tramites { background: #fff; }
.tram-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tram {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
  padding: 1.2rem; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--paper));
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s, opacity .9s var(--ease-out);
}
.tram::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(165,219,243,.5), transparent 60%); }
.tram:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(46,112,173,.35); }
.tram:hover::before { opacity: 1; }
.tram-name { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.02em; line-height: 1.2; }
.tram-go { position: absolute; right: 1rem; top: 1.1rem; width: 20px; height: 20px; color: #1fb855; opacity: 0; transform: translateX(-6px); transition: all .4s var(--ease-out); }
.tram:hover .tram-go { opacity: 1; transform: none; }
.ic-box {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, #fff, var(--sky-2)); border: 1px solid rgba(46,112,173,.18);
  box-shadow: 0 1px 0 #fff inset, 0 8px 18px -10px rgba(10,20,191,.4);
  transition: transform .6s var(--ease-bounce);
}
.tram:hover .ic-box { transform: rotate(-6deg) scale(1.06); }

/* Nosotros */
.about { background: linear-gradient(180deg, var(--paper), #fff); }
.about-grid { max-width: 860px; }
.about-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: #e9edf0; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.about-badge { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: .8rem; align-items: center; padding: 1rem; border-radius: 18px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: .84rem; color: var(--mute); line-height: 1.35; box-shadow: var(--shadow); }
.about-badge b { display: block; color: var(--ink); }
.values { margin-top: 2.2rem; display: grid; gap: 1.1rem; }
.values li { display: flex; gap: 1rem; align-items: flex-start; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.values b { display: block; color: var(--ink); font-size: 1.02rem; }

/* Contacto */
.contact { position: relative; min-height: 92vh; display: grid; align-items: center; overflow: hidden; color: #fff; text-align: center; isolation: isolate; }
.contact-media { position: absolute; inset: -12% 0; z-index: -3; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-overlay { position: absolute; inset: 0; z-index: -2; background: radial-gradient(80% 70% at 50% 45%, rgba(10,20,191,.55), rgba(5,10,43,.92) 75%), linear-gradient(180deg, rgba(5,10,43,.3), rgba(5,10,43,.9)); }
.guilloche-contact { width: 1000px; height: 1000px; left: 50%; top: 50%; margin: -500px 0 0 -500px; opacity: .22; z-index: -1; animation: spin 160s linear infinite; }
.contact-inner { padding-block: clamp(90px, 12vw, 140px); display: grid; justify-items: center; }
.contact-title { margin: 1rem 0 1.2rem; max-width: 16ch; font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.contact-lead { color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 40ch; }
.btn-wa { margin-top: 2.4rem; padding: 1.25rem 2.2rem; font-size: 1.12rem; color: #fff; background: linear-gradient(135deg, #25d366, #16a34a); box-shadow: 0 0 0 8px rgba(37,211,102,.14), 0 24px 50px -16px rgba(37,211,102,.7); }
.btn-wa .ic { width: 24px; height: 24px; }
.btn-wa:hover { box-shadow: 0 0 0 12px rgba(37,211,102,.18), 0 28px 60px -16px rgba(37,211,102,.8); }
.contact-list { margin-top: 2.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2rem; }
.contact-list li { display: flex; align-items: center; gap: .55rem; color: rgba(255,255,255,.85); font-size: .95rem; }
.contact-list .ic { color: var(--sky); width: 18px; height: 18px; }
.contact-list a:hover { color: var(--sky); }


/* Footer */
.footer { position: relative; background: var(--navy); color: rgba(255,255,255,.65); overflow: hidden; }
.footer .brand-word { color: #fff; }
.footer .brand-word small { color: var(--sky); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 2.4rem 1.4rem; font-size: .86rem; }
.footer-bottom a:hover { color: #fff; }
.footer-giant { font-family: var(--display); font-weight: 800; letter-spacing: -.06em; font-size: 14.2vw; line-height: .8; text-align: center; white-space: nowrap; background: linear-gradient(180deg, rgba(165,219,243,.2), rgba(165,219,243,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #1fb855; box-shadow: 0 14px 30px -8px rgba(31,184,85,.6); transition: transform .5s var(--ease-bounce); }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1fb855; animation: ring 2.6s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* 7. Effects --------------------------------------------------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
html.js [data-reveal].in { opacity: 1; transform: none; }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-w > span { display: inline-block; transform: translateY(0); }
html.js [data-split].is-split .split-w > span { transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
html.js [data-split].is-split.in .split-w > span { transform: none; }
html.js .hero-title .line > span { transform: translateY(105%); }
html.js .hero-copy .hero-sub, html.js .hero-copy .hero-ctas, html.js .hero-eyebrow { opacity: 0; transform: translateY(18px); }
html.js .hero-photo { clip-path: inset(100% 0 0 0 round 32px); }
html.js .doc, html.js .chip { opacity: 0; }
html.is-ready .hero-title .line > span { transform: none; transition: transform 1.2s var(--ease-out); }
html.is-ready .hero-title .line:nth-child(2) > span { transition-delay: .08s; }
html.is-ready .hero-title .line:nth-child(3) > span { transition-delay: .16s; }
html.is-ready .hero-title .line:nth-child(4) > span { transition-delay: .24s; }
html.is-ready .hero-copy .hero-sub, html.is-ready .hero-copy .hero-ctas, html.is-ready .hero-eyebrow { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) .5s, transform 1s var(--ease-out) .5s; }
html.is-ready .hero-copy .hero-ctas { transition-delay: .7s; }
html.is-ready .hero-eyebrow { transition-delay: .1s; }
html.is-ready .hero-photo { clip-path: inset(0 0 0 0 round 32px); transition: clip-path 1.4s var(--ease-out) .2s; }
html.is-ready .doc { opacity: 1; animation: docIn 1.2s var(--ease-out) .55s backwards; }
html.is-ready .chip { opacity: 1; animation: fadeUp 1s var(--ease-out) both; }
html.is-ready .chip-a { animation-delay: 1s; }
@keyframes docIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.chip.floating { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 8. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  .tram-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .tram-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .tram { padding: 1.5rem; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}
@media (min-width: 1280px) {
  .hero-visual { height: 660px; }
}
@media (max-width: 539px) {
  .hero-visual { height: 560px; }
  .hero-photo { width: 78%; height: 70%; }
  .doc { width: 88%; }
  .stamp { width: 78px; height: 78px; top: 80px; font-size: .52rem; }
  .chip-a { left: 0; top: 2%; }
  .hero .guilloche { opacity: .28; }
  .nav-cta span { display: none; }
  .nav-cta { padding: .75rem; }
}

/* 9. Reduced motion — only intrusive loops ------------------------ */
@media (prefers-reduced-motion: reduce) {
  .mesh, .guilloche, .ribbon-track { animation: none !important; }
  .contact-media { inset: 0; }
}

/* Vehicle types */
.vtypes { margin-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.vtypes li { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem .55rem .8rem; border-radius: 999px; background: var(--mist); border: 1px solid rgba(46,112,173,.18); color: var(--royal); font-weight: 600; font-size: .9rem; }
.vtypes .ic { width: 16px; height: 16px; stroke-width: 2.4; }

/* Mobile: hero is text-only; the form animation lives below the services */
.visual-slot { display: none; }
@media (max-width: 959px) {
  .hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 110px; padding-bottom: 90px; }
  .hero-grid { width: 100%; }
  .visual-slot { display: block; padding: 10px var(--gutter) 90px; background: #fff; overflow: hidden; }
  .visual-slot .hero-visual { max-width: 520px; margin-inline: auto; }
}

/* Mobile nav: logo on the left, no WhatsApp button (the floating one stays) */
@media (max-width: 719px) {
  .nav-cta { display: none; }
  .nav-inner { justify-content: flex-start; padding: .7rem 1.1rem; }
}

/* Mobile hero: no buttons (floating WhatsApp stays) */
@media (max-width: 719px) {
  .hero-ctas { display: none; }
}

/* WhatsApp chat bubble above the floating button (translucent glass) */
.wa-bubble {
  position: fixed; right: 18px; bottom: 92px; z-index: 41;
  padding: .7rem 1.05rem; border-radius: 18px 18px 6px 18px;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(6px) saturate(140%); -webkit-backdrop-filter: blur(6px) saturate(140%);
  border: 1px solid rgba(255,255,255,.6);
  color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-style: normal; font-weight: 400; font-size: 1rem; letter-spacing: 0; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 10px 26px -12px rgba(10,20,80,.3);
  opacity: 0; pointer-events: none;
  transition: opacity 2.5s ease-in-out;
}
.wa-bubble::after { content: ""; position: absolute; right: 22px; top: 100%; width: 14px; height: 8px; background: rgba(255,255,255,.5); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.wa-bubble.is-on { opacity: 1; pointer-events: auto; }

/* Gestor a cargo */
.gestor { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); max-width: 460px; }
.gestor-info { display: grid; line-height: 1.3; }
.gestor-info small { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.gestor-info b { font-family: var(--display); font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); margin: .15rem 0 .1rem; }
.gestor-info span { font-size: .9rem; color: var(--ink-2); }

/* Mobile hero: fills the whole first screen, bigger title */
@media (max-width: 539px) {
  .hero-title { font-size: clamp(3rem, 13.5vw, 3.6rem); }
  .hero-sub { font-size: 1.12rem; margin-top: 1.8rem; }
}

/* Desktop hero title sized so each phrase sits on its own line */
@media (min-width: 960px) {
  .hero-title { font-size: clamp(3.4rem, 4.9vw, 4.6rem); }
}

/* "Otro trámite" spans the full row so the grid always closes evenly */
.tram-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: center; gap: 1rem; }
.tram-wide .tram-go { position: static; opacity: 1; transform: none; }

/* Icon sprite holder */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Footer legal links */
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-links a { color: rgba(255,255,255,.75); transition: color .3s; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-bottom: 1.6rem; font-size: .78rem; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.1rem; }

/* Cookie notice (technical storage only) */
.cookie-note {
  position: fixed; left: 16px; bottom: 16px; z-index: 45;
  width: min(380px, calc(100% - 104px));
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  padding: .9rem 1rem; border-radius: 18px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .84rem; line-height: 1.45; color: var(--ink-2);
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.cookie-note[hidden] { display: none; }
.cookie-note.is-on { opacity: 1; transform: none; }
.cookie-note p { flex: 1 1 200px; }
.cookie-note a { color: var(--royal); text-decoration: underline; text-underline-offset: 2px; }
.cookie-ok { padding: .55rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .84rem; }
.cookie-ok:hover { background: var(--royal); }

/* Developer credit */
.footer-credit { padding-bottom: 1.4rem; font-size: .78rem; color: rgba(255,255,255,.45); }
.footer-credit a { color: rgba(255,255,255,.8); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(165,219,243,.4); text-underline-offset: 3px; transition: color .3s; }
.footer-credit a:hover { color: var(--sky); }
