/* Alma Gemela · quiz. Estilo copiado de Elyon (tu-almagemela.com/quiz-latam, 17/11/2026):
   noche violeta, dorado, Fraunces para títulos y Jost para el texto. */
:root {
  --noche: #120c24;
  --violeta: #2a1752;
  --carta: rgba(52, 30, 92, .55);
  --oro: #d9b25f;
  --oro-claro: #f6e3a8;
  --oro-linea: rgba(217, 178, 95, .38);
  --texto: #f3eefe;
  --gris: #b9b0d0;
  --opcion: rgba(255, 255, 255, .05);
  --opcion-borde: rgba(255, 255, 255, .12);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--texto); min-height: 100vh; min-height: 100dvh;
  background: linear-gradient(180deg, #2a1652 0%, #1a1035 38%, var(--noche) 100%) fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* estrellas del fondo */
.cielo { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .8;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent), radial-gradient(1px 1px at 82% 9%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 4% 32%, var(--oro) 50%, transparent), radial-gradient(1px 1px at 93% 30%, #fff 50%, transparent),
    radial-gradient(1px 1px at 38% 48%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 92% 66%, var(--oro) 50%, transparent),
    radial-gradient(1px 1px at 18% 72%, #fff 50%, transparent), radial-gradient(1px 1px at 63% 82%, #fff 50%, transparent),
    radial-gradient(1px 1px at 86% 82%, #fff 50%, transparent), radial-gradient(1px 1px at 8% 92%, #fff 50%, transparent),
    radial-gradient(1px 1px at 52% 96%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 70% 22%, var(--oro) 50%, transparent);
}
.cielo::after { content: ""; position: absolute; right: -30%; bottom: -10%; width: 80%; height: 50%;
  background: radial-gradient(closest-side, rgba(120, 80, 200, .22), transparent); }

/* cabecera: marca y estrellas de avance */
.top { position: relative; z-index: 2; text-align: center; padding: 22px 16px 0; }
body.limpio .top { display: none; }
.marca { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--serif); font-style: italic; font-size: 18px; color: #e6dcf5; }
.marca::before, .marca::after { content: ""; width: 24px; height: 1px; background: var(--oro-linea); }
.estrellas { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; height: 20px; }
.estrellas i { width: 10px; height: 10px; background: rgba(255, 255, 255, .28); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transition: all .3s; }
.estrellas i.ok { background: var(--oro); }
.estrellas i.act { width: 18px; height: 18px; background: var(--oro-claro); filter: drop-shadow(0 0 4px var(--oro)); }

main { position: relative; z-index: 1; max-width: 26rem; margin: 0 auto; padding: 24px 16px 48px; }
.screen { display: none; animation: entra .35s ease; }
.screen.on { display: block; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* la tarjeta con marco dorado de cada pregunta */
.carta { position: relative; padding: 30px 20px 22px; border-radius: 20px; background: var(--carta);
  border: 1px solid var(--oro-linea); box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 0 0 7px rgba(18, 12, 36, .4), inset 0 0 0 8px rgba(217, 178, 95, .18); }
.esq { position: absolute; width: 10px; height: 10px; background: var(--oro); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.esq.a { top: -5px; left: -5px; } .esq.b { top: -5px; right: -5px; } .esq.c { bottom: -5px; left: -5px; } .esq.d { bottom: -5px; right: -5px; }
.romano { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--serif); font-style: italic; color: var(--oro); font-size: 19px; margin-bottom: 12px; }
.romano::before, .romano::after { content: ""; width: 36px; height: 1px; background: var(--oro-linea); }

.q { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.22; text-align: center; color: #fff; margin-bottom: 10px; }
.q.grande { font-size: 30px; }
.sub { text-align: center; color: var(--gris); font-size: 15.5px; margin-bottom: 4px; }

/* opciones */
.opts { margin-top: 22px; }
.opts.emo { display: flex; flex-direction: column; gap: 14px; }
.opts.emo .opt { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 16px 12px 12px; text-align: left;
  background: var(--opcion); border: 1px solid var(--opcion-borde); border-radius: 14px; transition: border-color .2s, background .2s, transform .1s; }
.opt .emo { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.opt .lbl { flex: 1; font-weight: 500; font-size: 16.5px; }
.arrow { flex: none; color: var(--oro); }
.arrow svg { width: 18px; height: 18px; display: block; }
.opt:active { transform: scale(.98); }
.opt.sel, .opts.emo .opt:hover { border-color: var(--oro); background: rgba(217, 178, 95, .1); }

.opts.signos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opts.signos .opt { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 4px 12px;
  background: var(--opcion); border: 1px solid var(--opcion-borde); border-radius: 14px; transition: border-color .2s, background .2s, transform .1s; }
.glifo { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 35%, #fffaf0, #efe4cc); color: #6b3c99; font-size: 30px; line-height: 1;
  box-shadow: 0 0 0 2px rgba(217, 178, 95, .55), 0 4px 12px rgba(0, 0, 0, .3); }
.opts.signos .lbl { font-size: 14px; }

.volver { display: block; margin: 26px auto 0; color: var(--gris); font-size: 15px; }

/* nombre */
.nombre { display: block; width: 100%; margin: 30px 0 22px; padding: 6px 0 12px; background: none; border: 0; border-bottom: 1px solid var(--oro-linea);
  outline: 0; text-align: center; color: #fff; font-family: var(--serif); font-style: italic; font-size: 27px; }
.nombre::placeholder { color: rgba(185, 176, 208, .55); }
.nombre:focus { border-bottom-color: var(--oro); }

/* botón dorado */
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 20px; border-radius: 999px;
  background: linear-gradient(100deg, #b98d34 0%, #e2c072 45%, #fbefc8 100%); color: #2a1a10; font-weight: 600; font-size: 18px;
  box-shadow: 0 8px 28px rgba(217, 178, 95, .35); transition: transform .1s, opacity .2s; }
.cta b { font-size: 22px; font-weight: 500; }
.cta:active { transform: scale(.98); }
.cta:disabled { opacity: .5; cursor: default; }

/* carga */
.abanico { position: relative; height: 140px; margin: 40px auto 34px; width: 220px; }
.abanico i { position: absolute; top: 0; left: 50%; width: 78px; height: 118px; margin-left: -39px; border-radius: 10px;
  background: linear-gradient(160deg, #3a2468, #23154a); border: 1px solid var(--oro-linea);
  box-shadow: inset 0 0 0 5px rgba(18, 12, 36, .45), inset 0 0 0 6px rgba(217, 178, 95, .25), 0 12px 30px rgba(0, 0, 0, .4); }
.abanico i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; background: var(--oro);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.abanico i:nth-child(1) { transform: translateX(-58px) rotate(-14deg); }
.abanico i:nth-child(3) { transform: translateX(58px) rotate(14deg); }
.abanico i:nth-child(2) { z-index: 1; animation: late 1.6s ease-in-out infinite; }
@keyframes late { 50% { transform: translateY(-6px); } }
.pasos-load { list-style: none; text-align: center; min-height: 26px; margin-top: 6px; }
.pasos-load li { display: none; font-family: var(--serif); font-style: italic; color: var(--oro); font-size: 17px; opacity: .85; }
.pasos-load li.ok { display: block; animation: entra .35s ease; }
.pasos-load li.ok:has(+ li.ok) { display: none; }
.load .tr { width: 200px; height: 3px; margin: 22px auto 0; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; }
.load .tr i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b98d34, var(--oro-claro)); transition: width .08s linear; }

/* lectura lista */
body.limpio main { padding-top: 40px; }
.kicker { text-align: center; color: var(--oro); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px; }
.resumen { text-align: center; font-family: var(--serif); font-style: italic; color: var(--oro); font-size: 17px; margin-bottom: 24px; }
.velada { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; width: 156px; height: 236px; margin: 0 auto 30px;
  border-radius: 14px; background: repeating-linear-gradient(45deg, rgba(217, 178, 95, .06) 0 1px, transparent 1px 18px), repeating-linear-gradient(-45deg, rgba(217, 178, 95, .06) 0 1px, transparent 1px 18px), linear-gradient(160deg, #3a2468, #23154a);
  border: 1px solid var(--oro-linea); box-shadow: inset 0 0 0 6px rgba(18, 12, 36, .45), inset 0 0 0 7px rgba(217, 178, 95, .3), 0 0 60px rgba(217, 178, 95, .12), 0 16px 40px rgba(0, 0, 0, .45); }
.corazon { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--oro-claro);
  background: radial-gradient(circle, rgba(217, 178, 95, .35), rgba(217, 178, 95, .12)); box-shadow: 0 0 0 1px var(--oro-linea), 0 0 0 7px rgba(217, 178, 95, .1); }
.velada em { font-family: var(--serif); font-size: 16px; color: var(--oro); }
.txt { text-align: center; font-size: 16.5px; line-height: 1.55; margin-bottom: 28px; }
.cta.buy { animation: brillo 2.4s ease-in-out infinite; }
@keyframes brillo { 50% { box-shadow: 0 8px 40px rgba(217, 178, 95, .6); } }
.pie { text-align: center; color: var(--gris); font-size: 13px; margin-top: 14px; }

/* ---- 18/11: más ancho y más corto (pedido de Dante), signos ilustrados y movimiento ---- */
main { max-width: 36rem; padding: 18px 14px 32px; }
.top { padding-top: 16px; }
.carta { padding: 24px 22px 20px; }
.romano { margin-bottom: 8px; }
.opts { margin-top: 18px; }
.opts.emo { gap: 10px; }
.opts.emo .opt { padding: 10px 14px 10px 10px; }
.opts.signos { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.opts.signos .opt { padding: 12px 2px 10px; gap: 8px; }
.glifo { width: 64px; height: 64px; overflow: hidden; background: #f7eedc; transition: transform .25s, box-shadow .25s; }
.glifo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.opts.signos .lbl { font-size: 14.5px; font-weight: 500; }
@media (max-width: 400px) {
  .opts.signos { gap: 7px; }
  .glifo { width: 54px; height: 54px; }
  .opts.signos .lbl { font-size: 12.5px; }
  .carta { padding: 22px 14px 18px; }
}
@media (min-width: 700px) { .glifo { width: 76px; height: 76px; } }

/* movimiento */
.screen.on .opt { animation: sube .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.screen.on .opt:nth-child(2) { animation-delay: .04s; } .screen.on .opt:nth-child(3) { animation-delay: .08s; }
.screen.on .opt:nth-child(4) { animation-delay: .12s; } .screen.on .opt:nth-child(5) { animation-delay: .16s; }
.screen.on .opt:nth-child(6) { animation-delay: .2s; } .screen.on .opt:nth-child(7) { animation-delay: .24s; }
.screen.on .opt:nth-child(8) { animation-delay: .28s; } .screen.on .opt:nth-child(9) { animation-delay: .32s; }
.screen.on .opt:nth-child(10) { animation-delay: .36s; } .screen.on .opt:nth-child(11) { animation-delay: .4s; }
.screen.on .opt:nth-child(12) { animation-delay: .44s; }
@keyframes sube { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.screen.on .q, .screen.on .sub { animation: entra .6s ease both; }
.screen.on .sub { animation-delay: .1s; }
.opt { transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.opt:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .3), 0 0 0 1px rgba(217, 178, 95, .35); }
.opts.signos .opt:hover .glifo, .opts.signos .opt.sel .glifo { transform: scale(1.08) rotate(-3deg); box-shadow: 0 0 0 2px var(--oro), 0 0 22px rgba(217, 178, 95, .55); }
.opt.sel { animation: elegido .45s ease; }
@keyframes elegido { 40% { transform: scale(1.05); box-shadow: 0 0 30px rgba(217, 178, 95, .55); } }
.carta { animation: aura 5s ease-in-out infinite; }
@keyframes aura { 50% { box-shadow: 0 20px 50px rgba(0, 0, 0, .35), 0 0 40px rgba(155, 110, 230, .22), inset 0 0 0 7px rgba(18, 12, 36, .4), inset 0 0 0 8px rgba(217, 178, 95, .28); } }
.esq { animation: titila 2.6s ease-in-out infinite; }
.esq.b { animation-delay: .6s; } .esq.c { animation-delay: 1.2s; } .esq.d { animation-delay: 1.8s; }
@keyframes titila { 50% { transform: scale(1.6) rotate(45deg); filter: drop-shadow(0 0 4px var(--oro)); } }
.estrellas i.act { animation: titila 2s ease-in-out infinite; }
.cielo { animation: cielo 6s ease-in-out infinite; }
@keyframes cielo { 50% { opacity: .45; } }
.cielo::before { content: ""; position: absolute; inset: -20% 0 0; opacity: .7;
  background-image: radial-gradient(2px 2px at 20% 30%, var(--oro-claro) 50%, transparent), radial-gradient(1.5px 1.5px at 75% 55%, #fff 50%, transparent),
    radial-gradient(2px 2px at 45% 75%, var(--oro) 50%, transparent), radial-gradient(1.5px 1.5px at 88% 15%, var(--oro-claro) 50%, transparent),
    radial-gradient(1.5px 1.5px at 10% 60%, #fff 50%, transparent), radial-gradient(2px 2px at 60% 10%, var(--oro) 50%, transparent);
  animation: polvo 22s linear infinite; }
@keyframes polvo { from { transform: translateY(0); } to { transform: translateY(-20%); } }
.cta { position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); animation: reflejo 3.2s ease-in-out infinite; }
@keyframes reflejo { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.velada { animation: late 3s ease-in-out infinite; }
.corazon { animation: latido 1.8s ease-in-out infinite; }
@keyframes latido { 15%, 45% { transform: scale(1.12); } 30% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- 18/11: movimiento al elegir y tarjeta centrada en la pantalla (pedido de Dante) ---- */
main { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 78px); min-height: calc(100dvh - 78px); padding-top: 8px; }
body.limpio main { min-height: 100vh; min-height: 100dvh; }
.screen.on { animation: entraDer .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes entraDer { from { opacity: 0; transform: translateX(40px) scale(.98); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.screen.on.sale { animation: saleIzq .3s ease-in forwards; }
@keyframes saleIzq { to { opacity: 0; transform: translateX(-50px) scale(.97); filter: blur(3px); } }
.opt { position: relative; overflow: visible; }
.opts.eligio .opt:not(.sel) { opacity: .35; transform: scale(.97); transition: opacity .3s, transform .3s; }
.opts.eligio .opt.sel { border-color: var(--oro); background: rgba(217, 178, 95, .16); animation: elegido2 .55s ease both; }
@keyframes elegido2 { 0% { transform: scale(1); } 35% { transform: scale(1.04); box-shadow: 0 0 0 2px var(--oro), 0 0 36px rgba(217, 178, 95, .6); } 100% { transform: scale(1.02); box-shadow: 0 0 0 1px var(--oro), 0 0 24px rgba(217, 178, 95, .4); } }
.opts.eligio .opt.sel .emo, .opts.eligio .opt.sel .glifo { animation: giro .55s ease; }
@keyframes giro { 50% { transform: scale(1.18) rotate(-8deg); } }
.opts.eligio .opt.sel .arrow { transform: translateX(6px); transition: transform .3s; }
.chispa { position: absolute; z-index: 5; width: 9px; height: 9px; margin: -4px 0 0 -4px; pointer-events: none; background: var(--oro-claro);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 3px var(--oro));
  animation: chispa .7s ease-out forwards; }
@keyframes chispa { to { transform: translate(var(--dx), var(--dy)) scale(.2) rotate(120deg); opacity: 0; } }
@media (min-width: 700px) {
  main { max-width: 32rem; }
  .carta { padding: 34px 28px 30px; }
  .q { font-size: 31px; margin-bottom: 12px; }
  .sub { font-size: 16.5px; }
  .opts { margin-top: 26px; }
  .opts.emo { gap: 14px; }
  .opts.emo .opt { padding: 13px 18px 13px 13px; min-height: 66px; }
  .opt .emo { width: 46px; height: 46px; }
  .opts.signos .opt { padding: 14px 2px 12px; }
}

/* ---- 18/11: como Elyon: tilde en la elegida, giro 3D de la tarjeta y reflejo de luz en las opciones ---- */
main { perspective: 1400px; }
.screen.on { animation: giraEntra .4s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 50%; }
@keyframes giraEntra { from { opacity: 0; transform: rotateY(-16deg) rotateZ(-1.5deg) translateX(30px) scale(.97); } to { opacity: 1; transform: none; } }
.screen.on.sale { animation: giraSale .2s ease-in forwards; }
@keyframes giraSale { to { opacity: 0; transform: rotateY(16deg) rotateZ(1.5deg) translateX(-30px) scale(.97); } }
.opts.eligio .opt.sel .arrow svg { display: none; }
.opts.eligio .opt.sel .arrow::after { content: "✓"; display: block; font-size: 19px; font-weight: 700; color: var(--oro-claro); animation: tilde .35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes tilde { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.opts.signos.eligio .opt.sel { transform: scale(1.08); z-index: 2; }
.opts.signos.eligio .opt.sel .glifo { transform: scale(1.15); box-shadow: 0 0 0 2px var(--oro-claro), 0 0 30px rgba(246, 227, 168, .75); }
.screen.on .opts.emo .opt { background-image: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .13) 50%, transparent 65%);
  background-size: 250% 100%; background-repeat: no-repeat; background-position: 160% 0;
  animation: sube .5s cubic-bezier(.2, .8, .2, 1) backwards, barrido 1.1s .55s ease-in-out both; }
.screen.on .opts.emo .opt:nth-child(2) { animation-delay: .06s, .65s; } .screen.on .opts.emo .opt:nth-child(3) { animation-delay: .12s, .75s; }
.screen.on .opts.emo .opt:nth-child(4) { animation-delay: .18s, .85s; } .screen.on .opts.emo .opt:nth-child(5) { animation-delay: .24s, .95s; }
@keyframes barrido { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.opts.eligio .opt.sel { animation: elegido2 .55s ease both !important; }
@media (hover: none) { .opt:hover { transform: none; box-shadow: none; } .opts.emo .opt:hover { border-color: var(--opcion-borde); background-color: var(--opcion); } }
