/* =========================================================================
 * ESTILOS PARA EL MODAL DE FALSA VICTORIA (RECONSTRUIDO CON 4 PASOS)
 * MODIFICADO: Añadido efecto de brillo pulsante al botón del Paso 1.
 * ========================================================================= */

.modal--fake-victory .modal__content {
    flex-direction: column;
    max-width: 850px;
    width: 90vw;
    height: 90vh;
    max-height: 600px;
    padding: 0;
    overflow: hidden;
    background: #1a202c;
    border: 2px solid #a78bfa;
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.5);
    gap: 0;
}

/* --- Lógica de Pasos --- */
.fv-step {
    display: none;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    padding: clamp(15px, 3vh, 25px);
    box-sizing: border-box;
    animation: fadeIn 0.5s ease;
}
.fv-step.is-active {
    display: flex;
    flex-direction: column;
}

/* --- Estructura de Columnas --- */
.fv-visual-col, .fv-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.fv-text-col {
    flex-grow: 1;
    gap: 1.5vh;
    height: 50%;
}
.fv-visual-col { height: 50%; }

.fv-text-col .modal__footer {
    width: 100%;
    margin-top: auto;
    padding-top: 2vh;
}

/* --- PASO 1: FALSA VICTORIA --- */
.fv-step-1 .fv-visual-col {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #3c1742, #1e1b4b);
    align-self: stretch;
}
#budi-fv-step1-prize-image {
    width: 80%;
    max-height: 40vh;
    object-fit: contain;
    z-index: 2;
    animation: prize-reveal-animation 4s ease-in-out infinite;
}

/* --- PASO 2, 3, 4 --- */
.fv-visual-col--dark {
    background: radial-gradient(ellipse at center, #374151, #1f2937);
    align-self: stretch;
}
.fv-avatar {
    width: clamp(100px, 20vh, 150px);
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 3px solid #818cf8;
    background-color: rgba(0,0,0,0.2);
}
.fv-bet-display {
    background: rgba(0,0,0,0.2); border-radius: 8px; padding: 15px; width: 90%;
    border: 1px solid rgba(255,255,255,0.1);
}
.fv-bet-title {
    font-weight: bold; text-transform: uppercase; color: #ddd; margin-bottom: 10px; font-size: 0.9em;
}
.fv-bet-items { display: flex; justify-content: center; align-items: center; gap: 20px; font-size: 0.9em; }
.fv-bet-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fv-bet-item img {
    width: 80px; height: 80px; object-fit: contain; background: rgba(255,255,255,0.05); border-radius: 6px; padding: 5px;
}
.fv-bet-operator { font-size: 2.5em; color: #ddd; font-weight: bold; }
.fv-footer-stacked { flex-direction: column; align-items: center; gap: 15px; }
.btn-text-link { background: none; border: none; color: #a0aec0; text-decoration: underline; cursor: pointer; font-size: clamp(0.7rem, 1.8vh, 0.8rem); opacity: 0.8; transition: opacity 0.2s ease; }
.btn-text-link:hover { opacity: 1; }

.fv-step-3 .fv-visual-col {
    padding: 10px;
}
.fv-prize-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px;
    width: 100%; height: 100%;
    overflow-y: auto; padding: 10px;
    background: rgba(0,0,0,0.1); border-radius: 8px; min-height: 0;
}
.fv-prize-item {
    background: #374151; border: 2px solid #4b5563; border-radius: 8px; padding: 10px; cursor: pointer;
    transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative;
}
.fv-prize-item:hover { transform: scale(1.05); border-color: #a5b4fc; }
.fv-prize-item.is-selected { border-color: #6366f1; box-shadow: 0 0 15px #6366f1; transform: scale(1.05); }
.fv-prize-item.is-selected::after {
    content: 'OBJETIVO'; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); background: #6366f1;
    color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.7em; font-weight: bold;
}
.fv-prize-item img { width: 100px; height: 100px; object-fit: contain; }
.fv-prize-item span { font-size: 0.8em; font-weight: bold; text-align: center; }

.fv-vs-display { 
    display: flex; 
    justify-content: center;
    align-items: center; 
    width: 100%; 
    margin: 15px 0;
    gap: 20px;
}
.fv-vs-side { text-align: center; }
.fv-vs-side h4 { margin: 0 0 10px 0; color: #c7d2fe; text-transform: uppercase; font-size: 1em; }
.fv-vs-item img { 
    width: clamp(100px, 20vh, 130px);
    height: clamp(100px, 20vh, 130px);
    object-fit: contain; 
    background: rgba(0,0,0,0.2); 
    border-radius: 8px; 
    padding: 5px; 
    border: 2px solid #4b5563; 
}
.fv-vs-symbol { display: none; }


/* --- Estilos Generales de Texto y Botones --- */
.modal--fake-victory .modal__title { color: #fde047; font-size: clamp(1.5rem, 4vh, 2rem); text-shadow: 0 0 10px #f59e0b; }
.modal--fake-victory .modal__text { font-size: clamp(0.9rem, 2.2vh, 1rem); opacity: 0.9; margin: 1vh auto; max-width: 45ch; flex-grow: 1; color: #e5e7eb; }
.modal--fake-victory .modal__text.fv-text--small { font-size: clamp(0.8rem, 2vh, 0.9rem); flex-grow: 0; }
.modal--fake-victory .btn { width: auto; padding: clamp(12px, 2vh, 15px) clamp(20px, 3vw, 30px); font-size: clamp(0.9rem, 2.2vh, 1.1rem); }
.modal--fake-victory .btn--yellow { color: #333 !important; }

/* --- INICIO DE LA MODIFICACIÓN: Añadir efecto al botón del Paso 1 --- */
#budi-fv-step1-next-btn {
    position: relative;
    overflow: hidden;
    animation: button-pulse-glow 2s infinite ease-in-out;
}
#budi-fv-step1-next-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 20px;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    animation: gleam-effect 3s infinite linear;
}
/* --- FIN DE LA MODIFICACIÓN --- */


/* --- Media Query para Vista Horizontal --- */
@media (orientation: landscape) {
    .modal--fake-victory .modal__content {
        height: 80vh;
        max-height: 550px;
    }

    .fv-step.is-active {
        flex-direction: row;
        align-items: center;
        gap: clamp(15px, 3vw, 30px);
    }
    .fv-visual-col {
        flex: 0 0 45%;
        align-self: stretch;
        height: auto;
    }
    .fv-text-col {
        flex: 1 1 55%;
        text-align: left;
        height: auto;
    }
    .fv-text-col .modal__footer {
        align-items: flex-start;
    }
    .fv-footer-stacked {
        flex-direction: row;
        align-items: center;
    }
    .fv-text-col .modal__footer {
        flex-direction: row;
    }
}

/* --- Animaciones --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes prize-reveal-animation {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 15px rgba(236, 201, 75, 0.6));
  }
  50% {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 0 30px rgba(236, 201, 75, 1));
  }
}

/* --- INICIO DE LA MODIFICACIÓN: Añadir keyframes para las nuevas animaciones --- */
@keyframes button-pulse-glow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(167, 139, 250, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(167, 139, 250, 0.8); }
}
@keyframes gleam-effect {
    0% { left: -100%; }
    100% { left: 150%; }
}
/* --- FIN DE LA MODIFICACIÓN --- */