/* ==========================================================================
   SECCIÓN FOOTER (CORREGIDO PARA EVITAR SOLAPAMIENTOS)
   ========================================================================== */
.footer {
    /* 1. Aseguramos que el footer siempre empiece después de todo el contenido */
    clear: both; 
    position: relative;
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px); 
    border-top: 2px solid rgba(0, 0, 0, 0.1); 
    text-align: left;
    background-color: #f0f0f0; 
    
    /* 3. Z-index bajo pero con contexto para que no vuele sobre el menú */
    z-index: 10; 
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content h4 {
    color: black !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
}

.footer-section {
    width: 100%;
}

.social-media {
    text-align: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.footer p {
    margin: 10px 0 24px 0;
    color: #333;
    font-size: 12px;
}

/* --- POPUPS Y MODALES --- */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
}

.popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    cursor: pointer;
}

/* ==========================================================================
   FIX GLOBAL PARA MODAL DE USUARIO Y LOGIN
   ========================================================================== */

#modalAuth {
    display: none;
    position: fixed;
    /* Z-index muy alto para que NADA lo pise (ni el menú ni las tarjetas) */
    z-index: 99999 !important; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
}

#modalAuth form {
    display: flex !important; 
    flex-direction: column;
    margin: 0 auto !important;
    padding: 20px !important;
    background: white;
    border-radius: 12px;
}

.nav-user-container {
    display: flex;
    align-items: center;
    color: inherit;
}

.nav-user-container img {
    border-radius: 50%;
    object-fit: cover;
}
