/* Palcos — web (palcos.app). Los colores son los de la app (Theme.swift); la letra, Sora (SIL OFL, en esta carpeta). */
@font-face {
  font-family: "Sora";
  src: url("/assets/sora.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ground: #000000;
  --surface: #0b0b0d;
  --raised: #16171b;
  --hairline: #2c2d33;
  --ink: #e6e7eb;
  --muted: #9c9ea7;
  --rim: #8e9099;
  --warm: #e8b27a;            /* el ámbar de las lámparas del vestíbulo */
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--rim); }
a:hover { text-decoration-color: var(--warm); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Cabecera */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.top .brand img { height: 28px; display: block; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Portada */
.hero { text-align: center; padding-block: 72px 56px; position: relative; }
.hero::before {               /* un brillo cálido detrás, como el arco del portal */
  content: ""; position: absolute; inset: -40px 0 auto 0; height: 420px; z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(232, 178, 122, 0.16), transparent 70%);
}
.hero .wordmark { width: min(360px, 70vw); height: auto; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 36px 0 16px; }
.hero p.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 640px; margin: 0 auto 36px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--raised); color: var(--ink); font-size: 15px; text-decoration: none;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.platform { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Capturas */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 24px 72px; }
.shots figure { margin: 0; }
.shots img, .shots .soon {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 18px;
  border: 1px solid var(--hairline); background: var(--surface);
}
.shots .soon { display: grid; place-items: center; color: var(--rim); font-size: 14px; }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 80px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 28px 30px; }
.card h2 { font-size: 19px; font-weight: 600; margin: 0 0 12px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.card li { margin: 6px 0; }
.card li::marker { color: var(--warm); }

/* Páginas de texto (privacidad, soporte) */
.doc { max-width: 720px; padding-block: 24px 80px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 24px 0 10px; }
.doc .date { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 19px; font-weight: 600; margin: 36px 0 8px; }
.doc h3 { font-size: 16.5px; font-weight: 600; margin: 24px 0 4px; }
.doc p, .doc li { color: #c9cbd3; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .summary { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 18px 22px; }
.mail { display: inline-block; margin-top: 4px; font-size: 20px; font-weight: 600; }

/* Pie */
footer { border-top: 1px solid var(--hairline); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .legal { flex-basis: 100%; font-size: 12.5px; color: #6c6e77; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top nav { gap: 14px; font-size: 14px; }
  .hero { padding-block: 40px 36px; }
  .shots { grid-template-columns: 1fr; padding-bottom: 48px; }
  .features { grid-template-columns: 1fr; padding-bottom: 56px; }
  .card { padding: 22px; }
}
