/* ============================= */
/* ESTILOS GENERALES */
/* ============================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* ============================= */
/* PÁGINA PRINCIPAL */
/* ============================= */

body:not(.lab-page) {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: white;
    text-align: center;
}

header {
    padding: 40px 20px;
}

.intro {
    margin-top: 10px;
}

.btn-start {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: #1565c0;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-start:hover {
    background: #e3f2fd;
    transform: scale(1.05);
}

/* ============================= */
/* LABORATORIO */
/* ============================= */

.lab-page {
    background-color: #eef2f3;
    text-align: center;
}

canvas {
    border: 2px solid #333;
    margin-top: 20px;
}

/* ============================= */
/* POPUP */
/* ============================= */

#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);

    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

#popup-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    animation: popupAnimation 0.25s ease-out;
}

@keyframes popupAnimation {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* ============================= */
/* ANIMACIONES ENTRADA */
/* ============================= */

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards;
}

.fade-delay-1 {
    animation-delay: 0.2s;
}

.fade-delay-2 {
    animation-delay: 0.4s;
}

.fade-delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
