/* Portada y textos legales */
:root { --fondo: #060a18; --panel: #10172f; --borde: #26325a; --texto: #e8ecf8; --suave: #9aa6c8; --rojo: #e5243b; --cian: #5ad1ff; --oro: #ffcf5a; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: #8dbbff; }
h1, h2, h3 { line-height: 1.15; }
.boton { display: inline-block; background: var(--rojo); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 34px; border-radius: 14px; font-size: 19px; }
.boton.mini { padding: 8px 18px; font-size: 15px; border-radius: 10px; }
.pendiente { background: #4a3a12; color: #ffd98a; padding: 1px 6px; border-radius: 4px; }
.suave { color: var(--suave); }

/* ---------- Portada ---------- */
#cielo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
.barra { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - 1120px) / 2)); background: rgba(6, 10, 24, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.barra.con-sombra { border-bottom-color: var(--borde); background: rgba(6, 10, 24, .85); }
.marca { display: flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; font-weight: 800; font-size: 20px; }
.enlaces { display: flex; align-items: center; gap: 22px; }
.enlaces a:not(.boton) { color: var(--suave); text-decoration: none; font-size: 15px; }
.enlaces a:not(.boton):hover { color: var(--texto); }

.heroe { max-width: 1120px; margin: 0 auto; padding: 70px 16px 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; min-height: calc(100vh - 60px); }
.sello { display: inline-block; padding: 6px 14px; border: 1px solid #3b4a80; border-radius: 99px; color: #bcd0ff; font-size: 14px; background: rgba(60, 80, 160, .15); }
.heroe h1 { font-size: clamp(36px, 6vw, 64px); margin: 18px 0 16px; letter-spacing: -.02em; }
.degradado { background: linear-gradient(90deg, var(--cian), #b28cff 55%, var(--rojo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lema { color: #c3cbe6; font-size: 19px; max-width: 560px; }
.tiendas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 10px; scroll-margin-top: 90px; }
.tienda { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; background: #000; border: 1px solid #3a4468; border-radius: 14px; color: #fff; text-decoration: none; min-width: 200px; transition: transform .2s, border-color .2s; }
.tienda:hover { transform: translateY(-2px); border-color: #6c7bb3; }
.tienda span { display: flex; flex-direction: column; font-size: 20px; font-weight: 700; line-height: 1.1; }
.tienda small { font-size: 12px; font-weight: 400; color: #b9c2de; }
.nota { color: var(--suave); font-size: 15px; }

.heroe-movil { display: flex; justify-content: center; }
.movil { width: min(300px, 70vw); filter: drop-shadow(0 30px 60px rgba(40, 90, 255, .25)); animation: flotar 6s ease-in-out infinite; }
.ovni { animation: deriva 7s ease-in-out infinite; }
.latido { animation: latido 1.6s ease-in-out infinite; transform-origin: 150px 540px; }
@keyframes flotar { 50% { transform: translateY(-14px); } }
@keyframes deriva { 50% { transform: translate(-14px, 6px); } }
@keyframes latido { 50% { transform: scale(.82); } }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; }
main > section { margin: 70px 0; }
main h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 18px; }
.bloque { background: linear-gradient(180deg, rgba(20, 28, 58, .85), rgba(12, 17, 38, .85)); border: 1px solid var(--borde); border-radius: 24px; padding: 34px; }
.nuevo { text-align: center; } .nuevo p { max-width: 760px; margin: 0 auto; color: #c3cbe6; font-size: 18px; }

.pasos ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.paso { background: var(--panel); border: 1px solid var(--borde); border-radius: 20px; padding: 24px; position: relative; }
.paso h3 { margin: 14px 0 8px; font-size: 19px; } .paso p { margin: 0; color: #c3cbe6; font-size: 15.5px; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--rojo), #ff7a59); font-weight: 800; }

.triangulo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; }
.tri-texto p { color: #c3cbe6; }
.tri-dibujo { width: 100%; }
.rayo { stroke-dasharray: 320; stroke-dashoffset: 320; }
.punto, .punto-texto { opacity: 0; transition: opacity .6s; }
.triangulo.dibujado .punto, .triangulo.dibujado .punto-texto { opacity: 1; }

.rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tarjeta { background: var(--panel); border: 1px solid var(--borde); border-radius: 18px; padding: 22px; transition: transform .25s, border-color .25s; }
.tarjeta:hover { transform: translateY(-4px); border-color: #4a5a94; }
.tarjeta b { font-size: 17px; } .tarjeta p { margin: 8px 0 0; color: #c3cbe6; font-size: 15.5px; }

.aparatos { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.aparatos-texto p { color: #c3cbe6; } .aparatos-dibujo { width: 100%; }
.privacidad ul { padding-left: 20px; } .privacidad li { margin: 8px 0; color: #c3cbe6; }

.preguntas details { background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; padding: 14px 20px; margin: 10px 0; }
.preguntas summary { cursor: pointer; font-weight: 700; }
.preguntas details p { color: #c3cbe6; margin: 10px 0 2px; }

footer { text-align: center; padding: 30px 16px 50px; color: var(--suave); font-size: 14px; border-top: 1px solid var(--borde); }
.pie-marca { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--texto); font-weight: 700; }

/* Aparecer al hacer scroll (solo si el navegador lo admite; sin JS todo se ve) */
.js .aparece { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .aparece.retraso { transition-delay: .15s; }
.js .aparece.visto { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .heroe, .triangulo, .aparatos { grid-template-columns: 1fr; }
  .heroe { padding-top: 40px; min-height: 0; text-align: center; }
  .lema { margin: 0 auto; } .tiendas { justify-content: center; }
  .pasos ol { grid-template-columns: 1fr 1fr; } .rejilla { grid-template-columns: 1fr 1fr; }
  .enlaces a:not(.boton) { display: none; }
}
@media (max-width: 560px) {
  .pasos ol, .rejilla { grid-template-columns: 1fr; }
  .bloque { padding: 24px 18px; }
  .tienda { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .aparece { opacity: 1; transform: none; }
  .rayo { stroke-dashoffset: 0; } .punto, .punto-texto { opacity: 1; }
}

/* ---------- Textos legales ---------- */
main.legal { max-width: 760px; padding: 30px 20px 30px; }
main.legal h1 { font-size: 28px; } main.legal h2 { font-size: 19px; margin-top: 26px; }
main.legal li { margin: 8px 0; }
