:root {
  --edge-navy: #183d6d;
  --launch-bay: #051e38;
  --network-deep: #022e57;
  --signal-blue: #8bb3da;
  --signal-orange: #fd8d32;
  --ink-orange: #c4560f;
  --coral-start: #ff7a53;
  --coral-end: #ffa84a;
  --graphite: #5f6b78;
  --mist-divider: #d3e2f1;
  --cloud-canvas: #e1f2ff;
  --ice-surface: #eff8ff;
  --white: #fff;
  --lead-on-dark: #d5e5f5;
  --font: "Rubik", "Arial Rounded MT Bold", Arial, sans-serif;
  --shadow-card: 0 6px 40px rgba(0, 0, 0, .04);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cloud-canvas);
  color: var(--edge-navy);
  font: 400 16px/1.5 var(--font);
  font-feature-settings: "kern";
  overflow-x: clip;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--signal-orange); outline-offset: 3px; border-radius: 4px; }
section[id], [id="top"] { scroll-margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; border-radius: 6px;
  background: var(--white); font-weight: 500; transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }

.eyebrow { color: var(--ink-orange); font-weight: 500; }
.eyebrow-light { color: var(--signal-orange); }
h2 { font-size: clamp(32px, 3.2vw + 8px, 40px); font-weight: 700; line-height: 1.2; }

/* Buttons · M7 */
.btn-coral, .btn-outline, .btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 6px; font-weight: 500;
}
.btn-coral {
  padding: 18px 28px; color: var(--white); font-size: 20px; line-height: 1.2;
  background: linear-gradient(90deg, var(--coral-start), var(--coral-end), var(--coral-start));
  background-size: 200% 100%;
  box-shadow: 0 12px 30px rgba(255, 122, 83, .33);
  transition: background-position .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-coral .chev { transition: transform .2s ease; }
.btn-outline {
  padding: 18px 24px; font-size: 18px; font-weight: 400; line-height: 1.2; color: var(--white);
  border: 1px solid var(--white);
  transition: background-color .2s ease, color .2s ease;
}
.btn-sm { padding: 10px 16px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-dark { padding: 14px 20px; background: var(--launch-bay); color: var(--white); transition: background-color .2s ease; white-space: nowrap; }

/* Hero */
.hero-wrap { padding: 20px 20px 0; }
.hero {
  position: relative; min-height: 830px; overflow: hidden; border-radius: 20px;
  background:
    radial-gradient(circle at 74% 54%, #2a2a78, transparent 60%),
    var(--launch-bay);
}
.shader { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.nav {
  position: absolute; z-index: 5; top: 24px; left: 50%; width: min(1180px, 100% - 40px);
  margin-left: calc(min(1180px, 100% - 40px) / -2);
  height: 72px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid rgba(139, 179, 218, .2); border-radius: 20px;
  background: rgba(10, 38, 70, .6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--white);
}
.brand { font-size: 23px; font-weight: 700; display: inline-flex; align-items: flex-end; line-height: 1.2; }
.brand span { margin-left: 1px; font-size: 14px; font-weight: 500; color: var(--signal-orange); line-height: 1.55; }
.nav-panel { display: contents; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { position: relative; line-height: 19px; display: block; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--signal-orange);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-actions { display: flex; align-items: center; gap: 15px; }
.lang { display: flex; gap: 4px; font-size: 14px; color: var(--signal-blue); }
.lang button { padding: 4px 2px; color: inherit; transition: color .2s ease; }
.lang button[aria-pressed="true"] { color: var(--white); font-weight: 500; }
.nav-toggle { display: none; color: var(--white); padding: 6px; }

.hero-copy { position: relative; z-index: 3; margin-left: max(20px, calc(50% - 590px)); width: min(640px, 46%); padding: 164px 0 132px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 15px;
  color: var(--white); border-radius: 9999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(139, 179, 218, .27);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal-orange); }
.hero h1 { margin-top: 26px; font-size: clamp(39px, 4.72vw, 66px); line-height: 1.1; font-weight: 700; color: var(--white); }
.hero-lead { margin-top: 26px; max-width: 560px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; color: var(--lead-on-dark); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-note { margin-top: 26px; font-size: 14px; color: var(--signal-blue); }

.hero-stage { position: absolute; z-index: 2; left: calc(50% + 44px); top: 190px; width: min(42.4%, 593px); aspect-ratio: 668 / 632; }
.hero-stage > .depth:first-child img { width: 100%; }
.depth { translate: var(--px, 0) var(--py, 0); transition: translate .5s var(--ease-out); }
.chip-pos { position: absolute; }
.chip-goles { left: 9.4%; top: 19.6%; rotate: -4deg; }
.chip-flag { left: 66.8%; top: 0; rotate: 5deg; }
.chip-recibo { left: 63.4%; top: 80.2%; rotate: -3deg; }
.chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; white-space: nowrap;
  border-radius: 10px; background: var(--white); box-shadow: 0 14px 40px rgba(0, 0, 0, .27);
}
.chip b { display: block; font-size: 15px; line-height: 1.3; }
.chip small { display: block; font-size: 13px; line-height: 1.3; color: var(--graphite); }
.tile {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 9px; background: var(--launch-bay); color: var(--signal-orange);
}
.tile-lg { width: 48px; height: 48px; border-radius: 10px; }
.tile-xl { width: 52px; height: 52px; border-radius: 12px; }
.tile-navy { background: var(--edge-navy); color: var(--white); }


/* Company rail · M4 */
.rail { padding: 34px 0 30px; text-align: center; }
.rail-label { font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--graphite); margin-bottom: 18px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee.is-running .marquee-track { animation: marquee var(--marquee-duration, 60s) linear infinite; }
.marquee.is-running:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; align-items: center; gap: 76px; padding-right: 76px; }
.marquee-group li { font-size: 27px; font-weight: 600; color: rgba(24, 61, 109, .67); white-space: nowrap; }
@keyframes marquee { to { transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0); } }

/* Metric strip · M5 */
.metrics { width: min(1140px, 100% - 40px); margin: 0 auto 20px; display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { position: relative; padding: 6px 20px; text-align: center; }
.metric strong { display: block; font-size: 45px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric span { display: block; margin-top: 6px; line-height: 1.35; }
.metric:not(:last-child)::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: var(--mist-divider);
  transform-origin: top;
}
.js .metric:not(.is-in):not(:last-child)::after { transform: scaleY(0); }
.js .metric.is-in:not(:last-child)::after { animation: grow-y 1.2s var(--ease-out) both; }
@keyframes grow-y { from { transform: scaleY(0); } }

/* Projects */
.projects { padding: 90px 0 70px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; }
.section-head.split > div { max-width: 720px; }
.section-head h2 { margin-top: 12px; }
.all-link { font-size: 17px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.all-link span:last-child { display: inline-block; transition: transform .2s ease; }

.bento { display: grid; grid-template-columns: minmax(0, 690fr) minmax(0, 426fr); gap: 24px; }
.feature {
  position: relative; min-height: 740px; overflow: hidden; border-radius: 20px;
  padding: 40px; color: var(--white);
  background: linear-gradient(180deg, var(--launch-bay), #23115c);
}
.feature-copy { position: relative; }
.proof {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 14px;
  border-radius: 9999px; background: rgba(255, 255, 255, .08);
}
.proof svg { color: var(--signal-orange); }
.feature h3 { margin-top: 12px; font-size: 45px; line-height: 1.15; font-weight: 700; }
.feature-copy > p:not(.proof) { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--lead-on-dark); }
.ext { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.ext svg { transition: transform .2s ease; }
.ext-orange { margin-top: 18px; color: var(--signal-orange); }
.browser { display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: var(--white); }
.browser-bar { flex: none; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--white); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral-start); }
.browser-bar i:nth-child(2) { background: var(--coral-end); }
.browser-bar i:nth-child(3) { background: var(--signal-blue); }
.browser-screen { flex: 1; overflow: hidden; min-height: 0; }
.browser-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .2s ease; }
.feature-shot {
  position: absolute; left: 70px; top: 290px; width: 690px; height: 490px;
  border: 6px solid var(--white); box-shadow: 0 6px 40px rgba(24, 61, 109, .13);
}
.bento-col { display: flex; flex-direction: column; gap: 24px; }
.card { background: var(--white); border-radius: 10px; box-shadow: var(--shadow-card); }
.lift { transition: transform .2s ease, box-shadow .2s ease; }
.project-card { padding: 20px; flex: 1; }
.browser-lined { height: 170px; border: 1px solid var(--mist-divider); }
.tag { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--ink-orange); }
.project-card h3 { margin-top: 8px; font-size: 28px; line-height: 1.2; font-weight: 700; }
.project-card > p:not(.tag) { margin-top: 8px; font-size: 17px; line-height: 1.5; }
.project-card .ext { margin-top: 14px; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.tool { display: flex; align-items: center; gap: 16px; padding: 18px 20px 18px 24px; }
.tool-text { flex: 1; min-width: 0; }
.tool-text b { display: block; font-size: 20px; line-height: 1.3; }
.tool-text small { display: block; margin-top: 3px; font-size: 16px; line-height: 1.4; }
.tool .chev { transition: transform .2s ease; }

/* Services · M8 */
.services { padding: 50px 0 40px; overflow: clip; }
.section-head.center { width: min(820px, 100% - 40px); margin: 0 auto 30px; text-align: center; }
.support { margin-top: 12px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; }
.stage {
  position: relative; width: min(1340px, 100% - 40px); min-height: 760px; margin: 0 auto;
  display: grid; grid-template-columns: 450px minmax(0, 1fr) 450px; align-items: start;
}
.stage-center { grid-column: 2; grid-row: 1; position: relative; height: 700px; display: grid; place-items: center; }
.stage-char { position: relative; z-index: 1; width: 242px; }
.js .stage-center:not(.is-in) .stage-char { opacity: 0; }
.stage-center.is-in .stage-char { animation: zoom-in .9s var(--spring) both; }
@keyframes zoom-in { from { transform: scale(.1); opacity: 0; } }
.halo {
  position: absolute; top: 50%; left: 50%; width: 580px; height: 580px; margin: -290px 0 0 -290px; border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0) 70%);
  animation: breathing 4s ease-in-out infinite;
}
@keyframes breathing { 0%, 100% { opacity: .55; transform: scale(.82); } 50% { opacity: 1; transform: scale(1); } }
.ring {
  position: absolute; top: 50%; left: 50%; width: 500px; height: 500px; margin: -250px 0 0 -250px; border-radius: 50%;
  border: 1.5px solid rgba(139, 179, 218, .53);
  animation: spin 40s linear infinite;
}
.ring i {
  position: absolute; top: -6px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%;
  background: var(--signal-orange); box-shadow: 0 0 0 5px rgba(253, 141, 50, .2);
}
@keyframes spin { to { transform: rotate(360deg); } }
.stage-col { position: relative; z-index: 2; grid-row: 1; display: flex; flex-direction: column; gap: 106px; }
.stage-left { grid-column: 1; }
.stage-right { grid-column: 3; }
.svc { display: flex; gap: 18px; width: 400px; padding: 20px 22px 20px 24px; }
.stage-left .svc:nth-child(odd) { margin-left: 50px; }
.stage-right .svc:nth-child(even) { margin-left: 50px; }
.svc h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.svc p { margin-top: 6px; line-height: 1.5; }

/* Career */
.career-wrap { padding: 30px 20px 70px; }
.career {
  display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 70px; padding: 70px 90px;
  border-radius: 40px; background: var(--launch-bay); color: var(--white);
}
.portrait { width: 136px; height: 136px; object-fit: cover; border-radius: 50%; border: 3px solid var(--signal-orange); }
.about .eyebrow { margin-top: 24px; }
.about h2 { margin-top: 24px; line-height: 1.15; }
.about-bio { margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--lead-on-dark); }
.stack { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 6px 12px; font-size: 14px; border-radius: 9999px; border: 1px solid rgba(139, 179, 218, .4); }
.companies-title { font-size: 14px; font-weight: 500; color: var(--signal-blue); margin-bottom: 4px; }
.companies li { border-bottom: 1px solid rgba(139, 179, 218, .18); }
.companies a {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) 20px; gap: 20px; align-items: center; padding: 17px 0;
  transition: padding-left .2s ease, background-color .2s ease;
}
.companies b { font-size: 24px; }
.companies a > span > span { display: block; font-weight: 500; line-height: 1.3; }
.companies small { display: block; margin-top: 2px; font-size: 14px; color: var(--signal-blue); }
.companies svg { color: var(--signal-blue); transition: transform .2s ease, color .2s ease; }

/* Book band */
.book-wrap { padding-bottom: 90px; }
.book-band {
  position: relative; min-height: 440px; overflow: hidden; border-radius: 20px; background: #050b16; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 88px 48px 56px;
}
.book-copy { position: relative; z-index: 1; max-width: 640px; }
.book-copy h2 { margin-top: 16px; }
.book-copy p:not(.eyebrow) { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--lead-on-dark); }
.book-copy .btn-coral { margin-top: 16px; padding: 16px 26px; }
.book-cover {
  position: relative; z-index: 1; width: 252px; rotate: 5deg; border-radius: 4px;
  box-shadow: 0 24px 60px rgba(93, 180, 226, .4); transition: transform .2s ease;
}

/* Tarjeta del libro: no bloquea la página */
html[lang="en"] [data-book] { display: none !important; }
/* Sugerencia de idioma: solo aparece en inglés */
.lang-hint {
  position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-radius: 14px;
  background: var(--white); color: var(--edge-navy); box-shadow: 0 20px 60px rgba(5, 30, 56, .3);
  animation: slide-in .5s var(--ease-out); white-space: nowrap;
}
.lang-hint[hidden] { display: none; }
.lang-hint p { font-weight: 500; }
.lang-hint-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--graphite); }
@media (max-width: 720px) {
  .lang-hint { left: 10px; right: 10px; bottom: 10px; transform: none; white-space: normal; padding: 10px 6px 10px 14px; gap: 8px; }
  .lang-hint p { flex: 1; font-size: 15px; }
  .lang-hint .btn-coral { width: auto; padding: 10px 12px; font-size: 15px; }
}
@media print { .lang-hint { display: none; } }

.book-card {
  position: fixed; z-index: 50; right: 24px; bottom: 24px; width: 400px; padding: 18px 44px 18px 18px;
  display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; align-items: center; border-radius: 14px;
  background: #050b16; color: var(--white); box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  animation: slide-in .5s var(--ease-out);
}
.book-card[hidden] { display: none; }
.book-card-cover { grid-row: span 2; width: 84px; border-radius: 3px; box-shadow: 0 8px 24px rgba(93, 180, 226, .3); }
.book-card-copy small { display: block; font-size: 13px; font-weight: 500; color: var(--signal-orange); }
.book-card-copy b { display: block; margin-top: 2px; font-size: 18px; font-weight: 600; line-height: 1.25; }
.book-card-copy p { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--lead-on-dark); }
.book-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.book-card .btn-coral { width: auto; gap: 0; padding: 10px 14px; font-size: 15px; white-space: nowrap; box-shadow: none; }
.book-card-more { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.book-card-close {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--lead-on-dark);
}

/* Contact · M9 */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 50px; align-items: center; padding-bottom: 90px; }
.contact-copy h2 { margin-top: 14px; }
.contact-lead { margin-top: 14px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; }
.rocket-idle { margin: 26px auto 0; width: min(304px, 80%); animation: rocket-idle 3.4s ease-in-out infinite alternate; }
.rocket { width: 100%; position: relative; z-index: 6; }
@keyframes rocket-idle { from { transform: translate(-4px, 6px) rotate(-1.2deg); } to { transform: translate(4px, -6px) rotate(1.2deg); } }
.form-card { padding: 32px; border-radius: 20px; }
form[data-contact-form] { display: flex; flex-direction: column; gap: 16px; }
form[data-contact-form] label > span { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; }
input, textarea {
  display: block; width: 100%; padding: 14px 16px; border-radius: 6px; background: var(--ice-surface);
  border: 1px solid var(--mist-divider); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--graphite); opacity: 1; }
input:focus, textarea:focus { outline: none; background: var(--white); border-color: var(--signal-orange); box-shadow: 0 0 0 3px rgba(253, 141, 50, .22); }
.hp { position: absolute !important; left: -9999px; }
.form-error { padding: 10px 14px; border-radius: 6px; background: #fdecea; color: #a4231a; font-size: 15px; }
.form-direct { text-align: center; font-size: 14px; color: var(--graphite); }
.form-direct a { text-decoration: underline; }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 360px; justify-content: center; animation: slide-in .5s var(--ease-out) both; outline: none; }
.form-done[hidden] { display: none; }
.form-done h3 { font-size: 28px; line-height: 1.2; }
.form-done p { font-size: 17px; }
.form-done p a { text-decoration: underline; }
.link-btn { text-decoration: underline; font-weight: 500; }

/* Footer */
.footer-field { display: grid; grid-template-columns: 480px repeat(3, minmax(0, 1fr)); gap: 60px; padding: 20px 0 60px; }
.newsletter h2 { font-size: 28px; line-height: 1.3; }
.newsletter p { margin-top: 12px; }
.subscribe { display: flex; gap: 8px; margin-top: 18px; }
.subscribe input { background: var(--white); }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col h2 { font-size: 18px; line-height: 1.5; }
.footer-col a { transition: color .2s ease; }
.footer-bar { background: var(--launch-bay); color: var(--white); padding: 26px 0; }
.footer-bar .container { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.footer-bar span:first-child { font-weight: 500; }
.signoff { font-size: 15px; color: var(--signal-blue); }

/* M1 · revealDown */
.hero-in { animation: reveal-down .4s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
.nav.hero-in { animation-name: reveal-down-nav; }
@keyframes reveal-down { from { opacity: 0; translate: 0 -16px; } }
@keyframes reveal-down-nav { from { opacity: 0; translate: 0 -16px; } }

/* M3 · flotación */
.float { animation: float 5s ease-in-out var(--float-delay, 0s) infinite alternate; }
@keyframes float { from { transform: translateY(10px); } to { transform: translateY(-10px); } }

/* M6 · slideInBottom */
.js [data-reveal]:not(.is-in) { opacity: 0; }
[data-reveal].is-in { animation: slide-in .5s var(--ease-out) backwards; animation-delay: var(--stagger, 0ms); }
[data-reveal="left"].is-in { animation-name: slide-from-left; }
[data-reveal="right"].is-in { animation-name: slide-from-right; }
@keyframes slide-in { from { opacity: 0; translate: 0 24px; } }
@keyframes slide-from-left { from { opacity: 0; translate: -48px 0; } }
@keyframes slide-from-right { from { opacity: 0; translate: 48px 0; } }

/* M7 · hover, solo con puntero real */
@media (hover: hover) {
  .btn-coral:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255, 122, 83, .45); }
  .btn-coral:hover .chev { transform: translateX(4px); }
  .btn-outline:hover { background: var(--white); color: var(--launch-bay); }
  .btn-dark:hover { background: var(--edge-navy); }
  .lift:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(24, 61, 109, .14); }
  .lift:hover .browser-screen img { transform: scale(1.02); }
  .lift:hover .ext svg { transform: translate(2px, -2px); }
  .tool:hover .chev { transform: translateX(4px); }
  .all-link:hover span:last-child { transform: translateX(4px); }
  .nav-links a:hover::after { transform: scaleX(1); }
  .lang button:hover { color: var(--white); }
  .companies a:hover { padding-left: 8px; }
  .companies a:hover svg { color: var(--signal-orange); transform: translate(2px, -2px); }
  .footer-col a:hover { color: var(--ink-orange); }
  .book-band:hover .book-cover { transform: translateY(-6px) scale(1.02); }
  .chip:hover { box-shadow: 0 18px 46px rgba(0, 0, 0, .36); }
  .book-card-close:hover { color: var(--white); }
}
.btn-coral:focus-visible .chev { transform: translateX(4px); }

/* Responsive */
@media (max-width: 1340px) {
  .stage { grid-template-columns: minmax(0, 1fr) 270px minmax(0, 1fr); }
  .svc { width: 100%; }
  .stage-left .svc:nth-child(odd), .stage-right .svc:nth-child(even) { margin-left: 0; }
  .stage-col { gap: 60px; }
  .halo { width: 460px; height: 460px; margin: -230px 0 0 -230px; }
  .ring { width: 400px; height: 400px; margin: -200px 0 0 -200px; }
  .stage-char { width: 220px; }
}
@media (max-width: 1240px) {
  .career { grid-template-columns: 360px minmax(0, 1fr); gap: 50px; padding: 60px; }
  .footer-field { grid-template-columns: minmax(0, 1fr) repeat(3, auto); gap: 40px; }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
  .nav-links { gap: 20px; }
}
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav { flex-wrap: nowrap; }
  .nav-panel {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 20px;
    flex-direction: column; gap: 18px; border-radius: 16px; background: #0a2646; border: 1px solid rgba(139, 179, 218, .2);
  }
  .nav.is-open .nav-panel { display: flex; animation: reveal-down .2s ease-out; }
  .nav-links { flex-direction: column; gap: 6px; }
  .nav-links a { padding: 8px 0; font-size: 18px; }
  .nav-actions { justify-content: space-between; }

  .hero { min-height: 0; display: flex; flex-direction: column; padding: 116px 20px 0; }
  /* Atenúa las órbitas detrás del texto cuando el copy queda sobre el campo orbital */
  .hero::before {
    content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: min(62%, 560px); pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 30, 56, .86) 70%, rgba(5, 30, 56, 0));
  }
  .hero-copy { margin-left: 0; padding: 0; width: 100%; max-width: 640px; }
  .hero h1 { font-size: clamp(39px, 7vw, 60px); margin-top: 18px; line-height: 1.12; }
  .hero-lead { margin-top: 16px; font-size: clamp(16px, 2.2vw, 19px); max-width: none; }
  .hero-cta { margin-top: 22px; }
  .hero-note { margin-top: 16px; }
  .hero-stage { position: relative; left: auto; top: auto; width: min(100%, 520px); margin: 28px auto 8px; }
  .chip-pos { display: none; }

  .section-head.split { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .feature { min-height: 0; padding: 28px; }
  .feature-shot { position: relative; left: auto; top: auto; width: calc(100% + 56px); height: auto; aspect-ratio: 16 / 11; margin: 28px -28px -28px 0; border-width: 6px 0 0 6px; }
  .browser-lined { height: auto; aspect-ratio: 16 / 9; }
  .bento-col { flex-direction: column; }

  .stage { display: block; min-height: 0; }
  .stage-center { height: auto; padding: 10px 0 34px; }
  .stage-char { width: 190px; }
  .halo { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .ring { width: 330px; height: 330px; margin: -165px 0 0 -165px; }
  .stage-col { gap: 14px; }
  .stage-right { margin-top: 14px; }

  .career { grid-template-columns: minmax(0, 1fr); padding: 44px 28px; border-radius: 28px; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .footer-field { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .newsletter { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hero-wrap { padding: 10px 10px 0; }
  .nav { top: 10px; width: calc(100% - 20px); margin-left: calc((100% - 20px) / -2); height: 56px; padding: 0 12px 0 16px; border-radius: 16px; }
  .brand { font-size: 19px; }
  .brand span { font-size: 12px; }
  .hero { padding: 84px 16px 0; }
  .btn-coral { width: 100%; font-size: 18px; padding: 16px 20px; }
  .hero-cta .btn-outline { width: 100%; }
  .rail { padding: 24px 0; }
  .marquee-group { gap: 34px; padding-right: 34px; }
  .marquee-group li { font-size: 21px; }
  .metrics { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .metric:nth-child(2)::after { display: none; }
  .metric strong { font-size: 36px; }
  .metric span { font-size: 14px; }
  .projects { padding: 44px 0 34px; }
  .tools { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
  .bento, .bento-col { gap: 16px; }
  .feature h3 { font-size: 36px; }
  .project-card { padding: 12px; }
  .project-card > :not(.browser) { margin-inline: 6px; }
  .svc { padding: 16px; gap: 14px; }
  .tile-xl { width: 44px; height: 44px; border-radius: 10px; }
  .career-wrap { padding: 20px 10px 34px; }
  .companies a { grid-template-columns: minmax(0, 1fr) 20px; gap: 2px 12px; }
  .companies b { grid-column: 1; }
  .companies a > span { grid-column: 1; }
  .companies svg { grid-column: 2; grid-row: 1 / span 2; }
  .book-wrap { padding: 10px 0 34px; width: calc(100% - 20px); }
  .book-band { flex-direction: column-reverse; align-items: stretch; min-height: 0; padding: 28px 20px; gap: 22px; }
  .book-cover { width: 170px; rotate: 0deg; align-self: center; }
  .contact { padding-bottom: 44px; gap: 24px; }
  .form-card { padding: 18px; }
  .footer-field { grid-template-columns: 1fr 1fr; }
  .subscribe { flex-direction: column; }
}

/* Sin JavaScript el marquee queda como una lista estática */
html:not(.js) .marquee-track { width: auto; justify-content: center; }
html:not(.js) .marquee-group { flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 0 20px; }

/* Barra inferior en móvil y en pantallas bajas */
@media (max-width: 720px), (max-height: 500px) {
  .book-card {
    left: 0; right: 0; bottom: 0; width: auto; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 10px; border-radius: 12px 12px 0 0;
    padding: 8px 48px 8px 12px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .book-card-cover { grid-row: auto; width: 34px; box-shadow: none; }
  .book-card-copy small { font-size: 12px; }
  .book-card-copy b { margin-top: 0; font-size: 14px; line-height: 1.2; }
  .book-card-copy p, .book-card-more, .book-card-long { display: none; }
  .book-card-actions { margin-top: 0; }
  .book-card .btn-coral { padding: 9px 12px; font-size: 14px; }
  .book-card-close { top: 12px; }
}

@media (max-width: 360px) {
  .book-card-copy small { display: none; }
}

/* Con prefers-reduced-motion todo queda en su estado final */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal]:not(.is-in), .js .stage-center:not(.is-in) .stage-char { opacity: 1; }
  .js .metric:not(.is-in):not(:last-child)::after { transform: none; }
  .marquee-track { width: auto; justify-content: center; }
  .marquee-group { flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 0 20px; }
}
@media print {
  .js [data-reveal]:not(.is-in), .js .stage-center:not(.is-in) .stage-char { opacity: 1; }
  .shader, .book-card, .skip-link { display: none; }
}
