/* ── ster · el diseño de la web de ster ───────────────────────────────
 *
 *  Cada app de aleclagarde.com tiene el suyo: Pasati es papel y tinta
 *  (`/estilos.css`), la parte personal es `/personal.css`, y ster es
 *  esto. Los colores y las fuentes son LOS DE LA APP —Figtree para el
 *  texto, Fraunces para los títulos, el ámbar y la noche del cielo—,
 *  para que quien llegue desde ster reconozca dónde está.
 *
 *  Las fuentes se sirven desde aquí mismo, como en el resto de la web:
 *  pedirlas a Google le manda la IP de cada visitante, y la política de
 *  privacidad dice que no hay rastreadores. Licencia OFL al lado.
 */

/* figtree-latin-ext-wght-normal */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(./fuentes/figtree-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* figtree-latin-wght-normal */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(./fuentes/figtree-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* fraunces-latin-ext-600-normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fuentes/fraunces-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* fraunces-latin-600-normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fuentes/fraunces-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --fondo: #FBF7F2;
  --superficie: #FFFFFF;
  --texto: #241F1A;
  --secundario: #6B6157;
  --tenue: #9A8F83;
  --borde: #E4DACE;
  --acento: #B3690E;
  --acento-texto: #FFFFFF;
  --cielo-a: #F3ECE2;
  --titulos: 'Fraunces', Georgia, serif;
  --texto-fuente: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #17130F;
    --superficie: #221C16;
    --texto: #F5EFE8;
    --secundario: #A99C8E;
    --tenue: #7A6E62;
    --borde: #3A3128;
    --acento: #F0A83C;
    --acento-texto: #17130F;
    --cielo-a: #1E1812;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 400 17px/1.65 var(--texto-fuente);
}
a { color: var(--acento); text-underline-offset: 3px; }
b, strong { color: var(--texto); font-weight: 600; }

.ancho { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ── la barra de arriba ── */
.barra {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 22px 0;
}
.etiqueta { font: 600 13px/1.4 var(--texto-fuente); letter-spacing: 0.04em; color: var(--tenue); }
.etiqueta a { color: inherit; text-decoration: none; }
.etiqueta a:hover { color: var(--acento); }
.idiomas a { margin-left: 4px; padding: 4px 10px; border-radius: 999px; }
.idiomas a[aria-current] { background: var(--superficie); border: 1px solid var(--borde); color: var(--texto); }

/* ── la portada: el cielo ── */
.cielo {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(var(--cielo-a), var(--fondo));
  border-bottom: 1px solid var(--borde);
  padding: 8px 0 72px;
}
/* Las estrellas son una sola capa de degradados, no imágenes: no pesan
   nada y no hay nada que se vea a medias mientras carga. */
.cielo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, var(--tenue), transparent),
    radial-gradient(1.5px 1.5px at 80% 22%, var(--tenue), transparent),
    radial-gradient(1px 1px   at 33% 70%, var(--tenue), transparent),
    radial-gradient(1px 1px   at 64% 82%, var(--tenue), transparent),
    radial-gradient(2px 2px   at 88% 58%, var(--acento), transparent),
    radial-gradient(1px 1px   at 22% 90%, var(--tenue), transparent),
    radial-gradient(1.5px 1.5px at 48% 14%, var(--tenue), transparent);
}
.cielo > * { position: relative; }
.icono { width: 88px; height: 88px; border-radius: 20px; margin: 28px auto 18px; display: block;
         box-shadow: 0 10px 30px rgba(179, 105, 14, .25); }
.cielo h1 { font: 600 clamp(46px, 11vw, 64px)/1.05 var(--titulos); letter-spacing: -0.02em; margin: 0 0 12px; }
.lema { font-size: 20px; line-height: 1.5; color: var(--secundario); max-width: 32ch; margin: 0 auto 30px; }
.pie-boton { color: var(--tenue); font-size: 14px; margin: 14px 0 0; }

/* ── botones: pastillas, como en la app ── */
.boton {
  display: inline-block; text-decoration: none;
  background: var(--acento); color: var(--acento-texto);
  font: 600 17px/1 var(--texto-fuente);
  padding: 16px 30px; border-radius: 999px;
}
.boton:hover { filter: brightness(1.06); }
/* La segunda opción, debajo de la principal: misma pastilla, sin relleno,
   para que no compita con «Descargar». */
.boton-secundario {
  background: transparent; color: var(--texto);
  border: 1px solid var(--borde); margin-top: 16px;
  font-size: 15px; padding: 13px 24px;
}
.boton-secundario:hover { filter: none; border-color: var(--acento); color: var(--acento); }

/* ── secciones de la portada ── */
.seccion { padding: 56px 0; border-bottom: 1px solid var(--borde); }
.seccion h2 { font: 600 28px/1.2 var(--titulos); letter-spacing: -0.01em; margin: 0 0 10px; }
.seccion > .ancho > p { color: var(--secundario); margin: 0 0 22px; }
.lista { list-style: none; padding: 0; margin: 0; }
.lista li { background: var(--superficie); border: 1px solid var(--borde); border-radius: 16px; padding: 18px 20px; margin: 0 0 12px; }
.lista b { display: block; font-size: 18px; margin-bottom: 4px; }
.lista span { color: var(--secundario); }
.enlaces-legales { display: flex; flex-wrap: wrap; gap: 10px; }
.enlaces-legales a {
  text-decoration: none; color: var(--texto); background: var(--superficie);
  border: 1px solid var(--borde); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px;
}
.enlaces-legales a:hover { border-color: var(--acento); color: var(--acento); }

/* ── páginas de texto: privacidad, términos, ayuda ── */
.texto { padding-bottom: 32px; }
.texto h1 { font: 600 clamp(34px, 8vw, 44px)/1.15 var(--titulos); letter-spacing: -0.015em; margin: 18px 0 6px; }
.fecha { color: var(--tenue); font-size: 14px; margin: 0 0 32px; }
.texto h2 { font: 600 22px/1.3 var(--titulos); margin: 44px 0 12px; padding-top: 26px; border-top: 1px solid var(--borde); }
.texto h3 { font: 600 18px/1.35 var(--texto-fuente); margin: 26px 0 8px; }
.texto p, .texto li { color: var(--secundario); }
.texto li { margin-bottom: 8px; }
.entradilla { font-size: 19px; line-height: 1.6; color: var(--texto) !important; }
.destacado {
  background: var(--superficie); border: 1px solid var(--borde); border-left: 4px solid var(--acento);
  border-radius: 12px; padding: 16px 20px; color: var(--texto) !important;
}
.nota { color: var(--tenue) !important; font-size: 15px; }
.aviso-idioma {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px;
  padding: 12px 16px; color: var(--secundario); font-size: 15px; margin: 4px 0 0;
}

footer { padding: 36px 0 64px; color: var(--tenue); font-size: 14px; }
footer a { color: var(--tenue); }
.portada-pie { text-align: center; }

@media (max-width: 480px) {
  .cielo { padding-bottom: 56px; }
  .lema { font-size: 18px; }
  .seccion { padding: 44px 0; }
}

/* Bilingüe, igual que el resto de aleclagarde.com: cada bloque lleva
   lang="es" o lang="en" y `idioma.js` decide cuál se ve. Lo que no lleva
   `lang` se ve siempre — por eso los textos legales, que solo existen
   en español, van sin él y nunca salen en blanco. */
html[data-idioma="es"] [lang="en"]:not(html),
html[data-idioma="en"] [lang="es"]:not(html) { display: none !important; }
