:root {
  --paper: #080d18;
  --paper-2: #0d1424;
  --line: #1e293d;
  --ink: #edf1f8;
  --ink-soft: #95a1b6;
  --ink-mute: #5f6b80;
  --seal: #f3b53f;
  --seal-soft: rgb(243 181 63 / 0.12);
  --brass: #5fd4bf;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Helvetica Neue", sans-serif;
  --w: min(1160px, 100% - 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* atmósfera: brillo ámbar + cuadrícula fina + grano */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgb(243 181 63 / 0.16), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgb(95 212 191 / 0.07), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 96px;
  mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0.35) 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
.wrap { width: var(--w); margin-inline: auto; }

/* ---------- barra ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: rgb(8 13 24 / 0.72);
  border-bottom: 1px solid rgb(30 41 61 / 0.6);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.marca img { width: 32px; height: 32px; }
.marca span { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: 0; }
.marca em { font-style: normal; color: var(--seal); }
.nav { display: flex; align-items: center; gap: 2rem; font-size: .92rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .72rem 1.25rem; border-radius: 999px;
  background: var(--seal); color: #1b1304;
  font-weight: 700; font-size: .92rem; text-decoration: none;
  box-shadow: 0 0 0 0 rgb(243 181 63 / 0.4);
  transition: transform .2s, box-shadow .3s, background .2s;
}
.btn:hover { transform: translateY(-1px); background: #ffc24f; box-shadow: 0 10px 30px -8px rgb(243 181 63 / 0.55); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.btn svg { width: 16px; height: 16px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink-mute); background: rgb(255 255 255 / 0.03); }

/* ---------- portada ---------- */
.hero { padding: clamp(5rem, 12vw, 9.5rem) 0 clamp(4rem, 8vw, 7rem); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--seal);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(2.9rem, 8.2vw, 6.6rem); line-height: .98; letter-spacing: -0.035em;
  margin: 1.6rem 0 0; max-width: 13ch;
}
.hero h1 i { font-style: italic; color: var(--seal); font-weight: 300; }
.hero p.lead { max-width: 34rem; color: var(--ink-soft); font-size: 1.15rem; margin: 2rem 0 2.5rem; }
.hero .acciones { display: flex; flex-wrap: wrap; gap: .9rem; }

/* llave decorativa */
.puerta {
  position: absolute; right: 0; top: 50%; translate: 0 -46%;
  width: clamp(220px, 30vw, 380px); aspect-ratio: 3 / 4.2;
  border: 1px solid var(--line); border-radius: 200px 200px 6px 6px;
  background: linear-gradient(180deg, rgb(243 181 63 / 0.10), transparent 70%);
  display: grid; place-items: center;
}
.puerta::before {
  content: ""; position: absolute; inset: 14px; border-radius: inherit;
  border: 1px dashed rgb(243 181 63 / 0.25);
}
.puerta .ojo {
  width: 22%; aspect-ratio: 1 / 2.1; position: relative;
  filter: drop-shadow(0 0 24px rgb(243 181 63 / 0.6));
}
.puerta .ojo::before { content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 1; border-radius: 50%; background: var(--seal); }
.puerta .ojo::after { content: ""; position: absolute; left: 30%; right: 30%; top: 40%; bottom: 0; background: var(--seal); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }

/* ---------- secciones ---------- */
section { padding: clamp(4rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--line); }
.cab { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.cab h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -0.025em; margin: .9rem 0 0; }
.cab p { color: var(--ink-soft); margin: 0; max-width: 34rem; }

/* directorio de plataformas */
.directorio { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.directorio li { border-bottom: 1px solid var(--line); }
.fila {
  display: grid; grid-template-columns: 4.5rem 1.1fr 1.6fr auto; gap: 1.5rem; align-items: center;
  padding: 2rem .5rem; text-decoration: none; position: relative; transition: background .25s, padding .25s;
}
a.fila:hover { background: linear-gradient(90deg, var(--seal-soft), transparent 80%); padding-left: 1.25rem; }
.fila .n { font-family: var(--serif); font-style: italic; color: var(--ink-mute); font-size: 1.1rem; }
.fila h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.05rem); letter-spacing: -0.01em; }
.fila .desc { color: var(--ink-soft); font-size: .98rem; }
.estado {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft);
}
.estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); }
.estado.vivo { color: var(--brass); border-color: rgb(95 212 191 / 0.3); }
.estado.vivo::before { background: var(--brass); box-shadow: 0 0 0 4px rgb(95 212 191 / 0.15); }
.estado.pronto { color: var(--seal); border-color: rgb(243 181 63 / 0.3); }
.estado.pronto::before { background: var(--seal); }

/* principios */
.principios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.principio {
  padding: 2rem 1.75rem 2.25rem; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--paper-2), rgb(13 20 36 / 0.3));
}
.principio .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--seal-soft); color: var(--seal); margin-bottom: 1.5rem; }
.principio .ic svg { width: 21px; height: 21px; }
.principio h3 { margin: 0 0 .6rem; font-size: 1.12rem; font-weight: 700; }
.principio p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* cierre */
.cierre { text-align: center; }
.cierre h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0 auto 1.25rem; max-width: 18ch; }
.cierre h2 i { color: var(--seal); font-weight: 300; }
.cierre p { color: var(--ink-soft); margin: 0 auto 2.25rem; max-width: 32rem; }

footer { border-top: 1px solid var(--line); padding: 2.25rem 0 3rem; color: var(--ink-mute); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- página de acceso ---------- */
.acceso { padding: clamp(4rem, 10vw, 7rem) 0 6rem; }
.acceso h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.03em; line-height: 1.02; margin: 1.2rem 0 1rem; }
.acceso h1 i { color: var(--seal); font-weight: 300; }
.acceso .lead { color: var(--ink-soft); max-width: 34rem; margin: 0 0 3rem; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.tarjeta {
  display: flex; flex-direction: column; gap: 1rem; min-height: 230px;
  padding: 1.75rem; border-radius: 20px; border: 1px solid var(--line); text-decoration: none;
  background: linear-gradient(160deg, var(--paper-2), rgb(13 20 36 / 0.4));
  transition: border-color .25s, transform .25s, box-shadow .3s;
}
a.tarjeta:hover { border-color: rgb(243 181 63 / 0.55); transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgb(243 181 63 / 0.35); }
.tarjeta .sup { display: flex; justify-content: space-between; align-items: center; }
.tarjeta .ini { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; background: var(--seal-soft); color: var(--seal); }
.tarjeta h2 { margin: .5rem 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.65rem; }
.tarjeta p { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.tarjeta .ir { font-weight: 700; font-size: .9rem; color: var(--seal); display: inline-flex; gap: .4rem; align-items: center; }
.tarjeta.off { opacity: .6; }
.tarjeta.off .ir { color: var(--ink-mute); }
.nota { margin-top: 2.5rem; color: var(--ink-mute); font-size: .92rem; }

/* ---------- entrada orquestada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sube { opacity: 0; animation: sube .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .d1 { animation-delay: .08s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .34s; } .d4 { animation-delay: .5s; }
  .puerta { opacity: 0; animation: aparece 1.6s .45s ease forwards; }
  .puerta .ojo { animation: late 4s 2s ease-in-out infinite; }
}
@keyframes sube { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes late { 50% { filter: drop-shadow(0 0 42px rgb(243 181 63 / 0.85)); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .puerta { display: none; }
  .cab { grid-template-columns: 1fr; gap: 1rem; }
  .principios { grid-template-columns: 1fr; }
  .fila { grid-template-columns: 2.5rem 1fr auto; }
  .fila .desc { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
  .fila { grid-template-columns: 1fr auto; padding: 1.5rem .25rem; }
  .fila .n { display: none; }
  .fila .desc { grid-column: 1 / -1; }
}
.marca span, .btn { white-space: nowrap; }
@media (max-width: 400px) {
  .marca span { font-size: 1.1rem; }
  .top .btn { padding: .6rem 1rem; font-size: .85rem; }
}
