:root {
  --navy: #050b1f;
  --navy2: #0a1433;
  --blue: #1E3E96;
  --sds: #1E3E96;
  --yellow: #FACB05;
  --ink: #eef3ff;
  --mute: #9fb0d6;
  --line: rgba(160, 190, 255, .16);
  --glass: rgba(12, 24, 60, .55);
  --radius: 22px;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: rgb(var(--c-fondo)); color: rgb(var(--c-ink));
  font: 16px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.ico { width: 1em; height: 1em; flex: none; }

/* ================= HERO ================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; overflow: hidden;
  --ink: #eef3ff; --mute: #9fb0d6; --line: rgba(160, 190, 255, .16); background: var(--navy); color: var(--ink); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--yellow); z-index: 4; }
/* Secciones bajo el hero: siguen el tema claro/oscuro del kit SDS */
.sec, .clients, .foot { --ink: rgb(var(--c-ink)); --mute: rgb(var(--c-mute)); --line: rgb(var(--c-line) / .8); color: var(--ink); }
.bg, .bg > * { position: absolute; inset: 0; }
.bg { z-index: -1; }
.bg-photos div {
  position: absolute; inset: -6%; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.2s ease; filter: saturate(.9) contrast(1.05);
}
.bg-photos div.on { opacity: .34; animation: kenburns 11s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
.bg-photos::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,11,31,.55), rgba(5,11,31,.35) 40%, rgba(5,11,31,.95)); }

.bg-aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .45; mix-blend-mode: screen;
}
.bg-aurora i:nth-child(1) { background: radial-gradient(circle, #1d4ed8, transparent 65%); left: -20vmax; top: -25vmax; animation: drift1 18s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(2) { background: radial-gradient(circle, #f7c600, transparent 60%); right: -28vmax; bottom: -30vmax; opacity: .22; animation: drift2 22s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(3) { background: radial-gradient(circle, #0ea5e9, transparent 60%); left: 30%; top: 40%; opacity: .25; animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 14vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vmax, -12vmax) scale(1.2); } }
@keyframes drift3 { to { transform: translate(-22vmax, -18vmax) scale(.8); } }

.bg-grid {
  top: 45%; bottom: -30%; left: -50%; right: -50%;
  background-image:
    linear-gradient(rgba(96,140,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,140,255,.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: top center;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
  animation: gridmove 3.5s linear infinite;
}
@keyframes gridmove { to { background-position: 0 64px, 0 64px; } }
#fx { width: 100%; height: 100%; }
.bg-vignette { background: radial-gradient(ellipse at center, transparent 45%, rgba(3,6,18,.85)); }

/* top bar */
.topbar {
  display: flex; align-items: center; gap: 24px; padding: 18px clamp(16px, 4vw, 48px);
  position: relative; z-index: 3;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.brand .brand-logo { height: 30px; color: #fff; display: block; }
.brand span { color: var(--yellow); }
.topnav { display: flex; gap: 6px; margin-left: auto; }
.topnav a { text-decoration: none; color: var(--mute); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 999px; transition: .2s; }
.topnav a:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; padding-left: 16px; border-left: 1px solid var(--line); }
.clock b { font: 700 24px/1 var(--display); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.clock span { font-size: 11px; color: var(--mute); text-transform: capitalize; }

/* orbit layout */
.orbit {
  flex: 1; position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: 8px clamp(16px, 4vw, 56px) 72px; max-width: 1480px; width: 100%; margin: 0 auto;
}
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.links path { fill: none; stroke-width: 2; }
.links .base { stroke: rgba(140,170,255,.14); }
.links .flow { stroke-dasharray: 6 18; animation: flow 1.6s linear infinite; filter: drop-shadow(0 0 4px currentColor); }
@keyframes flow { to { stroke-dashoffset: -48; } }
.links circle { filter: drop-shadow(0 0 6px currentColor); }

.col { display: flex; flex-direction: column; gap: 18px; }

/* app tiles — botones grandes */
.tile {
  --c: var(--yellow);
  position: relative; display: flex; align-items: center; gap: 18px; min-height: 124px;
  padding: 20px 22px; border-radius: var(--radius); text-decoration: none;
  background: linear-gradient(135deg, rgba(20,38,92,.78), rgba(8,16,44,.78));
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  transform-style: preserve-3d; transition: transform .25s ease, border-color .25s, box-shadow .25s;
  overflow: hidden; opacity: 0;
}
.loaded .tile { animation: tileIn .9s cubic-bezier(.2,.9,.25,1.15) forwards; animation-delay: calc(.9s + var(--i) * .11s); }
.col-l .tile { --from: -80px; } .col-r .tile { --from: 80px; }
@keyframes tileIn { from { opacity: 0; transform: translateX(var(--from)) scale(.9); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.tile::before { /* luz que sigue al mouse */
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 28%, transparent), transparent 45%);
}
.tile::after { /* barrido de brillo */
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent); transform: skewX(-18deg);
}
.tile:hover::after { animation: shine .9s ease; }
@keyframes shine { to { left: 130%; } }
.tile:hover, .tile:focus-visible { border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 26px 60px -18px color-mix(in srgb, var(--c) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.1); outline: none; }
.tile:hover::before { opacity: 1; }
.tile-ico {
  width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; font-size: 34px; flex: none;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  box-shadow: 0 0 30px -6px color-mix(in srgb, var(--c) 60%, transparent);
  transform: translateZ(30px);
}
.tile-txt { min-width: 0; transform: translateZ(20px); }
.tile-txt b { display: block; font: 700 clamp(22px, 2vw, 27px)/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.tile-txt small { display: block; color: var(--c); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 3px 0 5px; }
.tile-txt p { margin: 0; color: var(--mute); font-size: 13.5px; line-height: 1.4; }
.tile-go { margin-left: auto; font-size: 22px; color: var(--mute); transition: .25s; transform: translateZ(20px); }
.tile:hover .tile-go { color: var(--c); transform: translateZ(20px) translate(3px, -3px); }
.col-r .tile { flex-direction: row; }

/* core / logo */
.core { text-align: center; display: flex; flex-direction: column; align-items: center; }
.logo-wrap { position: relative; width: min(100%, 380px); aspect-ratio: 1.36; display: grid; place-items: center; margin-bottom: 18px; }
.ring { position: absolute; left: 50%; top: 50%; width: 118%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(247,198,0,.5); transform: translate(-50%,-50%) scale(.5); opacity: 0; }
.loaded .ring { animation: sonar 4.2s cubic-bezier(.2,.6,.3,1) infinite; }
.loaded .ring.r2 { animation-delay: 1.4s; border-color: rgba(96,140,255,.55); }
.loaded .ring.r3 { animation-delay: 2.8s; }
@keyframes sonar { 0% { transform: translate(-50%,-50%) scale(.45); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(1.25); opacity: 0; } }
.logo-card { position: relative; width: 100%; opacity: 0; transform: scale(.6) rotateX(30deg); z-index: 1; }
.core .logo-card.sds-logo3d { width: 100%; aspect-ratio: 545 / 336; }
.loaded .logo-card { animation: logoIn 1.3s cubic-bezier(.2,.9,.2,1.2) forwards; }
.logo-card .sds-l3-rot { filter: drop-shadow(0 30px 50px rgba(29,78,216,.55)) drop-shadow(0 0 40px rgba(250,203,5,.25)); }
@keyframes logoIn { to { opacity: 1; transform: none; } }

.title { margin: 0; font: 800 clamp(46px, 6.2vw, 84px)/.9 var(--display); letter-spacing: .06em; }
.title span { display: inline-block; opacity: 0; transform: translateY(40px); }
.loaded .title span { animation: up .9s cubic-bezier(.2,.9,.2,1) forwards; }
.loaded .title .t2 { animation-delay: .15s; }
.title .t2 { color: var(--yellow); text-shadow: 0 0 40px rgba(247,198,0,.5); }
@keyframes up { to { opacity: 1; transform: none; } }
.subtitle { color: var(--mute); max-width: 360px; margin: 12px auto 18px; opacity: 0; }
.loaded .subtitle, .loaded .quick { animation: up .9s ease .5s forwards; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; opacity: 0; transform: translateY(20px); }
.chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); transition: .2s; }
.chip:hover { background: var(--yellow); color: #111; border-color: var(--yellow); }

.scroll-cue { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; z-index: 3; width: 28px; height: 44px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--yellow); animation: cue 1.8s ease infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ================= SECCIONES ================= */
.sec { max-width: 1280px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px) 0; }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.eyebrow { color: rgb(var(--c-acento)); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 8px; }
.eyebrow.center { text-align: center; }
.sec h2 { font: 800 clamp(34px, 4.6vw, 56px)/1 var(--display); letter-spacing: .02em; margin: 0 0 14px; text-transform: uppercase; }
.lead { color: var(--mute); font-size: 17px; margin: 0; }
.lead a { color: var(--ink); text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* manuales */
.man-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.man {
  --c: var(--yellow); position: relative; border-radius: var(--radius); padding: 24px; overflow: hidden;
  background: rgb(var(--c-panel)); border: 1px solid var(--line); box-shadow: var(--sombra);
}
.man:hover { box-shadow: var(--sombra-alta); }
.man::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c), transparent); }
.man-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.man-top .tile-ico { width: 54px; height: 54px; font-size: 26px; border-radius: 14px; transform: none; }
.man-top b { font: 700 25px/1 var(--display); text-transform: uppercase; display: block; }
.man-top span { color: var(--mute); font-size: 13px; }
.docs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; text-decoration: none;
  background: rgb(var(--c-panel2)); border: 1px solid transparent; transition: .2s; font-weight: 500; font-size: 15px; color: var(--ink); }
.doc:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); transform: translateX(4px); }
.doc .ico { font-size: 22px; color: var(--c); }
.doc em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; background: rgb(var(--c-line) / .6); color: var(--mute); }
.doc.poe em { background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); }
.man-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; border-radius: 14px; text-decoration: none; font-weight: 700;
  background: var(--c); color: #0a0f1e; transition: .2s; }
.man-open:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--c); }

/* galería */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button { font: 600 14px Inter, sans-serif; color: var(--mute); background: rgb(var(--c-panel)); box-shadow: var(--sombra); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: .2s; }
.filters button[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: #14213D; box-shadow: 0 3px 0 #C9A300; }
.filters button:hover:not([aria-selected="true"]) { color: var(--ink); border-color: rgb(var(--c-acento) / .5); }
.masonry { columns: 4 260px; column-gap: 16px; }
.ph { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: rgb(var(--c-panel2)); box-shadow: var(--sombra);
  border: 1px solid var(--line); opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.2,1); }
.ph.in { opacity: 1; transform: none; }
.ph[hidden] { display: none; }
.ph img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.9,.2,1); }
.ph:hover img { transform: scale(1.07); }
.ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 13px; font-weight: 600;
  color: #fff; background: linear-gradient(transparent, rgba(3,8,24,.92)); transform: translateY(40%); opacity: 0; transition: .35s; }
.ph:hover figcaption, .ph:focus-visible figcaption { transform: none; opacity: 1; }
.ph:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(2,5,15,.94); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(8px); }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: min(1200px, 100%); animation: lbIn .35s ease; }
@keyframes lbIn { from { opacity: 0; transform: scale(.95); } }
.lb img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lb figcaption { text-align: center; color: var(--mute); margin-top: 12px; }
.lb button { position: absolute; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; cursor: pointer; }
.lb button:hover { background: var(--yellow); color: #111; }
.lb-x { top: 18px; right: 18px; } .prev { left: 18px; } .next { right: 18px; }

/* sedes */
.sedes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; }
.sede { color: #fff; box-shadow: var(--sombra); position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.sede img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.9,.2,1); }
.sede:hover img { transform: scale(1.06); }
.sede::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(3,8,24,.95)); }
.sede div { position: relative; z-index: 1; padding: 26px; }
.sede b { font: 800 32px/1 var(--display); text-transform: uppercase; display: block; margin-bottom: 8px; }
.sede p { margin: 0 0 16px; color: #cdd8f5; max-width: 480px; }
.btn-y { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; background: var(--yellow); color: #111; transition: .2s; }
.btn-y:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px var(--yellow); }

/* clientes */
.clients { padding: clamp(64px, 8vw, 110px) 0 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; padding: 10px 0; }
.track img { height: 88px; width: auto; border-radius: 14px; background: #fff; padding: 8px; filter: grayscale(1) contrast(1.1); opacity: .75; transition: .3s; }
.track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* redes */
.social { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.soc { --c: var(--yellow); display: flex; align-items: center; gap: 16px; padding: 26px 24px; border-radius: var(--radius); text-decoration: none; min-height: 116px;
  background: rgb(var(--c-panel)); border: 1px solid var(--line); box-shadow: var(--sombra); color: var(--ink); transition: .25s; position: relative; overflow: hidden; }
.soc:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 22px 48px -20px var(--c); }
.soc .tile-ico { width: 60px; height: 60px; font-size: 30px; transform: none; }
.soc b { display: block; font: 700 24px/1.05 var(--display); text-transform: uppercase; }
.soc span { color: var(--mute); font-size: 14px; word-break: break-word; }
.soc.ig { --c: #e1306c; }
.soc.ig .tile-ico { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; border: 0; }

.foot { text-align: center; padding: 90px 16px 50px; color: var(--mute); font-size: 14px; }
.foot .foot-logo { display: block; height: 40px; width: max-content; margin: 0 auto 14px; }
.foot { border-top: 4px solid var(--yellow); margin-top: 90px; padding-top: 60px; }
.foot p { margin: 4px 0; }
.foot b { color: var(--ink); }
.muted { opacity: .7; font-size: 12.5px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .orbit { grid-template-columns: 1fr 1fr; padding-top: 0; }
  .core { grid-column: 1 / -1; order: -1; margin-bottom: 8px; }
  .logo-wrap { width: min(80%, 320px); }
  .links { display: none; }
  .col-l .tile, .col-r .tile { --from: 0; }
  .topnav { display: none; }
  .clock { margin-left: auto; }
}
@media (max-width: 640px) {
  .orbit { grid-template-columns: 1fr; gap: 14px; }
  .col { gap: 14px; }
  .tile { min-height: 104px; padding: 16px; gap: 14px; }
  .tile-ico { width: 56px; height: 56px; font-size: 28px; }
  .scroll-cue { display: none; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .ph { margin-bottom: 10px; border-radius: 12px; }
  .lb-nav { top: auto; bottom: 18px; }
  .sede { min-height: 300px; }
  .track img { height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bg-grid, .bg-aurora { animation: none; }
}

/* fondo animado suave para las secciones bajo el hero */
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 30%, rgba(30,62,150,.10), transparent 70%),
    radial-gradient(35% 30% at 85% 70%, rgba(247,198,0,.08), transparent 70%),
    radial-gradient(30% 30% at 60% 20%, rgba(14,165,233,.10), transparent 70%);
  animation: bodyAurora 30s ease-in-out infinite alternate;
}
@keyframes bodyAurora { to { transform: translate(6%, -5%) rotate(8deg) scale(1.1); } }

/* Inclinacion 3D (kit SDS) junto con la aparicion al hacer scroll */
.reveal.in.sds-tilt { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.reveal.sds-tilt.sds-tilt-on { transition: transform .08s linear, box-shadow .25s; }
