/* =========================================================
   FOOTER AISLADO Y PROTEGIDO
========================================================= */
footer.footer,
footer.footer * {
    box-sizing: border-box;
}

/* =========================================================
   FOOTER PRINCIPAL
========================================================= */
footer.footer {
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background: #001a33 !important;
    color: #cbd5e1 !important;
    border-top: 4px solid var(--color-acento) !important;
    /* Relleno superior de 110px para dar espacio a los logos de las esquinas */
    padding: 110px 40px 30px !important;
    margin: 0 !important;
    z-index: 5;
}

/* =========================================================
   LOGOS (FORZADO ESTRICTO EN ESQUINAS OPUESTAS)
========================================================= */

/* LOGO IZQUIERDO: Reseteamos cualquier margen derecho y forzamos la izquierda */
footer.footer .footer-logo {
    position: absolute !important;
    top: 40px !important;
    left: 40px !important;
    right: auto !important; /* Evita que se estire a la derecha */
    transform: none !important;
    z-index: 20 !important;
    display: block !important;
}

/* LOGO DERECHO: Reseteamos cualquier margen izquierdo y forzamos la derecha */
footer.footer .footer-logo-right {
    position: absolute !important;
    top: 40px !important;
    right: 40px !important;
    left: auto !important; /* Evita que se jale a la izquierda */
    transform: none !important;
    z-index: 20 !important;
    display: block !important;
}

/* Tamaño de las imágenes de los logos en PC */
footer.footer .logo-img {
    width: 110px !important;
    height: auto !important;
    display: block !important;
    max-width: none !important;
}

/* =========================================================
   CONTENEDOR CENTRAL DE DATOS
========================================================= */
footer.footer .footer-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto 40px auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
    gap: 40px !important;
    align-items: flex-start !important;
    /* Margen interno lateral para que las columnas no toquen los logos */
    padding: 0 140px !important;
}

footer.footer .footer-item {
    width: 100% !important;
    min-width: 0 !important;
}

/* =========================================================
   TITULOS DE LAS COLUMNAS
========================================================= */
footer.footer .footer-item h3 {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    margin: 0 0 20px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
}

/* Línea decorativa inferior del título */
footer.footer .footer-item h3::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -8px !important;
    width: 35px !important;
    height: 2px !important;
    background: var(--color-acento) !important;
}

/* =========================================================
   TEXTOS Y ENLACES
========================================================= */
footer.footer .footer-item p {
    margin: 0 0 10px 0 !important;
    font-size: .92rem !important;
    line-height: 1.7 !important;
    color: #cbd5e1 !important;
    word-break: break-word;
}

footer.footer .link-discreto {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: .3s ease !important;
    font-size: .92rem !important;
}

footer.footer .link-discreto:hover {
    color: var(--color-acento) !important;
    transform: translateX(4px);
}

/* =========================================================
   COPYRIGHT
========================================================= */
footer.footer .footer-copyright {
    width: 100% !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    padding-top: 25px !important;
    text-align: center !important;
    color: #94a3b8 !important;
    font-size: .82rem !important;
}

/* =========================================================
   RESPONSIVE: TABLET (MAX-WIDTH: 992px)
========================================================= */
@media screen and (max-width: 992px) {
    footer.footer {
        padding: 100px 25px 25px !important;
    }

    footer.footer .footer-logo {
        left: 25px !important;
        top: 30px !important;
    }

    footer.footer .footer-logo-right {
        right: 25px !important;
        top: 30px !important;
    }

    footer.footer .logo-img {
        width: 85px !important;
    }

    footer.footer .footer-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
        padding: 0 100px !important; /* Espacio calibrado para el tamaño 85px de los logos */
    }

    footer.footer .footer-item p,
    footer.footer .link-discreto {
        font-size: .8rem !important;
    }
}

/* =========================================================
   RESPONSIVE: MÓVIL (MAX-WIDTH: 768px)
========================================================= */
@media screen and (max-width: 768px) {
    footer.footer {
        /* Más padding arriba para que las 3 columnas tengan espacio abajo de los logos */
        padding: 110px 15px 25px !important;
    }

    footer.footer .footer-logo {
        top: 25px !important;
        left: 20px !important;
    }

    footer.footer .footer-logo-right {
        top: 25px !important;
        right: 20px !important;
    }

    footer.footer .logo-img {
        width: 70px !important;
    }

    footer.footer .footer-logo-right .logo-img {
        width: 62px !important;
    }

    footer.footer .footer-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        padding: 0 !important; /* En móvil se libera el espacio lateral para aprovechar pantalla */
    }

    footer.footer .footer-item h3 {
        font-size: .8rem !important;
        margin-bottom: 14px !important;
    }

    footer.footer .footer-item p {
        font-size: .68rem !important;
        line-height: 1.5 !important;
    }

    footer.footer .link-discreto {
        font-size: .68rem !important;
    }

    footer.footer .footer-copyright {
        font-size: .7rem !important;
    }
}

/* =========================================================
   RESPONSIVE: CELULARES PEQUEÑOS (MAX-WIDTH: 480px)
========================================================= */
@media screen and (max-width: 480px) {
    footer.footer {
        padding: 95px 10px 25px !important;
    }

    footer.footer .footer-logo {
        top: 20px !important;
        left: 15px !important;
    }

    footer.footer .footer-logo-right {
        top: 20px !important;
        right: 15px !important;
    }

    footer.footer .footer-container {
        gap: 10px !important;
    }

    footer.footer .footer-item h3 {
        font-size: .72rem !important;
    }

    footer.footer .footer-item p,
    footer.footer .link-discreto {
        font-size: .62rem !important;
    }

    footer.footer .logo-img {
        width: 60px !important;
    }

    footer.footer .footer-logo-right .logo-img {
        width: 54px !important;
    }
}
/* FORZAR ALINEACIÓN IZQUIERDA EN TODAS LAS PÁGINAS */

footer.footer .footer-item{
    text-align:left !important;
}

footer.footer .footer-item h3{
    text-align:left !important;
}

footer.footer .footer-item p{
    text-align:left !important;
}

footer.footer .footer-item a{
    text-align:left !important;
}

footer.footer .footer-item h3::after{
    left:0 !important;
    transform:none !important;
}