﻿/* Reset útil */
* {
    box-sizing: border-box;
}

.contenedor-calculadora {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    animation: fadeIn 1s ease;
}

#img-fondo-quiz {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.85);
}

.glass-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 35px;
    border-radius: 25px;
    width: 85%;
    text-align: center;
    color: #021c3c;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: zoomIn 0.6s ease forwards;
}

/* Pregunta */
#lbl-ask {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #021c3c;
    animation: fadeSlide 0.5s ease;
}

/* Contenedor respuestas */
.respuestas-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #021c3c, #03326a) !important;
    border: none !important;
    padding: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
}

    .btn-primary:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }

    .btn-primary:active {
        transform: scale(0.97);
    }

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.1);
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #021c3c, #00c6ff);
    width: 0%;
    transition: width 0.4s ease;
}

#resultado {
    margin-top: 20px;
    font-weight: bold;
    animation: fadeIn 0.6s ease;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .glass-overlay {
        width: 90%;
        padding: 25px;
    }

    #lbl-ask {
        font-size: 1.6rem;
    }
}


@media (max-width: 480px) {

    .contenedor-calculadora {
        border-radius: 0;
    }

    #img-fondo-quiz {
        height: 100vh;
        object-fit: cover;
    }

    .glass-overlay {
        width: 92%;
        padding: 20px;
        border-radius: 18px;
    }

    #lbl-ask {
        font-size: 1.3rem;
    }

    .btn-primary {
        font-size: 0.9rem;
        padding: 12px;
    }
}
