@import url("variables.css");


/* ==================================== */
/* 10. FOOTER Y FLOTANTE WHATSAPP       */
/* ==================================== */

.footer {
    background-color: var(--background-dark);
    color: var(--text-body-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Alineación ajustada a flex-start */
    max-width: 1200px;
    margin: 0 auto; /* Centrado */
    /* Ajuste de padding para incluir el margen lateral responsivo */
    padding: 2rem var(--content-padding-x-desktop);
    gap: 2rem;
}
.footer-information {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex: 1 0 0;
    width: 100%;
}

.footer-logo-info {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    flex-basis: 40%;
}

.footer-logo {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}
.info-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    align-self: stretch;
}

.info-details h3 {
    font-family: var(--family-Title);
    font-size: var(--h4-size-desktop);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.03rem;
}

.info-details p {
    margin: 5px 0;
    color: var(--text-body-white);
    font-family: var(--family-Body);
    font-size: var(--body2-size);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}
.statute-link {
    color: var(--text-body-white);
    text-decoration: underline;
}

.footer-contact-social {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Ajustado a flex-start */
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1 0 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    color: var(--text-body-white);
    font-family: var(--family-Body);
    font-size: var(--body3-size);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.contact-info a {
    color: var(--text-body-white);
    text-decoration: underline;
}

.contact-info i {
    margin-right: 0.5rem;
}

.social-links-desktop {
     display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.social-links-desktop a:hover {
    color: #ccc;
}

.social-links-mobile {
    display: none;
}

.footer-bottom {
    text-align: center;
    padding: 1rem var(--content-padding-x-desktop); /* Ajuste de padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separador */
}

.footer-bottom p {
    color: var(--text-body-white);
    font-family: var(--family-Body);
    font-size: var(--body3-size);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    margin: 0;
    
}


/* ------------------------------ */



@media screen and (max-width: 1024px) {
    
    

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info, .social-media {
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding-bottom: 1.5rem;
        gap: 1.5rem;
    }

    .contact-info, .social-media {
        margin-bottom: 1.5rem;
        flex: none;
        width: 100%;
    }

    .social-media .social-links {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .social-media .social-links a {
        margin: 0 10px;
        font-size: 1.2rem;
    }

    .copyright {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
    .copyright a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .copyright a:hover {
        color: var(--white);
        text-decoration: underline;
    }
}


/* ====================================================================== */
/* 📱 MEDIA QUERIES (Responsividad Unificada) */
/* ====================================================================== */

/* Tablet y Escritorio Pequeño (max-width: 1024px) */


/* Móvil (max-width: 768px) */
@media screen and (max-width: 768px) {

    /* Fuentes y Espaciado */
    p {
        font-size: var(--body1-size-mobile);
        /* 1rem */
    }

    /* Títulos */
    .section-title h1 {
        font-size: var(--h1-size-mobile);
    }

    .subtitulo-seccion {
        font-size: var(--h3-size-mobile);
    }


    /* FOOTER */
    .footer-content {
        flex-direction: column;
        align-items: center;
        margin: auto 0;
        padding: var(--section-padding-y) var(--content-padding-x-mobile);
    }

    .social-links-desktop {
        display: none;
    }

    .social-links-mobile {
        display: flex;
        flex-direction: row;
        margin-top: 1rem;
    }

    .social-links-mobile a {
        font-size: 1.8em;
        margin: 0 10px;
    }

    .footer-logo-info,
    .footer-contact-social {
        flex-basis: 100%;
        width: 100%;
        align-items: center;
        
    }

    .contact-info p {
        justify-content: center;
    }

    .footer-bottom {
        padding: 2rem var(--content-padding-x-mobile);
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}