/* ============================================================
   AURUM OF VENUS — Estilos compartidos
   Usado por: index.html, lecturas.html, gracias.html,
              tarot-preguntas.php

   Qué vive aquí: paleta de colores, reset base, tipografía base
   del body, y el sistema decorativo de fondo (rueda zodiacal,
   resplandor secundario, estrellas parpadeantes) que se repetía
   idéntico en las 4 páginas.

   También vive aquí el nav (menú superior), que debe verse igual
   en todo el sitio.

   Qué NO vive aquí: el diseño propio de cada página (botones,
   tarjetas, formulario, hero, etc.) — cada una tiene su layout y
   sus componentes distintos, así que esas reglas se quedan en el
   <style> de cada archivo para no forzar falsas coincidencias.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #f5e6b8;
  --bg: #07060f;
  --bg2: #0e0c1a;
  --bg3: #130f22;
  --text: #e8e0d0;
  --text-muted: #9b8fa0;
  --accent: #6b3fa0;
  --error: #e07070;
}

/* Tipografía base del body. Cada página conserva en su propio
   <style> las declaraciones de layout que sí le son propias
   (min-height, display, overflow, line-height, etc.). */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Divisor dorado reutilizado en varias páginas. Cada página ajusta
   solo el ancho y el margin en su propio <style>. */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Decoración de fondo: rueda zodiacal + resplandor secundario
   + estrellas parpadeantes ── */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.zodiac-wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1100px, 150vw);
  height: min(1100px, 150vw);
  transform: translate(-50%, -50%);
  color: var(--gold);
  pointer-events: none;
}

.zodiac-wheel svg { width: 100%; height: 100%; display: block; }

/* Anillos, marcas y racimos decorativos de la rueda: se quedan tenues
   siempre (mismo 0.055 de opacidad que tenía toda la rueda antes). */
.zw-dim { opacity: 0.055; }

/* Los 12 símbolos zodiacales: se van iluminando uno a la vez, en
   secuencia, como si la rueda "respirara" alrededor del círculo.
   Ciclo completo de 60s (5s por signo); nth-of-type cuenta solo entre
   los <text>, así que el orden 1→12 coincide con Aries→Piscis. */
.zw-sign {
  opacity: 0.055;
  animation: zw-sign-glow 60s ease-in-out infinite;
}

@keyframes zw-sign-glow {
  0%, 2%, 12%, 100% {
    opacity: 0.055;
    filter: none;
  }
  6% {
    opacity: 0.85;
    filter: drop-shadow(0 0 10px rgba(232,201,122,0.85)) drop-shadow(0 0 22px rgba(201,168,76,0.5));
  }
}

.zw-sign:nth-of-type(1)  { animation-delay: 0s;  }
.zw-sign:nth-of-type(2)  { animation-delay: 5s;  }
.zw-sign:nth-of-type(3)  { animation-delay: 10s; }
.zw-sign:nth-of-type(4)  { animation-delay: 15s; }
.zw-sign:nth-of-type(5)  { animation-delay: 20s; }
.zw-sign:nth-of-type(6)  { animation-delay: 25s; }
.zw-sign:nth-of-type(7)  { animation-delay: 30s; }
.zw-sign:nth-of-type(8)  { animation-delay: 35s; }
.zw-sign:nth-of-type(9)  { animation-delay: 40s; }
.zw-sign:nth-of-type(10) { animation-delay: 45s; }
.zw-sign:nth-of-type(11) { animation-delay: 50s; }
.zw-sign:nth-of-type(12) { animation-delay: 55s; }

.glow-secondary {
  position: absolute;
  bottom: -220px;
  right: -140px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(107,63,160,0.18) 0%, transparent 70%);
}

.stars-twinkle {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 12%, rgba(232,201,122,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 65%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 82% 55%, rgba(232,201,122,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 12% 85%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 92%, rgba(232,201,122,0.8) 0%, transparent 100%);
  background-size: 360px 520px;
  background-repeat: repeat;
  background-position: 140px 200px;
  animation: twinkle 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.9; }
}

/* Estrella fugaz: cruza la pantalla horizontalmente de vez en cuando.
   Tres instancias en alturas y tiempos distintos para que no se sienta
   mecánico ni sincronizado. */
.shooting-star {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85) 60%, rgba(232,201,122,0.95));
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  animation: shooting-star 12s linear infinite;
}

.shooting-star::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -1.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(255,255,255,0.9), 0 0 18px 4px rgba(232,201,122,0.5);
}

.shooting-star.s2 { top: 55%; animation-delay: 5s; animation-duration: 15s; }
.shooting-star.s3 { top: 75%; animation-delay: 9s; animation-duration: 13s; }

@keyframes shooting-star {
  0%   { transform: translateX(0); opacity: 0; }
  3%   { opacity: 1; }
  14%  { transform: translateX(135vw); opacity: 1; }
  15%  { opacity: 0; }
  100% { transform: translateX(135vw); opacity: 0; }
}

/* ── NAV compartido (index.html y lecturas.html) ──
   Mismo menú en todo el sitio. El link de la página actual
   lleva aria-current="page" y se marca en dorado. */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to bottom, rgba(7,6,15,0.95) 0%, transparent 100%);
  backdrop-filter: blur(8px);
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-pale);
  text-decoration: none;
}

.nav-links { display: flex; gap: 16px; flex-wrap: wrap; }

.nav-links a {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

/* Desktop: el nav se diseñó para el ancho de un celular (bio-link);
   en pantallas anchas el mismo tamaño se ve minúsculo, así que se
   escala aquí sin tocar cómo se ve en móvil. */
@media (min-width: 900px) {
  nav {
    padding: 24px 56px;
  }
  .nav-brand {
    font-size: 19px;
  }
  .nav-links {
    gap: 32px;
  }
  .nav-links a {
    font-size: 13.5px;
    letter-spacing: 0.1em;
  }
}

.nav-links a[aria-current="page"] { color: var(--gold); }
