/* =========================================================
   Metroportes — Transportista en Sevilla y provincia
   Identidad: líneas de metro (arcos + paradas) en azul y rojo
   ========================================================= */

:root {
  --navy-900: #0a1633;
  --navy-800: #0f2049;
  --navy-700: #14295a;
  --logo-blue: #1f3f7d;
  --blue: #2b5bd7;
  --blue-soft: #8fb0ff;
  --red: #d3232b;
  --red-600: #b81c23;
  --red-soft: #ff6b70;
  --cream: #f7f4ee;
  --paper: #ffffff;
  --ink: #0d1a38;
  --muted: #55607a;
  --line: #e4e0d6;
  --wa: #25d366;
  --wa-dark: #128c4b;

  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-lg: 34px;
  --shadow-sm: 0 2px 8px rgba(10, 22, 51, .06);
  --shadow: 0 18px 50px -18px rgba(10, 22, 51, .35);
  --shadow-lg: 0 40px 90px -30px rgba(10, 22, 51, .55);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.sr-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barra de progreso ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-soft)); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.5em; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s;
  will-change: transform;
}
.btn::before { /* barrido de brillo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: scale(.96) !important; }
.btn-wa { --bg: var(--wa); --fg: #062b16; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .7); }
.btn-wa:hover { box-shadow: 0 18px 40px -10px rgba(37, 211, 102, .85); }
.btn-ghost { --bg: rgba(255,255,255,.08); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bg: rgba(255,255,255,.16); }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-sm { padding: .65em 1.15em; font-size: .92rem; }
.btn-lg { padding: 1.1em 1.7em; font-size: 1.05rem; }
.btn-xl { padding: 1.25em 2.2em; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.btn .ico-arrow { transition: transform .4s var(--ease-spring); }
.btn:hover .ico-arrow { transform: translateX(5px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; color: #fff;
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease-out), color .4s;
}
.site-header.is-solid { background: rgba(255,255,255,.88); color: var(--ink); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 rgba(10,22,51,.08); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 54px; height: 32px; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: .02em; line-height: 1; }
.brand-word b { font-weight: 800; color: currentColor; }
.brand-word i { font-style: normal; font-weight: 600; color: var(--red); }
.site-header:not(.is-solid) .brand-word i { color: var(--red-soft); }
.site-header:not(.is-solid) .brand-mark { --logo-blue: #9fb8ff; }
.brand:hover .lm { animation: lm-redraw 1.2s var(--ease-out); }
@keyframes lm-redraw { from { stroke-dasharray: 160; stroke-dashoffset: 160; } to { stroke-dasharray: 160; stroke-dashoffset: 0; } }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a {
  position: relative; display: block; padding: 8px 12px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); cursor: pointer; position: relative; }
.site-header.is-solid .menu-toggle { background: rgba(10,22,51,.07); }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 110px;
  background: radial-gradient(120% 90% at 85% 10%, #1d3a86 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 70% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000 30%, transparent 80%);
  animation: grid-drift 30s linear infinite;
}
@keyframes grid-drift { to { background-position: 64px 64px, 64px 64px; } }
.hero-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.arc { fill: none; stroke-linecap: round; stroke-width: 26; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.4s var(--ease-out) forwards; }
.arc-red { stroke: var(--red); opacity: .55; }
.arc-blue { stroke: #3c6cf0; opacity: .35; animation-delay: .25s; }
.arc-thin { stroke-width: 2; stroke-dasharray: 6 14; stroke-dashoffset: 0; opacity: .35; animation: dash-move 3s linear infinite; }
.hero-arcs path:nth-child(3) { animation-delay: .45s; }
.arc-dot { fill: var(--red); opacity: 0; animation: pop .6s var(--ease-spring) 1.8s forwards; }
.train circle { fill: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,.9)); }
.train .train-blue { fill: var(--blue-soft); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dash-move { to { stroke-dashoffset: -200; } }
@keyframes pop { from { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; } to { opacity: 1; transform: scale(1); transform-box: fill-box; transform-origin: center; } }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

.hero-title { margin: 22px 0 22px; font-size: clamp(2rem, min(9.2vw, 4.4vw + .6rem), 4.4rem); font-weight: 900; line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .word { display: inline-block; }
.hero-title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px #fff; position: relative; }
.hero-title .line-brand { font-size: .42em; letter-spacing: .02em; margin-top: .45em; font-weight: 800; }
.hero-title .line-brand .word { padding: .25em .6em; border-radius: 999px; background: #fff; color: var(--logo-blue); }
.hero-title .line-brand strong { color: var(--red); font-weight: 700; }
.hero-lead { max-width: 560px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.82); }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .95rem; color: rgba(255,255,255,.85); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--wa); width: 1.1em; height: 1.1em; }

/* Entrada del hero */
.js .hero-title .word { transform: translateY(110%); animation: rise 1.1s var(--ease-out) var(--d, 0s) forwards; }
.js .hero-in { opacity: 0; transform: translateY(24px); animation: fade-up 1s var(--ease-out) var(--d, 0s) forwards; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.hero-visual { position: relative; }
.arch {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 10px rgba(255,255,255,.06);
  clip-path: inset(100% 0 0 0 round 999px 999px 34px 34px);
  animation: arch-in 1.4s var(--ease-out) .35s forwards;
}
.no-js .arch { clip-path: none; }
@keyframes arch-in { to { clip-path: inset(0 0 0 0 round 999px 999px 34px 34px); } }
.arch img { width: 100%; height: 118%; object-fit: cover; object-position: 30% 60%; transform: translate3d(0, var(--py, -6%), 0) scale(1.04); }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,22,51,.55)); pointer-events: none; }
.arch-tag {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow);
}
.arch-tag .ico { color: var(--red); }

.spin-badge {
  position: absolute; top: 4%; left: -12%; width: clamp(120px, 12vw, 158px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: #fff; box-shadow: 0 20px 40px -12px rgba(211,35,43,.7);
  transition: scale .5s var(--ease-spring);
}
.spin-badge:hover { scale: 1.08; }
.spin-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.spin-text text { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 3.2px; }
.spin-ico { width: 38%; height: 38%; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; right: -6%; bottom: 18%; padding: 16px 20px; border-radius: 18px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), var(--shadow);
  display: grid; gap: 2px; animation: bob 6s ease-in-out infinite;
}
.fc-num { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.fc-label { font-size: .8rem; color: rgba(255,255,255,.75); max-width: 170px; line-height: 1.35; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 74px; translate: -50% 0; width: 28px; height: 46px; border-radius: 20px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-height: 960px) { .scroll-cue { display: none; } }

/* ---------- Cinta ---------- */
.ribbon {
  position: relative; z-index: 3; margin-top: -48px; transform: rotate(-2deg);
  background: var(--red); color: #fff; padding: 18px 0; overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(211,35,43,.8);
}
.ribbon-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 34s linear infinite; }
.ribbon span { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.6rem); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.ribbon i { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.3); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.section-head-row > div { max-width: 720px; }
.section-head-row .section-sub { max-width: 380px; }
.section-head h2 { margin-top: 14px; }
.section-sub { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 600px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.kicker-line { position: relative; width: 44px; height: 3px; border-radius: 3px; background: currentColor; }
.kicker-line::after { content: ""; position: absolute; right: -4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: currentColor; }
.kicker-light { color: var(--red-soft); }
.hl { position: relative; color: var(--red); white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 1em; background: currentColor; opacity: .2; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out) .4s; }
.is-in .hl::after, .is-in.hl::after { transform: scaleX(1); }
h2.is-in .hl::after { transform: scaleX(1); }
.hl-red { color: var(--red-soft); }

/* Reveal genérico */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Servicios ---------- */
.services { background: var(--cream); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); perspective: 1200px; }
.service-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(10,22,51,.05); overflow: hidden;
  transform-style: preserve-3d;
}
.js .service-card.reveal.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease-out), box-shadow .5s, opacity 1s var(--ease-out) var(--d, 0s); }
.service-card:hover { box-shadow: var(--shadow-lg); }
.sc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.service-card:hover .sc-media img { transform: scale(1.08); }
.sc-line {
  position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 0 0 5px #fff, var(--shadow); transform: translateZ(40px);
}
.sc-line-blue { background: var(--logo-blue); }
.sc-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; transform: translateZ(20px); }
.sc-body p { margin-top: 12px; color: var(--muted); }
.sc-list { margin: 18px 0 24px; display: grid; gap: 8px; }
.sc-list li { position: relative; padding-left: 26px; font-weight: 500; font-size: .96rem; }
.sc-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--red); }
.sc-list li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 1.3em; width: 2px; height: calc(100% - .2em); background: var(--line); }
.sc-cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; color: var(--red); text-decoration: none;
  padding: 10px 0; position: relative;
}
.sc-cta::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 2px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .5s var(--ease-out); }
.sc-cta:hover::after { transform: scaleX(1); }
.sc-cta .ico { transition: transform .4s var(--ease-spring); }
.sc-cta:hover .ico { transform: translateX(6px); }

/* ---------- Ruta (cómo funciona) ---------- */
.route { background: var(--navy-800); color: #fff; overflow: hidden; }
.route::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%; border: 60px solid rgba(211,35,43,.12); pointer-events: none; }
.route-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.route-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.route-intro h2 { margin-top: 14px; }
.route-intro .section-sub { color: rgba(255,255,255,.72); margin-bottom: 32px; }
.route-steps { position: relative; display: grid; gap: clamp(36px, 6vw, 70px); padding: 20px 0; }
.route-line { position: absolute; left: 31px; top: 40px; bottom: 40px; width: 6px; border-radius: 6px; background: rgba(255,255,255,.12); }
.route-line span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--red), var(--red-soft)); transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 26px; align-items: start; }
.step-dot {
  position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); box-shadow: inset 0 0 0 6px rgba(255,255,255,.2);
  font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: rgba(255,255,255,.5);
  transition: box-shadow .6s var(--ease-out), color .6s, background-color .6s, transform .6s var(--ease-spring);
}
.step-body { padding: 22px 26px; border-radius: var(--radius); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: background-color .6s, transform .6s var(--ease-out); }
.step-body p { margin-top: 8px; color: rgba(255,255,255,.72); }
.step.is-active .step-dot { background: var(--red); color: #fff; box-shadow: inset 0 0 0 6px rgba(255,255,255,.95), 0 0 0 8px rgba(211,35,43,.25); transform: scale(1.06); }
.step.is-active .step-body { background: rgba(255,255,255,.09); transform: translateX(6px); }

/* ---------- Clientes ---------- */
.clients { background: var(--paper); }
.clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 30px); }
.client-card { position: relative; min-height: clamp(440px, 46vw, 560px); border-radius: var(--radius-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.client-card img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; transform: translate3d(0, var(--py, 0), 0); }
.client-card::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .6s; }
.client-home::before { background: linear-gradient(180deg, rgba(211,35,43,0) 25%, rgba(150,18,24,.92) 100%); }
.client-biz::before { background: linear-gradient(180deg, rgba(20,41,90,0) 25%, rgba(10,22,51,.95) 100%); }
.client-body { padding: clamp(24px, 3vw, 40px); }
.client-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.client-body h3 { margin: 16px 0 10px; font-size: clamp(1.5rem, 2.6vw, 2.2rem); max-width: 440px; }
.client-body p { color: rgba(255,255,255,.85); max-width: 460px; margin-bottom: 24px; }

/* ---------- Galería ---------- */
.works { background: var(--cream); overflow: hidden; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
.g-col { display: grid; gap: clamp(14px, 2vw, 24px); transform: translate3d(0, var(--py, 0), 0); }
.g-col-offset { margin-top: clamp(40px, 8vw, 120px); }
.g-item { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--line); box-shadow: var(--shadow-sm); }
.g-item img { width: 100%; height: auto; transition: transform 1.1s var(--ease-out), filter .6s; }
.g-item span {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; box-shadow: var(--shadow);
  transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease-out), opacity .5s;
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-item:hover span, .g-item:focus-visible span { transform: none; opacity: 1; }
@media (hover: none) { .g-item span { transform: none; opacity: 1; } }

/* Lightbox */
.lightbox { max-width: min(92vw, 1100px); max-height: 90vh; padding: 0; border: 0; border-radius: var(--radius); background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10,22,51,.86); backdrop-filter: blur(6px); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: var(--radius); }
.lightbox[open] img { animation: lb-in .5s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } }
.lb-close { position: absolute; top: -18px; right: -18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

/* ---------- Zonas / mapa metro ---------- */
.zones { background: var(--navy-900); color: #fff; overflow: hidden; }
.zones .section-sub { color: rgba(255,255,255,.72); }
.metro-map-wrap {
  position: relative; border-radius: var(--radius-lg); padding: clamp(10px, 2vw, 30px);
  background: radial-gradient(70% 90% at 40% 50%, rgba(43,91,215,.18), transparent 70%), rgba(255,255,255,.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.metro-map { display: block; width: 100%; min-width: 680px; height: auto; }
.m-line { fill: none; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out); }
.m-red { stroke: var(--red); }
.m-blue { stroke: var(--blue); }
.m-lines path:nth-child(2) { transition-delay: .2s; }
.m-lines path:nth-child(3) { transition-delay: .35s; }
.m-lines path:nth-child(4) { transition-delay: .5s; }
.m-lines path:nth-child(5) { transition-delay: .65s; }
.no-js .m-line, .is-in .m-line { stroke-dashoffset: 0; }
.m-train { fill: #fff; filter: drop-shadow(0 0 6px #fff); opacity: 0; transition: opacity .6s 2.2s; }
.is-in .m-train { opacity: 1; }
.st circle { fill: #fff; stroke: var(--navy-900); stroke-width: 4; }
.st text { fill: rgba(255,255,255,.9); font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.st-hub circle:first-child { fill: #fff; stroke: var(--red); stroke-width: 6; }
.st-hub .hub-in { fill: var(--red); stroke: none; }
.st-hub text { font-weight: 900; font-size: 22px; letter-spacing: .06em; fill: #fff; }
.js .st { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .5s calc(.6s + var(--i) * .22s), transform .7s var(--ease-spring) calc(.6s + var(--i) * .22s); }
.js .is-in .st { opacity: 1; transform: none; }
.st-hub circle:first-child { animation: hub 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hub { 0%, 100% { stroke-width: 6; } 50% { stroke-width: 10; } }

.zone-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.zone-chips li {
  padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  font-size: .92rem; font-weight: 500; transition: background-color .3s, transform .4s var(--ease-spring), box-shadow .3s;
}
.zone-chips li:hover { background: var(--red); box-shadow: none; transform: translateY(-3px) rotate(-1.5deg); }
.zone-chips .chip-more { background: transparent; box-shadow: none; color: var(--red-soft); font-weight: 700; }
.zones-cta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; padding: 26px 30px; border-radius: var(--radius); background: linear-gradient(100deg, var(--red-600), var(--red)); }
.zones-cta p { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 40px); margin: 0; }
.faq-head .btn { margin-top: 28px; }
.faq-list { display: grid; gap: 14px; }
.faq-list details { border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm), 0 0 0 1px rgba(10,22,51,.05); transition: box-shadow .4s; }
.faq-list details[open] { box-shadow: var(--shadow), 0 0 0 2px var(--red); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 70px 22px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); color: var(--red); font-size: 1.5rem; font-weight: 600;
  transition: transform .5s var(--ease-spring), background-color .3s, color .3s;
}
.faq-list details[open] summary::after { transform: rotate(135deg); background: var(--red); color: #fff; }
.faq-a { padding: 0 26px 24px; color: var(--muted); }
.faq-list details[open] .faq-a { animation: fade-up .6s var(--ease-out); }

/* ---------- CTA final ---------- */
.final-cta { position: relative; padding: clamp(110px, 16vw, 200px) 0; color: #fff; text-align: center; overflow: hidden; isolation: isolate; background: var(--red-600); }
.final-bg { position: absolute; inset: 0; z-index: -1; }
.final-bg img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; opacity: .2; mix-blend-mode: luminosity; filter: grayscale(1) contrast(1.1); transform: translate3d(0, var(--py, 0), 0); }
.final-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 50%, rgba(211,35,43,.5), rgba(130,14,20,.95)); }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-cta h2 { margin: 18px 0 18px; font-size: clamp(3rem, 10vw, 8rem); font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; }
.final-cta .hl-red { color: #fff; -webkit-text-stroke: 0; position: relative; display: inline-block; }
.final-cta .hl-red::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .12em; background: var(--logo-blue); border-radius: 1em; z-index: -1; }
.final-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 560px; color: rgba(255,255,255,.88); margin-bottom: 38px; }
.final-cta .kicker-light { color: #fff; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 80px 0 120px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.brand-light { color: #fff; --logo-blue: #9fb8ff; }
.brand-light .brand-word i { color: var(--red-soft); }
.footer-brand p { margin-top: 18px; max-width: 360px; }
.footer-title { font-family: var(--font-display); font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-nap p + p { margin-top: 6px; }
.footer-nap strong { color: #fff; }
.footer-nap a, .footer-links a { color: #fff; text-decoration: none; background: linear-gradient(var(--red-soft), var(--red-soft)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease-out); }
.footer-nap a:hover, .footer-links a:hover { background-size: 100% 2px; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: rgba(255,255,255,.55); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 150;
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.wa-btn {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 14px 30px -8px rgba(18,140,75,.75);
  transition: transform .5s var(--ease-spring);
}
.wa-btn .ico { width: 34px; height: 34px; }
.wa-btn::before, .wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.6s var(--ease-out) infinite; }
.wa-btn::after { animation-delay: 1.3s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.wa-float:hover .wa-btn { transform: scale(1.1) rotate(-8deg); }
.wa-bubble {
  position: relative; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--ink);
  font-size: .9rem; white-space: nowrap; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(14px) scale(.9); transform-origin: right bottom; pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-spring);
}
.wa-bubble b { color: var(--wa-dark); }
.wa-float:hover .wa-bubble, .wa-float:focus-visible .wa-bubble, .wa-float.show-bubble .wa-bubble { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid > :last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .service-grid > :last-child .sc-media { aspect-ratio: auto; height: 100%; }
  .spin-badge { left: -4%; }
  .float-card { right: -2%; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; color: inherit; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 36px;
    background: var(--navy-900); color: #fff;
    clip-path: circle(0 at calc(100% - 44px) 34px); visibility: hidden;
    transition: clip-path .8s var(--ease-out), visibility 0s .8s;
  }
  .main-nav.is-open { clip-path: circle(150% at calc(100% - 44px) 34px); visibility: visible; transition: clip-path .8s var(--ease-out); }
  .main-nav ul { flex-direction: column; align-items: center; gap: 6px; }
  .main-nav ul a { font-size: 1.8rem; font-weight: 800; }
  .main-nav.is-open ul li { animation: fade-up .7s var(--ease-out) both; }
  .main-nav.is-open ul li:nth-child(2) { animation-delay: .06s; }
  .main-nav.is-open ul li:nth-child(3) { animation-delay: .12s; }
  .main-nav.is-open ul li:nth-child(4) { animation-delay: .18s; }
  .main-nav.is-open ul li:nth-child(5) { animation-delay: .24s; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { color: #fff; }
  body.menu-open .site-header.is-solid { background: transparent; backdrop-filter: none; box-shadow: none; }

  .hero { padding-bottom: 120px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 440px; width: 88%; margin: 10px auto 0; }
  .spin-badge { left: -10%; width: 112px; }
  .float-card { right: -8%; }
  .scroll-cue { display: none; }
  .route-inner, .faq-inner { grid-template-columns: 1fr; }
  .route-intro, .faq-head { position: static; }
  .section-head-row { flex-direction: column; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .service-grid, .clients-grid { grid-template-columns: 1fr; }
  .service-grid > :last-child { display: flex; }
  .service-grid > :last-child .sc-media { aspect-ratio: 4 / 3; height: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-col:last-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .g-col-offset { margin-top: 40px; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas .btn-lg { font-size: .98rem; padding: 1em 1.3em; }
  .hero-ctas .btn-ghost { padding: .9em 1.2em; }
  .hero-ctas .btn-ghost { font-size: .92rem; }
  .eyebrow { font-size: .72rem; letter-spacing: .02em; }
  .hero-copy > * { max-width: 100%; }
  .step { grid-template-columns: 52px 1fr; gap: 16px; }
  .step-dot { width: 52px; height: 52px; font-size: 1.2rem; }
  .route-line { left: 23px; }
  .step-body { padding: 18px 20px; }
  .zones-cta { padding: 22px; }
  .zones-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-btn { width: 60px; height: 60px; }
  .wa-bubble { font-size: .85rem; }
  .float-card { right: -4%; bottom: 10%; padding: 12px 14px; }
  .fc-num { font-size: 1.05rem; }
  .spin-badge { width: 96px; left: -6%; top: 2%; }
  .spin-text text { font-size: 18px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2.35rem; }
  .brand-word { font-size: 1.05rem; }
  .brand-mark { width: 44px; }
}

/* ---------- Movimiento reducido ---------- */
@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; scroll-behavior: auto !important; }
  .ribbon-track, .spin-text, .hero-grid, .float-card, .wa-btn::before, .wa-btn::after, .live-dot, .arc-thin { animation: none !important; }
  .js .hero-title .word, .js .hero-in, .js .reveal, .js .st { opacity: 1 !important; transform: none !important; }
  .arch { clip-path: none !important; }
  .arc { stroke-dashoffset: 0 !important; }
  .train, .m-trains { display: none; }
}
