/* SoloHoy · «Nuevo horizonte»: montañas al amanecer en 4 juegos de color (los mismos de la app).
   El visitante elige el suyo; se guarda en su navegador. Las letras van en el servidor (sin Google). */
@font-face { font-family: 'Figtree'; src: url('/fuentes/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/fuentes/lora-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root, :root[data-paisaje='petroleo'] {
  --cielo-0: #17384a; --cielo-1: #2f7a86; --cielo-2: #f3b979; --cielo-3: #ffdca0;
  --sol-0: #fff4cf; --sol-1: #ffd38a; --monte-0: #4f9a98; --monte-1: #2a6670; --monte-2: #17384a; --bandera: #ffd38a;
  --acento: #2a6670; --acento-claro: #7cc4c6; --noche: #10293a;
}
:root[data-paisaje='rosado'] {
  --cielo-0: #1e2150; --cielo-1: #6b3f7d; --cielo-2: #f28b9a; --cielo-3: #ffd0a8;
  --sol-0: #fff1e0; --sol-1: #ffb59a; --monte-0: #a0577f; --monte-1: #6a3466; --monte-2: #2c1b46; --bandera: #ffb59a;
  --acento: #a8436f; --acento-claro: #f2a3c0; --noche: #221535;
}
:root[data-paisaje='dorado'] {
  --cielo-0: #1c4fa0; --cielo-1: #4a90e2; --cielo-2: #9fd0ff; --cielo-3: #ffe39a;
  --sol-0: #fffbe6; --sol-1: #ffd24d; --monte-0: #6fa3d8; --monte-1: #3b6fb0; --monte-2: #1d3f72; --bandera: #ffd24d;
  --acento: #2c63b8; --acento-claro: #8fbcf2; --noche: #142d55;
}
:root[data-paisaje='lavanda'] {
  --cielo-0: #2a2a5e; --cielo-1: #5d5aa8; --cielo-2: #b49ad6; --cielo-3: #ffc28f;
  --sol-0: #fff3e3; --sol-1: #ffb072; --monte-0: #8b84bf; --monte-1: #5a5592; --monte-2: #2f2c5c; --bandera: #ffb072;
  --acento: #5a5592; --acento-claro: #b7b1ea; --noche: #211f45;
}
:root {
  --fondo: #f6f5f2; --superficie: #ffffff; --texto: #1c1f26; --tenue: #5d6470; --borde: #e3e2de;
  --peligro: #b2433a; --ok: #1f8a5b; --principal: var(--acento); --sobre-principal: #fff;
  --serif: 'Lora', Georgia, serif; --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #101317; --superficie: #191d23; --texto: #eceae6; --tenue: #a2a8b2; --borde: #2a3038;
    --peligro: #ec8c83; --ok: #6fd3a2; --principal: var(--acento-claro); --sobre-principal: #10131a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--principal); outline-offset: 2px; }
.ancho { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* ---- El paisaje ---- */
.horizonte { position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, var(--cielo-0) 0%, var(--cielo-1) 45%, var(--cielo-2) 80%, var(--cielo-3) 100%); }
.horizonte > svg.montanas { position: absolute; z-index: -1; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(150px, 46%, 360px); }
.montanas .m0 { fill: var(--monte-0); opacity: .65; }
.montanas .m1 { fill: var(--monte-1); }
.montanas .m2 { fill: var(--monte-2); }
/* El sol: un círculo con halo detrás de las montañas */
.horizonte > .astro { position: absolute; z-index: -2; left: 50%; bottom: clamp(70px, 26%, 200px); width: clamp(46px, 7vw, 86px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sol-0); box-shadow: 0 0 0 clamp(18px, 3vw, 34px) color-mix(in srgb, var(--sol-1) 35%, transparent), 0 0 120px 50px color-mix(in srgb, var(--sol-1) 45%, transparent); }
@media (prefers-reduced-motion: no-preference) {
    .horizonte > .astro { animation: sube 8s ease-in-out infinite alternate; }
  @keyframes sube { from { transform: translateY(6px); } to { transform: translateY(-6px); } }
}

/* ---- Barra de arriba ---- */
.barra { position: relative; z-index: 3; }
.barra .ancho { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; color: inherit; user-select: none; -webkit-tap-highlight-color: transparent; }
.marca img, .marca .logo-sh { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 14px rgb(0 0 0 / .25), 0 0 0 1.5px rgb(255 255 255 / .35); }
.menu { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.menu a { text-decoration: none; opacity: .88; }
.menu a:hover { opacity: 1; }

/* ---- Elegir paisaje ---- */
.selector-paisaje { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgb(0 0 0 / .18); backdrop-filter: blur(6px); }
.selector-paisaje button[data-p] { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid rgb(255 255 255 / .5); cursor: pointer;
  background: linear-gradient(180deg, var(--b0) 0 45%, var(--b1) 45% 70%, var(--b2) 70%); }
.selector-paisaje button[data-p][aria-pressed='true'] { border-color: #fff; box-shadow: 0 0 0 2px rgb(0 0 0 / .25); transform: scale(1.12); }
.selector-paisaje [data-p='petroleo'] { --b0: #f3b979; --b1: #2f7a86; --b2: #17384a; }
.selector-paisaje [data-p='rosado'] { --b0: #f28b9a; --b1: #6b3f7d; --b2: #2c1b46; }
.selector-paisaje [data-p='dorado'] { --b0: #ffe39a; --b1: #4a90e2; --b2: #1d3f72; }
.selector-paisaje [data-p='lavanda'] { --b0: #ffc28f; --b1: #5d5aa8; --b2: #2f2c5c; }

/* ---- Botones y campos ---- */
.boton, button.primario, button.secundario { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.boton:hover, button.primario:hover { transform: translateY(-1px); }
.boton.claro { background: #fff; color: var(--monte-2); box-shadow: 0 8px 22px -10px rgb(0 0 0 / .45); }
.boton.vidrio { background: rgb(255 255 255 / .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55); }
.boton.principal, button.primario { background: var(--principal); color: var(--sobre-principal); }
button { font: inherit; }
.etiqueta { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--principal); }
.horizonte .etiqueta { color: var(--sol-0); }

/* En el teléfono de muestra el sol va pequeño */
.pantalla .horizonte > .astro { left: auto; right: 14%; bottom: 30%; width: 22px; box-shadow: 0 0 0 8px color-mix(in srgb, var(--sol-1) 35%, transparent), 0 0 40px 16px color-mix(in srgb, var(--sol-1) 40%, transparent); }
