/* Archivo style.css */
/* Aquí añadiremos nuestros estilos CSS */

.code-block {
    background-color: #f5f5f5;
    border: 0.0625rem solid #ddd;
    border-radius: 0.25rem;
    padding: 0.9375rem;
    margin-bottom: 1.25rem;
    font-family: 'Courier New', monospace;
}

/* ----- EJERCICIO 1: Estilos Base y Reset Mínimo ----- */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #372686;
    padding: 0.625rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.2);
}

/* MENU PRINCIPAL */
.menu-principal ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.menu-principal ul li {
    display: inline-block;
}

.menu-principal ul li a {
    display: block;
    padding: 0.9375rem 1.5625rem;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease-out;
}

.menu-principal ul li a:hover {
    background-color: #672991;
    color: #e2055a;
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.3);
}

.menu-principal ul li:not(:last-child) {
    border-right: 0.0625rem solid #eeeeee;
}

.menu-principal ul li a.activo {
    background-color: #ffc107;
    color: #333;
    box-shadow: inset 0 0 0.625rem rgba(0,0,0,0.1);
}

/* MENU INTEGRANTES (NAV SECUNDARIO) */
.menu-integrantes {
    background-color: #f0f0f0;
    padding: 1.25rem 0;
    margin-top: 1.875rem;
    border-top: 0.1875rem solid #372686;
    box-shadow: inset 0 -0.0625rem 0.3125rem rgba(0,0,0,0.1);
}

.menu-integrantes ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.menu-integrantes ul li a {
    display: inline-block;
    padding: 0.75rem 1.125rem;
    border-radius: 0.75rem;
    background-color: #e2055a;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.15);
}

.menu-integrantes ul li a:hover {
    background-color: #c6004e;
    transform: scale(1.05);
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.2);
}

.menu-integrantes ul li a.activo {
    background-color: #ff5e8e;
    color: #fff;
    box-shadow: inset 0 0 0.5rem rgba(0,0,0,0.1);
}

@media (max-width: 37.5rem) {
    .menu-principal ul li,
    .menu-integrantes ul {
        display: block;
        text-align: center;
    }

    .menu-integrantes ul {
        flex-direction: column;
        gap: 0.625rem;
    }
}
