/**
 * SISTEMA INTEGRAL TAROT FRACTAL
 * Módulo Consulta: Selección de Barajas/Temas, Concentración con Halo y Montones
 * tarot-fractal.es
 */

/* =============================================================================
   1. PANTALLA DE CONFIGURACIÓN DE CONSULTA (PANTALLAINICIO.KT)
   ============================================================================= */
.consulta-inicio-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
    animation: fadeInView 0.5s ease-out;
}

.seccion-titulo-consulta {
    font-size: 19px;
    font-weight: 600;
    color: #FFFFFF;
    margin-top: 14px;
    margin-bottom: 12px;
    text-align: left;
}

/* LISTADO DE BARAJAS */
.barajas-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.baraja-card {
    background: rgba(9, 33, 68, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.baraja-card.seleccionada {
    background: rgba(19, 56, 110, 0.95);
    border: 2px solid var(--color-dorado);
}

.baraja-card-texto {
    font-size: 18px;
    color: #FFFFFF;
}

.baraja-card.seleccionada .baraja-card-texto {
    color: var(--color-dorado);
    font-weight: 700;
}

/* BOTÓN ACCESO TIRADA MANUAL */
.btn-tirada-manual {
    width: 100%;
    height: 48px;
    background: rgba(10, 34, 70, 0.85);
    border: 1px solid var(--color-dorado);
    border-radius: 12px;
    color: var(--color-dorado);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 24px;
    transition: background 0.2s ease;
}

.btn-tirada-manual:hover {
    background: rgba(19, 56, 110, 0.95);
}

/* REJILLA RESPONSIVA DE TEMAS CON ILUSTRACIONES .PNG */
.temas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

@media (min-width: 600px) {
    .temas-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tema-card {
    height: 94px;
    background: rgba(9, 33, 68, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.tema-card.seleccionado {
    background: rgba(19, 56, 110, 0.95);
    border: 2px solid var(--color-dorado);
}

.tema-card-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin-bottom: 6px;
}

.tema-card-texto {
    font-size: 14px;
    color: #FFFFFF;
}

.tema-card.seleccionado .tema-card-texto {
    color: var(--color-dorado);
    font-weight: 700;
}

/* BOTÓN REALIZAR NUEVA CONSULTA */
.btn-comenzar-consulta {
    width: 100%;
    height: 60px;
    background: var(--color-dorado-suave);
    border: none;
    border-radius: 14px;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.35);
    transition: transform 0.15s ease, background 0.2s ease;
    margin-bottom: 24px;
}

.btn-comenzar-consulta:hover {
    background: var(--color-dorado);
    transform: scale(1.01);
}

.btn-comenzar-consulta-titulo {
    font-size: 16px;
    font-weight: 800;
}

.btn-comenzar-consulta-sub {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
}

/* =============================================================================
   2. PANTALLA DE CONCENTRACIÓN (HALO DE RESPIRACIÓN MÍSTICA)
   ============================================================================= */
.concentracion-wrapper {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    cursor: pointer;
    animation: fadeInView 0.6s ease-out;
}

.halo-respiracion-box {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 196, 15, 0.55) 0%, rgba(26, 188, 156, 0.25) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    /* Ciclo exacto a Compose: 3500ms FastOutSlowInEasing */
    animation: respiracionMistica 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.halo-respiracion-icono {
    font-size: 46px;
}

@keyframes respiracionMistica {
    0% {
        transform: scale(0.85);
        opacity: 0.45;
    }
    100% {
        transform: scale(1.15);
        opacity: 0.95;
    }
}

.concentracion-titulo {
    color: var(--color-dorado);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.concentracion-instruccion {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 26px;
    max-width: 440px;
    margin-bottom: 40px;
}

.concentracion-aviso-tocar {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* =============================================================================
   3. PANTALLA DE MONTONES (CORTE DE BARAJA)
   ============================================================================= */
.montones-wrapper {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    animation: fadeInView 0.5s ease-out;
}

.montones-tema-header {
    color: var(--color-dorado);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.montones-titulo {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.montones-subtitulo {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    text-align: center;
    margin-bottom: 40px;
}

.montones-fila {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 16px;
}

.monton-columna {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.monton-columna:hover {
    transform: translateY(-8px);
}

.monton-carta {
    width: 140px;
    height: 220px;
    border-radius: 12px;
    background: #0A2246;
    border: 2px solid rgba(241, 196, 15, 0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.monton-carta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.monton-etiqueta {
    color: var(--color-dorado);
    font-size: 17px;
    font-weight: 700;
}
