/**
 * SISTEMA INTEGRAL TAROT FRACTAL
 * Módulo Pantalla Tirada: Mesa de 3 Cartas, Marcos Cromáticos, Zoom 3D y Maestros
 * tarot-fractal.es
 */

/* =============================================================================
   1. CONTENEDOR DE LA MESA DE TIRADA
   ============================================================================= */
.tirada-mesa-wrapper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
    animation: fadeInView 0.5s ease-out;
}

/* =============================================================================
   2. FILA DE LAS 3 CARTAS EN MINIATURA
   ============================================================================= */
.tirada-mesa-cartas-fila {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.carta-mesa-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.carta-mesa-mini-card:hover {
    transform: scale(1.03);
}

.carta-mesa-mini-marco {
    width: 100%;
    aspect-ratio: 0.60;
    border-radius: 8px;
    overflow: hidden;
    background: #071B36;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.carta-mesa-mini-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.carta-mesa-mini-palabra {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 16px;
}

/* =============================================================================
   3. BOTÓN OBTENER PALABRA SAGRADA (GUEMATRÍA)
   ============================================================================= */
.btn-palabra-sagrada {
    width: 100%;
    height: 50px;
    background: #13386E;
    border: 1.5px solid var(--color-dorado);
    border-radius: 12px;
    color: var(--color-dorado);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.25);
    transition: all 0.2s ease;
}

.btn-palabra-sagrada:hover {
    background: #1B3D6B;
    transform: translateY(-2px);
}

/* =============================================================================
   4. SECCIÓN DE CONSULTA Y SELECTOR DE TAROTISTAS
   ============================================================================= */
.seccion-consulta-envio {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.input-pregunta-usuario {
    width: 100%;
    height: 90px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(9, 33, 68, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
}

.input-pregunta-usuario:focus {
    outline: none;
    border-color: var(--color-dorado);
}

.tarotistas-selector-fila {
    display: flex;
    gap: 12px;
}

.tarotista-card {
    flex: 1;
    height: 56px;
    border-radius: 10px;
    background: rgba(9, 33, 68, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.tarotista-card.no-disponible {
    background: #06152B;
    border-color: rgba(128, 128, 128, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
}

.tarotista-card-nombre {
    font-size: 16px;
    color: #FFFFFF;
}

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

.btn-conoce-maestros {
    width: 100%;
    height: 46px;
    background: rgba(10, 34, 70, 0.85);
    border: 1px solid rgba(241, 196, 15, 0.7);
    border-radius: 10px;
    color: var(--color-dorado);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
}

.btn-enviar-tirada-maestro {
    width: 100%;
    height: 52px;
    background: var(--color-dorado-suave);
    border: none;
    border-radius: 12px;
    color: #000000;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.2s ease;
}

.btn-enviar-tirada-maestro:hover {
    background: var(--color-dorado);
}

.btn-enviar-tirada-whatsapp {
    width: 100%;
    height: 50px;
    background: #25D366;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* =============================================================================
   5. CAPA CINEMÁTICA DE ZOOM 3D (PANTALLA COMPLETA)
   ============================================================================= */
.zoom-cinematico-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: zoomInAnim 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomInAnim {
    from { opacity: 0; transform: scale(0.3); }
    to { opacity: 1; transform: scale(1); }
}

.zoom-carta-card {
    position: relative;
    width: 92vw;
    max-width: 440px;
    height: 86vh;
    max-height: 720px;
    border-radius: 22px;
    overflow: hidden;
    background: #071B36;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.95);
    border: 3.5px solid var(--color-dorado);
}

.zoom-carta-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.zoom-texto-capa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 27, 54, 0.94);
    padding: 26px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.zoom-texto-capa.visible {
    opacity: 1;
}

.zoom-carta-nombre {
    color: var(--color-dorado);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.zoom-carta-palabra {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
}

.zoom-carta-interpretacion {
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
    max-height: 60%;
    overflow-y: auto;
    margin-bottom: 24px;
}

.zoom-aviso-volver {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 600;
}

/* =============================================================================
   6. FICHAS MODALES DE MAESTROS
   ============================================================================= */
.maestro-item-card {
    background: #092144;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    text-align: left;
}

.maestro-item-card.seleccionado {
    background: #13386E;
    border: 2px solid var(--color-dorado);
}

.maestro-foto-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--color-dorado);
    object-fit: cover;
}
