/* SUTV — sitio web. Estático, sin fuentes ni scripts de terceros: no hace ninguna petición fuera de este dominio. */
:root {
  color-scheme: dark;
  --bg: #050b24;
  --bg-2: #0a1438;
  --surface: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eaf1ff;
  --muted: #9aa8d0;
  --accent: #ff6a1a;
  --accent-ink: #1a0a00;
  --cyan: #35d6ff;
  --violet: #8b5cf6;
  --radius: 14px;
  --font: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", "SF Pro Display", "Helvetica Neue", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(53, 214, 255, 0.13), transparent 60%),
    radial-gradient(800px 560px at -10% 12%, rgba(139, 92, 246, 0.14), transparent 62%),
    var(--bg);
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7be6ff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

/* idioma: por defecto español; "en" muestra solo el inglés */
html[lang="en"] [data-l="es"] { display: none !important; }
html:not([lang="en"]) [data-l="en"] { display: none !important; }

/* cabecera */
.top { position: sticky; top: 0; z-index: 10; background: rgba(5, 11, 36, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 13px var(--font); padding: 6px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 760px) { .top nav { display: none; } .lang { margin-left: auto; } }

/* portada */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { color: var(--cyan); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 18px; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #c9d4f2; font-size: 19px; max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 700 16px var(--font); text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary[aria-disabled="true"] { background: rgba(255, 106, 26, 0.18); color: #ffb48a; border-color: rgba(255, 106, 26, 0.45); cursor: default; }
.btn.ghost { color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--text); }
.fineprint { color: var(--muted); font-size: 14.5px; margin: 18px 0 0; max-width: 36em; }

.stage { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.rings span { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; animation: wave 6.3s ease-out infinite; }
.rings span:nth-child(2) { border-color: var(--violet); animation-delay: 2.1s; }
.rings span:nth-child(3) { animation-delay: 4.2s; }
@keyframes wave { 0% { transform: scale(0.6); opacity: 0.55; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rings span { animation: none; opacity: 0.2; } html { scroll-behavior: auto; } }
.tv { position: relative; width: 100%; border-radius: 18px; border: 7px solid #101c47; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line); overflow: hidden; background: #000; }

/* secciones */
section { padding: clamp(44px, 6vw, 80px) 0; }
h2 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 12px; text-wrap: balance; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 34px; }
.alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.035) 18%, rgba(255, 255, 255, 0.035) 82%, transparent); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.features li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 6px 14px; }
.features li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-top: 9px; }
.features h3 { margin: 0; font-size: 18px; }
.features p { grid-column: 2; margin: 0; color: var(--muted); font-size: 16px; }

.shots { display: flex; gap: 20px; list-style: none; margin: 0; padding: 4px 0 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shots li { flex: 0 0 min(560px, 86%); scroll-snap-align: start; }
.shots img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.shots figcaption { color: var(--muted); font-size: 14.5px; padding-top: 10px; }
.shots figure { margin: 0; }

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 46em; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--accent-ink); background: var(--cyan); }
.steps h3 { margin: 4px 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 46em; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style-position: outside; }
details p { color: #c9d4f2; margin: 10px 0 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; max-width: 46em; }
.credits { font-size: 15px; color: var(--muted); }
.credits li { margin: 4px 0; }

footer { border-top: 1px solid var(--line); padding: 34px 0 54px; color: var(--muted); font-size: 15px; }
footer .wrap { display: grid; gap: 10px; }
footer a { color: #c9d4f2; }

/* páginas de texto largo (privacidad) */
.doc { padding: 44px 0 70px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc p, .doc li { color: #d3dcf5; }
.doc ul { padding-left: 1.2em; }
.meta { color: var(--muted); font-size: 15px; }
.fill { background: #ffe14d; color: #2a2200; padding: 0 5px; border-radius: 4px; font-weight: 700; }
.warn { position: fixed; left: 0; right: 0; bottom: 0; background: #ffe14d; color: #2a2200; padding: 10px 16px; font: 700 14px var(--font); text-align: center; z-index: 50; }

.phones-title { margin: 34px 0 14px; font-size: 20px; }
.phones { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0 0 14px; overflow-x: auto; }
.phones li { flex: 0 0 min(230px, 44%); }
.phones figure { margin: 0; }
.phones img { border-radius: 16px; border: 1px solid var(--line); width: 100%; aspect-ratio: 1 / 2; object-fit: cover; }
.phones figcaption { color: var(--muted); font-size: 14.5px; padding-top: 10px; }

/* evita que una imagen grande ensanche la columna de la rejilla */
.hero .wrap > * { min-width: 0; }
.tv img { width: 100%; height: auto; }

/* teléfonos: la portada y la galería muestran la app móvil */
.duo { position: relative; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 1 / 1.05; }
.phone { position: absolute; width: 56%; border-radius: 30px; border: 7px solid #101c47; background: #000; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line); }
.phone img { width: 100%; height: auto; }
.phone.back { right: 0; top: 0; transform: rotate(4deg); opacity: 0.96; }
.phone.front { left: 0; bottom: 0; transform: rotate(-2deg); z-index: 1; }
.phones { justify-content: center; gap: 28px; }
.phones li { flex: 0 0 min(250px, 70%); }
.phones img { aspect-ratio: auto; object-fit: initial; height: auto; }
@media (max-width: 900px) { .duo { max-width: 340px; } }
.shots img { height: auto; }

/* portada: una pantalla de Android TV y, delante, el menú del teléfono */
.duo { max-width: 600px; aspect-ratio: 1 / 0.8; }
.tvframe { position: absolute; right: 0; top: 0; width: 88%; border-radius: 16px; border: 6px solid #101c47; background: #000; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line); }
.tvframe img { width: 100%; height: auto; }
.duo .phone.front { width: 31%; left: 0; bottom: 0; }
@media (max-width: 900px) { .duo { max-width: 480px; } }

/* galerías simétricas: tres columnas iguales, misma proporción y pies de foto alineados */
.phones, .shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 880px; margin: 0 auto; padding: 4px 0 18px; overflow: visible; }
.phones li, .shots li { flex: none; width: auto; }
.phones figure, .shots figure { margin: 0; display: flex; flex-direction: column; height: 100%; }
.phones img { width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.phones figcaption, .shots figcaption { text-align: center; min-height: 3.2em; padding-top: 12px; }
.shots { max-width: 1040px; gap: 22px; }
@media (max-width: 760px) {
  .phones, .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; max-width: none; gap: 18px; }
  .phones li { flex: 0 0 min(250px, 70%); scroll-snap-align: start; }
  .shots li { flex: 0 0 min(420px, 86%); scroll-snap-align: start; }
}
