@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("fuentes/chakra-petch-500.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("fuentes/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("fuentes/onest-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fuentes/jetbrains-mono-400.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --negro: #000000;
  --noche: #0C1609;
  --musgo: #23391A;
  --musgo-claro: #4A7836;
  --perico: #7CE83A;
  --niebla: #E4F0DC;
  --liquen: #93A98A;
  --display: "Chakra Petch", "Bahnschrift", "DIN Alternate", "Arial Narrow", sans-serif;
  --texto: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --margen: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--negro); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--negro);
  color: var(--niebla);
  font: 400 17px/1.6 var(--texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--perico); color: var(--negro); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--perico); outline-offset: 6px; }

.visor { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.visor span { position: absolute; width: 22px; height: 22px; border: 0 solid var(--musgo-claro); }
.visor .a { top: 18px; left: 18px; border-width: 2px 0 0 2px; }
.visor .b { top: 18px; right: 18px; border-width: 2px 2px 0 0; }
.visor .c { bottom: 18px; right: 18px; border-width: 0 2px 2px 0; }
.visor .d { bottom: 18px; left: 18px; border-width: 0 0 2px 2px; }

.cabecera { padding: calc(var(--margen) * 0.9 + 22px) var(--margen) 0; position: relative; z-index: 1; }
.marca { display: inline-flex; align-items: center; min-height: 44px; line-height: 0; }
.marca img { display: block; height: 28px; width: auto; }

.portada {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 5vw, 72px) var(--margen);
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

.portada--sola { grid-template-columns: minmax(0, 1fr); }
.texto { position: relative; z-index: 1; }
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 span { display: block; }
h1 .segunda { color: var(--perico); }
.entrada { margin: clamp(20px, 2.6vw, 32px) 0 0; max-width: 40em; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--liquen); text-wrap: pretty; }

.pronto {
  --c: 12px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 14px 26px 14px 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--niebla);
}
.pronto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--musgo);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}
.luz { width: 10px; height: 10px; flex: none; background: var(--perico); animation: latir 2.2s ease-out infinite; }
@keyframes latir { 0% { box-shadow: 0 0 0 0 var(--perico); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

.ojo { position: relative; margin: 0; }
.ojo::before {
  content: "";
  position: absolute;
  inset: -14% -18%;
  background-image: radial-gradient(circle, var(--musgo) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  pointer-events: none;
}
.ojo svg { position: relative; display: block; width: 100%; max-width: 640px; height: auto; margin-inline: auto; overflow: visible; }
.parpadeo { transform-box: view-box; transform-origin: 64px 40px; animation: parpadeo 10s ease-in-out infinite; }
@keyframes parpadeo { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.06); } }
#arcos { transform-box: view-box; transform-origin: 64px 40px; animation: girar 48s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
#iris { transition: transform 0.25s ease-out; }

.pie {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 0 var(--margen) calc(var(--margen) * 0.9 + 22px);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--liquen);
}
.pie span:first-child { color: var(--niebla); }
.pie a { text-decoration: underline; text-decoration-color: var(--perico); text-underline-offset: 5px; }
.pie a:hover { color: var(--perico); }

@media (max-width: 860px) {
  .portada { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 12px; }
  .ojo { order: -1; }
  .ojo svg { max-width: 360px; }
  .ojo::before { inset: -10% -6%; }
}

@media (max-height: 560px) and (min-width: 861px) {
  .ojo svg { max-width: 460px; }
}

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