/* VARIABLES */
:root {
    --primary-magenta: #BF2176;
    --secondary-purple: #723D8C;
    --dark-bg: #1a1a1a;
    --text-light: #e5e7eb;
    --white: #ffffff;
}

/* FOOTER CONTAINER */
.footer {
    background-color: var(--dark-bg);
    padding: 4rem 5% 2rem;
    border-top: 4px solid var(--primary-magenta);
    color: var(--white);
    font-family: 'Inter', sans-serif;
}

/* GRID PRINCIPAL: Configuración Base (Móvil - 1 Columna) */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una debajo de la otra por defecto */
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

/* SECCIONES DEL FOOTER */
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    width: 100%;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LISTAS Y ENLACES */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--primary-magenta);
}

/* REDES SOCIALES */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icon {
    color: #ffffff !important;
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-magenta);
    transform: scale(1.1);
}

/* BOTTOM CONTAINER (LOGOS E INFO) */
.footer-bottom-container {
    display: flex;
    flex-direction: column; /* Móvil: apilados */
    align-items: center;
    gap: 25px;
    padding: 30px 20px;
    background-color: #111;
    border-top: 1px solid #333;
}

.footer-brand {
    width: 100%;
    display: flex;
    justify-content: center;
}

.mincyt-logos {
    max-width: 300px;
    height: auto;
    display: block;
}

.footer-info {
    width: 100%;
    text-align: center;
    color: #ffffff;
}

.footer-info p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #777;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* ==========================================================
   MEDIA QUERIES (PARA TABLET Y DESKTOP)
   ========================================================== */

/* TABLETS (2 Columnas) */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* DESKTOP (4 Columnas y alineación lateral) */
@media (min-width: 1025px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        justify-items: start; /* Alineación a la izquierda en desktop */
    }

    .footer-section {
        align-items: flex-start;
        text-align: left;
    }

    .footer-bottom-container {
        flex-direction: row; /* Horizontal en desktop */
        justify-content: space-between;
        padding: 30px 4% 30px 2%;
    }

    .footer-brand {
        width: auto;
        justify-content: flex-start;
    }

    .mincyt-logos {
        max-width: 450px;
    }

    .footer-info {
        width: auto;
        text-align: right;
    }

    .footer-info p {
        font-size: 14px;
    }
}