/* SPDX-License-Identifier: AGPL-3.0-or-later */
:root {
  --midnight: #0B1026;
  --midnight-2: #0F1533;
  --violet-deep: #2D1B4E;
  --violet: #7C5FD4;
  --gold: #D4AF37;
  --gold-soft: #E8C766;
  --silver: #C0C8D4;
  --ink: #E9ECF5;
  --ink-mute: #9BA3B8;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(212, 175, 55, 0.18);
  --radius: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(ellipse at top, var(--violet-deep) 0%, var(--midnight) 45%, #05071A 100%);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  font-weight: 300;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 38, 0.65);
  border-bottom: 1px solid var(--glass-border);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  color: var(--gold);
  font-size: 22px;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 18px;
}
.menu {
  display: flex;
  gap: 28px;
  align-items: center;
}
.menu a {
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.menu a:hover { color: var(--gold); }
.menu-toggle {display:none;border:1px solid var(--glass-border);border-radius:8px;color:var(--gold-soft);background:transparent;font:inherit;font-size:13px;padding:8px 12px;cursor:pointer}
@media (min-width:901px) and (max-width:1150px) {
  .menu {gap:14px}.menu a {font-size:12px}.brand-name {font-size:16px}
}
@media (max-width:900px) {
  .menu-toggle {display:block}
  .site-header .menu {display:none}
  .site-header .menu.is-open {display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;padding:12px 24px;background:var(--midnight);border-bottom:1px solid var(--glass-border);max-height:80vh;overflow-y:auto}
  .site-header .menu.is-open>a,.site-header .menu.is-open>.has-dropdown>a {display:block;padding:12px 0}
  .site-header .menu.is-open .dropdown {display:flex;position:static;margin:0 0 6px 12px;border:0;box-shadow:none;background:transparent}
}
.menu .has-dropdown { position: relative; }
.menu .menu-trigger { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.menu .menu-trigger::after { content: "▾"; font-size: 10px; opacity: 0.7; }
.menu .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 12px;
  min-width: 200px;
  flex-direction: column;
  background: rgba(14, 12, 28, 0.96);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  z-index: 30;
}
.menu .dropdown::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
.menu .dropdown a {
  padding: 8px 16px;
  white-space: nowrap;
  color: var(--ink-mute);
  font-size: 14px;
}
.menu .dropdown a:hover { color: var(--gold); background: rgba(212,175,55,0.08); }
.menu .has-dropdown:hover .dropdown,
.menu .has-dropdown:focus-within .dropdown {
  display: flex;
}
.btn-ghost {
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink) !important;
}
.btn-ghost:hover { border-color: var(--gold); }

/* ——— Hero ——— */
.hero {
  padding: 120px 0 100px;
  position: relative;
}
.hero-inner {
  text-align: center;
  position: relative;
}
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: #F8F4E3;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 50%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--ink-mute);
  font-size: 18px;
}
.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  position: relative;
  isolation: isolate;
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--violet-deep);
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 245, 210, 0.35);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(255, 235, 140, 0)    0%,
    rgba(255, 245, 200, 0.45) 55%,
    rgba(255, 250, 225, 0.95) 88%,
    #ffffff                   100%
  );
  filter:
    drop-shadow(0 0 4px  rgba(255, 230, 140, 0.95))
    drop-shadow(0 0 10px rgba(255, 220, 100, 0.75))
    drop-shadow(0 0 20px rgba(255, 200,  80, 0.45));
  offset-path: inset(0 round 999px);
  offset-rotate: auto;
  animation: btn-comet-orbit 4.2s linear infinite;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s ease;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1.5px solid rgba(255, 240, 180, 0.9);
  box-shadow:
    0 0  8px rgba(255, 235, 140, 0.7),
    0 0 18px rgba(255, 220, 100, 0.55),
    0 0 32px rgba(255, 200,  80, 0.35),
    inset 0 0 14px rgba(255, 250, 220, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
@keyframes btn-comet-orbit {
  to { offset-distance: 100%; }
}
.btn-primary:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}
.btn-primary:hover::before { opacity: 0; }
.btn-primary:hover::after  { opacity: 1; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid var(--gold);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18);
}
.btn-link {
  color: var(--silver);
  text-decoration: none;
  font-size: 15px;
  padding: 14px 8px;
  transition: color 0.2s;
}
.btn-link:hover { color: var(--gold); }

.hero-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  z-index: -1;
  animation: spin 120s linear infinite;
}
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ——— Sections ——— */
.section {
  padding: 50px 0;
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  margin-bottom: 16px;
  color: #F8F4E3;
}
.section-sub {
  color: var(--ink-mute);
  font-size: 17px;
}

/* ——— Zodiac grid ——— */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  max-width: 1080px;
  margin: 0 auto;
}
.zodiac-card {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--c) 14%, transparent),
    rgba(11, 16, 38, 0.55));
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 18%, transparent);
  transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
  position: relative;
}
.zodiac-card:hover {
  transform: translateY(-2px);
  border-color: var(--c);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--c) 26%, transparent),
    rgba(11, 16, 38, 0.5));
  box-shadow: 0 8px 26px color-mix(in srgb, var(--c) 35%, transparent);
}
.zodiac-glyph {
  font-family: 'Noto Sans Symbols 2', 'Segoe UI Symbol', serif;
  font-variant-emoji: text;
  font-size: 28px;
  color: color-mix(in srgb, var(--c) 90%, white);
  line-height: 1;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0  4px color-mix(in srgb, var(--c) 95%, transparent))
    drop-shadow(0 0 12px color-mix(in srgb, var(--c) 65%, transparent))
    drop-shadow(0 0 22px color-mix(in srgb, var(--c) 35%, transparent));
  font-weight: 400;
}
.zodiac-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.zodiac-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: color-mix(in srgb, var(--c) 80%, white);
  line-height: 1;
  text-shadow:
    0 0  4px color-mix(in srgb, var(--c) 75%, transparent),
    0 0 12px color-mix(in srgb, var(--c) 40%, transparent);
}
.zodiac-dates {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ——— Modules grid ——— */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.module-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s;
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
}
.module-icon {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 16px;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
}
.module-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #F8F4E3;
}
.module-card p {
  color: var(--ink-mute);
  font-size: 15px;
  margin-bottom: 20px;
}

/* ——— CTA band ——— */
.cta-band {
  padding: 100px 0;
  position: relative;
}
.cta-inner {
  text-align: center;
  max-width: 700px;
  padding: 64px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124, 95, 212, 0.15), rgba(212, 175, 55, 0.08));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  margin: 0 auto;
}
.cta-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  margin-bottom: 16px;
  color: #F8F4E3;
}
.cta-inner p {
  color: var(--ink-mute);
  margin-bottom: 32px;
}

/* ——— Footer ——— */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-inner .muted {
  color: var(--ink-mute);
  font-size: 13px;
  margin-top: 4px;
}
.footer-nav {
  flex-wrap: wrap;
  display: flex;
  gap: 24px;
}
.footer-nav a {
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

/* ——— Responsive ——— */
@media (max-width: 720px) {
  .menu { display: none; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 72px 0; }
}

/* ─────────────────────────────────────────────────────────
   Modal promocional (libro Mandalas Astrológicos)
   ───────────────────────────────────────────────────────── */
.promo-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at center, rgba(11,16,38,0.35), rgba(5,7,26,0.55));
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease;
}
.promo-overlay[data-enabled="false"] { display: none; }
.promo-overlay.visible { opacity: 1; pointer-events: auto; }
.promo-modal {
  position: relative;
  width: 100%; max-width: min(610px, 86vw);
  background: linear-gradient(160deg, #0F1533 0%, #2D1B4E 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 60px rgba(212, 175, 55, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 94vh;
}
.promo-overlay.visible .promo-modal { transform: translateY(0) scale(1); }
.promo-cover {
  background: #05071A;
  display: block;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
  line-height: 0;
}
.promo-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.promo-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 21, 51, 0.45) 100%);
  pointer-events: none;
}
.promo-content {
  padding: 28px 36px 28px;
  display: flex; flex-direction: column;
  color: var(--ink);
  text-align: center;
  align-items: center;
}
.promo-content .promo-features {
  align-self: center;
  align-items: center;
}
.promo-content .promo-cta,
.promo-content .promo-dismiss {
  align-self: center;
}
.promo-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  text-shadow: 0 0 8px color-mix(in srgb, var(--gold) 50%, transparent);
}
.promo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #F8F4E3 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.promo-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-mute);
  margin: 0 0 22px;
}
.promo-features {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.promo-features li {
  font-size: 14px;
  color: var(--ink);
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.4;
}
.promo-bullet {
  color: var(--gold);
  flex-shrink: 0;
  text-shadow: 0 0 6px color-mix(in srgb, var(--gold) 60%, transparent);
}
.promo-cta {
  align-self: flex-start;
  margin-bottom: 12px;
}
.promo-dismiss {
  background: transparent; border: none;
  color: var(--ink-mute);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-color: rgba(155, 163, 184, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
  align-self: flex-start;
  padding: 4px 0;
  transition: color 0.2s;
}
.promo-dismiss:hover { color: var(--ink); }
.promo-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  color: var(--ink);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 2;
}
.promo-close:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  transform: rotate(90deg);
}
@media (max-width: 720px) {
  .promo-modal { max-width: 420px; overflow-y: auto; }
  .promo-content { padding: 22px 20px 20px; }
}
