/* ==========================================================================
   LAYOUT.CSS - Estilos para la estructura principal de la página.
   ========================================================================== */

   body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    margin: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    padding: 0rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg-card);
}

header h1 {
    margin: 0;
    font-size: 1.75rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li a,
nav ul li button {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1rem;
    display: block;
    background: none;
    border: none;
    font: inherit;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

nav ul li button:hover,
nav ul li a:hover,
nav ul li a.active-nav {
    background: var(--bg-card);
    color: var(--text-primary);
}

main {
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    flex-grow: 1;
    box-sizing: border-box;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section h2 {
    color: var(--text-primary);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

footer {
    text-align: center;
    margin-top: auto;
    padding: 1.5rem;
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.9em;
    border-top: 1px solid var(--bg-card);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    main {
        padding: 1rem;
        margin: 1rem auto;
    }
}

/* --- El "Contenedor" o "Máscara" --- */
.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* --- La Imagen (que se adapta a la máscara) --- */
#header-logo {
    /* 2. Hacemos que la imagen intente ocupar todo el espacio de su contenedor. */
    width: auto;
    height: 200px;
    margin-right: 15px;
}