﻿@import url('oraculo.css');
:root {
    --bg-deep: #050308;
    --card-bg: rgba(14, 10, 22, 0.88);
    --bg-main: #050308 !important;
    --bg-card: #050308 !important;
    --accent-purple: #8a2be2;
    --accent-glow: #b15eff;
    --accent-gold: #d4af37;
    --text-main: #f0ecfc;
    --text-muted: #a090b5;
}

/* Reset global para evitar scrollbars y forzar pantalla completa */
    html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-deep);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--text-main);
}

/* CONTENEDOR PRINCIPAL A PANTALLA COMPLETA CON FONDO VÓRTICE */
.oraculo-fullscreen {
    position: relative;
    width: 100vw;
    height: 100vh;
    /*display: flex;
    justify-content: center;
    align-items: center;*/
    background: radial-gradient(circle at 50% 40%, #1a0b2e 0%, #0a0512 60%, var(--bg-deep) 100%);
    overflow: hidden;
}

    /* Partículas o estática de fondo animada sutil */
    .oraculo-fullscreen::before {
        content: "";
        position: absolute;
        width: 200%;
        height: 200%;
        background-image: radial-gradient(white 1px, transparent 0);
        background-size: 40px 40px;
        opacity: 0.04;
        animation: voidDrift 60s linear infinite;
        pointer-events: none;
    }

@keyframes voidDrift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-20px, -20px);
    }
}

/* ENCABEZADO */
.oraculo-header {
    text-align: center;
    flex: 0 0 auto;
}

.brand-title {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    letter-spacing: 0.3vw;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 1.5vh var(--accent-purple);
    font-weight: 700;
    margin: 0;
}

.status-badge {
    display: inline-block;
    margin-top: 0.5vh;
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 0.4vh 1.2vw;
    border-radius: 2vh;
    letter-spacing: 0.1vw;
}

/* ÁREA DEL ORBE CÓSMICO ADAPTATIVA */
.orb-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 12vh;
}

.orb-core {
    width: clamp(80px, 16vh, 120px);
    height: clamp(80px, 16vh, 120px);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e0b0ff, var(--accent-purple), #180033);
    box-shadow: 0 0 3vh var(--accent-purple), inset 0 0 1.5vh #ffffff;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

    .orb-core.idle {
        animation: orbPulse 3s infinite ease-in-out;
    }

@keyframes orbPulse {
    0%, 100% {
        transform: scale(0.95);
        box-shadow: 0 0 2vh var(--accent-purple);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 5vh var(--accent-glow);
    }
}

.orb-core.charging {
    animation: orbCharge 1s infinite linear ;
    border: 2px solid var(--accent-gold);
}

@keyframes orbCharge {
    0% {
        transform: rotate(0deg) scale(1);
        box-shadow: 0 0 3vh var(--accent-gold);
    }

    50% {
        transform: rotate(180deg) scale(1.15);
        box-shadow: 0 0 6vh var(--accent-glow);
    }

    100% {
        transform: rotate(360deg) scale(1);
        box-shadow: 0 0 3vh var(--accent-gold);
    }
}

.orb-core.fracture {
    animation: orbFracture 0.8s forwards ease-out;
}

.orb-core.charging {
    animation: pulsar-energia 1.5s infinite ease-in-out;
}

@keyframes orbFracture {
    0% {
        transform: scale(1.15);
        opacity: 1;
        filter: brightness(1);
    }

    40% {
        transform: scale(1.4);
        opacity: 0.9;
        filter: brightness(2.5);
        box-shadow: 0 0 8vh #ffffff;
    }

    70% {
        transform: scale(0.2);
        opacity: 0.5;
        filter: blur(0.4vh);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1);
    }
}

/* SECCIÓN DE CHAT Y BOTONES FLUIDOS */
.chat-section {
    display: flex;
    flex-direction: column;
    gap: 1.2vh;
    bottom: 0;
    position: fixed;
    width: 100%;
    padding-bottom: 8px; /* Posición natural inferior */
    box-sizing: border-box;
    z-index: 800;
    transition: padding-bottom 0.3s ease;
}

    /* 2. Cuando el altar/handle es visible y el chat NO está bloqueado */
    .chat-section.altar-activo {
        padding-bottom: 44px !important; /* Espacio para respirar sobre el drag handle */
    }


.prompt-label {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.btn-fomo-auto {
    width: 100%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px dashed var(--accent-gold);
    color: var(--accent-gold);
    padding: 1.2vh 2vw;
    border-radius: 1.2vh;
    font-size: clamp(0.75rem, 2vw, 0.82rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-fomo-auto:hover {
        background: rgba(212, 175, 55, 0.22);
    }

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    justify-content: center;
}

.btn-preset {
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: var(--text-main);
    padding: 0.8vh 1.8vw;
    border-radius: 2vh;
    font-size: clamp(0.7rem, 1.8vw, 0.78rem);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-preset:hover {
        background: var(--accent-purple);
        color: #fff;
        box-shadow: 0 0 1vh var(--accent-purple);
    }

textarea.input-arcano {
    width: 100%;
    height: 9vh;
    min-height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 1.2vh;
    padding: 1.2vh;
    color: #fff;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    resize: none;
    outline: none;
    box-sizing: border-box;
    padding: 12px 75px 12px 16px; /* Espacio a la derecha para que el texto no tape el contador */
}

    textarea.input-arcano:focus {
        border-color: var(--accent-glow);
        box-shadow: 0 0 1vh rgba(138, 43, 226, 0.4);
    }

/* Contador de caracteres integrado */
.char-counter {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: rgba(220, 220, 220, 0.4);
    font-family: monospace;
    pointer-events: none; /* No interfiere con el clic del input */
    transition: color 0.3s ease;
}

    /* Estado de advertencia al llegar al límite (opcional) */
    .char-counter.limit-reached {
        color: #ff5555;
        text-shadow: 0 0 5px rgba(255, 85, 85, 0.8);
    }

.btn-submit-clear {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-purple), #4b0082);
    color: #fff;
    border: none;
    padding: 1.6vh 2vw;
    border-radius: 1.2vh;
    font-weight: bold;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    letter-spacing: 0.1vw;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0.5vh 2vh rgba(138, 43, 226, 0.4);
}
    /* 3. Cuando el chat está bloqueado (cooldown): Ocultar el botón por completo */
    .btn-submit-clear.cooldown-hidden {
        display: none !important;
    }
    .btn-submit-clear:disabled,
    .btn-submit-clear.btn-disabled {
        opacity: 0.35 !important;
        cursor: not-allowed !important;
        filter: grayscale(0.8) !important;
        box-shadow: none !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        transform: none !important;
        pointer-events: none; /* Previene clics accidentales en dispositivos móviles */
    }


#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Detrás del contenido principal */
}

.content {
    position: relative;
    z-index: 2; /* Por encima del canvas de partículas */
    color: white;
    text-align: center;
    padding-top: 1vh;
    font-family: sans-serif;
}



/* =============  ESTILOS TARJETA  =============*/
.oracle-card-digital {
    background: rgba(22, 10, 40, 0.85);
    border: 1px solid rgba(186, 85, 211, 0.4);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    color: #e2d9f3;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.card-title {
    margin: 4px 0;
    color: #ffffff;
    font-size: 1.1rem;
}

.card-desc {
    font-size: 0.85rem;
    color: #bfa8e6;
    margin-bottom: 12px;
}

.card-action-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.card-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
}

.btn-desbloquear-portal {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    color: #ffffff;
    border: 1px solid #da70d6;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(218, 112, 214, 0.4);
}

    .btn-desbloquear-portal:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 18px rgba(218, 112, 214, 0.8);
        background: linear-gradient(135deg, #9932cc, #6a0dad);
    }


/* --- VISTA PREVIA VELADA (CENSURA MÍSTICA) --- */
.veiled-preview-wrapper {
    position: relative;
    margin: 14px 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(8, 4, 15, 0.6);
    border: 1px dashed rgba(177, 94, 255, 0.3);
    padding: 12px;
    height: 10vh;
}

.veiled-content-blurred {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
    opacity: 0.45;
    transform: scale(0.98);
}

.dummy-mystic-text {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--accent-gold);
    line-height: 1.6;
    margin-top: 6px;
    letter-spacing: 1px;
}

.runic-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    background: radial-gradient(circle, rgba(14, 7, 24, 0.75) 0%, rgba(5, 2, 10, 0.92) 100%);
    z-index: 3;
}

.runic-glyph-pulse {
    font-size: 1.4rem;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 20px rgba(177, 94, 255, 0.6);
    animation: runicFlicker 2s infinite ease-in-out;
    margin-bottom: 6px;
}

@keyframes runicFlicker {
    0%, 100% {
        opacity: 0.7;
        transform: scale(0.96);
        filter: drop-shadow(0 0 4px var(--accent-gold));
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        filter: drop-shadow(0 0 14px var(--accent-glow));
    }
}

.persuasive-copy {
    font-size: 0.82rem;
    line-height: 1.35;
    color: #e6dcfa;
    margin: 0;
    max-width: 90%;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

    .persuasive-copy strong {
        color: var(--accent-gold);
        font-style: normal;
    }

.price-container {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.price-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}
/** --- FIN VISTA PREVIA VELADA (CENSURA MISTICA) --- */



/* ============= FIN ESTILOS TARJETA  =============*/



/* =============== INICIA CHAT BOX HISTORY =============== */

/* Layout Principal 
.oraculo-fullscreen .content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}*/

.orb-wrapper {
    flex-shrink: 0;
    margin-bottom: 10px;
    text-align: center;
}

/* Contenedor del Historial de Chat */
.chat-history {
    flex: 1;
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 15px 0 15px;
    margin-bottom: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

    /* Personalización del Scrollbar */
    .chat-history::-webkit-scrollbar {
        width: 6px;
    }

    .chat-history::-webkit-scrollbar-thumb {
        background: rgba(168, 85, 247, 0.4);
        border-radius: 4px;
    }

.chat-history {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Desplazamiento con inercia elástica en iOS */
    overscroll-behavior-y: contain; /* Evita que el scroll mueva toda la página */
}

/* Estilos de las Burbujas de Chat */
.chat-bubble {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
    animation: fadeIn 0.3s ease-in-out;
}

/* Mensajes del Usuario (Enviados desde el input) */
.user-message {
    text-align: right;
    align-self: flex-end;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.6);
    color: #f3e8ff;
    border-bottom-right-radius: 2px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

/* Mensajes del Oráculo (Respuestas) */
.bot-message {
    text-align: left;
    align-self: flex-start;
    background: rgba(20, 10, 35, 0.6);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: #fef08a;
    font-style: italic;
    border-bottom-left-radius: 2px;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.15);
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sección Inferior de Entrada */
.chat-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    bottom: 0;
    left: 0;
    position: fixed;
    width: 100%;
    padding: 8px 14px 12px 14px;
    box-sizing: border-box;
    z-index: 800;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 3, 8, 0.85) 30%, var(--bg-deep) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: padding-bottom 0.3s ease;
}
    .chat-section.altar-activo {
        padding-bottom: 38px !important;
    }



.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-arcano {
    width: 100%;
    background: rgba(10, 5, 20, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 8px;
    color: #fff;
    padding: 12px;
    resize: none;
    box-sizing: border-box;
}

    .input-arcano:focus {
        outline: none;
        border-color: #a855f7;
        box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
    }

/* =============== FIN CHAT BOX HISTORY =============== */

/* ==========================================================================
   COMPONENTES INTERACTIVOS DEL ORÁCULO (CYBER-GOTH & NEÓN MÍSTICO)
   ========================================================================== */

/* 1. Contenedor de Componentes Interactivos dentro del Chat */
.interactive-widget-container {
    margin: 1rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInWidget 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInWidget {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 2. Botones de Respuesta Rápida (Mano Dominante / Opciones Rápidas) */
.quick-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.btn-mystic {
    background: rgba(19, 9, 36, 0.65);
    border: 1px solid rgba(186, 85, 211, 0.4);
    color: #e0e0e0;
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(138, 43, 226, 0.1);
}

    .btn-mystic:hover {
        background: rgba(138, 43, 226, 0.25);
        border-color: #b15eff;
        color: #ffffff;
        box-shadow: 0 0 15px rgba(177, 94, 255, 0.5), inset 0 0 15px rgba(186, 85, 211, 0.3);
        transform: translateY(-2px);
    }

    .btn-mystic:active {
        transform: translateY(1px);
    }

/* 3. Rejilla de Cartas de Tarot / Sellos Astrales */
.tarot-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.85rem;
    width: 100%;
    max-width: 480px;
}

.tarot-card {
    background: linear-gradient(145deg, rgba(20, 10, 35, 0.8), rgba(8, 4, 15, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.3); /* Acento Oro Alquímico */
    border-radius: 8px;
    padding: 1.25rem 0.5rem;
    cursor: pointer;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

    /* Resplandor interno de la carta */
    .tarot-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(177, 94, 255, 0.15) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .tarot-card:hover::before {
        opacity: 1;
    }

    .tarot-card:hover {
        border-color: #d4af37;
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 10px rgba(138, 43, 226, 0.6);
        transform: translateY(-5px) scale(1.03);
    }

.card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

    .card-inner span {
        font-size: 0.8rem;
        color: #e0e0e0;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-family: 'Cinzel', 'Cormorant Garamond', serif;
    }

/* Estado seleccionado de la carta  */
.tarot-card.card-selected {
    border-color: var(--accent-gold, #ffd700) !important;
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.7), inset 0 0 12px rgba(177, 94, 255, 0.5) !important;
    transform: translateY(-6px) scale(1.04);
}

    .tarot-card.card-selected::before {
        opacity: 1 !important;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%) !important;
    }

/* 4. Caja de Micro-Ritual Físico (Pulso Táctil) */
.pulse-ritual-box {
    width: 100%;
    max-width: 320px;
    padding: 1rem;
    background: rgba(13, 6, 24, 0.7);
    border: 1px dashed rgba(177, 94, 255, 0.5);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.rune-circle {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(186, 85, 211, 0.4);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
}

.pulse-ritual-box span {
    font-size: 0.8rem;
    color: #b8b8b8;
    text-align: center;
    letter-spacing: 0.5px;
}

.pulse-ritual-box:hover .rune-circle {
    box-shadow: 0 0 20px rgba(177, 94, 255, 0.8);
    border-color: #d4af37;
    transform: scale(1.1);
}

/* Estado Activo durante la vibración/transmisión del pulso */
.pulse-ritual-box.active-pulse {
    border-style: solid;
    border-color: #b15eff;
    background: rgba(138, 43, 226, 0.3);
    animation: pulseGlow 1s infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
    }

    to {
        box-shadow: 0 0 25px rgba(177, 94, 255, 0.8), 0 0 10px rgba(212, 175, 55, 0.5);
    }
}
/*================ FIN COMPONENTES INTERACTIVOS DEL ORÁCULO =================*/



/**=============== INICIA ESTILOS STRIPE MODAL =============================== **/

.arcane-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 2, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .arcane-modal-backdrop.hidden {
        display: none;
    }

.arcane-modal-content {
    background: rgba(18, 10, 32, 0.98) !important;
    border: 1px solid rgba(177, 94, 255, 0.5) !important;
    box-shadow: 0 0 45px rgba(138, 43, 226, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    width: 92% !important;
    max-width: 460px !important;
    position: relative !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #b15eff;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    border-bottom: 1px solid rgba(177, 94, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 4px;
}

    .modal-header .badge-neon {
        font-size: 0.65rem;
        letter-spacing: 2px;
        color: var(--accent-gold);
        text-transform: uppercase;
        display: block;
        margin-bottom: 4px;
    }

    .modal-header h3 {
        font-size: 1.15rem;
        color: #ffffff;
        margin: 0 0 6px 0;
        line-height: 1.3;
    }

.modal-price-tag {
    color: var(--accent-gold) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

#payment-element {
    min-height: 180px;
    margin: 6px 0;
}

.btn-pay-now {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #a67c1e 100%) !important;
    color: #0b0514 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}
.payment-error {
    color: #ff4d6d;
    font-size: 0.85rem;
    margin-top: 0.8rem;
    text-align: center;
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.3);
    padding: 0.5rem;
    border-radius: 6px;
}

/**=============== TERMINA ESTILOS STRIPE MODAL =============================== **/


/* --- EFECTO DESINTEGRACIÓN RITUAL --- */
.oracle-card-digital.desintegrando {
    position: relative;
    pointer-events: none;
    animation: desintegrarVortice 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes desintegrarVortice {
    0% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 0px var(--ma-purple, #b15eff));
        opacity: 1;
    }

    40% {
        transform: scale(1.03);
        filter: brightness(2) drop-shadow(0 0 25px #ffd700); /* Destello dorado transmutador */
        opacity: 0.9;
    }

    100% {
        transform: scale(0.85) translateY(-20px);
        filter: blur(12px) brightness(0);
        opacity: 0;
    }
}

/* Partícula de destello etéreo */
.rune-sparkle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff, #b15eff 60%, transparent);
    animation: flotarChispa 0.6s ease-out forwards;
    z-index: 100;
}

@keyframes flotarChispa {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}
/* --- TERMINA EFECTO DESINTEGRACIÓN RITUAL --- */

/* ==========================================================================
   RELIQUIA DE CONSAGRACIÓN DIGITAL (POST-PAGO / DESCARGA VIP)
   ========================================================================== */

.digital-unlock-success {
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.18), rgba(18, 10, 32, 0.95)) !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25), inset 0 0 15px rgba(177, 94, 255, 0.2) !important;
    border-radius: 14px !important;
    padding: 1.25rem !important;
    max-width: 88%;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: portalPulseReward 3.5s infinite alternate ease-in-out, fadeIn 0.4s ease-out;
}

@keyframes portalPulseReward {
    0% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.2), inset 0 0 10px rgba(177, 94, 255, 0.2);
        border-color: rgba(212, 175, 55, 0.4);
    }

    100% {
        box-shadow: 0 0 32px rgba(212, 175, 55, 0.45), inset 0 0 22px rgba(177, 94, 255, 0.35);
        border-color: rgba(255, 215, 0, 0.8);
    }
}

.reward-badge {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-gold);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    margin-bottom: 0.6rem;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.reward-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    text-shadow: 0 0 10px rgba(177, 94, 255, 0.6);
}

.reward-description {
    color: #d8b4fe;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    font-style: normal;
}

/* Contenedor del Ritual de Espera / Carga */
.download-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 0 6px 0;
}

.alchemical-spinner {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-top: 2px solid #ffd700;
    border-right: 2px solid var(--accent-glow);
    border-radius: 50%;
    animation: spinRune 1s linear infinite;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

@keyframes spinRune {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-oracle-phrase {
    font-size: 0.8rem;
    color: #f3e8ff;
    letter-spacing: 0.8px;
    font-style: italic;
    text-align: center;
    min-height: 18px;
    transition: opacity 0.35s ease;
}

/* Botón Dorado de Alta Jerarquía */
.btn-manifest-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ffd700 0%, #aa7c11 100%);
    color: #0b0614;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1px solid #ffe57f;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .btn-manifest-download:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 28px rgba(212, 175, 55, 0.8);
        color: #000;
        background: linear-gradient(135deg, #ffe066 0%, #c49219 100%);
    }

    .btn-manifest-download:active {
        transform: translateY(1px);
    }
/* ============= TERMINA RELIQUIA DE CONSAGRACIÓN DIGITAL (POST-PAGO / DESCARGA VIP) ============= */


/* ==========================================================================
   DRAG HANDLE Y BOTTOM DRAWER (CORRECCIÓN DE CAPAS Y VISIBILIDAD)
   ========================================================================== */

/* ==========================================================================
   DRAG HANDLE INFERIOR CON PULSO RADIANTE RÍTMICO (CADA 1.2s)
   ========================================================================== */

.bottom-drag-handle {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 440px !important;
    background: linear-gradient(180deg, rgba(28, 14, 50, 0.96) 0%, rgba(10, 4, 18, 0.99) 100%) !important;
    border-top: 1px solid var(--accent-gold) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 6px 0 8px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    cursor: pointer !important;
    z-index: 920 !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    /* ✨ Pulso continuo cada 1.2 segundos */
    animation: handleGlowPulse 1.2s infinite ease-in-out !important;
}
    .bottom-drag-handle.hidden {
        display: none !important;
    }

@keyframes handleGlowPulse {
    0%, 100% {
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.85), 0 -1px 8px rgba(212, 175, 55, 0.25);
        border-color: rgba(212, 175, 55, 0.4);
    }

    50% {
        /* Estado equivalente al hover */
        background: linear-gradient(180deg, rgba(46, 22, 82, 0.98) 0%, rgba(18, 8, 32, 1) 100%);
        box-shadow: 0 -8px 28px rgba(212, 175, 55, 0.6), 0 0 20px rgba(177, 94, 255, 0.4);
        border-color: #ffd700;
        transform: translateX(-50%) translateY(-2px);
    }
}

.bottom-drag-handle:hover {
    animation-play-state: paused;
    box-shadow: 0 -10px 32px rgba(212, 175, 55, 0.8), 0 0 25px rgba(177, 94, 255, 0.6) !important;
    border-color: #ffd700 !important;
}

.handle-pill {
    width: 42px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.handle-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Bottom Drawer */
.manifestation-drawer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-height: 72vh !important;
    background: linear-gradient(180deg, rgba(18, 9, 32, 0.98) 0%, rgba(6, 3, 12, 0.99) 100%) !important;
    border-top: 1px solid var(--accent-gold) !important;
    box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.95) !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 950 !important; /* Por encima del handle */
    display: flex !important;
    flex-direction: column !important;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

    .manifestation-drawer.hidden {
        transform: translateY(105%) !important;
    }

.drawer-sticky-header {
    flex-shrink: 0;
    width: 100%;
    padding: 8px 16px 10px 16px;
    background: rgba(18, 9, 32, 0.95);
    border-bottom: 1px solid rgba(177, 94, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}

.drawer-header-text {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
}

.drawer-badge-mini {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    font-weight: 700;
}

.drawer-close-btn-clean {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.drawer-scrollable-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px 24px 14px;
    -webkit-overflow-scrolling: touch;
}

.drawer-frecuencia-tag {
    font-size: 0.78rem;
    color: #d8b4fe;
    text-align: center;
    margin: 0 0 12px 0;
}

.drawer-cards-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

    .drawer-cards-track .oracle-card-digital {
        flex: 0 0 250px;
        scroll-snap-align: start;
        margin: 0;
        padding: 14px;
        background: rgba(14, 7, 24, 0.8);
        border: 1px solid rgba(177, 94, 255, 0.35);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
/** FIN DRAG HANDLE INFERIOR Y BOTTOM DRAWER (SIN SATURAR EL CHAT) **/




/* ==========================================================================
   SHOWCASE DE PORTALES (CARRUSEL MÓVIL / GRID EN ESCRITORIO)
   ========================================================================== */
/* ==========================================================================
   OVERLAY INMERSIVO CEREMONIAL (ESTILO VHATBOT)
   ========================================================================== */

/* Fondo general que oculta el chat y el input mientras las tarjetas están activas */
.ceremonial-overlay-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 850;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 30%, rgba(20, 10, 36, 0.88) 0%, rgba(6, 3, 14, 0.98) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

    .ceremonial-overlay-container.fade-out {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.96);
        display: none;
    }

/* Tipografía de Encabezado */
.ceremonial-hero-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.ceremonial-sub-title {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent-gold, #ffd700);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    display: block;
    margin-bottom: 4px;
}

.ceremonial-main-title {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 16px rgba(177, 94, 255, 0.7);
}

.ceremonial-desc-copy {
    font-size: 0.82rem;
    color: #c4b5fd;
    margin: 6px 0 0 0;
    opacity: 0.85;
}

/* Píldoras de Navegación */
.ceremonial-nav-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 1.4rem;
}

.c-nav-pill {
    background: rgba(25, 12, 45, 0.75);
    border: 1px solid rgba(177, 94, 255, 0.3);
    color: #d8b4fe;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .c-nav-pill.active, .c-nav-pill:hover {
        border-color: #ffd700;
        color: #ffd700;
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
    }

/* Pista de Tarjetas */
.ceremonial-cards-track {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 980px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 14px 18px 14px;
    scrollbar-width: none;
    box-sizing: border-box;
}

    .ceremonial-cards-track::-webkit-scrollbar {
        display: none;
    }

/* Tarjeta Ceremonial Principal */
.c-portal-card {
    flex: 0 0 84%;
    max-width: 310px;
    scroll-snap-align: center;
    background: linear-gradient(180deg, rgba(26, 13, 48, 0.85) 0%, rgba(11, 5, 22, 0.95) 100%);
    border: 1px solid rgba(177, 94, 255, 0.35);
    border-radius: 20px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(177, 94, 255, 0.1);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.c-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    color: #ffd700;
    margin: 0 0 6px 0;
    text-align: center;
    letter-spacing: 1px;
}

.c-card-subtitle {
    font-size: 0.78rem;
    color: #e2e8f0;
    line-height: 1.4;
    text-align: center;
    min-height: 38px;
    margin: 0 0 16px 0;
}

/* Contenedor de Ilustraciones Estilo Vhatbot */
.c-card-art-box {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

/* Ilustración 1: Abanico de Cartas Vhatbot */
.vhatbot-tarot-fan {
    display: flex;
    gap: 8px;
    align-items: center;
}

.vhat-mini-card {
    width: 50px;
    height: 85px;
    background: linear-gradient(135deg, #1b0c36, #090312);
    border: 1.5px solid rgba(212, 175, 55, 0.7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.8), 0 0 10px rgba(212, 175, 55, 0.2);
    transition: transform 0.3s ease;
}

.vhat-card-back-pattern {
    font-size: 1.1rem;
    color: #ffd700;
    opacity: 0.85;
}

.vhat-mini-card.c-left {
    transform: rotate(-10deg) translateY(4px);
}

.vhat-mini-card.c-center {
    transform: translateY(-8px) scale(1.08);
    border-color: #ffd700;
}

.vhat-mini-card.c-right {
    transform: rotate(10deg) translateY(4px);
}

/* Ilustración 2: Rosa de los Vientos / Astrolabio */
.vhatbot-astral-compass {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.astral-compass-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    animation: spinCompassSlow 30s linear infinite;
}

@keyframes spinCompassSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Ilustración 3: Esfera de Aura Viva */
.vhatbot-aura-sphere {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffd700 0%, #b15eff 45%, #0d041c 85%);
    box-shadow: 0 0 25px rgba(177, 94, 255, 0.65), inset 0 0 15px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: auraGlowFloat 4s infinite ease-in-out;
}

.aura-nested-core {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(212,175,55,0.4) 60%, transparent 100%);
    filter: blur(2px);
}

.aura-star-cross {
    position: absolute;
    color: #ffffff;
    font-size: 1.1rem;
    text-shadow: 0 0 8px #ffd700;
}

@keyframes auraGlowFloat {
    0%, 100% {
        transform: scale(0.94);
        box-shadow: 0 0 18px rgba(177, 94, 255, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 32px rgba(212, 175, 55, 0.6);
    }
}

/* Botón de Acción */
.btn-ceremonial-act {
    width: 100%;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(177, 94, 255, 0.35));
    border: 1px solid #ffd700;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .btn-ceremonial-act:hover {
        background: linear-gradient(135deg, #ffd700, #b8860b);
        color: #080312;
        box-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
    }

/* Indicadores Dots */
.ceremonial-dots {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.c-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
}

    .c-dot.active {
        width: 22px;
        border-radius: 4px;
        background: #ffd700;
    }

/* Enlace inferior para alternar */
.btn-text-direct-toggle {
    background: transparent;
    border: none;
    color: #a78bfa;
    font-size: 0.76rem;
    margin-top: 14px;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.8;
}

    .btn-text-direct-toggle:hover {
        color: #ffd700;
        opacity: 1;
    }

/* ==========================================================================
   PANTALLAS GRANDES / ESCRITORIO (3 COLUMNAS DESPLEGADAS)
   ========================================================================== */
@media (min-width: 940px) {
    .ceremonial-nav-chips,
    .ceremonial-dots {
        display: none;
    }

    .ceremonial-cards-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        overflow: visible;
        padding: 0;
    }

    .c-portal-card {
        max-width: 100%;
        flex: none;
    }

        .c-portal-card:hover {
            transform: translateY(-8px);
            border-color: #ffd700;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(177, 94, 255, 0.3);
        }
}

/* Soporte de caras dentro de la tarjeta */
.c-portal-card {
    position: relative;
    min-height: 380px;
}

.c-card-face {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.3s ease;
}

    .c-card-face.hidden {
        display: none;
    }

/* Cabecera del formulario dentro de la tarjeta */
.astral-card-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge-neon-mini {
    font-size: 0.65rem;
    color: var(--accent-gold, #ffd700);
    letter-spacing: 1.5px;
    font-weight: 700;
}

.btn-flip-back {
    background: transparent;
    border: none;
    color: #c084fc;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

    .btn-flip-back:hover {
        color: #ffd700;
    }

/* Campos estilizados dentro de la tarjeta */
.astral-select-wrapper-card {
    margin-bottom: 14px;
    text-align: left;
}

.astral-label-card {
    display: block;
    font-size: 0.68rem;
    color: #9ca3af;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.astral-select-card,
.astral-input-card {
    width: 100%;
    background: rgba(14, 6, 26, 0.85);
    border: 1px solid rgba(177, 94, 255, 0.4);
    border-radius: 8px;
    color: #f3e8ff;
    padding: 10px;
    font-size: 0.85rem;
    box-sizing: border-box;
}

.astral-input-card {
    margin-bottom: 16px;
}

.btn-confirm-astral {
    background: linear-gradient(135deg, #ffd700, #b8860b) !important;
    color: #0b0614 !important;
}

/* Botón de escape durante la respiración de Aura */
.btn-cancel-aura-guide {
    pointer-events: auto !important;
    background: rgba(20, 10, 35, 0.8);
    border: 1px solid rgba(177, 94, 255, 0.5);
    border-radius: 20px;
    color: #e9d5ff;
    font-size: 0.78rem;
    padding: 7px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-cancel-aura-guide:hover {
        border-color: #ffd700;
        color: #ffd700;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    }

/* 2. Temporizador visual de Aura -> LÍNEA PROGRESIVA DE SINTONIZACIÓN DE AURA */

/* Contenedor delgado */
.aura-progress-track {
    width: 140px;
    height: 2px;
    background: rgba(177, 94, 255, 0.2);
    border-radius: 4px;
    margin: 0 auto 10px auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 8px rgba(177, 94, 255, 0.15);
}

/* Línea viva que avanza suavemente */
.aura-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #b15eff, #ffd700);
    border-radius: 4px;
    box-shadow: 0 0 10px #ffd700, 0 0 4px #ffffff;
    transition: width 0.25s linear;
}

/* 3. Tarjeta ceremonial del resultado de Aura en el Chat */
.aura-reveal-card {
    background: radial-gradient(circle at 50% 10%, rgba(30, 15, 52, 0.95), rgba(9, 4, 18, 0.98));
    border: 1px solid rgba(177, 94, 255, 0.4);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    margin: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.aura-reveal-sphere-mini {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 6px auto 10px auto;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px currentColor;
    animation: miniAuraPulse 3s infinite ease-in-out;
}

@keyframes miniAuraPulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* 4. Tarjetas con cursor interactivo general */
.c-portal-card {
    cursor: pointer;
}

    .c-portal-card * {
        /* Mantiene eventos naturales para selects e inputs dentro de la tarjeta */
        pointer-events: auto;
    }

/* ==========================================================================
   ARTE VISUAL ESTILO VHATBOT: ESTRELLAS Y ARO CROMÁTICO
   ========================================================================== */

/* 1. Clúster de Estrellas Titilantes (Astros) */
.vhatbot-stars-cluster {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stellar-orbit-ring {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 0px dashed rgba(212, 175, 55, 0.35);
    animation: orbitRotate 24s linear infinite;
}

@keyframes orbitRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.twinkle-star {
    position: absolute;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8), 0 0 16px rgba(177, 94, 255, 0.6);
    animation: starPulse 2.5s infinite ease-in-out;
}

.star-1 {
    top: 15%;
    left: 25%;
    font-size: 1.1rem;
    animation-delay: 0s;
}

.star-2 {
    top: 20%;
    right: 20%;
    font-size: 0.85rem;
    animation-delay: 0.8s;
    color: #fff;
}

.star-3 {
    bottom: 25%;
    left: 20%;
    font-size: 0.95rem;
    animation-delay: 1.4s;
}

.star-4 {
    top: 50%;
    left: 50%;
    font-size: 1.4rem;
    transform: translate(-50%, -50%);
    animation-delay: 0.4s;
    color: #ffffff;
    text-shadow: 0 0 12px #fff;
}

.star-5 {
    bottom: 18%;
    right: 25%;
    font-size: 1.2rem;
    animation-delay: 1.9s;
}

.star-6 {
    top: 10%;
    left: 52%;
    font-size: 0.75rem;
    animation-delay: 1.1s;
    color: #e9d5ff;
}

@keyframes starPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
        filter: drop-shadow(0 0 8px #fff);
    }
}

/* 2. Anillo de Aura Espectral Estilo Vhatbot */
.vhatbot-aura-rainbow-ring {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Aro degradado con espectro arcoíris místico */
.aura-spectrum-border {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient( from 0deg, #b15eff 0%, #3b82f6 25%, #10b981 45%, #ffd700 65%, #f97316 80%, #b15eff 100% );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #fff calc(100% - 5px));
    mask: radial-gradient(farthest-side, transparent calc(60%), #fff calc(100% - 5px));
    animation: spectrumSpin 6s linear infinite;
    filter: drop-shadow(0 0 3px rgba(177, 94, 255, 0.7));
}

@keyframes spectrumSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Halo difuminado interior */
.aura-spectrum-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(177, 94, 255, 0.35) 0%, rgba(212, 175, 55, 0.15) 55%, transparent 75%);
    animation: auraCoreBreathe 3s infinite ease-in-out;
}

@keyframes auraCoreBreathe {
    0%, 100% {
        transform: scale(0.85);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
    }
}

/* Estrella centelleante en el núcleo */
.aura-center-spark {
    position: relative;
    color: #ffffff;
    font-size: 1.15rem;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffd700;
    z-index: 2;
    animation: sparkGlint 2.8s infinite ease-in-out;
}

@keyframes sparkGlint {
    0%, 100% {
        transform: scale(0.9) rotate(0deg);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.3) rotate(90deg);
        opacity: 1;
        text-shadow: 0 0 16px #ffffff, 0 0 26px #ffd700;
    }
}


/** FIN  PÍLDORAS DE INICIO DE RITUAL (MODOS DEL ORÁCULO)  **/


/* Animación de entrada para mensajes del bot o widgets */
.chat-bubble,
.interactive-widget-container,
.oracle-card-digital {
    animation: mysticSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mysticSlideIn {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}




/* ==========================================================================
   MAZO DE CARTAS 3D CEREMONIAL: BARAJEO LARGO Y 3 MAZOS CON VOLUMEN
   ========================================================================== */

.deck-stage-container {
    width: 100%;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1100px;
    margin: 1.5rem 0;
    user-select: none;
}

    .deck-stage-container.hidden {
        display: none !important;
    }

    .deck-stage-container:not(.hidden) {
        animation: deckMaterialize 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

@keyframes deckMaterialize {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.92);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.deck-instruction-copy {
    font-size: 0.82rem;
    color: var(--text-muted, #a090b5);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.4rem;
    transition: all 0.3s ease;
}

/* Ensamble del Mazo con soporte 3D */
.deck-assembly {
    position: relative;
    width: 125px;
    height: 185px;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: rotateX(24deg) rotateY(0deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

    .deck-assembly:hover:not(.divided):not(.shuffling) {
        transform: rotateX(18deg) scale(1.05);
    }

/* Capas comunes para dar volumen físico de mazo apilado */
.card-layer {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: linear-gradient(145deg, #160b28 0%, #08040f 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    backface-visibility: hidden;
}

/* Cada uno de los 3 mazos */
.deck-pile {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease;
}

    /* Efecto de grosor físico de cartas superpuestas en cada pila */
    .deck-pile .layer-back {
        transform: translateZ(1px) translateX(-2px) translateY(2px);
        opacity: 0.6;
    }

    .deck-pile .layer-mid {
        transform: translateZ(3px) translateX(1px) translateY(1px);
        opacity: 0.85;
    }

    .deck-pile .card-face {
        transform: translateZ(5px);
    }

/* Tapa superior del mazo completo en reposo */
.deck-cover {
    transform: translateZ(8px);
    z-index: 10;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-sigil {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(177, 94, 255, 0.85));
}

.sigil-ring {
    width: 64px;
    height: 64px;
    position: absolute;
    border: 1px dashed rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    animation: rotateSigil 10s linear infinite;
}

@keyframes rotateSigil {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cover-label {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-top: 8px;
}

.glyph-mark {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-gold, #ffd700);
}

.pile-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
}

.pile-sub {
    font-size: 0.65rem;
    color: #c4b5fd;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- ANIMACIÓN DE BARAJEO RITUAL PROLONGADO (~1.8s) --- */
.deck-assembly.shuffling .deck-cover {
    animation: deepShuffle 1.8s ease-in-out forwards;
}

@keyframes deepShuffle {
    0% {
        transform: translateZ(8px) translateX(0) rotateZ(0deg);
    }

    15% {
        transform: translateZ(25px) translateX(-65px) rotateZ(-16deg);
    }

    30% {
        transform: translateZ(35px) translateX(65px) rotateZ(16deg);
    }

    45% {
        transform: translateZ(20px) translateX(-45px) rotateZ(-10deg);
    }

    60% {
        transform: translateZ(35px) translateX(50px) rotateZ(12deg);
    }

    75% {
        transform: translateZ(18px) translateX(-25px) rotateZ(-6deg);
    }

    90% {
        transform: translateZ(28px) translateX(20px) rotateZ(5deg);
    }

    100% {
        transform: translateZ(8px) translateX(0) rotateZ(0deg);
    }
}

/* --- DIVISIÓN EN LOS 3 MAZOS FÍSICOS --- */
.deck-assembly.divided {
    cursor: default;
    transform: rotateX(16deg) scale(1);
}

    .deck-assembly.divided .deck-cover {
        opacity: 0;
        pointer-events: none;
        transform: translateZ(0) scale(0.7);
    }

    /* Despliegue de los 3 montones */
    .deck-assembly.divided .pile-left {
        transform: translateX(-135px) translateZ(10px) rotateZ(-6deg);
        cursor: pointer;
    }

    .deck-assembly.divided .pile-center {
        transform: translateY(-10px) translateZ(25px);
        cursor: pointer;
    }

    .deck-assembly.divided .pile-right {
        transform: translateX(135px) translateZ(10px) rotateZ(6deg);
        cursor: pointer;
    }

    /* Hover háptico sobre cualquiera de los tres mazos */
    .deck-assembly.divided .deck-pile:hover .card-face {
        border-color: #ffd700;
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.75), 0 0 15px rgba(177, 94, 255, 0.6);
    }

    .deck-assembly.divided .pile-left:hover {
        transform: translateX(-135px) translateZ(35px) scale(1.08) rotateZ(-4deg);
    }

    .deck-assembly.divided .pile-center:hover {
        transform: translateY(-18px) translateZ(45px) scale(1.08);
    }

    .deck-assembly.divided .pile-right:hover {
        transform: translateX(135px) translateZ(35px) scale(1.08) rotateZ(4deg);
    }

/* --- TARJETA DE REVELACIÓN EN EL CHAT --- */
.tarot-reveal-card {
    background: radial-gradient(circle at 50% 0%, rgba(36, 16, 68, 0.95), rgba(10, 5, 20, 0.98));
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), inset 0 0 15px rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 14px;
    margin-top: 10px;
    text-align: center;
}

.tarot-reveal-badge {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 700;
}

.tarot-reveal-name {
    font-size: 1.15rem;
    color: #ffffff;
    margin: 6px 0;
    font-weight: bold;
}

    .tarot-reveal-name.reversed {
        color: #ffb7b2;
    }

.tarot-reveal-status {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-block;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

    .tarot-reveal-status.normal {
        background: rgba(34, 197, 94, 0.15);
        border: 1px solid rgba(34, 197, 94, 0.5);
        color: #86efac;
    }

    .tarot-reveal-status.reversed {
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(239, 68, 68, 0.5);
        color: #fca5a5;
    }

.tarot-reveal-deck {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Adaptación móvil */
@media (max-width: 600px) {
    .deck-assembly {
        width: 95px;
        height: 145px;
    }

        .deck-assembly.divided .pile-left {
            transform: translateX(-98px) translateZ(10px) rotateZ(-5deg);
        }

        .deck-assembly.divided .pile-right {
            transform: translateX(98px) translateZ(10px) rotateZ(5deg);
        }

        .deck-assembly.divided .pile-left:hover {
            transform: translateX(-98px) translateZ(30px) scale(1.05);
        }

        .deck-assembly.divided .pile-right:hover {
            transform: translateX(98px) translateZ(30px) scale(1.05);
        }
}

/**  FIN  MAZO DE CARTAS 3D CEREMONIAL (BARAJEO Y CORTE EN 3 PILAS) **/

/* ==========================================================================
   RITUAL DE REVELACIÓN FLOTANTE (CLÍMAX 3D & ILUSTRACIONES DE TAROT)
   ========================================================================== */

/* Escenario flotante que superpone la carta revelada en el centro */
.tarot-revelation-stage {
    position: fixed;
    inset: 0;
    background: rgba(5, 2, 10, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    animation: fadeInStage 0.35s ease-out forwards;
}

@keyframes fadeInStage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Naipe 3D que gira en el centro */
.tarot-card-flipper {
    width: 140px;
    height: 235px;
    position: relative;
    transform-style: preserve-3d;
    animation: flipCardClimax 1.4s cubic-bezier(0.2, 0.85, 0.4, 1.2) forwards;
}

@keyframes flipCardClimax {
    0% {
        transform: scale(0.6) rotateY(0deg) translateY(30px);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    }

    50% {
        transform: scale(1.18) rotateY(90deg) translateY(-15px);
        filter: brightness(2) drop-shadow(0 0 35px var(--accent-gold));
    }

    100% {
        transform: scale(1.08) rotateY(180deg) translateY(0);
        box-shadow: 0 0 35px rgba(212, 175, 55, 0.7), 0 0 20px rgba(177, 94, 255, 0.6);
    }
}

.tarot-flipper-face {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    backface-visibility: hidden;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
}

.flipper-back {
    background: linear-gradient(145deg, #180a30 0%, #080312 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.flipper-front {
    transform: rotateY(180deg);
    background: #000;
}

    .flipper-front img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Inversión física si la carta sale invertida */
    .flipper-front.card-inverted img {
        transform: rotate(180deg);
        filter: sepia(0.2) hue-rotate(290deg); /* Toque de sombra mística */
    }

.revelation-legend-float {
    margin-top: 18px;
    text-align: center;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    animation: fadeInStage 0.6s 0.8s ease-out backwards;
}

/* --- TARJETA DE RESULTADO DENTRO DEL CHAT CON IMAGEN --- */
.tarot-reveal-card {
    background: radial-gradient(circle at 50% 0%, rgba(32, 14, 62, 0.95), rgba(9, 4, 18, 0.98)) !important;
    border: 1px solid var(--accent-gold) !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35), inset 0 0 15px rgba(138, 43, 226, 0.25) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin: 6px 0 !important;
    text-align: center;
    max-width: 320px;
}

.tarot-card-frame {
    width: 110px;
    height: 185px;
    margin: 8px auto 10px auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.8), 0 0 10px rgba(212, 175, 55, 0.3);
    position: relative;
    background: #000;
}

    .tarot-card-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .tarot-card-frame.inverted img {
        transform: rotate(180deg);
        filter: sepia(0.25) contrast(1.1);
    }

.tarot-reveal-badge {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 800;
    display: block;
}

.tarot-reveal-name {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 4px 0 6px 0;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.tarot-reveal-status {
    font-size: 0.72rem;
    padding: 3px 12px;
    border-radius: 12px;
    display: inline-block;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 700;
}

    .tarot-reveal-status.normal {
        background: rgba(34, 197, 94, 0.15);
        border: 1px solid rgba(34, 197, 94, 0.6);
        color: #86efac;
    }

    .tarot-reveal-status.reversed {
        background: rgba(239, 68, 68, 0.18);
        border: 1px solid rgba(239, 68, 68, 0.6);
        color: #fca5a5;
    }

.tarot-reveal-deck {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.35;
}
/**
     FIN RITUAL DE REVELACIÓN FLOTANTE (CLÍMAX 3D & ILUSTRACIONES DE TAROT)
    **/

/* ==========================================================================
   RITUAL DE ESCANEO DE AURA: RESPIRACIÓN Y SINTONIZACIÓN CROMÁTICA
   ========================================================================== */

/* 1. Fondo atenuado durante el ritual de respiración */
.oraculo-fullscreen.aura-ritual-active .chat-history,
.oraculo-fullscreen.aura-ritual-active .chat-section,
.oraculo-fullscreen.aura-ritual-active .bottom-drag-handle {
    opacity: 0.08 !important;
    pointer-events: none !important;
    transition: opacity 0.6s ease;
}

/* 2. Traslado del Orbe al centro geométrico del viewport */
.orb-wrapper.aura-ritual-stage {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(15, 6, 30, 0.7) 0%, rgba(5, 2, 10, 0.92) 80%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Comportamiento del cursor y halo táctil en el orbe */
.orb-core.aura-cycling {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    /* Transición suave para que los saltos de color no parezcan estroboscópicos */
    transition: transform 0.12s ease, background 0.45s ease, box-shadow 0.45s ease;
    filter: brightness(0.9) contrast(1.1); /* Suaviza el impacto general */
}

/* 4. Guía sutil de respiración y acción */
.aura-breath-guide {
    margin-top: 24px;
    text-align: center;
    pointer-events: auto !important; /* Permite clics en el botón */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}

.breath-phase-label {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
    transition: opacity 0.3s ease;
}

.breath-instruction-sub {
    font-size: 0.8rem;
    color: #e0d0fa;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* 5. Destello cromático en pantalla completa (Flashbang) */
.aura-flashbang {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    /* Curva más suave y duración ligeramente mayor para disipar la violencia visual */
    animation: flashbangAnim 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes flashbangAnim {
    0% {
        opacity: 0.55; /* En lugar de 0.95: reduce la intensidad a la mitad */
        filter: brightness(1.15); /* En lugar de brightness(2) */
    }

    35% {
        opacity: 0.3;
        filter: brightness(1);
    }

    100% {
        opacity: 0;
    }
}

/** FIN RITUAL DE ESCANEO DE AURA: RESPIRACIÓN Y SINTONIZACIÓN CROMÁTICA **/

/* ==========================================================================
   MODO: COORDENADA ASTRAL (FORMULARIO CEREMONIAL, GLIFO Y CONSTELACIÓN)
   ========================================================================== */

/* 1. Backdrop del Modal Astral */
.astral-modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 2, 10, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 950;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.35s ease-out forwards;
}

    .astral-modal-backdrop.hidden {
        display: none !important;
    }

.astral-modal-card {
    background: radial-gradient(circle at 50% 0%, rgba(30, 15, 55, 0.95), rgba(10, 5, 20, 0.98));
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.35), inset 0 0 20px rgba(138, 43, 226, 0.25);
    border-radius: 16px;
    padding: 1.6rem;
    width: 92%;
    max-width: 460px;
    position: relative;
    color: var(--text-main);
    box-sizing: border-box;
}

.astral-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--accent-glow);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

    .astral-modal-close:hover {
        color: var(--accent-gold);
    }

.astral-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.astral-title {
    margin: 4px 0 6px 0;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 1px;
}

.astral-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* 2. Diales y Controles del Formulario */
.astral-dial-row, .astral-optional-row {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .astral-dial-row, .astral-optional-row {
        flex-direction: column;
        gap: 8px;
    }
}

.astral-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.astral-label {
    font-size: 0.65rem;
    letter-spacing: 1.2px;
    color: var(--accent-gold);
    font-weight: 700;
}

.astral-select, .astral-input {
    width: 100%;
    background: rgba(12, 6, 24, 0.85);
    border: 1px solid rgba(177, 94, 255, 0.4);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

    .astral-select:focus, .astral-input:focus {
        border-color: var(--accent-gold);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    }

    .astral-select option {
        background: #0d0618;
        color: #fff;
    }

.btn-astral-submit {
    width: 100%;
    margin-top: 0.6rem;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #a67c1e 100%);
    color: #0b0514;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

    .btn-astral-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
    }



/* 4. Tarjeta Ceremonial de Coordenada en el Chat */
.astral-reveal-card {
    background: radial-gradient(circle at 50% 0%, rgba(32, 14, 62, 0.95), rgba(9, 4, 18, 0.98)) !important;
    border: 1px solid var(--accent-gold) !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35), inset 0 0 15px rgba(138, 43, 226, 0.25) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin: 6px 0 !important;
    text-align: center;
    max-width: 340px;
}

.astral-reveal-glyph {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    margin: 6px 0;
}

.astral-reveal-meta {
    font-size: 0.72rem;
    color: #d8b4fe;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   SELECTORES REFINADOS Y LIMPIOS: COORDENADA ASTRAL
   ========================================================================== */

.astral-select-wrapper {
    position: relative;
    width: 100%;
}

/* Selector estilizado (apariencia custom) */
.astral-select-clean {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(14, 8, 26, 0.85);
    border: 1px solid rgba(177, 94, 255, 0.35);
    border-radius: 8px;
    padding: 11px 36px 11px 14px;
    color: var(--text-main, #f0ecfc);
    font-size: 0.9rem;
    font-family: 'Space Mono', monospace, sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

    .astral-select-clean:hover {
        border-color: rgba(212, 175, 55, 0.6);
        background: rgba(22, 12, 40, 0.95);
    }

    .astral-select-clean:focus {
        border-color: var(--accent-gold, #ffd700);
        box-shadow: 0 0 14px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(138, 43, 226, 0.2);
    }

    /* Opciones dentro del desplegable */
    .astral-select-clean option {
        background-color: #0d0618;
        color: #f0ecfc;
        padding: 10px;
        font-size: 0.9rem;
    }

/* Indicador flecha minimalista dorado */
.select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--accent-gold, #ffd700);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.astral-select-clean:focus + .select-chevron {
    transform: translateY(-50%) rotate(180deg);
}

/* Etiquetas minimalistas */
.astral-label {
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    color: var(--text-muted, #a090b5);
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

/** FIN MODO: COORDENADA ASTRAL (FORMULARIO CEREMONIAL, GLIFO Y CONSTELACIÓN) **/

/* ==========================================================================
   RITUAL DE CONSTELACIÓN ASTRAL: ENFOQUE Y GLIFO EN ORBE
   ========================================================================== */

/* 1. Atenuación del chat durante el trazo de la constelación */
.oraculo-fullscreen.astral-ritual-active .chat-history,
.oraculo-fullscreen.astral-ritual-active .chat-section,
.oraculo-fullscreen.astral-ritual-active .bottom-drag-handle {
    opacity: 0.05 !important;
    pointer-events: none !important;
    transition: opacity 0.4s ease;
}

/* 2. Visualización asegurada del glifo en el Orbe */
.orb-core.astral-glyph-active {
    position: relative !important;
    overflow: visible !important;
}

    .orb-core.astral-glyph-active::after {
        content: attr(data-glyph);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: clamp(2rem, 5vw, 2.8rem);
        color: var(--accent-gold, #ffd700);
        text-shadow: 0 0 14px rgba(212, 175, 55, 0.95), 0 0 25px rgba(177, 94, 255, 0.85);
        z-index: 10;
        pointer-events: none;
        line-height: 1;
        animation: glyphFlicker 3s infinite ease-in-out;
    }

@keyframes glyphFlicker {
    0%, 100% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(0.95);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
        text-shadow: 0 0 20px #ffffff, 0 0 30px var(--accent-gold, #ffd700);
    }
}

/* Ícono de línea fina fundido en el orbe */
.astral-orb-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(38px, 45%, 54px);
    height: clamp(38px, 45%, 54px);
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 16px rgba(177, 94, 255, 0.6));
    animation: svgOrbPulse 3s infinite ease-in-out;
}

@keyframes svgOrbPulse {
    0%, 100% {
        opacity: 0.75;
        transform: translate(-50%, -50%) scale(0.95);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
        filter: drop-shadow(0 0 12px #ffffff) drop-shadow(0 0 24px rgba(177, 94, 255, 0.9));
    }
}

/**   FIN RITUAL DE CONSTELACIÓN ASTRAL: ENFOQUE Y GLIFO EN ORBE
 **/


/* ==========================================================================
   PREVENCIÓN DE DOBLE CLIC Y ESTADO DE PROCESAMIENTO
   ========================================================================== */
.btn-processing,
[data-clicked="true"] {
    pointer-events: none !important; /* Anula clics subsecuentes al instante */
    opacity: 0.65 !important;
    cursor: wait !important;
    filter: brightness(0.85);
    transform: none !important;
}

/* ==========================================================================
   VIBRACIÓN / PULSO DEL ORBE DURANTE LA LECTURA DE VOZ
   ========================================================================== */

.orb-core.speaking {
    animation: orbVoicePulse 0.35s infinite alternate ease-in-out !important;
    filter: brightness(1.3) contrast(1.15);
}

@keyframes orbVoicePulse {
    0% {
        transform: scale(0.97) translateY(0px);
        box-shadow: 0 0 20px rgba(177, 94, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.4);
    }

    50% {
        transform: scale(1.04) translateY(-1px);
        box-shadow: 0 0 35px rgba(212, 175, 55, 0.5), 0 0 50px rgba(177, 94, 255, 0.8), inset 0 0 16px rgba(255, 255, 255, 0.8);
    }

    100% {
        transform: scale(1.02) translateY(1px);
        box-shadow: 0 0 28px rgba(177, 94, 255, 0.7), inset 0 0 12px rgba(255, 255, 255, 0.6);
    }
}


/* Contenedor del abanico */
.c-card-art-box {
    position: relative;
    width: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
    overflow: visible;
    margin: 8px 0;
}

.vhatbot-tarot-fan {
    position: relative;
    width: 170px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* Base de cada carta del abanico */
.vhat-mini-card {
    position: absolute;
    width: 72px;
    height: 115px;
    border-radius: 7px;
    /* Fondo con textura geométrica ceremonial */
    background: radial-gradient(circle at 50% 50%, rgba(177, 94, 255, 0.22) 0%, transparent 65%), repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.05) 0px, rgba(212, 175, 55, 0.05) 2px, transparent 2px, transparent 6px), repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.05) 0px, rgba(212, 175, 55, 0.05) 2px, transparent 2px, transparent 6px), linear-gradient(145deg, #180c2e 0%, #080312 100%);
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75), inset 0 0 10px rgba(177, 94, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    user-select: none;
}

    /* Marco interior dorado (filo ceremonial) */
    .vhat-mini-card::before {
        content: '';
        position: absolute;
        inset: 3px;
        border: 1px solid rgba(212, 175, 55, 0.35);
        border-radius: 4px;
        pointer-events: none;
    }

/* Patrón y glifo central */
.vhat-card-back-pattern {
    position: relative;
    z-index: 2;
    font-size: 1.15rem;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.8), 0 0 14px rgba(177, 94, 255, 0.7);
    transition: transform 0.3s ease;
}

/* Disposición inicial en abanico */
.vhat-mini-card.c-left {
    transform: translateX(-34px) translateY(5px) rotate(-14deg);
    z-index: 1;
}

.vhat-mini-card.c-center {
    transform: translateX(0) translateY(-6px) rotate(0deg);
    z-index: 3;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.85), inset 0 0 12px rgba(212, 175, 55, 0.4);
    border-color: rgba(212, 175, 55, 0.85);
}

.vhat-mini-card.c-right {
    transform: translateX(34px) translateY(5px) rotate(14deg);
    z-index: 2;
}

/* Hover general de la tarjeta o del contenedor */
.vhat-mini-card:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.75), inset 0 0 12px rgba(177, 94, 255, 0.5);
    border-color: #ffd700;
}

.vhat-mini-card.c-left:hover {
    transform: translateX(-40px) translateY(-8px) rotate(-18deg) scale(1.06);
    z-index: 4;
}

.vhat-mini-card.c-center:hover {
    transform: translateX(0) translateY(-14px) scale(1.08);
    z-index: 4;
}

.vhat-mini-card.c-right:hover {
    transform: translateX(40px) translateY(-8px) rotate(18deg) scale(1.06);
    z-index: 4;
}

/* ==========================================================================
   ANIMACIÓN DE BARAJEO AUTOMÁTICO (SHUFFLE) DEL ABANICO
   ========================================================================== */

/* Carta izquierda sale y se intercala al frente */
.vhatbot-tarot-fan.fan-shuffling .vhat-mini-card.c-left {
    animation: fanShuffleLeft 1.2s cubic-bezier(0.45, 0, 0.25, 1);
}

/* Carta derecha cruza por el lado contrario */
.vhatbot-tarot-fan.fan-shuffling .vhat-mini-card.c-right {
    animation: fanShuffleRight 1.2s cubic-bezier(0.45, 0, 0.25, 1);
}

/* Carta central se levanta con destello */
.vhatbot-tarot-fan.fan-shuffling .vhat-mini-card.c-center {
    animation: fanShuffleCenter 1.2s cubic-bezier(0.45, 0, 0.25, 1);
}

@keyframes fanShuffleLeft {
    0% {
        transform: translateX(-34px) translateY(5px) rotate(-14deg);
        z-index: 1;
    }

    35% {
        transform: translateX(-68px) translateY(-12px) rotate(-24deg) scale(1.08);
        z-index: 5;
    }

    70% {
        transform: translateX(20px) translateY(-4px) rotate(8deg);
        z-index: 5;
    }

    100% {
        transform: translateX(-34px) translateY(5px) rotate(-14deg);
        z-index: 1;
    }
}

@keyframes fanShuffleRight {
    0% {
        transform: translateX(34px) translateY(5px) rotate(14deg);
        z-index: 2;
    }

    35% {
        transform: translateX(68px) translateY(-12px) rotate(24deg) scale(1.08);
        z-index: 4;
    }

    70% {
        transform: translateX(-20px) translateY(-4px) rotate(-8deg);
        z-index: 4;
    }

    100% {
        transform: translateX(34px) translateY(5px) rotate(14deg);
        z-index: 2;
    }
}

@keyframes fanShuffleCenter {
    0% {
        transform: translateX(0) translateY(-6px) rotate(0deg);
    }

    40% {
        transform: translateX(0) translateY(12px) scale(0.95);
        filter: brightness(0.85);
    }

    70% {
        transform: translateX(0) translateY(-16px) scale(1.1);
        filter: brightness(1.3) drop-shadow(0 0 14px var(--accent-gold, #ffd700));
    }

    100% {
        transform: translateX(0) translateY(-6px) rotate(0deg);
        filter: brightness(1);
    }
}