html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.introBody {
    background-image: url('./assets/img/intro.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #051926;
    margin: 0;
    min-height: 100vh;
    
    /* Importante: permite que el botón se posicione respecto al body */
    position: relative; 
    display: flex;
    justify-content: center;
}

.buttonContainer {
    position: absolute;
    bottom: 120px; /* Distancia original para móvil */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px; /* Espacio entre los dos botones */
    justify-content: center;
    align-items: center;
}

.navButton img {
    width: 80px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.navButton img:hover {
    transform: scale(1.1);
}

/* Modal Instrucciones - VERSIÓN SIMPLE */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content-instrucciones {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.instrucciones-img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: block;
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #FF5252;
    color: white;
    border: 3px solid #D32F2F;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #FF1744;
    transform: scale(1.1) rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content-instrucciones {
        max-width: 95%;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 22px;
        top: -10px;
        right: -10px;
    }
}

@media screen and (min-width: 1024px) {
    .buttonContainer {
        left: 48%;
        bottom: 20px; /* Ajustado para que quepan ambos verticalmente */
        flex-direction: column; /* AQUÍ: Cambia a uno sobre el otro */
        gap: 10px; /* Espacio vertical entre botones */
    }
}

.button-instrucciones {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(180deg, #FFD54F 0%, #FFC107 100%);
    border: 3px solid #FFA000;
    border-radius: 12px;
    padding: 12px 20px;
    font-family: 'Arial Black', sans-serif;
    font-size: 16px;
    color: #1B3A1F;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    z-index: 100;
}

.button-instrucciones:hover {
    background: linear-gradient(180deg, #FFE082 0%, #FFD54F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
}

.button-instrucciones:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
    .button-instrucciones {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }
    body{overflow: hidden;}
}