/* ==============================
   FOOTER
============================== */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 1rem;
    width: 100%;
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==============================
   HEADER
============================== */
.main-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0.75rem 1.5rem;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.header-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

/* Navegación Desktop */
.main-nav {
    display: flex;
    gap: 1.25rem;
}

.header-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.header-link:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.header-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* Botón Hamburguesa */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
    #menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .header-link {
        padding: 1rem 1.5rem;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header-link:last-child {
        border-bottom: none;
    }
}

.page-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

/* ===============================
   SUBTÍTULOS CENTRADOS
=============================== */
.subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* ===============================
   FORMULARIO CENTRADO Y CONSISTENTE
=============================== */
.form-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===============================
   BOTONES (NO AFECTA <a> GENERAL)
=============================== */
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.button-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--white);
}

.button-link:active {
    transform: translateY(0);
}