:root {
  --bg: #0d1424;
  --bg2: #111a2e;
  --surface: #171E30;
  --surface2: #1d2740;
  --line: rgba(255, 255, 255, 0.09);
  --text: #F4F6FB;
  --muted: #A6ADBE;
  --green: #1AFCA1;
  --ink: #0d1424;
  --blue: #0174C7;
  --blue2: #014D82;
  --display: "Orbitron", "Sora", system-ui, sans-serif;
  --body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  touch-action: manipulation;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--green); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: var(--ink);
  font-weight: 600; text-decoration: none;
  padding: 14px 22px; border: 1px solid transparent; border-radius: 12px;
  min-height: 48px; transition: transform .2s var(--ease), filter .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: progress; transform: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.18); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); filter: none; }
.btn--sm { padding: 10px 16px; min-height: 44px; font-size: .95rem; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(13, 20, 36, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.nav .brand { margin-right: auto; }
.brand img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 10px 0; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 8% 0%, rgba(26, 252, 161, 0.14), transparent 65%),
    radial-gradient(50% 60% at 95% 90%, rgba(1, 116, 199, 0.22), transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, black 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { color: var(--green); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin-top: 22px; }
.hero__cta { display: flex; gap: 12px; margin-top: 30px; }
.hero__cta .btn { white-space: nowrap; justify-content: center; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 44px 0 0; justify-content: start; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.stats dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--green); font-variant-numeric: tabular-nums; line-height: 1; }

.wall { position: relative; height: 620px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent); }
.wall__col { overflow: hidden; }
.wall__track { display: flex; flex-direction: column; gap: 14px; animation: drift var(--d, 50s) linear infinite; will-change: transform; }
.wall__col:nth-child(2) .wall__track { animation-direction: reverse; }
.wall__track img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
@keyframes drift { to { transform: translateY(-50%); } }

section { padding-block: clamp(64px, 9vw, 110px); }
.aliados { padding-block: 28px; border-top: 1px solid var(--line); }
.aliados__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }
.aliados__t { font-family: var(--body); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.aliados__logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.aliados__logos li { background: #fff; border-radius: 14px; height: 64px; padding-inline: 28px; display: grid; place-items: center; }
.aliados__logos img { height: 28px; width: auto; }
.pilares { background: var(--bg2); border-block: 1px solid var(--line); }
.pilares h2, .proyectos__head h2 { margin-bottom: 14px; }
.pilares__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.pilar { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .25s, transform .25s var(--ease); }
.pilar:hover { border-color: rgba(26, 252, 161, 0.45); transform: translateY(-2px); }
.pilar svg { width: 40px; height: 40px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pilar h3 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.pilar p { color: var(--muted); font-size: .95rem; flex: 1; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.pilar__link { color: var(--green); text-decoration: none; font-weight: 600; font-size: .95rem; padding-block: 6px; }
.pilar__link:hover { text-decoration: underline; }

.proyectos__head p { color: var(--muted); font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { background: transparent; border: 1px solid rgba(255, 255, 255, 0.18); color: var(--text); border-radius: 999px; padding: 10px 16px; min-height: 44px; font-weight: 500; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); color: var(--ink); border-color: var(--green); font-weight: 600; }
.carrusel { position: relative; margin-top: 28px; }
.grid { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 4px 4px 18px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; -webkit-overflow-scrolling: touch; }
.grid > .card { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; }
.carrusel__btn { position: absolute; top: 40%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(13, 20, 36, 0.85); backdrop-filter: blur(8px); display: grid; place-items: center; transition: border-color .2s, background .2s; }
.carrusel__btn svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carrusel__btn:hover { border-color: var(--green); background: var(--surface2); }
.carrusel__btn--prev { left: -24px; }
.carrusel__btn--next { right: -24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .25s var(--ease); }
.card:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.card__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); border-bottom: 1px solid var(--line); }
.card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.card:hover .card__shot img { transform: scale(1.03); }
.card__shot--phone { display: grid; place-items: end center; background: radial-gradient(80% 90% at 50% 100%, rgba(1, 116, 199, 0.35), var(--bg2) 70%); padding-top: 22px; }
.phone { display: block; width: 44%; aspect-ratio: 390 / 780; border: 5px solid #1A1B1E; border-bottom: 0; border-radius: 26px 26px 0 0; overflow: hidden; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45); background: #000; }
.phone img { object-position: top; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.label { align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: rgba(26, 252, 161, 0.1); border: 1px solid rgba(26, 252, 161, 0.3); border-radius: 999px; padding: 4px 10px; }
.card h3 { font-size: 1.12rem; font-weight: 600; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .btn { align-self: flex-start; margin-top: 6px; }

.contacto { background: var(--bg2); border-top: 1px solid var(--line); }
.contacto__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contacto__copy .btn { margin-top: 28px; }
.contacto__alt { color: var(--muted); margin-top: 18px; font-size: .95rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { background: var(--bg2); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; color: var(--text); font: inherit; padding: 12px 14px; min-height: 48px; transition: border-color .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }
.form__msg { color: var(--muted); min-height: 1.5em; }
.form__msg--ok { color: var(--green); }
.form__msg--err { color: #FF8A8A; }

.footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: .9rem; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__in p:first-of-type { margin-left: auto; }
.footer a { color: var(--text); }

@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .wall { height: 420px; }
  .pilares__grid { grid-template-columns: 1fr 1fr; }
  .contacto__in { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .wall { grid-template-columns: 1fr 1fr; height: 360px; }
  .wall__col:nth-child(3) { display: none; }
  .pilares__grid { grid-template-columns: 1fr; }
  .stats { gap: 20px; }
  .stats dd { font-size: 1.5rem; }
  .form { padding: 20px; }
  .carrusel__btn { display: none; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 0; padding-inline: 12px; }
  .footer__in p:first-of-type { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall__track { animation: none; }
  .btn, .pilar, .card, .card__shot img { transition: none; }
}
