:root {
  --bg: #120d1f;
  --bg-alt: #1a1330;
  --surface: #221a3d;
  --gold: #d9b56a;
  --gold-soft: #f0dcae;
  --text: #ece6f5;
  --muted: #a99fbf;
  --line: rgba(217, 181, 106, 0.25);
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--gold-soft); }
h3 { font-size: 1.3rem; color: var(--gold-soft); }
p { margin: 0 0 1em; }

.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 10% 20%, #fff8, transparent),
    radial-gradient(1px 1px at 30% 70%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, #fff9, transparent),
    radial-gradient(1px 1px at 75% 45%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 90% 80%, #fff8, transparent),
    radial-gradient(1px 1px at 45% 90%, #fff5, transparent),
    radial-gradient(ellipse at top, #2c1f52 0%, transparent 60%);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.25rem;
  background: rgba(18, 13, 31, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--display); color: var(--gold-soft); text-decoration: none; font-size: 1.1rem; }
.brand-mark { color: var(--gold); }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 1.05rem; }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: var(--gold); font-size: 1.6rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; padding: .7rem 1.5rem;
  background: linear-gradient(135deg, var(--gold), #b8914a);
  color: #1a1330 !important; text-decoration: none; border: 0; border-radius: 999px;
  font-family: var(--display); font-size: .95rem; letter-spacing: .05em; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217,181,106,.3); }
.btn-ghost { background: transparent; color: var(--gold) !important; border: 1px solid var(--gold); }
.btn-small { padding: .45rem 1rem; font-size: .85rem; }

/* Layout */
.section { padding: 5rem 1rem; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 15%, var(--bg-alt) 85%, transparent); }
.container { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { font-family: var(--display); color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; margin-bottom: .6rem; }
.muted, .note { color: var(--muted); }
.note { font-size: 1rem; font-style: italic; max-width: 720px; margin: 2rem auto 0; }
.lead-sm { color: var(--muted); margin-bottom: 2.5rem; }

/* Hero */
.hero { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 4rem 1rem; }
.hero .lead { max-width: 640px; color: var(--muted); font-size: 1.3rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0 2rem; }
.hero-note { color: var(--gold); font-style: italic; }

/* Quote */
.quote {
  margin: 0; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); font-size: 1.4rem; font-style: italic; color: var(--gold-soft);
}
.quote footer { font-size: 1rem; color: var(--muted); font-style: normal; }

/* Features */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.feature-icon { font-size: 2.6rem; color: var(--gold); margin-bottom: .5rem; }

/* Tarot card */
.tarot-card {
  width: 110px; aspect-ratio: 7 / 12;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: .5rem .3rem;
  background: linear-gradient(160deg, #2e2350, #1b1433);
  border: 2px solid var(--gold); border-radius: 10px;
  box-shadow: inset 0 0 0 4px #1b1433, inset 0 0 0 5px var(--line);
  color: var(--gold-soft); font-family: var(--display); text-align: center;
}
.tc-num { font-size: .85rem; }
.tc-symbol { font-size: 2.2rem; color: var(--gold); }
.tc-name { font-size: .7rem; line-height: 1.1; }
.tarot-card.mini { width: 80px; }
.tarot-card.mini .tc-symbol { font-size: 1.6rem; }
.tarot-card.mini .tc-name { font-size: .55rem; }
.tarot-card.big { width: 170px; margin: 0 auto 1.5rem; }
.tarot-card.big .tc-symbol { font-size: 3.4rem; }
.tarot-card.big .tc-name { font-size: .9rem; }
.reveal { animation: flip .8s ease; }
@keyframes flip { from { transform: rotateY(90deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* Journey */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1.5rem 1rem; }
.journey-item { background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--muted); font-family: var(--serif); font-size: .95rem; width: 100%; }
.journey-item:hover .tarot-card, .journey-item:focus-visible .tarot-card { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(217,181,106,.25); }
.journey-item .tarot-card { transition: transform .25s, box-shadow .25s; }
.journey-cap { text-align: center; line-height: 1.2; }

/* Modal */
.modal {
  max-width: 460px; width: calc(100% - 2rem); border: 1px solid var(--gold); border-radius: var(--radius);
  background: var(--surface); color: var(--text); padding: 2rem; text-align: center;
}
.modal::backdrop { background: rgba(0,0,0,.7); }
.modal-close { position: absolute; top: .5rem; right: .8rem; background: none; border: 0; color: var(--gold); font-size: 2rem; cursor: pointer; }
.question { color: var(--gold); font-style: italic; }

/* Draw */
.draw-area { min-height: 260px; display: flex; justify-content: center; align-items: center; margin: 2rem 0; }
.deck { position: relative; width: 130px; height: 222px; background: none; border: 0; cursor: pointer; }
.card-back {
  position: absolute; inset: 0; border-radius: 10px; border: 2px solid var(--gold);
  background: repeating-linear-gradient(45deg, #2e2350 0 8px, #241b42 8px 16px);
  box-shadow: 0 8px 25px rgba(0,0,0,.4);
  transition: transform .3s;
}
.card-back:nth-child(1) { transform: rotate(-6deg); }
.card-back:nth-child(2) { transform: rotate(3deg); }
.card-back:nth-child(3)::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); font-size: 2.5rem; }
.deck:hover .card-back:nth-child(1) { transform: rotate(-12deg) translateX(-10px); }
.deck:hover .card-back:nth-child(2) { transform: rotate(9deg) translateX(10px); }
.drawn { max-width: 520px; }
.estado { background: var(--surface); border-left: 3px solid var(--gold); padding: .8rem 1rem; text-align: left; border-radius: 6px; }

/* Numerology */
.num-form { display: flex; gap: .8rem; justify-content: center; align-items: center; flex-wrap: wrap; margin: 2rem 0; }
.num-form label { color: var(--muted); }
.num-form input {
  padding: .6rem .9rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 1.1rem; color-scheme: dark;
}
.num-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.calc { color: var(--muted); font-size: 1rem; }
.num-big { font-family: var(--display); font-size: 4.5rem; color: var(--gold); line-height: 1; margin: .5rem 0 1rem; }
.num-arcano { display: flex; gap: 1rem; align-items: center; justify-content: center; text-align: left; margin-top: 1rem; }
.num-arcano p { margin: 0; }

/* Runes */
.runes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: .7rem; max-width: 760px; margin: 0 auto 2rem; }
.rune {
  aspect-ratio: 3 / 4; border-radius: 40% 40% 35% 35%;
  background: linear-gradient(160deg, #cfc7b8, #8f8676); border: 0;
  color: #2a1f14; font-size: 1.8rem; cursor: pointer;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.3), 0 4px 10px rgba(0,0,0,.3);
  transition: transform .2s;
}
.rune:hover, .rune.active { transform: translateY(-4px) scale(1.05); outline: 2px solid var(--gold); }
.rune-detail { text-align: center; min-height: 140px; }
.rune-big { font-size: 3.5rem; color: var(--gold); display: block; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.contact-list li { margin-bottom: .6rem; }
.contact-list span { display: inline-block; width: 1.8rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(200deg); }

/* Footer */
.footer { text-align: center; padding: 3rem 1rem; border-top: 1px solid var(--line); font-size: 1rem; }
.footer p:first-child { font-family: var(--display); color: var(--gold); }

/* Responsive */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 1rem; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .two-col, .cards-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1rem; }
  .journey { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
