/* pulsonight.es - web de "Muy pronto". Misma estetica que la campaña:
   casi negro, latido rosa, Inter Tight para las frases y Anton solo en el
   logo. Fuentes alojadas aqui (sin Google Fonts): ningun tercero recibe
   datos de quien visita la web. */
@font-face { font-family: "Anton"; src: url("fuentes/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fuentes/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fuentes/inter-tight-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fuentes/inter-tight-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --fondo: #05070c;
  --texto: #f4f1ea;
  --tenue: #8a90a2;
  --linea: rgba(138, 144, 162, 0.18);
  --rosa: #ff3b5c;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fondo); }
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 90% 60% at 50% 45%, #0e1322 0%, #070a12 55%, #030408 100%) fixed;
  color: var(--texto);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 48px);
}
.marca {
  font-family: "Anton", Impact, sans-serif;
  font-size: 28px;
  letter-spacing: 0.03em;
  text-decoration: none;
  line-height: 1;
}
.marca .s { color: var(--rosa); }
.marca .night { font-family: "Inter Tight", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.34em; margin-left: 8px; color: var(--tenue); vertical-align: middle; }
.coords {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--tenue);
}

.portada {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px 40px;
}
#latido {
  width: 100%;
  height: clamp(160px, 26vh, 260px);
  display: block;
}
h1 {
  margin-top: clamp(8px, 2vh, 20px);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  word-spacing: 0.08em;
  text-wrap: balance;
}
.sub {
  margin-top: 18px;
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -0.01em;
  color: var(--tenue);
}
.acciones {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.boton svg { width: 20px; height: 20px; flex-shrink: 0; }
.boton.principal { background: var(--rosa); color: #1a0a10; box-shadow: 0 10px 40px rgba(255, 59, 92, 0.25); }
.boton.principal:hover { box-shadow: 0 12px 50px rgba(255, 59, 92, 0.45); }
.boton.secundario { border: 1px solid rgba(244, 241, 234, 0.18); color: var(--texto); }
.boton.secundario:hover { background: rgba(244, 241, 234, 0.06); }
.boton:active { transform: scale(0.97); }
.boton:focus-visible { outline: 2px solid var(--texto); outline-offset: 3px; }

.pie {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: center;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea);
  font-size: 13px;
  color: var(--tenue);
}
.pie a { text-decoration: none; }
.pie a:hover { color: var(--texto); }

/* Entrada suave al cargar (se desactiva si el sistema pide menos movimiento) */
.aparece { animation: aparece 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.aparece.d1 { animation-delay: 0.15s; }
.aparece.d2 { animation-delay: 0.3s; }
.aparece.d3 { animation-delay: 0.45s; }
@keyframes aparece { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .aparece { animation: none; } }

/* Paginas legales */
.legal { max-width: 720px; margin: 0 auto; padding: 24px 20px 64px; flex: 1; }
.legal h1 { font-size: clamp(34px, 6vw, 52px); text-align: left; margin: 12px 0 8px; }
.legal .fecha { color: var(--tenue); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 32px 0 10px; }
.legal p, .legal li { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 16px; line-height: 1.6; color: #c9ccd6; }
.legal ul { padding-left: 20px; }
.legal .pendiente { color: var(--rosa); }
.volver { display: inline-block; margin-top: 8px; color: var(--tenue); text-decoration: none; font-weight: 600; font-size: 14px; }
.volver:hover { color: var(--texto); }

/* Formulario «Avísame del lanzamiento» (aviso.js lo envía a Supabase). */
.aviso { margin-top: 26px; width: 100%; max-width: 440px; }
.aviso-form { display: flex; gap: 8px; }
.aviso-form input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, 0.18); background: rgba(255, 255, 255, 0.06);
  color: var(--texto); font: 500 16px "Inter", system-ui, sans-serif; outline: none;
}
.aviso-form input:focus { border-color: var(--rosa); }
.aviso-form button { height: 52px; flex-shrink: 0; }
.aviso-texto { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--tenue); }
.aviso-texto a { color: inherit; }
.aviso-estado { margin-top: 10px; font-size: 14px; font-weight: 600; min-height: 1.2em; }
.aviso-estado.ok { color: #30d158; }
.aviso-estado.aviso-error { color: #ffd60a; }
@media (max-width: 420px) { .aviso-form { flex-direction: column; } .aviso-form input { flex: none; width: 100%; box-sizing: border-box; } .aviso-form button { width: 100%; } }
.aviso-form button { border: none; cursor: pointer; font-family: inherit; justify-content: center; }
.aviso-form button:disabled { opacity: 0.6; cursor: default; }
.solo-lectores { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.aviso { margin-left: auto; margin-right: auto; }
