/* ============================================
   SISTEMA DE ELECCIONES - EL ARCHIVO INFINITO
   ============================================ */

/* Animaciones para las opciones */
.choice-box .option {
    position: relative;
    overflow: hidden;
}

.choice-box .option::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 255, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.choice-box .option:hover::before {
    width: 300px;
    height: 300px;
}

.choice-box .option.selected {
    background: rgba(0, 255, 255, 0.3);
    border-color: #0ff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    animation: pulse 1s ease-in-out;
}

.choice-box .option.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Contenedor de resultados */
.choice-result-container {
    margin: 3rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.choice-result-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.saved-choice-notice {
    text-align: center;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #0ff;
    background: rgba(0, 255, 255, 0.05);
    color: #0ff;
    font-size: 0.9rem;
}

/* Resultado de la elección */
.choice-result {
    border: 2px solid #0ff;
    background: rgba(0, 255, 255, 0.05);
    padding: 2rem;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.result-icon {
    font-size: 3rem;
    color: #0ff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
    }
}

.result-title {
    font-size: 1.3rem;
    color: #0ff;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.result-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #0f0;
}

.result-content p {
    margin-bottom: 1rem;
}

.result-content .highlight {
    color: #0ff;
    font-size: 1.1rem;
    text-align: center;
    margin: 1.5rem 0;
    font-weight: bold;
}

.result-content .code {
    color: #0ff;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
}

.result-content .warning {
    color: #f00;
    text-align: center;
    margin: 1.5rem 0;
    font-weight: bold;
}

.result-content .final-message {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #0ff;
    font-style: italic;
}

/* Estadísticas */
.choice-stats {
    margin-top: 3rem;
    padding: 2rem;
    border: 2px solid #0f0;
    background: rgba(0, 255, 0, 0.05);
}

.stats-header {
    text-align: center;
    margin-bottom: 2rem;
}

.stats-title {
    font-size: 1.2rem;
    color: #0ff;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stats-subtitle {
    font-size: 0.9rem;
    color: #0f0;
    opacity: 0.8;
}

.stats-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f0;
    font-size: 0.9rem;
}

.stat-icon {
    color: #0ff;
    font-size: 1.2rem;
}

.stat-bar {
    position: relative;
    height: 30px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #0f0;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 255, 0, 0.3) 0%, 
        rgba(0, 255, 255, 0.3) 100%);
    border-right: 2px solid #0ff;
    transition: width 1s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.stat-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #0ff;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.stats-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    color: #0f0;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .choice-result {
        padding: 1.5rem;
    }

    .result-icon {
        font-size: 2rem;
    }

    .result-title {
        font-size: 1rem;
    }

    .result-content {
        font-size: 0.9rem;
    }

    .choice-stats {
        padding: 1.5rem;
    }

    .stats-title {
        font-size: 1rem;
    }
}
