/* ==========================================================================
   ARCANO — tema nocturno de Tu Portal del Alma
   Inicio, login, registro y panel. Todo va bajo body.tpda-arcano para no
   tocar el resto del sitio.
   Paleta: Noche #07041A · Bruma #151034 · Oro #F2CF7D · Pergamino #EDE6FF
           Lavanda #A99BD1 · Rubí #E58FA2 (solo errores)
   Tipos:  Cinzel (títulos, como la placa de nombre de una carta)
           Cormorant Garamond (texto)
   ========================================================================== */

html:has(body.tpda-arcano) { background-color: #07041a; }

body.tpda-arcano {
  --ar-noche: #07041a;
  --ar-noche-2: #0d0827;
  --ar-bruma: #151034;
  --ar-bruma-2: #1d1645;
  --ar-oro: #f2cf7d;
  --ar-oro-claro: #fff3d6;
  --ar-oro-viejo: #b8893a;
  --ar-pergamino: #ede6ff;
  --ar-lavanda: #a99bd1;
  --ar-rubi: #e58fa2;
  --ar-linea: rgba(242, 207, 125, 0.22);
  --ar-linea-fuerte: rgba(242, 207, 125, 0.48);
  --ar-oro-grad: linear-gradient(180deg, #fff3d6 0%, #f2cf7d 46%, #b8893a 100%);
  --ar-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --ar-texto: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  background:
    radial-gradient(1200px 700px at 78% 8%, rgba(88, 56, 168, 0.28), transparent 62%),
    radial-gradient(900px 600px at 8% 92%, rgba(48, 30, 110, 0.32), transparent 60%),
    linear-gradient(180deg, #07041a 0%, #0a0622 55%, #07041a 100%) !important;
  background-color: #07041a !important;
  background-attachment: fixed !important;
  color: var(--ar-pergamino);
  font-family: var(--ar-texto);
  font-size: 1.08rem;
}

/* Cielo estrellado (canvas que crea arcano.js) */
.ar-cielo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body.tpda-arcano > *:not(.ar-cielo) { position: relative; z-index: 1; }
body.tpda-arcano .tpda-navbar { z-index: 1030; }

body.tpda-arcano ::selection { background: rgba(242, 207, 125, 0.32); color: #fff; }

body.tpda-arcano a { color: var(--ar-oro); }
body.tpda-arcano a:hover { color: var(--ar-oro-claro); }
body.tpda-arcano :focus-visible {
  outline: 2px solid var(--ar-oro);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Títulos ─────────────────────────────────────────────────────────── */
body.tpda-arcano h1,
body.tpda-arcano h2,
body.tpda-arcano h3,
body.tpda-arcano .dr-display,
body.tpda-arcano .panel-title,
body.tpda-arcano .auth-title {
  font-family: var(--ar-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ar-pergamino);
}
.ar-oro {
  background: var(--ar-oro-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
body.tpda-arcano main :where(p, li, a, span, small, label, blockquote, cite, td, th, dd, dt, figcaption, div) {
  font-family: var(--ar-texto);
}
body.tpda-arcano main :where(li) { font-size: 1.05rem; }
body.tpda-arcano .dr-lede {
  color: var(--ar-lavanda);
  font-size: 1.22rem;
  line-height: 1.62;
  font-style: italic;
  max-width: 62ch;
}
body.tpda-arcano .dr-eyebrow,
body.tpda-arcano .lp-kicker {
  font-family: var(--ar-texto);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--ar-oro);
}
body.tpda-arcano .dr-eyebrow::before,
body.tpda-arcano .dr-eyebrow::after { display: none !important; }

/* ── Botones ─────────────────────────────────────────────────────────── */
body.tpda-arcano .dr-btn,
body.tpda-arcano .btn-tpda-primary,
body.tpda-arcano .btn-tpda-secondary,
body.tpda-arcano .ar-btn {
  font-family: var(--ar-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.82rem 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
body.tpda-arcano .dr-btn-primary,
body.tpda-arcano .btn-tpda-primary,
body.tpda-arcano .ar-btn--oro {
  background: var(--ar-oro-grad) !important;
  color: #241405 !important;
  border: 1px solid rgba(255, 243, 214, 0.65) !important;
  box-shadow: 0 0 0 1px rgba(184, 137, 58, 0.5), 0 10px 32px -10px rgba(242, 207, 125, 0.55);
}
body.tpda-arcano .dr-btn-primary:hover,
body.tpda-arcano .btn-tpda-primary:hover,
body.tpda-arcano .ar-btn--oro:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(184, 137, 58, 0.7), 0 14px 40px -10px rgba(242, 207, 125, 0.75);
  color: #241405 !important;
}
body.tpda-arcano .dr-btn-ghost,
body.tpda-arcano .btn-tpda-secondary,
body.tpda-arcano .ar-btn--velo {
  background: rgba(21, 16, 52, 0.55) !important;
  color: var(--ar-pergamino) !important;
  border: 1px solid var(--ar-linea-fuerte) !important;
  backdrop-filter: blur(6px);
}
body.tpda-arcano .dr-btn-ghost:hover,
body.tpda-arcano .btn-tpda-secondary:hover,
body.tpda-arcano .ar-btn--velo:hover {
  border-color: var(--ar-oro) !important;
  color: var(--ar-oro-claro) !important;
  background: rgba(29, 22, 69, 0.75) !important;
}
body.tpda-arcano .dr-link {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 1.08rem !important;
  font-family: var(--ar-texto);
  font-style: italic;
  font-weight: 600;
  color: var(--ar-oro);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 207, 125, 0.35);
}
body.tpda-arcano .dr-link:hover { border-bottom-color: var(--ar-oro); }

/* ── Barra de navegación ─────────────────────────────────────────────── */
body.tpda-arcano .tpda-navbar {
  background: rgba(7, 4, 26, 0.72) !important;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--ar-linea) !important;
  box-shadow: none !important;
}
body.tpda-arcano .tpda-navbar.navbar::before { display: none !important; }
body.tpda-arcano .tpda-navbar .navbar-brand,
body.tpda-arcano .tpda-navbar .navbar-brand span {
  font-family: var(--ar-display) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  color: var(--ar-oro) !important;
}
body.tpda-arcano .tpda-navbar .nav-link {
  color: rgba(237, 230, 255, 0.82) !important;
  font-family: var(--ar-texto);
  font-size: 1.02rem;
  font-weight: 600;
}
body.tpda-arcano .tpda-navbar .nav-link:hover,
body.tpda-arcano .tpda-navbar .nav-link:focus { color: var(--ar-oro) !important; }
body.tpda-arcano .tpda-navbar .nav-link i { color: var(--ar-oro); opacity: 0.85; }
body.tpda-arcano .tpda-navbar .dropdown-menu {
  background: rgba(13, 8, 39, 0.97) !important;
  border: 1px solid var(--ar-linea) !important;
  backdrop-filter: blur(12px);
}
body.tpda-arcano .tpda-navbar .dropdown-item { color: var(--ar-pergamino) !important; font-family: var(--ar-texto); font-size: 1rem; }
body.tpda-arcano .tpda-navbar .dropdown-item:hover { background: rgba(242, 207, 125, 0.1) !important; color: var(--ar-oro) !important; }
body.tpda-arcano .tpda-navbar .dropdown-header { color: var(--ar-lavanda) !important; font-family: var(--ar-texto); font-style: italic; text-transform: none; letter-spacing: 0; }
body.tpda-arcano .tpda-navbar .vista-switcher {
  border: 1px solid var(--ar-linea) !important;
  background: rgba(21, 16, 52, 0.6) !important;
}
body.tpda-arcano .tpda-navbar .vista-btn { color: var(--ar-lavanda) !important; }
body.tpda-arcano .tpda-navbar .vista-btn.vista-active { background: var(--ar-oro-grad) !important; color: #241405 !important; }
body.tpda-arcano .tpda-navbar .btn,
body.tpda-arcano .tpda-navbar a.btn {
  border-radius: 999px !important;
  font-family: var(--ar-display);
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

/* ==========================================================================
   INICIO
   ========================================================================== */
body.tpda-arcano .lp-home { background: transparent !important; }

.ar-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
}
.ar-hero__copy { max-width: 36rem; }
.ar-hero__sello {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  font-family: var(--ar-texto);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ar-oro);
}
.ar-hero__sello img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ar-linea-fuerte);
  box-shadow: 0 0 24px rgba(242, 207, 125, 0.25);
}
.ar-hero__titulo {
  font-family: var(--ar-display) !important;
  font-weight: 700 !important;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0.01em !important;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.ar-hero__titulo span { display: block; }
.ar-hero__titulo .ar-hero__titulo-b {
  font-family: var(--ar-texto);
  font-size: 0.5em;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ar-pergamino);
  margin-top: 0.7rem;
  letter-spacing: 0;
}
.ar-hero__lede {
  font-size: clamp(1.18rem, 1.6vw, 1.36rem);
  line-height: 1.6;
  font-style: italic;
  color: var(--ar-lavanda);
  margin: 0 0 1.4rem;
  max-width: 34rem;
}
.ar-garantias {
  font-family: var(--ar-texto);
  font-weight: 500;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.4rem;
  font-size: 1.02rem;
  color: rgba(237, 230, 255, 0.78);
}
.ar-garantias li { display: inline-flex; align-items: center; gap: 0.45rem; }
.ar-garantias li::before { content: '✦'; color: var(--ar-oro); font-size: 0.75em; }
.ar-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.4rem; }
.ar-hero__nota { margin: 0; }

/* La Rueda de los Arcanos -------------------------------------------------- */
.ar-rueda {
  --r: 330px;          /* radio de la órbita */
  --w: 70px;           /* ancho de cada carta (deja aire entre ellas) */
  position: relative;
  height: min(78vh, 640px);
  min-height: 460px;
  perspective: 1500px;
  perspective-origin: 50% 38%;
  display: grid;
  place-items: center;
}
.ar-rueda__escenario {
  position: relative;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
  transform: rotateX(-19deg);
}
.ar-rueda__anillo {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: ar-girar 96s linear infinite;
}
.ar-rueda:hover .ar-rueda__anillo,
.ar-rueda:focus-within .ar-rueda__anillo { animation-play-state: paused; }
@keyframes ar-girar { to { transform: rotateY(-360deg); } }

.ar-carta {
  position: absolute;
  left: calc(var(--w) / -2);
  top: calc(var(--w) * -0.845);
  width: var(--w);
  aspect-ratio: 260 / 439;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 360deg / 22)) translateZ(var(--r));
}
.ar-carta__cara,
.ar-carta__dorso {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid rgba(255, 243, 214, 0.55);
  box-shadow: 0 0 0 1px rgba(184, 137, 58, 0.55), 0 12px 30px -8px rgba(0, 0, 0, 0.8), 0 0 26px -6px rgba(242, 207, 125, 0.35);
  background: #120c2e;
}
.ar-carta__cara img,
.ar-carta__dorso img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ar-carta__dorso { transform: rotateY(180deg); }
.ar-carta__dorso { opacity: 0.78; }
.ar-carta__dorso img { filter: saturate(0.7) brightness(0.5) hue-rotate(-10deg); }

/* El sol al centro y las órbitas */
.ar-rueda__sol {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  left: -60px;
  top: -60px;
  background: radial-gradient(circle at 50% 50%, #fffaf0 0%, #ffe7a6 18%, rgba(242, 207, 125, 0.55) 38%, rgba(242, 207, 125, 0.08) 62%, transparent 72%);
  filter: blur(0.3px);
  transform: translateZ(0);
}
.ar-rueda__halo {
  position: absolute;
  width: 420px;
  height: 420px;
  left: -210px;
  top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 207, 125, 0.16) 0%, rgba(120, 84, 220, 0.12) 38%, transparent 68%);
  pointer-events: none;
}
.ar-rueda__orbita {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(242, 207, 125, 0.28);
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
}
.ar-rueda__orbita--1 {
  width: calc(var(--r) * 2.18);
  height: calc(var(--r) * 2.18);
  margin: calc(var(--r) * -1.09) 0 0 calc(var(--r) * -1.09);
  transform: rotateX(90deg);
}
.ar-rueda__orbita--2 {
  width: calc(var(--r) * 1.42);
  height: calc(var(--r) * 1.42);
  margin: calc(var(--r) * -0.71) 0 0 calc(var(--r) * -0.71);
  transform: rotateX(90deg);
  border-style: dashed;
  border-color: rgba(169, 155, 209, 0.25);
}
.ar-rueda__pie {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-style: italic;
  color: var(--ar-lavanda);
  font-size: 1.02rem;
}

/* Cifras ------------------------------------------------------------------ */
body.tpda-arcano .lp-stats {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ar-linea);
  border-bottom: 1px solid var(--ar-linea);
  background: rgba(13, 8, 39, 0.45) !important;
}
body.tpda-arcano .lp-stat { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid var(--ar-linea); background: transparent !important; }
body.tpda-arcano .lp-stat:last-child { border-right: 0; }
body.tpda-arcano .lp-stat-n {
  font-family: var(--ar-display) !important;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2rem) !important;
  background: var(--ar-oro-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
body.tpda-arcano .lp-stat-l {
  font-family: var(--ar-texto) !important;
  font-style: italic;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 1.02rem !important;
  color: var(--ar-lavanda) !important;
}
body.tpda-arcano .lp-ticker { display: none; }

/* Secciones --------------------------------------------------------------- */
body.tpda-arcano .lp-section,
body.tpda-arcano .lp-section--alt { background: transparent !important; padding: clamp(4rem, 8vw, 6.5rem) 0; }
body.tpda-arcano .dr-section-head { margin-bottom: 3rem; }
body.tpda-arcano .dr-section-head .dr-display,
body.tpda-arcano .lp-section h2.dr-display { font-size: clamp(1.9rem, 3.6vw, 2.8rem) !important; }

/* Servicios: paneles altos con marco de carta */
body.tpda-arcano .lp-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
body.tpda-arcano .lp-svc,
body.tpda-arcano .lp-trust-card,
body.tpda-arcano .lp-quote,
body.tpda-arcano .lp-band,
body.tpda-arcano .lp-cta,
body.tpda-arcano .ar-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(29, 22, 69, 0.78), rgba(13, 8, 39, 0.86)) !important;
  border: 1px solid var(--ar-linea) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 0 0 4px rgba(7, 4, 26, 0.55), inset 0 0 0 5px rgba(242, 207, 125, 0.1), 0 24px 60px -30px rgba(0, 0, 0, 0.9) !important;
  color: var(--ar-pergamino);
}
body.tpda-arcano .lp-svc { padding: 2rem 1.7rem 1.7rem; display: flex; flex-direction: column; }
body.tpda-arcano .lp-svc h3,
body.tpda-arcano .lp-trust-card h3 {
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  margin: 1rem 0 0.6rem;
  color: var(--ar-oro-claro);
}
body.tpda-arcano .lp-svc p,
body.tpda-arcano .lp-trust-card p { color: rgba(237, 230, 255, 0.78); font-size: 1.08rem; line-height: 1.55; }
body.tpda-arcano .lp-svc ul { list-style: none; padding: 0; margin: 0.4rem 0 1.4rem; flex: 1; }
body.tpda-arcano .lp-svc li { padding: 0.32rem 0 0.32rem 1.3rem; position: relative; color: var(--ar-lavanda); font-size: 1.03rem; border-top: 1px solid rgba(242, 207, 125, 0.08); }
body.tpda-arcano .lp-svc li::before { content: '✦'; position: absolute; left: 0; top: 0.42rem; font-size: 0.7rem; color: var(--ar-oro); }
body.tpda-arcano .dr-card__icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center;
  color: var(--ar-oro) !important;
  background: radial-gradient(circle, rgba(242, 207, 125, 0.18), rgba(242, 207, 125, 0.03) 70%) !important;
  border: 1px solid var(--ar-linea-fuerte) !important;
  font-size: 1.15rem;
}

/* Pasos: una tirada de cuatro cartas (I–IV). Es una secuencia real. */
body.tpda-arcano .lp-steps {
  counter-reset: ar-paso;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}
body.tpda-arcano .lp-step {
  counter-increment: ar-paso;
  position: relative;
  min-height: 250px;
  padding: 3.6rem 1.4rem 2.6rem;
  text-align: center;
  border-radius: 12px !important;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(242, 207, 125, 0.12), transparent 60%),
    linear-gradient(180deg, #1b1442, #0e0929) !important;
  border: 1px solid var(--ar-linea-fuerte) !important;
  box-shadow: inset 0 0 0 6px #0b0722, inset 0 0 0 7px rgba(242, 207, 125, 0.32), 0 30px 60px -32px rgba(0, 0, 0, 0.95) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.tpda-arcano .lp-step::before {
  content: counter(ar-paso, upper-roman);
  position: absolute;
  top: 1.15rem;
  left: 0;
  right: 0;
  font-family: var(--ar-display);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--ar-oro);
}
body.tpda-arcano .lp-step h3 { font-size: 1.05rem; letter-spacing: 0.06em; color: var(--ar-oro-claro); margin: 0.6rem 0 0.9rem; }
body.tpda-arcano .lp-step p { font-size: 1.04rem; line-height: 1.5; color: rgba(237, 230, 255, 0.76); margin: 0; }
body.tpda-arcano .lp-step::after {
  content: '';
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 1.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ar-oro), transparent);
  opacity: 0.6;
}

/* Confianza */
body.tpda-arcano .lp-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
body.tpda-arcano .lp-trust-card { padding: 1.7rem 1.6rem; }
body.tpda-arcano .lp-trust-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; margin-top: 2.4rem; }

/* Banda, citas y llamado final */
body.tpda-arcano .lp-band { padding: clamp(1.8rem, 4vw, 3rem) !important; }
body.tpda-arcano .lp-band ul,
body.tpda-arcano .lp-cta ul { list-style: none; padding: 0; color: var(--ar-lavanda); }
body.tpda-arcano .lp-band li,
body.tpda-arcano .lp-cta li { padding: 0.3rem 0 0.3rem 1.3rem; position: relative; font-size: 1.06rem; }
body.tpda-arcano .lp-band li::before,
body.tpda-arcano .lp-cta li::before { content: '✦'; position: absolute; left: 0; color: var(--ar-oro); font-size: 0.7rem; top: 0.48rem; }
body.tpda-arcano .lp-band { display: grid !important; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 2rem; }
body.tpda-arcano .lp-band-visual {
  background: url('../img/tarot/webp/la_estrella.webp') center / contain no-repeat !important;
  min-height: 340px;
  height: 100%;
  border-radius: 0 !important;
  filter: drop-shadow(0 0 30px rgba(242, 207, 125, 0.3));
  border: 0 !important;
}
body.tpda-arcano .lp-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
body.tpda-arcano .lp-quote { padding: 1.8rem 1.7rem !important; margin: 0; }
body.tpda-arcano .lp-quote p { font-size: 1.24rem; font-style: italic; line-height: 1.55; color: var(--ar-pergamino); }
body.tpda-arcano .lp-quote cite { font-style: normal; font-family: var(--ar-display); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--ar-oro); }
body.tpda-arcano .lp-cta { padding: clamp(2rem, 4vw, 3.2rem) !important; }

/* Ritual */
body.tpda-arcano .ritual-container { text-align: center; }
body.tpda-arcano .ritual-start-btn,
body.tpda-arcano .message-cta-btn {
  font-family: var(--ar-display);
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  border-radius: 999px !important;
  background: var(--ar-oro-grad) !important;
  color: #241405 !important;
  border: 1px solid rgba(255, 243, 214, 0.6) !important;
  padding: 0.85rem 1.7rem !important;
}
body.tpda-arcano .ritual-card {
  background: url('../img/tarot/webp/reverso.webp') center / cover no-repeat, #120c2e !important;
  border: 1px solid rgba(255, 243, 214, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(184, 137, 58, 0.55), 0 18px 40px -16px rgba(0, 0, 0, 0.9) !important;
  border-radius: 9px !important;
}
body.tpda-arcano .ritual-card .card-back-text { opacity: 0; }
body.tpda-arcano .breath-ring { border-color: var(--ar-oro) !important; box-shadow: 0 0 60px rgba(242, 207, 125, 0.25) !important; }
body.tpda-arcano .message-glow-box {
  background: linear-gradient(180deg, rgba(29, 22, 69, 0.8), rgba(13, 8, 39, 0.9)) !important;
  border: 1px solid var(--ar-linea-fuerte) !important;
}
body.tpda-arcano .message-quote { font-family: var(--ar-texto); font-style: italic; font-size: 1.4rem; color: var(--ar-pergamino); }

/* Pie y elementos comunes oscuros */
body.tpda-arcano footer,
body.tpda-arcano .tpda-footer { background: rgba(7, 4, 26, 0.86) !important; border-top: 1px solid var(--ar-linea) !important; }

/* ==========================================================================
   LOGIN Y REGISTRO
   ========================================================================== */
.ar-auth {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem);
  gap: clamp(1.5rem, 5vw, 5rem);
}
.ar-auth__visual { text-align: center; align-self: start; position: sticky; top: 110px; padding-top: 1rem; }
.ar-tirada {
  position: relative;
  height: 400px;
  max-width: 460px;
  margin: 0 auto 1.6rem;
}
.ar-tirada__carta {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 168px;
  aspect-ratio: 260 / 439;
  margin-left: -84px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 243, 214, 0.6);
  box-shadow: 0 0 0 1px rgba(184, 137, 58, 0.6), 0 26px 50px -18px rgba(0, 0, 0, 0.95), 0 0 40px -10px rgba(242, 207, 125, 0.35);
  transform-origin: 50% 120%;
  animation: ar-repartir 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.ar-tirada__carta img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-tirada__carta:nth-of-type(1) { --rot: -16deg; --dx: -118px; --dy: 22px; animation-delay: 0.05s; }
.ar-tirada__carta:nth-of-type(2) { --rot: 0deg; --dx: 0px; --dy: 0px; animation-delay: 0.22s; z-index: 2; width: 186px; margin-left: -93px; }
.ar-tirada__carta:nth-of-type(3) { --rot: 16deg; --dx: 118px; --dy: 22px; animation-delay: 0.39s; }
.ar-tirada__carta { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
@keyframes ar-repartir {
  from { opacity: 0; transform: translate(0, 60px) rotate(0deg) scale(0.92); }
  to   { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); }
}
.ar-tirada::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(242, 207, 125, 0.22), transparent 70%);
  filter: blur(6px);
}
.ar-auth__frase {
  font-family: var(--ar-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 auto 0.8rem;
  max-width: 24ch;
}
.ar-auth__sub { font-style: italic; color: var(--ar-lavanda); font-size: 1.2rem; margin: 0 auto; max-width: 36ch; }
.ar-beneficios {
  list-style: none;
  padding: 0;
  margin: 1.4rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.2rem;
  max-width: 460px;
  text-align: left;
  color: rgba(237, 230, 255, 0.82);
  font-size: 1.04rem;
}
.ar-beneficios li { display: flex; gap: 0.55rem; align-items: baseline; }
.ar-beneficios li::before { content: '✦'; color: var(--ar-oro); font-size: 0.7rem; }

/* El formulario vive en una "carta" con marco doble */
.ar-auth__forma {
  position: relative;
  max-width: 470px;
  width: 100%;
  justify-self: center;
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.4rem, 3.6vw, 2.6rem);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(29, 22, 69, 0.88), rgba(10, 6, 32, 0.94));
  border: 1px solid var(--ar-linea-fuerte);
  box-shadow: inset 0 0 0 7px rgba(7, 4, 26, 0.6), inset 0 0 0 8px rgba(242, 207, 125, 0.18), 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 80px -40px rgba(242, 207, 125, 0.35);
  backdrop-filter: blur(10px);
}
.ar-auth__forma::before,
.ar-auth__forma::after {
  content: '✦';
  position: absolute;
  color: var(--ar-oro);
  font-size: 0.8rem;
  opacity: 0.9;
}
.ar-auth__forma::before { top: 14px; left: 18px; }
.ar-auth__forma::after { bottom: 14px; right: 18px; }
body.tpda-arcano .auth-logo-row { display: flex; align-items: center; gap: 0.8rem; justify-content: center; margin-bottom: 1.4rem; }
body.tpda-arcano .auth-logo { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ar-linea-fuerte); object-fit: cover; }
body.tpda-arcano .auth-brand-name { font-family: var(--ar-display); color: var(--ar-oro); letter-spacing: 0.05em; font-weight: 600; }
body.tpda-arcano .auth-brand-tag { text-transform: none !important; letter-spacing: 0 !important; font-style: italic; color: var(--ar-lavanda); font-size: 0.98rem; }
body.tpda-arcano .auth-title {
  font-family: var(--ar-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.05rem) !important;
  margin: 0 0 0.4rem;
  background: var(--ar-oro-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
body.tpda-arcano .auth-subtitle { text-align: center; color: var(--ar-lavanda); font-style: italic; font-size: 1.14rem; margin-bottom: 1.6rem; }
body.tpda-arcano .auth-field { margin-bottom: 1.05rem; }
body.tpda-arcano .auth-label {
  display: block;
  font-family: var(--ar-texto);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--ar-pergamino);
  margin-bottom: 0.35rem;
  text-transform: none;
  letter-spacing: 0;
}
body.tpda-arcano .auth-input,
body.tpda-arcano .auth-select {
  width: 100%;
  background: rgba(7, 4, 26, 0.7) !important;
  border: 1px solid rgba(169, 155, 209, 0.32) !important;
  border-radius: 10px !important;
  color: var(--ar-pergamino) !important;
  font-family: var(--ar-texto);
  font-size: 1.12rem;
  padding: 0.72rem 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.tpda-arcano .auth-input::placeholder { color: rgba(169, 155, 209, 0.55); font-style: italic; }
body.tpda-arcano .auth-input:focus,
body.tpda-arcano .auth-select:focus {
  outline: none;
  border-color: var(--ar-oro) !important;
  box-shadow: 0 0 0 3px rgba(242, 207, 125, 0.18), 0 0 24px -6px rgba(242, 207, 125, 0.5) !important;
}
body.tpda-arcano .auth-select option { background: #120c2e; color: var(--ar-pergamino); }
body.tpda-arcano .auth-err,
body.tpda-arcano .auth-flash { color: var(--ar-rubi) !important; }
body.tpda-arcano .auth-flash {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: rgba(229, 143, 162, 0.08) !important;
  border: 1px solid rgba(229, 143, 162, 0.35) !important;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 1.02rem;
}
body.tpda-arcano .auth-submit { width: 100%; margin-top: 0.6rem; padding: 0.95rem 1.6rem; }
body.tpda-arcano .auth-forgot,
body.tpda-arcano .auth-bottom { text-align: center; margin-top: 1rem; color: var(--ar-lavanda); font-size: 1.02rem; }
body.tpda-arcano .auth-forgot a,
body.tpda-arcano .auth-bottom a { color: var(--ar-oro); font-weight: 600; text-decoration: none; }
body.tpda-arcano .auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.4rem 0 1rem;
  font-style: italic;
  color: var(--ar-lavanda);
  font-size: 0.98rem;
}
body.tpda-arcano .auth-divider::before,
body.tpda-arcano .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--ar-linea); }
body.tpda-arcano .auth-explore-row { display: flex; gap: 0.6rem; }
body.tpda-arcano .auth-explore-row .btn-tpda-secondary { font-size: 0.72rem; padding: 0.7rem 0.8rem; }
body.tpda-arcano .sub { color: var(--ar-lavanda) !important; font-size: 0.98rem; font-style: italic; }
body.tpda-arcano .trial-banner {
  display: flex !important;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: rgba(242, 207, 125, 0.1) !important;
  border: 1px solid var(--ar-linea-fuerte) !important;
  color: var(--ar-oro) !important;
  font-style: italic;
  font-weight: 600;
}
body.tpda-arcano .reg-badges { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.8rem; }
body.tpda-arcano .reg-badges .tpda-badge {
  background: rgba(21, 16, 52, 0.8) !important;
  border: 1px solid var(--ar-linea) !important;
  color: var(--ar-pergamino) !important;
  font-family: var(--ar-texto);
  font-size: 0.95rem;
}
body.tpda-arcano .rf-role-toggle {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--ar-linea) !important;
  background: rgba(7, 4, 26, 0.5) !important;
  cursor: pointer;
  margin: 0.4rem 0 1rem;
}
body.tpda-arcano .rf-role-toggle:has(input:checked) { border-color: var(--ar-oro) !important; background: rgba(242, 207, 125, 0.07) !important; }
body.tpda-arcano .rf-role-toggle input { accent-color: #f2cf7d; margin-top: 0.3rem; width: 18px; height: 18px; }
body.tpda-arcano .rf-role-toggle .fw-bold { font-family: var(--ar-display); font-weight: 600 !important; letter-spacing: 0.04em; font-size: 0.95rem; }
body.tpda-arcano .tarotista-fields { border-left: 1px solid var(--ar-linea-fuerte); padding-left: 1rem; margin-bottom: 1rem; }
body.tpda-arcano .tpda-section-eyebrow { font-style: italic; color: var(--ar-oro); text-transform: none; letter-spacing: 0; }
body.tpda-arcano input[type="checkbox"] { accent-color: #f2cf7d; }

/* ==========================================================================
   PANEL
   ========================================================================== */
.ar-panel-cabecera {
  margin-inline: 12px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin: 0 0 2.2rem;
  padding: 1.6rem 1.8rem;
  border-radius: 18px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(242, 207, 125, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(29, 22, 69, 0.85), rgba(13, 8, 39, 0.9));
  border: 1px solid var(--ar-linea-fuerte);
  box-shadow: inset 0 0 0 6px rgba(7, 4, 26, 0.55), inset 0 0 0 7px rgba(242, 207, 125, 0.12), 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}
.ar-panel-cabecera__saludo { margin: 0 0 0.3rem; font-style: italic; color: var(--ar-lavanda); font-size: 1.12rem; }
.ar-panel-cabecera__nombre {
  font-family: var(--ar-display) !important;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem) !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.1;
}
.ar-panel-cabecera__fecha { margin: 0.45rem 0 0; color: rgba(237, 230, 255, 0.7); font-size: 1.04rem; text-transform: none; }
.ar-panel-cabecera__cartas { display: flex; flex: none; }
.ar-panel-cabecera__cartas img {
  width: 58px;
  aspect-ratio: 260 / 439;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 243, 214, 0.55);
  box-shadow: 0 0 0 1px rgba(184, 137, 58, 0.55), 0 14px 26px -12px rgba(0, 0, 0, 0.9);
}
.ar-panel-cabecera__cartas img:nth-of-type(1) { transform: rotate(-9deg) translate(10px, 6px); }
.ar-panel-cabecera__cartas img:nth-of-type(2) { transform: translateY(-4px); z-index: 1; position: relative; }
.ar-panel-cabecera__cartas img:nth-of-type(3) { transform: rotate(9deg) translate(-10px, 6px); }

body.tpda-arcano.page-dashboard .panel-title { display: none; }
body.tpda-arcano.page-dashboard .dashboard-container { padding-top: 2rem; }

/* Superficies del panel: misma familia que las cartas */
body.tpda-arcano.page-dashboard .streak-widget,
body.tpda-arcano.page-dashboard .glass-nav,
body.tpda-arcano.page-dashboard .glass-card,
body.tpda-arcano.page-dashboard .dash-card,
body.tpda-arcano.page-dashboard .oraculo-widget,
body.tpda-arcano.page-dashboard .return-banner,
body.tpda-arcano.page-dashboard .dash-pane > .card,
body.tpda-arcano.page-dashboard .card,
body.tpda-arcano.page-dashboard .hm-card,
body.tpda-arcano.page-dashboard .bv-card,
body.tpda-arcano.page-dashboard .pro-status-box,
body.tpda-arcano.page-dashboard .stat-box {
  background: linear-gradient(180deg, rgba(29, 22, 69, 0.72), rgba(13, 8, 39, 0.82)) !important;
  border: 1px solid var(--ar-linea) !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 50px -32px rgba(0, 0, 0, 0.95) !important;
  color: var(--ar-pergamino);
}
body.tpda-arcano.page-dashboard .streak-widget::before { background: var(--ar-oro-grad) !important; }
body.tpda-arcano.page-dashboard .streak-flame { color: var(--ar-oro) !important; }
body.tpda-arcano.page-dashboard .streak-days,
body.tpda-arcano.page-dashboard .stat-val { font-family: var(--ar-display) !important; font-weight: 600 !important; color: var(--ar-oro-claro) !important; }
body.tpda-arcano.page-dashboard .streak-msg,
body.tpda-arcano.page-dashboard .stat-lbl { font-family: var(--ar-texto); font-style: italic; color: var(--ar-lavanda) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 0.95rem !important; }

body.tpda-arcano.page-dashboard .glass-nav a,
body.tpda-arcano.page-dashboard .glass-nav .nav-item-link {
  color: rgba(237, 230, 255, 0.85) !important;
  font-family: var(--ar-texto);
  font-size: 1.04rem;
  font-weight: 600;
  border-radius: 9px;
}
body.tpda-arcano.page-dashboard .glass-nav a:hover { background: rgba(242, 207, 125, 0.08) !important; color: var(--ar-oro) !important; }
body.tpda-arcano.page-dashboard .glass-nav a i { color: var(--ar-oro) !important; }
body.tpda-arcano.page-dashboard .nav-section-header {
  font-family: var(--ar-texto) !important;
  font-style: italic;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.98rem !important;
  color: var(--ar-oro) !important;
  border-top: 1px solid var(--ar-linea);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

body.tpda-arcano.page-dashboard .dash-tabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(7, 4, 26, 0.6) !important;
  border: 1px solid var(--ar-linea) !important;
  margin-bottom: 1.6rem;
  overflow-x: auto;
}
body.tpda-arcano.page-dashboard .dash-tab {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 999px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ar-lavanda) !important;
  font-family: var(--ar-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.65rem 1rem !important;
  cursor: pointer;
}
body.tpda-arcano.page-dashboard .dash-tab:hover { color: var(--ar-oro-claro) !important; }
body.tpda-arcano.page-dashboard .dash-tab.active { background: var(--ar-oro-grad) !important; color: #241405 !important; box-shadow: 0 6px 20px -8px rgba(242, 207, 125, 0.6); }
body.tpda-arcano.page-dashboard .dash-tab.active i { color: #241405 !important; }

body.tpda-arcano.page-dashboard h3,
body.tpda-arcano.page-dashboard h4,
body.tpda-arcano.page-dashboard h5 { font-family: var(--ar-display); letter-spacing: 0.03em; color: var(--ar-oro-claro); }
body.tpda-arcano.page-dashboard .text-white-50,
body.tpda-arcano.page-dashboard .text-muted { color: var(--ar-lavanda) !important; }
body.tpda-arcano.page-dashboard .btn-primary,
body.tpda-arcano.page-dashboard .btn-warning {
  background: var(--ar-oro-grad) !important;
  border: 1px solid rgba(255, 243, 214, 0.6) !important;
  color: #241405 !important;
  border-radius: 999px !important;
}
body.tpda-arcano.page-dashboard .btn-outline-light,
body.tpda-arcano.page-dashboard .btn-outline-secondary,
body.tpda-arcano.page-dashboard .btn-outline-warning {
  border-color: var(--ar-linea-fuerte) !important;
  color: var(--ar-pergamino) !important;
  border-radius: 999px !important;
}
body.tpda-arcano.page-dashboard .form-control,
body.tpda-arcano.page-dashboard .form-select,
body.tpda-arcano.page-dashboard textarea,
body.tpda-arcano.page-dashboard input[type="text"] {
  background: rgba(7, 4, 26, 0.7) !important;
  border: 1px solid rgba(169, 155, 209, 0.3) !important;
  color: var(--ar-pergamino) !important;
  border-radius: 10px !important;
}

/* ==========================================================================
   ADAPTACIÓN A PANTALLAS
   ========================================================================== */
@media (max-width: 1100px) {
  .ar-rueda { --r: 260px; --w: 58px; }
  body.tpda-arcano .lp-svc-grid,
  body.tpda-arcano .lp-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tpda-arcano .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ar-hero { grid-template-columns: 1fr; min-height: auto; text-align: center; padding-top: 1rem; }
  .ar-hero__copy { margin: 0 auto; }
  .ar-hero__lede { margin-inline: auto; }
  .ar-garantias, .ar-hero__ctas { justify-content: center; }
  .ar-rueda { order: -1; height: 340px; min-height: 0; --r: 178px; --w: 40px; }
  .ar-rueda__sol { width: 90px; height: 90px; left: -45px; top: -45px; }
  .ar-rueda__halo { width: 300px; height: 300px; left: -150px; top: -150px; }
  body.tpda-arcano .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tpda-arcano .lp-stat:nth-child(2) { border-right: 0; }
  body.tpda-arcano .lp-stat:nth-child(-n+2) { border-bottom: 1px solid var(--ar-linea); }
  body.tpda-arcano .lp-quotes { grid-template-columns: 1fr; }
  body.tpda-arcano .lp-band { grid-template-columns: 1fr; }
  body.tpda-arcano .lp-band-visual { min-height: 240px; }
  .ar-auth { grid-template-columns: 1fr; }
  .ar-auth__visual { order: 2; position: static; }
  .ar-tirada { height: 300px; }
  .ar-tirada__carta { width: 128px; margin-left: -64px; }
  .ar-tirada__carta:nth-of-type(2) { width: 142px; margin-left: -71px; }
  .ar-tirada__carta:nth-of-type(1) { --dx: -88px; }
  .ar-tirada__carta:nth-of-type(3) { --dx: 88px; }
  .ar-panel-cabecera { flex-direction: column-reverse; align-items: flex-start; }
}
@media (max-width: 600px) {
  .ar-rueda { height: 290px; --r: 142px; --w: 33px; }
  body.tpda-arcano .lp-svc-grid,
  body.tpda-arcano .lp-trust-grid,
  body.tpda-arcano .lp-steps { grid-template-columns: 1fr; }
  body.tpda-arcano .lp-step { aspect-ratio: auto; min-height: 220px; }
  .ar-beneficios { grid-template-columns: 1fr; }
  body.tpda-arcano .auth-explore-row { flex-direction: column; }
  .ar-panel-cabecera__cartas img { width: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .ar-rueda__anillo { animation: none; transform: rotateY(-20deg); }
  .ar-tirada__carta { animation: none; }
}

body.tpda-arcano .lp-band-visual.is-pro { background-image: url('../img/tarot/webp/el_mago.webp') !important; }
body.tpda-arcano .lp-band.is-flip .lp-band-visual { order: -1; }


/* ==========================================================================
   SEGUNDA CAPA DE BELLEZA (10-11-2026)
   Cosmos WebGL en el inicio, ornamentos de marco, astrolabios y foil.
   ========================================================================== */
body.tpda-arcano {
  --ar-esq-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none' stroke='%23f2cf7d' stroke-width='1'%3E%3Cg transform='rotate(0 15 15)'%3E%3Cpath d='M1.5 29V11C1.5 5.8 5.8 1.5 11 1.5h18'/%3E%3Cpath d='M6 29V13.5C6 9.4 9.4 6 13.5 6H29' opacity='.4'/%3E%3Cpath d='M10.5 10.5l3-3 3 3-3 3z' fill='%23f2cf7d' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  --ar-esq-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none' stroke='%23f2cf7d' stroke-width='1'%3E%3Cg transform='rotate(90 15 15)'%3E%3Cpath d='M1.5 29V11C1.5 5.8 5.8 1.5 11 1.5h18'/%3E%3Cpath d='M6 29V13.5C6 9.4 9.4 6 13.5 6H29' opacity='.4'/%3E%3Cpath d='M10.5 10.5l3-3 3 3-3 3z' fill='%23f2cf7d' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  --ar-esq-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none' stroke='%23f2cf7d' stroke-width='1'%3E%3Cg transform='rotate(180 15 15)'%3E%3Cpath d='M1.5 29V11C1.5 5.8 5.8 1.5 11 1.5h18'/%3E%3Cpath d='M6 29V13.5C6 9.4 9.4 6 13.5 6H29' opacity='.4'/%3E%3Cpath d='M10.5 10.5l3-3 3 3-3 3z' fill='%23f2cf7d' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  --ar-esq-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none' stroke='%23f2cf7d' stroke-width='1'%3E%3Cg transform='rotate(270 15 15)'%3E%3Cpath d='M1.5 29V11C1.5 5.8 5.8 1.5 11 1.5h18'/%3E%3Cpath d='M6 29V13.5C6 9.4 9.4 6 13.5 6H29' opacity='.4'/%3E%3Cpath d='M10.5 10.5l3-3 3 3-3 3z' fill='%23f2cf7d' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  --ar-ornamento: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='16' viewBox='0 0 220 16' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23f2cf7d' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23f2cf7d'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%23f2cf7d' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23f2cf7d'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 8h88' stroke='url(%23a)'/%3E%3Cpath d='M132 8h88' stroke='url(%23b)'/%3E%3Cpath d='M92 8l4-4 4 4-4 4zM120 8l4-4 4 4-4 4z' fill='%23f2cf7d' opacity='.6'/%3E%3Cpath d='M110 0l1.8 6.2L118 8l-6.2 1.8L110 16l-1.8-6.2L102 8l6.2-1.8z' fill='%23f2cf7d'/%3E%3C/svg%3E");
}

/* Fondo con nebulosas de color, no solo violeta */
body.tpda-arcano {
  background:
    radial-gradient(1100px 680px at 82% 6%, rgba(98, 60, 190, 0.30), transparent 62%),
    radial-gradient(760px 520px at 104% 46%, rgba(190, 70, 150, 0.12), transparent 64%),
    radial-gradient(900px 620px at -6% 70%, rgba(38, 104, 170, 0.14), transparent 62%),
    radial-gradient(900px 600px at 8% 96%, rgba(48, 30, 110, 0.32), transparent 60%),
    linear-gradient(180deg, #07041a 0%, #0a0622 55%, #07041a 100%) !important;
  background-attachment: fixed !important;
}

/* Brillo de pan de oro en el título: una sola pasada al cargar */
.ar-hero__titulo .ar-oro {
  background-image:
    linear-gradient(105deg, transparent 38%, rgba(255, 252, 240, 0.95) 50%, transparent 62%),
    linear-gradient(180deg, #fff3d6 0%, #f2cf7d 46%, #b8893a 100%);
  background-size: 300% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 120% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(242, 207, 125, 0.28));
  animation: ar-pan-de-oro 3.2s 0.5s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes ar-pan-de-oro { from { background-position: 120% 0, 0 0; } to { background-position: -20% 0, 0 0; } }

/* Ornamento bajo los títulos de sección */
body.tpda-arcano .dr-section-head .dr-display::after,
body.tpda-arcano .lp-section h2.dr-display::after {
  content: '';
  display: block;
  width: 220px;
  height: 16px;
  margin: 1.1rem auto 0;
  background: var(--ar-ornamento) center / contain no-repeat;
  opacity: 0.9;
}
body.tpda-arcano .lp-band h2.dr-display::after,
body.tpda-arcano .lp-cta h2.dr-display::after { margin-left: 0; }

/* Esquinas de filigrana en paneles y formularios */
body.tpda-arcano .lp-svc::before,
body.tpda-arcano .lp-trust-card::before,
.ar-auth__forma::before,
.ar-panel-cabecera::before,
.ar-revelacion::before {
  content: '' !important;
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background:
    var(--ar-esq-tl) top left / 26px 26px no-repeat,
    var(--ar-esq-tr) top right / 26px 26px no-repeat,
    var(--ar-esq-br) bottom right / 26px 26px no-repeat,
    var(--ar-esq-bl) bottom left / 26px 26px no-repeat;
  opacity: 0.85;
  font-size: 0;
}
.ar-auth__forma::after { content: none !important; }

/* Cada servicio con el color de un elemento */
body.tpda-arcano .lp-svc { --ar-elemento: 242, 207, 125; overflow: hidden; }
body.tpda-arcano .lp-svc:nth-of-type(1) { --ar-elemento: 236, 128, 112; }
body.tpda-arcano .lp-svc:nth-of-type(2) { --ar-elemento: 120, 170, 240; }
body.tpda-arcano .lp-svc:nth-of-type(3) { --ar-elemento: 134, 214, 170; }
body.tpda-arcano .lp-svc::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 160px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(var(--ar-elemento), 0.16), transparent 70%);
  pointer-events: none;
}
body.tpda-arcano .lp-svc > * { position: relative; z-index: 1; }
body.tpda-arcano .lp-svc .dr-card__icon {
  color: rgb(var(--ar-elemento)) !important;
  border-color: rgba(var(--ar-elemento), 0.55) !important;
  background: radial-gradient(circle, rgba(var(--ar-elemento), 0.24), rgba(var(--ar-elemento), 0.03) 70%) !important;
  box-shadow: 0 0 28px -6px rgba(var(--ar-elemento), 0.6);
}

/* ── El Cosmos de los Arcanos ─────────────────────────────────────────── */
body.tpda-arcano .lp-home { overflow-x: clip; }
.ar-hero { position: relative; isolation: isolate; }
.ar-hero__copy { position: relative; z-index: 2; }
.ar-cosmos {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 84%, transparent 100%);
}
.ar-cosmos.is-listo { opacity: 1; }
.ar-cosmos__lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.ar-cosmos__etiqueta {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-family: var(--ar-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--ar-oro-claro);
  background: rgba(10, 6, 32, 0.82);
  border: 1px solid var(--ar-linea-fuerte);
  box-shadow: 0 0 24px -6px rgba(242, 207, 125, 0.5);
  pointer-events: none;
}
.ar-rueda { z-index: 1; }
.ar-rueda__mando, .ar-revelacion { display: none; }
.ar-hero--cosmos .ar-rueda { pointer-events: none; }
.ar-hero--cosmos .ar-rueda__escenario,
.ar-hero--cosmos .ar-rueda__pie { visibility: hidden; }
.ar-hero--cosmos .ar-rueda__mando {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.ar-hero--revelando .ar-rueda__mando .ar-rueda__pista { opacity: 0; }
.ar-sacar {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1.5rem;
  border-radius: 999px;
  font-family: var(--ar-display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--ar-oro-claro);
  background: linear-gradient(180deg, rgba(40, 28, 92, 0.85), rgba(14, 9, 40, 0.92));
  border: 1px solid var(--ar-linea-fuerte);
  box-shadow: 0 0 0 4px rgba(242, 207, 125, 0.05), 0 0 34px -8px rgba(242, 207, 125, 0.55);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ar-sacar span { color: var(--ar-oro); }
.ar-sacar:hover { transform: translateY(-1px); border-color: var(--ar-oro); box-shadow: 0 0 0 4px rgba(242, 207, 125, 0.08), 0 0 44px -6px rgba(242, 207, 125, 0.75); }
.ar-rueda__pista { margin: 0; font-style: italic; font-size: 0.98rem; color: rgba(169, 155, 209, 0.9); transition: opacity 0.3s ease; }

.ar-hero--cosmos .ar-revelacion:not([hidden]) {
  display: block;
  pointer-events: auto;
  position: absolute;
  right: 0;
  top: 50%;
  width: min(300px, 46%);
  padding: 1.7rem 1.5rem 1.5rem;
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(180deg, rgba(29, 22, 69, 0.9), rgba(10, 6, 32, 0.95));
  border: 1px solid var(--ar-linea-fuerte);
  box-shadow: inset 0 0 0 5px rgba(7, 4, 26, 0.6), inset 0 0 0 6px rgba(242, 207, 125, 0.14), 0 30px 80px -30px rgba(0, 0, 0, 0.95), 0 0 70px -30px rgba(242, 207, 125, 0.5);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(14px, -50%);
  transition: opacity 0.45s ease 0.25s, transform 0.55s cubic-bezier(.2, .8, .2, 1) 0.25s;
}
.ar-revelacion.is-visible { opacity: 1 !important; transform: translate(0, -50%) !important; }
.ar-revelacion__numero { margin: 0; font-family: var(--ar-display); font-size: 0.95rem; letter-spacing: 0.2em; color: var(--ar-oro); }
.ar-revelacion__nombre {
  margin: 0.2rem 0 0.5rem;
  font-family: var(--ar-display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.15;
  background: var(--ar-oro-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ar-revelacion__clave { margin: 0 0 0.8rem; font-style: italic; font-size: 1.18rem; color: var(--ar-pergamino); }
.ar-revelacion__nota { margin: 0 0 1.2rem; font-size: 0.98rem; color: var(--ar-lavanda); }
.ar-revelacion__acciones { display: flex; flex-direction: column; gap: 0.6rem; align-items: stretch; }
.ar-revelacion__acciones .dr-btn { justify-content: center; text-align: center; }
.ar-revelacion__cerrar {
  background: none;
  border: 0;
  padding: 0.3rem;
  font-family: var(--ar-texto);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ar-oro);
  cursor: pointer;
}
.ar-revelacion__cerrar:hover { color: var(--ar-oro-claro); text-decoration: underline; }

/* ── Astrolabio (SVG) detrás de la tirada y en el panel ───────────────── */
.ar-astrolabio { color: var(--ar-oro); display: block; }
.ar-astrolabio__signos { font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", "DejaVu Sans", serif; }
.ar-tirada .ar-astrolabio {
  position: absolute;
  width: 430px;
  height: 430px;
  left: 50%;
  top: 50%;
  margin: -238px 0 0 -215px;
  opacity: 0.42;
  animation: ar-girar-lento 180s linear infinite;
  filter: drop-shadow(0 0 12px rgba(242, 207, 125, 0.25));
}
@keyframes ar-girar-lento { to { transform: rotate(360deg); } }
.ar-tirada { perspective: 1100px; transform-style: preserve-3d; }
.ar-tirada__carta {
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) rotateY(calc(var(--ix, 0) * 9deg)) rotateX(calc(var(--iy, 0) * -7deg));
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.ar-tirada.is-inclinado .ar-tirada__carta { transition-duration: 0.12s; }
.ar-tirada__carta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 246, 220, 0.38) 46%, rgba(190, 160, 255, 0.18) 52%, transparent 66%);
  background-size: 240% 100%;
  background-position: calc(50% + var(--ix, 0) * 60%) 0;
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
  transition: background-position 0.2s ease, opacity 0.3s ease;
}
.ar-tirada.is-inclinado .ar-tirada__carta::after { opacity: 0.95; }

.ar-panel-cabecera { position: relative; overflow: hidden; }
.ar-panel-cabecera__cartas { position: relative; padding: 0.4rem 1.2rem; }
.ar-panel-cabecera__cartas .ar-astrolabio {
  position: absolute;
  width: 250px;
  height: 250px;
  left: 50%;
  top: 50%;
  margin: -125px 0 0 -125px;
  opacity: 0.32;
  animation: ar-girar-lento 240s linear infinite;
  pointer-events: none;
}
.ar-panel-cabecera__cartas img { position: relative; }

@media (max-width: 900px) {
  .ar-hero--cosmos .ar-revelacion:not([hidden]) {
    top: calc(100% - 1.6rem);
    bottom: auto;
    left: 50%;
    right: auto;
    width: min(340px, 92vw);
    text-align: center;
    transform: translate(-50%, 14px);
    z-index: 3;
  }
  .ar-revelacion.is-visible { transform: translate(-50%, 0) !important; }
  .ar-revelacion__acciones { align-items: center; }
  .ar-hero--revelando .ar-rueda__mando { opacity: 0; }
  .ar-tirada .ar-astrolabio { width: 330px; height: 330px; margin: -180px 0 0 -165px; }
  .ar-rueda { height: 380px; }
}
@media (max-width: 600px) {
  .ar-rueda { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-hero__titulo .ar-oro { animation: none; }
  .ar-tirada .ar-astrolabio, .ar-panel-cabecera__cartas .ar-astrolabio { animation: none; }
  .ar-cosmos { transition: none; }
}
.ar-tirada__carta { animation-fill-mode: backwards; }
.ar-hero--revelando .ar-rueda { z-index: 3; }

/* ── Cine: los videos del portal en una ventana con arco ──────────────── */
.ar-cine {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
body.tpda-arcano .ar-cine__titulo { text-align: left; font-size: clamp(2rem, 3.8vw, 2.9rem) !important; margin: 0 0 1rem; }
body.tpda-arcano .ar-cine__titulo::after { margin-left: 0 !important; }
.ar-cine__lede { font-style: italic; font-size: 1.24rem; line-height: 1.6; color: var(--ar-lavanda); margin: 0 0 2rem; max-width: 34rem; }
.ar-cine__escenas { display: grid; gap: 0.2rem; }
.ar-cine__escena {
  position: relative;
  display: grid;
  gap: 0.15rem;
  text-align: left;
  padding: 0.95rem 1.1rem 1.05rem 2.4rem;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.35s ease;
}
.ar-cine__escena::before {
  content: '✦';
  position: absolute;
  left: 0.95rem;
  top: 1.05rem;
  font-size: 0.8rem;
  color: rgba(242, 207, 125, 0.45);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
.ar-cine__escena:hover { background: rgba(242, 207, 125, 0.05); }
.ar-cine__escena.is-activa { background: linear-gradient(90deg, rgba(242, 207, 125, 0.12), rgba(242, 207, 125, 0.02)); }
.ar-cine__escena.is-activa::before { color: var(--ar-oro); text-shadow: 0 0 12px rgba(242, 207, 125, 0.8); }
.ar-cine__escena-titulo { font-family: var(--ar-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.04em; color: rgba(237, 230, 255, 0.72); transition: color 0.35s ease; }
.ar-cine__escena.is-activa .ar-cine__escena-titulo { color: var(--ar-oro-claro); }
body.tpda-arcano .ar-cine__escena-linea { font-size: 1.04rem; color: rgba(169, 155, 209, 0.85); }
.ar-cine__progreso {
  position: absolute;
  left: 2.4rem;
  right: 1.1rem;
  bottom: 0.45rem;
  height: 1px;
  background: rgba(242, 207, 125, 0.12);
  transform-origin: left;
}
.ar-cine__progreso::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ar-oro);
  transform: scaleX(0);
  transform-origin: left;
}
.ar-cine.is-contando .ar-cine__escena.is-activa .ar-cine__progreso::after { animation: ar-progreso 9s linear forwards; }
@keyframes ar-progreso { to { transform: scaleX(1); } }

.ar-cine__portal { position: relative; margin: 0; justify-self: center; width: min(100%, 460px); }
.ar-cine__ventana {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 22px 22px / 46% 46% 22px 22px;
  overflow: hidden;
  background: #120c2e;
  border: 1px solid rgba(255, 243, 214, 0.75);
  box-shadow:
    0 0 0 7px rgba(7, 4, 26, 0.9),
    0 0 0 8px rgba(242, 207, 125, 0.55),
    0 0 0 18px rgba(7, 4, 26, 0.35),
    0 0 0 19px rgba(242, 207, 125, 0.16),
    0 40px 100px -30px rgba(0, 0, 0, 0.95),
    0 0 120px -30px rgba(242, 207, 125, 0.35);
}
.ar-cine__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 9s linear;
  filter: saturate(0.92) contrast(1.04);
}
.ar-cine__video.is-activo { opacity: 1; transform: scale(1.12); }
.ar-cine__velo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 35%, transparent 45%, rgba(7, 4, 26, 0.75) 100%),
    linear-gradient(180deg, rgba(60, 34, 130, 0.25), rgba(7, 4, 26, 0.55));
  mix-blend-mode: multiply;
}
.ar-cine__velo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(242, 207, 125, 0.16), transparent 40%);
  mix-blend-mode: screen;
}
.ar-cine__estrella {
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  font-size: 1.3rem;
  color: var(--ar-oro);
  text-shadow: 0 0 18px rgba(242, 207, 125, 0.9);
}

/* ── Video de fondo en ingreso y registro, teñido de noche ────────────── */
.ar-auth { position: relative; isolation: isolate; }
.ar-auth > .tpda-hero-video-layer {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
body.tpda-arcano .tpda-hero-video { filter: saturate(0.85) contrast(1.05); }
body.tpda-arcano .tpda-hero-video-overlay {
  background:
    radial-gradient(90% 80% at 30% 45%, rgba(7, 4, 26, 0.18), rgba(7, 4, 26, 0.82) 100%),
    linear-gradient(90deg, rgba(7, 4, 26, 0.5) 0%, rgba(7, 4, 26, 0.3) 40%, rgba(7, 4, 26, 0.86) 70%, rgba(7, 4, 26, 0.92) 100%) !important;
}
body.tpda-arcano .tpda-hero-video-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #3a2286;
  mix-blend-mode: color;
  opacity: 0.55;
}
body.tpda-arcano.page-auth { overflow-x: clip; }

@media (max-width: 900px) {
  .ar-cine { grid-template-columns: 1fr; }
  .ar-cine__portal { order: -1; width: min(86vw, 380px); }
  body.tpda-arcano .ar-cine__titulo { text-align: center; }
  body.tpda-arcano .ar-cine__titulo::after { margin-left: auto !important; }
  .ar-cine__lede { text-align: center; margin-inline: auto; }
  body.tpda-arcano .tpda-hero-video-overlay {
    background: linear-gradient(180deg, rgba(7, 4, 26, 0.55), rgba(7, 4, 26, 0.92)) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ar-cine__video { transition: opacity 0.3s ease; transform: none !important; }
}
