/* SNOWBEAR · snowbear.es · v1.0
   Identidad Deep Electric. Paleta y tipografía según la guía de marca aprobada. */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0B192C;
  --electric: #245CFF;
  --steel: #527BA6;
  --ice: #CBD9E8;
  --white: #FFFFFF;
  --sky: #00081A;          /* tono del cielo del paisaje, para fundir bordes */
  --line: rgba(203, 217, 232, 0.16);
  --focus: #A6C9FF;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --pad-x: clamp(1rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--sky); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  font-family: "Lato", Arial, sans-serif;
  font-weight: 400;
  color: var(--white);
  background: transparent;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

/* ---------- Fondo: paisaje Arctic Night, estático ---------- */
.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--sky);
  background-image:
    linear-gradient(to bottom, rgba(0, 8, 26, .55) 0%, rgba(0, 8, 26, 0) 14%, rgba(0, 8, 26, 0) 80%, rgba(0, 8, 26, .6) 100%),
    url("../img/arctic-night-desktop.webp");
  background-size: cover, cover;
  background-position: center, 50% 58%;
  background-repeat: no-repeat;
}

/* Pantallas verticales: versión recortada del paisaje, más ligera, centrada en el valle */
@media (orientation: portrait) and (max-aspect-ratio: 4/5) {
  .background {
    background-image:
      linear-gradient(to bottom, rgba(0, 8, 26, .55) 0%, rgba(0, 8, 26, 0) 18%, rgba(0, 8, 26, 0) 82%, rgba(0, 8, 26, .55) 100%),
      url("../img/arctic-night-mobile.webp");
    background-size: cover, cover;
    background-position: center, 50% 50%;
  }
}

/* ---------- Composición central ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(clamp(2.5rem, 8vh, 6rem) + env(safe-area-inset-top, 0px)) calc(var(--pad-x) + var(--safe-r)) clamp(6rem, 20vh, 15rem) calc(var(--pad-x) + var(--safe-l));
}

.hero-logo { margin: 0; line-height: 0; }
.hero-logo img {
  /* el SVG maestro ya incluye la línea azul eléctrica: no se duplica */
  width: min(clamp(240px, 34vw, 560px), 62vh * 1.65);
  animation: logo-in 1.1s var(--ease) both;
}


.badge-soon {
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .8rem 1.9rem;
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  letter-spacing: .03em;
  color: var(--white);
  background: rgba(11, 25, 44, .35);
  border: 1.5px solid var(--electric);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(36, 92, 255, .35), inset 0 0 10px rgba(36, 92, 255, .15);
  user-select: none;
  animation: fade-in 1.1s .35s var(--ease) both;
}

/* ---------- Pie ---------- */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem calc(var(--pad-x) + var(--safe-r)) calc(1.25rem + env(safe-area-inset-bottom, 0px)) calc(var(--pad-x) + var(--safe-l));
  background: rgba(0, 8, 26, .72);
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  letter-spacing: .14em;
  color: var(--ice);
}
.site-footer p { margin: 0; }
.footer-copy { text-transform: uppercase; }
.footer-domain { justify-self: end; letter-spacing: .08em; }
.footer-mark { width: 44px; height: 3px; border-radius: 2px; background: var(--electric); }

@media (max-width: 480px) {
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .6rem; }
  .footer-mark { order: -1; }
  .footer-domain { justify-self: center; }
}

/* ---------- Foco visible ---------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }

/* ---------- Animaciones ---------- */
@keyframes logo-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Pantallas muy bajas (móvil en horizontal): menos aire */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-top: 1.5rem; padding-bottom: 2.5rem; }
  .hero-logo img { width: min(300px, 48vh * 1.65); }
}
