/* TAROT CON MARISOL · estilos de las páginas chicas: entrar, la lectura privada de una persona y «Aprendé las cartas». */
:root { --noche: #0b091b; --oro: #e6c36a; --oro2: #f6e7b8; --violeta: #a58bff; --texto: #f4eee0; --suave: #c3bae0; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--noche); color: var(--texto); font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 18px; line-height: 1.55; overflow-x: clip; }
.fondo { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(90% 60% at 50% 0%, #3a2a8c 0%, #1b1446 38%, transparent 72%), linear-gradient(180deg, #120e2e, #0b091b 70%); }
.fondo i { position: absolute; border-radius: 50%; will-change: transform; }
.fondo i:nth-child(1) { width: 120vmax; height: 120vmax; left: -50vmax; top: 20vh; background: radial-gradient(closest-side, #5a2f9a55, transparent 70%); animation: nube1 46s ease-in-out infinite alternate; }
.fondo i:nth-child(2) { width: 100vmax; height: 100vmax; right: -50vmax; top: 45vh; background: radial-gradient(closest-side, #8a3b7a44, transparent 70%); animation: nube2 58s ease-in-out infinite alternate; }
@keyframes nube1 { to { transform: translate(16vw, -10vh) scale(1.15); } }
@keyframes nube2 { to { transform: translate(-18vw, 8vh) scale(.9); } }
#cielo { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
main, footer { position: relative; z-index: 1; }
h1, h2, h3 { font-family: Cinzel, 'Cormorant Garamond', Georgia, serif; font-weight: 500; margin: 0; letter-spacing: .04em; }
a { color: var(--oro2); }
.hoja { max-width: 560px; margin: 0 auto; padding: 38px 20px 30px; }
.hoja.ancha { max-width: 980px; }
.cab { text-align: center; margin-bottom: 8px; }
.cab h1 { font-size: clamp(32px, 8.6vw, 50px); line-height: 1.08; color: var(--oro2); text-shadow: 0 0 30px #e6c36a33; }
.cab p { margin: 10px auto 0; max-width: 520px; color: var(--suave); }
.sobre { font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--oro); font-weight: 800; margin: 0 0 12px; }
.luna { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff9e2, #e6c36a 58%, #a47a25); box-shadow: 0 0 40px #e6c36a77; position: relative; overflow: hidden; animation: late 6s ease-in-out infinite; }
.luna::after { content: ''; position: absolute; inset: -6% -34% -6% 30%; border-radius: 50%; background: #1b1446; }
@keyframes late { 50% { opacity: .78; } }
.tarjeta { background: linear-gradient(160deg, #2a2262cc, #17123acc); border: 1px solid #4a3f8c; border-radius: 22px; padding: 22px 20px; position: relative; overflow: hidden; box-shadow: 0 14px 34px #0007; margin-top: 18px; }
.tarjeta::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--oro), transparent); }
label { display: block; font-weight: 800; margin: 16px 0 6px; color: var(--oro2); font-size: 17px; }
form > label:first-child { margin-top: 0; }
input, textarea { width: 100%; font: inherit; font-size: 18px; color: var(--texto); background: #0b091bcc; border: 1.5px solid #5a4ea6; border-radius: 14px; padding: 14px 14px; min-height: 56px; outline: none; }
input:focus, textarea:focus { border-color: var(--oro); box-shadow: 0 0 0 3px #e6c36a33; }
.ojo { position: relative; }
.ojo input { padding-right: 78px; }
.ojo button { position: absolute; right: 6px; top: 6px; bottom: 6px; width: 66px; border: 0; border-radius: 10px; background: #3a2f7a; color: var(--oro2); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.boton { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px; margin-top: 20px; padding: 14px 24px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; font-size: 19px; text-decoration: none; cursor: pointer; color: #2a1c05; background: linear-gradient(180deg, #fff3c8, #e6c36a 60%, #c99a3a); box-shadow: 0 10px 30px #e6c36a44, inset 0 1px 0 #fff9; }
.boton[disabled] { opacity: .6; cursor: default; }
.boton.sec { background: transparent; color: var(--oro2); border: 1.5px solid #e6c36a88; box-shadow: none; }
.reglas { margin: 14px 0 0; padding-left: 20px; color: var(--suave); font-size: 16px; }
.reglas li { margin: 4px 0; }
#error { min-height: 1.4em; margin: 14px 0 0; color: #ffb4a8; font-weight: 700; }
.chico { color: var(--suave); font-size: 15.5px; text-align: center; margin: 18px auto 0; max-width: 460px; }
footer { text-align: center; padding: 26px 22px 44px; color: #9a92bd; font-size: 14px; max-width: 760px; margin: 0 auto; }
footer b { color: var(--suave); }

/* la lectura privada */
.foto { margin: 18px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid #e6c36a88; box-shadow: 0 14px 34px #0009; background: #0b091b; }
.foto img { display: block; width: 100%; height: auto; }
.foto figcaption { padding: 9px 14px; font-size: 14px; color: var(--suave); text-align: center; }
.cartas { list-style: none; margin: 0; padding: 0; }
.cartas li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #ffffff14; }
.cartas li:last-child { border-bottom: 0; }
.cartas img { flex: none; width: 54px; aspect-ratio: 150 / 259; object-fit: cover; border-radius: 6px; border: 1px solid #e6c36aaa; box-shadow: 0 6px 14px #000a; }
.cartas span { display: block; color: var(--suave); font-size: 15px; }
.cartas b { display: block; font-family: Cinzel, serif; font-weight: 500; font-size: 20px; color: var(--oro2); letter-spacing: .02em; }
.msg { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(22px, 5.4vw, 26px); line-height: 1.36; margin: 0; white-space: pre-line; }

/* aprendé las cartas */
.palos { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 18px -20px 0; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.palos::-webkit-scrollbar { display: none; }
.palos button { flex: none; min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid #5a4ea6; background: #17123acc; color: var(--suave); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.palos button.si { background: linear-gradient(180deg, #fff3c8, #e6c36a); color: #2a1c05; border-color: transparent; }
.mazo { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin-top: 8px; }
.mazo button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--suave); font: inherit; font-size: 13.5px; line-height: 1.2; text-align: center; }
.mazo img { display: block; width: 100%; aspect-ratio: 150 / 259; object-fit: cover; border-radius: 8px; border: 1px solid #e6c36a77; box-shadow: 0 8px 18px #000a; margin-bottom: 6px; background: #17123a; }
.velo { position: fixed; inset: 0; z-index: 5; background: #06051299; backdrop-filter: blur(6px); display: none; align-items: flex-end; justify-content: center; }
.velo.ya { display: flex; }
.ficha { width: 100%; max-width: 560px; max-height: 92svh; overflow-y: auto; background: linear-gradient(180deg, #2a2262, #15113a); border: 1px solid #4a3f8c; border-bottom: 0; border-radius: 26px 26px 0 0; padding: 20px 20px 34px; position: relative; }
.ficha .x { position: absolute; right: 12px; top: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #0b091b99; color: var(--texto); font-size: 26px; cursor: pointer; }
.ficha .arriba { display: flex; gap: 16px; align-items: center; padding-right: 50px; }
.ficha .arriba img { flex: none; width: 108px; aspect-ratio: 150 / 259; object-fit: cover; border-radius: 9px; border: 1px solid #e6c36aaa; box-shadow: 0 10px 24px #000b; }
.ficha h2 { font-size: 27px; color: var(--oro2); line-height: 1.1; }
.claves { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.claves span { border: 1px solid var(--oro); color: var(--oro2); border-radius: 999px; padding: 3px 11px; font-weight: 800; font-size: 14px; }
.ficha .dice { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 24px; line-height: 1.3; margin: 18px 0 6px; }
.ficha dl { margin: 14px 0 0; }
.ficha dt { color: var(--oro); font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-top: 12px; }
.ficha dd { margin: 2px 0 0; color: var(--texto); }
@media (prefers-reduced-motion: reduce) { .fondo i, .luna { animation: none; } }
