/* ============================================================
   🎴 TAROT SÍ / NO – ESTILOS PRINCIPALES
   Archivo: juegos-tarot.css 
   ============================================================ */

/* Contenedor general */
#rm-tarot-sino-1 {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 10px;
}

/* Intro */
#rm-tarot-sino-1 .rm-tarot-intro {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 20px;
}

/* Tabla (una sola carta en este juego) */
.rm-tarot-sino-table {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

/* Carta */
.rm-tarot-card {
  width: 200px;
  height: 320px;
  perspective: 1100px;
  cursor: pointer;
}

.rm-tarot-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .7s ease;
}

.rm-tarot-card--flipped .rm-tarot-card-inner {
  transform: rotateY(180deg);
}

/* Lados de la carta */
.rm-tarot-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.rm-tarot-card-back img,
.rm-tarot-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Frente */
.rm-tarot-card-front {
  transform: rotateY(180deg);
}

/* Botón */
.rm-tarot-sino-btn {
  background: #FFD700;
  color: #3b003b;
  border: none;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: .25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.rm-tarot-sino-btn:hover {
  background: #FFE066;
  transform: translateY(-2px);
}

/* Nota inferior */
.rm-tarot-sino-note {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #444;
}

/* ============================================================
   POPUP / MODAL RESULTADO
   ============================================================ */

.rm-tarot-sino-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.70);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  backdrop-filter: blur(4px);
}

.rm-tarot-sino-modal {
  background: #1b0e2b;
  color: white;
  padding: 35px 25px;
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  position: relative;
  text-align: center;
  animation: popupFade .35s ease both;
}

/* Animación modal */
@keyframes popupFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cerrar */
.rm-tarot-sino-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #eee;
  cursor: pointer;
  transition: .2s ease;
}

.rm-tarot-sino-close:hover {
  color: #ffcc00;
}

/* Título */
.rm-tarot-sino-result-title {
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: #ffcc00;
}

/* Texto */
.rm-tarot-sino-result-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #ddd;
  line-height: 1.5;
}

/* CTA */
.rm-tarot-sino-cta {
  display: block;
  background: #ffd200;
  color: #3b003b;
  padding: 12px 20px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 15px auto 20px auto;
  text-align: center;
  transition: .3s ease;
}

.rm-tarot-sino-cta:hover {
  background: #ffe066;
}

/* Disclaimer */
.rm-tarot-sino-disclaimer {
  font-size: 0.9rem;
  color: #bbb;
  margin-top: 10px;
}

/* Evitar scroll con popup abierto */
.rm-tarot-sino-modal-open {
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .rm-tarot-card {
    width: 160px;
    height: 260px;
  }
}
/* ====== TARJETA RESULTADO TAROT SÍ O NO ====== */

.rm-tarot-sino-result {
  max-width: 520px;
  margin: 30px auto 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: radial-gradient(circle at top, #3b235a 0, #1a1028 45%, #0b0613 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #f7f2ff;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rm-tarot-sino-result--visible {
  opacity: 1;
  transform: translateY(0);
}

.rm-tarot-sino-result-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.rm-tarot-sino-result-text {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.rm-tarot-sino-cta {
  display: inline-block;
  margin-bottom: 12px;
}

.rm-tarot-sino-disclaimer {
  font-size: 0.8rem;
  opacity: 0.8;
}
/* ============================================================
   CONTEXTO PÁGINA TAROT SÍ O NO
   ============================================================ */

.rm-tarot-sino-page {
  /* fondo místico con tus azules de marca */
  background: radial-gradient(circle at top, #346AE6 0, #185DC5 40%, #0b0613 100%);
  padding: 40px 15px 80px;
}

/* Contenedor general del juego */
/* Intro */
/* Fondo general del juego Tarot Sí o No */
#rm-tarot-sino-1 {
  background: #ffffff !important;
  padding: 20px 10px;
  margin: 0 auto;
  max-width: 480px;
}
.rm-tarot-sino-page .entry-title {
  text-align: center;
  color: #FFD700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

#rm-tarot-sino-1 .rm-tarot-intro {
  font-size: 1.2rem;
  color: #0D1440; /* Azul oscuro corporativo */
  font-weight: 500;
  margin-bottom: 25px;
  text-align: center;
}


/* Pequeña línea decorativa sobre el texto intro */
.rm-tarot-sino-intro-deco {
  width: 80px;
  height: 3px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFD700, #1A99D8, #FFD700);
}
/* Ajuste del bloque interno del H2 para que no rompa línea en PC */
.rm-tarot-intro-card h2 {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto 35px auto;
    line-height: 1.3;
    padding: 25px 20px;
    text-align: center;
}

/* Evitar que el contenedor padre limite demasiado */
.rm-tarot-intro-card {
    max-width: 1100px !important;
}
/* ============================================================
   BLOQUE DECORADO PARA H2 (usado en inicio y en recomendación)
   ============================================================ */

.rm-h2-block {
    width: 90%;
    max-width: 900px;
    margin: 30px auto 40px auto; /* margen arriba/abajo */
    padding: 25px 20px;
    border: 2px solid #e7c65a; /* dorado elegante */
    border-radius: 18px;
    background: rgba(13, 20, 64, 0.65); /* azul místico semitransparente */
    backdrop-filter: blur(4px);
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.rm-h2-block h2 {
    margin: 0;
    padding: 0;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffd45c;
    letter-spacing: 1px;
    line-height: 1.25;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}
/* Ajuste del tamaño del H2 dentro del bloque en móviles pequeños */
@media (max-width: 480px) {
    .rm-h2-block h2 {
        font-size: 22px !important; /* más equilibrado */
        line-height: 1.25 !important;
        letter-spacing: 0.5px !important;
    }
}
/* ============================
   HERO TAROT DEL AMOR - RUTH MONTENEGRO
   ============================ */

#rm-tarot-amor-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    padding: 100px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(120deg, #061a33, #0b2d5c, #193f7a, #274d95);
    background-size: 300% 300%;
    animation: rm-bg-move 18s ease-in-out infinite;
}

/* Fondo animado */
@keyframes rm-bg-move {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Partículas */
.rm-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.35) 2px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 120px 120px, 90px 90px;
    animation: rm-stars-move 60s linear infinite;
}

@keyframes rm-stars-move {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 400px 800px, -300px -600px; }
}

/* Contenido del Hero */
.rm-hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: #fff;
    max-width: 750px;
}

.rm-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.rm-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.92;
}

/* Caja de pregunta */
.rm-hero-question-box {
    margin-bottom: 25px;
}

.rm-hero-question-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    opacity: 0.9;
}

#rm-tarot-amor-pregunta {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #85b6ff;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    outline: none;
    transition: 0.3s;
}

#rm-tarot-amor-pregunta::placeholder {
    color: rgba(255,255,255,0.45);
}

/* Hover */
#rm-tarot-amor-pregunta:focus {
    border-color: #c2e2ff;
    background: rgba(255,255,255,0.18);
}

/* Botón Start */
.rm-hero-start-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: #4ea0ff;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(78,160,255,0.4);
}

.rm-hero-start-btn:hover {
    background: #6bb8ff;
    box-shadow: 0 0 20px rgba(78,160,255,0.6);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .rm-hero-title { font-size: 2.2rem; }
    .rm-hero-subtitle { font-size: 1rem; }
    #rm-tarot-amor-pregunta { font-size: 0.95rem; }
    .rm-hero-start-btn { font-size: 1rem; padding: 14px 26px; }
}

@media (max-width: 480px) {
    .rm-hero-title { font-size: 1.8rem; }
    .rm-hero-subtitle { font-size: 0.9rem; }
    #rm-tarot-amor-pregunta { font-size: 0.9rem; }
}
/* ============================================================
   TAROT DEL AMOR – ESTILOS OFICIALES RUTH MONTENEGRO
   ============================================================ */

.rm-amor-wrapper {
    background: #081846;
    padding: 60px 0;
}

/* ------------ HERO ---------------- */

.rm-amor-hero {
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

.rm-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.rm-hero-subtitle {
    font-size: 22px;
    color: #e6d49f;
    margin-bottom: 30px;
}

.rm-hero-form {
    margin-top: 30px;
}

.rm-hero-form input {
    width: 70%;
    max-width: 480px;
    padding: 14px;
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
    font-size: 17px;
}

.rm-hero-start-btn {
    background: #f5d28f;
    padding: 12px 26px;
    font-size: 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: #000;
    font-weight: 600;
}

.rm-amor-primero {
    margin-top: 10px;
    color: #e6d49f;
}

/* ------------ INTRO ---------------- */

.rm-amor-intro {
    color: #fff;
    text-align: center;
    max-width: 900px;
    margin: 60px auto;
}

.rm-amor-intro h2 {
    font-size: 30px;
    color: #f5d28f;
    margin-bottom: 20px;
}

.rm-amor-intro p {
    margin: 14px 0;
    font-size: 18px;
}

/* ------------ TABLERO ---------------- */

.rm-amor-board {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 40px;
}

.rm-amor-card img {
    width: 120px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.22s;
}

.rm-amor-card img:hover {
    transform: scale(1.05);
}

/* ------------ RESULTADOS -------------- */

.rm-results-title {
    margin-top: 40px;
    color: #f5d28f;
    text-align: center;
}

.rm-results-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    color: white;
    margin: 40px auto;
    max-width: 1200px;
}

.rm-amor-card-result {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
}

.rm-restart-btn {
    margin-top: 30px;
    background: #f5d28f;
    border: 0;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
/* ============================================================
   TAROT DEL AMOR – TEXTO EN BLANCO SOLO PARA ESTE JUEGO
   ============================================================ */

.rm-amor-textos-blancos p {
    color: #ffffff !important;
}
/* Marca la carta seleccionada en el Tarot del Amor */
.rm-amor-card--selected {
    transform: scale(0.96);
    opacity: 0.8;
    box-shadow: 0 0 0 2px #ffd45c;
}
/* ============================================================
   CARTAS TAROT AMOR (VISIBLES)
   ============================================================ */

.rm-amor-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 20px auto;
    padding: 10px;
}

.rm-amor-card {
    width: 120px;
    height: 200px;
    background: #0d1440;
    border: 2px solid #e7c65a;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.rm-amor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.rm-amor-card--selected {
    background: #e7c65a;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255,255,255,0.6);
}
/* --- Texto de fase del Tarot del Amor --- */
#rm-tarot-amor-phase {
    text-align: center !important;
    color: #fff6d6 !important;   /* blanco cálido para destacar */
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* Centrado perfecto de las últimas 4 cartas */
.rm-amor-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 25px;
}

.rm-amor-board.fila-final-4 {
    grid-template-columns: repeat(7, 1fr);
}

.rm-amor-board.fila-final-4 .rm-amor-card:nth-child(n+20) {
    grid-column: span 1;
}

.rm-amor-board.fila-final-4 .rm-amor-card:nth-child(20) { grid-column: 2; }
.rm-amor-board.fila-final-4 .rm-amor-card:nth-child(21) { grid-column: 3; }
.rm-amor-board.fila-final-4 .rm-amor-card:nth-child(22) { grid-column: 4; }
.rm-amor-board.fila-final-4 .rm-amor-card:nth-child(23) { grid-column: 5; }
/* ================================================
   NUEVA DISTRIBUCIÓN 6 / 6 / 6 / 4 PARA TAROT AMOR
   ================================================ */

/* El tablero ya NO es grid, es columna de filas */
#rm-tarot-amor-board {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
}

/* Cada fila es horizontal */
.rm-amor-row {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* Última fila → 4 cartas centradas exacto */
.rm-amor-row-final {
    justify-content: center;
}

/* Cartas */
.rm-amor-card {
    width: 140px;
    height: 240px;
    background-color: #0d1440;
    border: 2px solid #e7c65a;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rm-amor-card:hover {
    transform: translateY(-6px);
}
/* ===============================
   RESPONSIVE – CARTAS TAROT AMOR
   =============================== */

/* MÓVIL: 3 cartas por fila */
@media (max-width: 600px) {
    .rm-amor-board {
        justify-content: center;
        gap: 18px;
    }
    .rm-amor-card {
        width: 28vw;
        height: 42vw;
    }
}

/* TABLET: 4 cartas por fila */
@media (min-width: 601px) and (max-width: 980px) {
    .rm-amor-card {
        width: 22vw;
        height: 33vw;
    }
}
/* Texto esotérico debajo del título */
.rm-phase-explain {
    color: #ffffff;
    font-size: 18px;
    margin-top: 12px;
    margin-bottom: 6px;
    text-align: center;
    opacity: 0.88;
    line-height: 1.55;
}

/* Ajuste en móvil */
@media (max-width: 600px) {
    .rm-phase-explain {
        font-size: 16px;
        padding: 0 12px;
    }
}
/* Fade-in esotérico para los textos */
.rm-phase-explain {
    opacity: 0;
    animation: rm-esoteric-fade 0.9s ease forwards;
}

@keyframes rm-esoteric-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* HALO DORADO ESOTÉRICO */
.rm-halo-anim {
    position: relative;
    color: #ffd479 !important;
    text-shadow: 0 0 12px rgba(255, 208, 96, 0.8);
    animation: haloGlow 2.5s infinite alternate ease-in-out;
}

@keyframes haloGlow {
    0%   { text-shadow: 0 0 6px rgba(255, 208, 96, 0.4); }
    100% { text-shadow: 0 0 18px rgba(255, 208, 96, 1); }
}
