/* astroboii.cl — landing minimalista */
:root {
  --negro: #000;
  --blanco: #f2f0ec;
  --gris: #77766f;
  --gris-2: #3a3a36;
  --verde: #a9f79a;      /* fósforo del video */
  --mono: 'JetBrains Mono', 'IoskeleyMono', ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--verde); }

/* video de fondo */
.fondo {
  position: fixed; top: 0; left: 16vw;
  width: 125vw; height: 100%;   /* más ancho que la pantalla: el ángel se corre a la derecha */
  object-fit: cover; object-position: center;
  transform: scaleX(-1);        /* espejado: el ángel queda a la derecha */
  z-index: 0;
  opacity: .85;
  pointer-events: none;
}
body::before {  /* oscurecido leve para que el texto lea */
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.8) 16%, rgba(0,0,0,.3) 50%, rgba(0,0,0,0) 72%);
}

.cabecera, .centro, .pie { position: relative; z-index: 2; }

/* cabecera */
.cabecera {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  text-transform: lowercase;
  letter-spacing: .04em;
}
.marca { color: var(--gris); }

/* centro */
.centro {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: min(760px, 60vw);
  padding: 90px 16px 200px 3vw;
}
/* logo CRT: la imagen es máscara; el fondo aporta scanlines, la aberración va en capas desplazadas */
.logo {
  position: relative;
  margin: 0 0 22px;
  width: min(230px, 44vw);
  aspect-ratio: 576 / 226;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.35)) drop-shadow(0 0 14px rgba(169,247,154,.35));
  animation: parpadeo 5s steps(1) infinite;
}
.crt {
  position: absolute; inset: 0;
  -webkit-mask: url(../img/astroboii-blanco.png) center / 100% 100% no-repeat;
  mask: url(../img/astroboii-blanco.png) center / 100% 100% no-repeat;
}
.crt-b {
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.55) 2px 3px),  /* scanlines */
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.18) 2px 3px),   /* trama fina */
    #f4f7f0;
  animation: scan 6s linear infinite;
}
.crt-r, .crt-c { mix-blend-mode: screen; opacity: .8; }
.crt-r { background: rgba(255,40,90,.85); transform: translateX(-1.5px); }
.crt-c { background: rgba(80,235,255,.85); transform: translateX(1.5px); }
@keyframes scan { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 -60px, 0 0, 0 0; } }
@keyframes parpadeo {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .82; }
  94% { opacity: 1; }
  97% { opacity: .9; }
}

.palabras {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; overflow: hidden;
  text-transform: lowercase;
  min-height: 7em;
}
.fila { display: flex; justify-content: center; flex-wrap: nowrap; }
.palabras p {
  font-size: clamp(9px, .9vw, 11px);
  flex-shrink: 0;
  line-height: 1;
  margin: .5em 1ch;
  white-space: nowrap;
  color: var(--gris);
  text-shadow: 0 0 6px #000, 0 0 14px #000;
  will-change: transform, opacity;
}
.palabras p.eje { color: var(--blanco); }

/* pie */
.pie {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  padding: 24px;
  text-transform: lowercase;
}
.cta { display: block; max-width: 460px; }
.cta-titulo { display: block; font-size: 20px; margin-bottom: 6px; }
.cta-texto { display: block; color: var(--gris); font-size: 12px; line-height: 1.5; }
.contacto { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.lugar { color: var(--gris); font-size: 12px; }

.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 640px) {
  .fondo { left: 0; width: 100vw; object-position: 66% center; opacity: .55; }
  body::before { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.7) 100%); }
  .centro { width: 100%; padding: 80px 12px 230px; }
  .logo { margin-bottom: 18px; width: 48vw; }
  .palabras p { font-size: 9px; margin: .45em .7ch; }
  .pie { grid-template-columns: 1fr; gap: 18px; }
  .contacto { flex-direction: row; align-items: center; gap: 16px; }
  .cta-titulo { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .fondo { display: none; }
  body { background: #000 url(../video/fondo.jpg) center/cover no-repeat; }
}
