:root {
  --bg: #0a1626;
  --surface: #11202f;
  --surface-2: #12283a;
  --text: #eaf6f8;
  --muted: #8aa0ad;
  --line: rgba(160, 200, 220, 0.14);
  --accent: #3fd0e0;
  --accent-soft: rgba(63, 208, 224, 0.1);
  --max: 760px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Cielo: estrellas, fugaz y horizonte ---------- */

.sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.stars { position: absolute; inset: -60px; will-change: transform; }

.stars i {
  position: absolute;
  border-radius: 50%;
  background: #cfeef3;
  animation: twinkle 4.5s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { filter: brightness(0.7); }
  50% { filter: brightness(1.6); }
}

.shooting {
  position: absolute;
  top: 14%;
  left: -12%;
  width: 130px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #cfeef3);
  opacity: 0;
  animation: shoot 11s linear infinite 3s;
}

@keyframes shoot {
  0% { transform: translate(0, 0) rotate(16deg); opacity: 0; }
  2% { opacity: 0.9; }
  7% { transform: translate(120vw, 34vh) rotate(16deg); opacity: 0; }
  100% { transform: translate(120vw, 34vh) rotate(16deg); opacity: 0; }
}

.horizon-glow {
  position: absolute;
  left: 50%;
  bottom: -32vh;
  transform: translateX(-50%);
  width: 150vw;
  height: 62vh;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(63, 208, 224, 0.13), transparent 65%);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 22, 38, 0.6);
  border-bottom: 0.5px solid var(--line);
  padding: 0;
}

.site-header .brand {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
}

.site-header .back {
  display: flex;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { width: 28px; height: 28px; flex: none; }

.brand-word {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.brand-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(63, 208, 224, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Contenido ---------- */

main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 64px 0 72px;
  text-align: center;
}

.hero > * {
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero > *:nth-child(1) { animation-delay: 0.05s; }
.hero > *:nth-child(2) { animation-delay: 0.15s; }
.hero > *:nth-child(3) { animation-delay: 0.25s; }
.hero > *:nth-child(4) { animation-delay: 0.35s; }
.hero > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8.5vw, 84px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 20%, #9fd9e3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 12px 0 0;
  font-size: 21px;
  color: var(--muted);
}

.hero-sub {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ---------- Sistema orbital (modo satélite) ---------- */

.ticker {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin: 64px 0 0 calc(50% - 50vw);
  overflow: hidden;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  padding: 15px 0;
  background: rgba(10, 22, 38, 0.45);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 28s linear infinite;
  will-change: transform;
}

.ticker-half {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  flex: none;
}

.ticker span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ticker b {
  color: var(--accent);
  font-weight: 400;
  font-size: 12px;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes tick {
  to { transform: translateX(-50%); }
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.system {
  --r1: 150px;
  --r2: 215px;
  --r3: 280px;
  --icon: 56px;
  --mark: 150px;
  position: relative;
  width: 600px;
  height: 600px;
  margin: 28px auto 0;
  will-change: translate, transform;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(63, 208, 224, 0.16);
  border-radius: 50%;
}

.r1 { width: calc(var(--r1) * 2); height: calc(var(--r1) * 2); }
.r2 { width: calc(var(--r2) * 2); height: calc(var(--r2) * 2); }
.r3 { width: calc(var(--r3) * 2); height: calc(var(--r3) * 2); }

.system-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-mark {
  width: var(--mark);
  height: var(--mark);
  display: block;
  filter: drop-shadow(0 0 44px rgba(63, 208, 224, 0.35));
}

.sat {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: orbit 16s linear infinite;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.sat-app {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--icon);
  height: var(--icon);
  margin: calc(var(--icon) / -2) 0 0 calc(var(--icon) / -2);
  text-decoration: none;
  color: var(--text);
  z-index: 2;
}

.sat-app img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(160, 200, 220, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sat-app:hover img,
.sat-app:focus-visible img {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(63, 208, 224, 0.35);
}

.sat-app span {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  font-size: 12px;
  white-space: nowrap;
  background: rgba(10, 22, 38, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.sat-app:hover span,
.sat-app:focus-visible span { opacity: 1; }

.s1 {
  transform: rotate(30deg) translateX(var(--r1)) rotate(-30deg);
  animation: orb1 22s linear infinite;
}

.s2 {
  transform: rotate(160deg) translateX(var(--r2)) rotate(-160deg);
  animation: orb2 34s linear infinite;
}

.s3 {
  transform: rotate(265deg) translateX(var(--r3)) rotate(-265deg);
  animation: orb3 48s linear infinite;
}

.s4 {
  transform: rotate(40deg) translateX(var(--r2)) rotate(-40deg);
  animation: orb4 40s linear infinite;
}

@keyframes orb1 {
  from { transform: rotate(30deg) translateX(var(--r1)) rotate(-30deg); }
  to { transform: rotate(390deg) translateX(var(--r1)) rotate(-390deg); }
}

@keyframes orb2 {
  from { transform: rotate(160deg) translateX(var(--r2)) rotate(-160deg); }
  to { transform: rotate(520deg) translateX(var(--r2)) rotate(-520deg); }
}

@keyframes orb3 {
  from { transform: rotate(265deg) translateX(var(--r3)) rotate(-265deg); }
  to { transform: rotate(625deg) translateX(var(--r3)) rotate(-625deg); }
}

@keyframes orb4 {
  from { transform: rotate(40deg) translateX(var(--r2)) rotate(-40deg); }
  to { transform: rotate(400deg) translateX(var(--r2)) rotate(-400deg); }
}

.system:hover .sat-app,
.system:hover .sat,
.system:focus-within .sat-app,
.system:focus-within .sat,
.system.paused .sat-app,
.system.paused .sat {
  animation-play-state: paused;
}

.hero-cta {
  display: inline-block;
  margin-top: 34px;
  padding: 11px 22px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 32, 47, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-1px);
}

/* ---------- Políticas ---------- */

.policies { padding: 24px 0 80px; }

.policies h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
}

.section-intro {
  margin: 12px 0 32px;
  color: var(--muted);
  font-size: 16px;
}

.policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-item a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  background: rgba(17, 32, 47, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.policy-item a:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(63, 208, 224, 0.12);
}

.policy-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(160, 200, 220, 0.25);
}

.policy-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.policy-name { font-size: 17px; font-weight: 500; }

.policy-desc { font-size: 14px; color: var(--muted); }

.policy-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.policy-item a:hover .policy-arrow { transform: translateX(4px); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.policy-list .reveal:nth-child(2) { transition-delay: 0.08s; }
.policy-list .reveal:nth-child(3) { transition-delay: 0.16s; }

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Ficha de app (modal) ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  text-align: center;
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 22px;
  padding: 32px 26px 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: modal-pop 0.22s ease;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0.5px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.modal-card img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(160, 200, 220, 0.25);
}

.modal-card h3 {
  margin: 14px 0 2px;
  font-size: 20px;
  font-weight: 500;
}

.modal-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.soon-pill {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(63, 208, 224, 0.3);
  border-radius: 999px;
  padding: 4px 14px;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.store-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 10px 14px;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 40, 58, 0.5);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.store-btn small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.store-btn strong {
  font-size: 15px;
  font-weight: 500;
}

a.store-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.store-btn.disabled {
  opacity: 0.5;
  cursor: default;
}

.modal-policy {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.modal-policy:hover { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 56px;
  border-top: 0.5px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Movimiento reducido y móvil ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sat, .stars i, .shooting, .s1, .s2, .s3, .s4, .modal-card, .hero > *, .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 700px) {
  .system {
    --r1: 78px;
    --r2: 112px;
    --r3: 146px;
    --icon: 42px;
    --mark: 88px;
    width: 340px;
    height: 340px;
    margin-top: 18px;
  }
  .sat-app img { border-radius: 11px; }
  .hero { padding: 48px 0 56px; }
  .ticker { margin-top: 44px; }
  .policy-desc { font-size: 13px; }
}
