:root {
  --noche: #0b0a24;
  --noche-2: #15123d;
  --purpura: #2a1658;
  --oro: #e9c97a;
  --oro-fuerte: #d4a94a;
  --blanco: #f7f3ea;
  --tenue: #b9b3d1;
  --linea: rgba(233, 201, 122, .28);
  --panel: rgba(21, 18, 61, .62);
  --titulos: 'Cinzel', 'Times New Roman', serif;
  --texto: 'Cormorant Garamond', Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--texto);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--blanco);
  background:
    radial-gradient(ellipse 90% 60% at 15% 0%, rgba(74, 38, 140, .55), transparent 60%),
    radial-gradient(ellipse 80% 50% at 90% 100%, rgba(28, 44, 120, .5), transparent 60%),
    linear-gradient(180deg, var(--noche) 0%, #100d33 50%, var(--noche) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

#cielo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, .footer { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--titulos); font-weight: 600; letter-spacing: .04em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); font-weight: 400; }
h1 em { font-family: var(--texto); font-style: italic; color: var(--oro); letter-spacing: 0; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); color: var(--oro); }
h3 { font-size: 1.35rem; }
h4 { font-size: .95rem; color: var(--oro); text-transform: uppercase; letter-spacing: .14em; margin: 1.2rem 0 .3rem; }
a { color: var(--oro); }

.eyebrow {
  font-family: var(--titulos);
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: .8rem;
}
.chico { font-size: 1.05rem; }
.tenue { color: var(--tenue); }
.palabras { font-style: italic; color: var(--oro); }

/* HEADER */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  transition: background .3s, box-shadow .3s;
}
.header.scrolled {
  background: rgba(11, 10, 36, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linea);
}
.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--oro);
  text-decoration: none;
  font-family: var(--titulos);
  font-size: 1.25rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.menu { display: flex; align-items: center; gap: 1.8rem; }
.menu a {
  color: var(--blanco);
  text-decoration: none;
  font-family: var(--titulos);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s;
}
.menu a:hover, .menu a:focus-visible { color: var(--oro); }
.menu .menu-cta {
  color: var(--oro);
  border: 1px solid var(--oro);
  padding: .5rem 1.1rem;
  border-radius: 999px;
}
.menu .menu-cta:hover { background: var(--oro); color: var(--noche); }
.menu-btn {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-btn span { display: block; width: 26px; height: 2px; background: var(--oro); transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--titulos);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-oro {
  background: linear-gradient(135deg, #f3dc9c, var(--oro-fuerte));
  color: #1a1238;
  box-shadow: 0 6px 24px rgba(212, 169, 74, .28);
}
.btn-oro:hover { box-shadow: 0 10px 32px rgba(212, 169, 74, .45); }
.btn-linea { border-color: var(--oro); color: var(--oro); background: transparent; }
.btn-linea:hover { background: rgba(233, 201, 122, .12); }
.btn-mp { background: #009ee3; color: #fff; box-shadow: 0 6px 24px rgba(0, 158, 227, .3); }
.btn-mp:hover { background: #0089c7; }
.btn-grande { padding: 1.1rem 2.6rem; font-size: .95rem; }
.link-btn {
  background: none;
  border: 0;
  color: var(--tenue);
  font-family: var(--texto);
  font-size: 1.05rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 1.2rem;
}
.link-btn:hover { color: var(--oro); }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

/* HERO */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.25rem 4rem;
}
.hero-sub { max-width: 34rem; margin: 1.4rem auto 2.2rem; color: var(--tenue); font-size: 1.35rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* SECCIONES */
.seccion { max-width: 1120px; margin: 0 auto; padding: 4.5rem 1.25rem; }
.titulo-seccion { text-align: center; max-width: 38rem; margin: 0 auto 2.5rem; }
.titulo-seccion p:last-child { color: var(--tenue); margin-top: .8rem; }
.titulo-seccion h2::after {
  content: '✦';
  display: block;
  font-size: .9rem;
  margin-top: .7rem;
  opacity: .8;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--linea);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

/* NUMEROLOGÍA */
#numerologia .panel { max-width: 620px; margin: 0 auto; }
.form { display: grid; gap: 1.2rem; }
.form label span {
  display: block;
  font-family: var(--titulos);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: .4rem;
}
.form input {
  width: 100%;
  font: inherit;
  color: var(--blanco);
  background: rgba(11, 10, 36, .7);
  border: 1px solid var(--linea);
  border-radius: 10px;
  padding: .8rem 1rem;
  color-scheme: dark;
}
.form input:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(233, 201, 122, .18); }
.form input::placeholder { color: #7d78a0; }
.form-error { color: #ffb4a8; font-size: 1.05rem; }

.resultado-numero { text-align: center; animation: aparecer .7s ease both; }
.saludo { color: var(--tenue); }
.numero-grande {
  font-family: var(--titulos);
  font-size: clamp(5rem, 18vw, 8rem);
  line-height: 1;
  margin: .5rem 0;
  background: linear-gradient(180deg, #fff3cf, var(--oro-fuerte));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(233, 201, 122, .45));
}
.resultado-numero h3 { color: var(--oro); margin-bottom: .3rem; }
.resultado-numero .palabras { margin-bottom: .9rem; }
.calculo { font-size: 1rem; color: var(--tenue); margin-top: .9rem; }
.bloqueado {
  margin-top: 1.6rem;
  padding: 1.4rem;
  border: 1px dashed var(--linea);
  border-radius: 14px;
  background: rgba(11, 10, 36, .45);
}
.bloqueado p { margin-bottom: 1rem; font-size: 1.1rem; }

/* TAROT */
.tarot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: start; }
.tarot-panel { text-align: center; position: relative; }
.tarot-panel.destacado { border-color: var(--oro); box-shadow: 0 20px 60px rgba(0, 0, 0, .35), 0 0 46px rgba(233, 201, 122, .13); }
.etiqueta {
  display: inline-block;
  font-family: var(--titulos);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid var(--linea);
  border-radius: 999px;
  padding: .25rem .9rem;
  margin-bottom: .9rem;
  color: var(--tenue);
}
.etiqueta-oro { background: var(--oro); color: var(--noche); border-color: var(--oro); font-weight: 700; }
.tarot-panel h3 { color: var(--oro); margin-bottom: .4rem; }

.mesa { display: flex; justify-content: center; gap: 1rem; margin: 1.6rem 0; perspective: 1200px; }
.carta { width: 190px; aspect-ratio: 5 / 8; }
.carta.mini { width: 31%; max-width: 150px; }
.carta-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.4, .1, .2, 1);
}
.carta.girada .carta-inner { transform: rotateY(180deg); }
.carta-cara {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}
.carta-cara svg { display: block; width: 100%; height: 100%; }
.carta-frente { transform: rotateY(180deg); }
.carta.barajando { animation: barajar .5s ease; }
.mesa-3 .carta:nth-child(1) { transform: rotate(-5deg) translateY(6px); }
.mesa-3 .carta:nth-child(3) { transform: rotate(5deg) translateY(6px); }
.carta-col { width: 31%; max-width: 150px; }
#mesa3 .carta { transform: none; width: 100%; }
.posicion {
  font-family: var(--titulos);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-top: .6rem;
}

.lectura { margin-top: 1.5rem; animation: aparecer .7s ease both; }
.lectura h4 { font-size: 1.2rem; margin-top: 0; }
.lectura-item { text-align: left; padding: 1.1rem 0; border-top: 1px solid var(--linea); }
.lectura-item h4 { margin: 0 0 .1rem; }
.lectura-item .carta-nombre { font-family: var(--titulos); font-size: 1.15rem; }
.sintesis {
  text-align: left;
  margin-top: .6rem;
  padding: 1.3rem;
  border-radius: 14px;
  background: rgba(233, 201, 122, .08);
  border: 1px solid var(--linea);
}
.sintesis h4 { margin-top: 0; }
.sintesis p + p { margin-top: .7rem; }

.checks { list-style: none; text-align: left; display: inline-block; margin: .4rem 0 1.5rem; }
.checks li { padding-left: 1.6rem; position: relative; margin: .35rem 0; }
.checks li::before { content: '✦'; position: absolute; left: 0; color: var(--oro); font-size: .85rem; top: .15rem; }
#pagoPendiente .chico { margin-top: .9rem; }
.pagos-titulo { font-family: var(--titulos); font-size: .9rem; letter-spacing: .1em; color: var(--oro); margin-bottom: 1rem; }
.pagos { display: grid; gap: 1.4rem; max-width: 380px; margin: 0 auto; }
.pago-opcion { display: flex; flex-direction: column; align-items: center; gap: .6rem; min-width: 0; }
.pago-opcion .btn { width: 100%; }
.pago-zona { font-family: var(--titulos); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tenue); }
#paypal-container-SPZ9JFYRHFLES { width: 100%; background: #fff; border-radius: 12px; padding: 1rem .9rem .4rem; color-scheme: light; }
#paypal-container-SPZ9JFYRHFLES:empty { display: none; }
#paypal-container-SPZ9JFYRHFLES, #paypal-container-SPZ9JFYRHFLES * { color: #1a1238; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; letter-spacing: 0; text-transform: none; }
#paypal-container-SPZ9JFYRHFLES h1, #paypal-container-SPZ9JFYRHFLES h2, #paypal-container-SPZ9JFYRHFLES h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
#paypal-container-SPZ9JFYRHFLES p, #paypal-container-SPZ9JFYRHFLES span, #paypal-container-SPZ9JFYRHFLES div { font-size: .95rem; line-height: 1.4; }

/* LUNA */
.luna-panel { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.luna-vista { text-align: center; }
#lunaSvg { width: min(220px, 60vw); filter: drop-shadow(0 0 34px rgba(233, 201, 122, .4)); animation: flotar 7s ease-in-out infinite; }
.luna-fecha { color: var(--tenue); font-size: 1.05rem; margin-top: 1rem; text-transform: capitalize; }
.luna-vista h3 { color: var(--oro); font-size: 1.6rem; margin: .2rem 0; }
.luna-ritual h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.luna-ritual ol { padding-left: 1.3rem; }
.luna-ritual ol li { margin: .35rem 0; padding-left: .3rem; }
.luna-ritual ol li::marker { color: var(--oro); font-family: var(--titulos); }
.afirmacion {
  margin: 1.4rem 0 1rem;
  padding: 1rem 1.3rem;
  border-left: 2px solid var(--oro);
  font-style: italic;
  font-size: 1.3rem;
  background: rgba(233, 201, 122, .07);
  border-radius: 0 10px 10px 0;
}

/* EBOOK */
.ebook { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; border-color: var(--oro); }
.ebook-portada img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 50px rgba(233, 201, 122, .18);
  transform: rotate(-2.5deg);
  transition: transform .4s;
}
.ebook-portada img:hover { transform: rotate(0) scale(1.02); }
.ebook-info h2 { margin-bottom: 1rem; }
.ebook-info .checks { margin-top: 1rem; }
.precio { font-family: var(--titulos); font-size: 3.2rem; color: var(--oro); line-height: 1; margin-bottom: 1.2rem; }
.precio span { font-size: 1rem; letter-spacing: .2em; vertical-align: super; color: var(--tenue); }
.ebook-info .chico { margin-top: .9rem; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 3rem 1.25rem 2.5rem;
  border-top: 1px solid var(--linea);
  color: var(--tenue);
  font-size: 1rem;
  margin-top: 3rem;
}
.footer p { max-width: 44rem; margin: .5rem auto; }
.logo-footer { font-family: var(--titulos); color: var(--oro); letter-spacing: .3em; text-transform: uppercase; font-size: 1.1rem; }

/* ANIMACIONES */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes barajar {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-14px) rotate(-5deg); }
  75% { transform: translateX(14px) rotate(5deg); }
}

/* MOBILE */
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(300px, 82vw);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(11, 10, 36, .97);
    border-left: 1px solid var(--linea);
    transform: translateX(100%);
    transition: transform .35s ease;
    visibility: hidden;
  }
  .menu.abierto { transform: none; visibility: visible; }
  .menu a { font-size: .95rem; }
  .menu-btn { position: relative; z-index: 2; }
  .tarot-grid, .luna-panel, .ebook { grid-template-columns: 1fr; }
  .ebook-portada { max-width: 260px; margin: 0 auto; }
  .ebook-info { text-align: center; }
  .seccion { padding: 3.2rem 1rem; }
}
@media (max-width: 420px) {
  body { font-size: 1.12rem; }
  .logo { font-size: 1.05rem; letter-spacing: .16em; }
  .btn { padding: .9rem 1.4rem; width: 100%; }
  .carta { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
