/**
 * Ozado V2 - Footer rediseñado
 *
 * 5 columnas: Brand · Enlaces · Categorías · Contacto · Síguenos.
 * Fondo teal del tema, texto blanco, iconos lineales, copyright al final.
 * Responsive con los breakpoints del proyecto (480/1024/1366).
 */

#footer-widgets.ozado-footer {
    background: #024b6f;
    color: #ffffff;
    padding: 56px 0 32px;
}

/* Sobreescribe reglas viejas de custom.css (#footer-widgets a/li/p { color: #2ba9e3 }). */
#footer-widgets.ozado-footer,
#footer-widgets.ozado-footer p,
#footer-widgets.ozado-footer li,
#footer-widgets.ozado-footer span {
    color: #ffffff !important;
}
#footer-widgets.ozado-footer a {
    color: #ffffff !important;
    text-decoration: none;
    transition: opacity 0.15s ease, color 0.15s ease;
}
#footer-widgets.ozado-footer a:hover,
#footer-widgets.ozado-footer a:focus {
    color: #ffffff !important;
    opacity: 0.7;
    text-decoration: none;
}

/* Grid principal */
.ozado-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr 1fr;
    gap: 32px;
    align-items: start;
}

.ozado-footer__col {
    min-width: 0;
}

/* Brand */
/* El enlace del logo se ajusta SOLO al tamaño de la imagen: así el área
   clicable es la imagen, no toda la columna. align-self evita que el flex
   del contenedor lo estire a lo ancho. */
.ozado-footer__brand .ozado-footer__logo {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 16px;
    line-height: 0;
}
.ozado-footer__brand .ozado-footer__logo img {
    width: 245px;          /* tamaño real del logo Index-02.png */
    max-width: 100%;       /* en pantallas chicas se reduce sin desbordar */
    height: auto;
    display: block;
}
/* El logo en versión blanca (Index-02.png) ya es blanco: NO se le aplica
   filtro. El filtro solo se usa como respaldo si no hay logo blanco. */
.ozado-footer__brand .ozado-footer__logo:not(.ozado-footer__logo--white) img {
    filter: brightness(0) invert(1);
}
.ozado-footer__brand .ozado-footer__logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    display: inline-block;
    margin-bottom: 16px;
}
.ozado-footer__description {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #ffffff;
    margin: 0;
}

/* Títulos de columnas */
.ozado-footer__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 18px;
    letter-spacing: 0.01em;
}

/* Listas de enlaces: alineadas a la izquierda con fuerza. */
.ozado-footer .ozado-footer__list,
#footer-widgets .ozado-footer__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}
.ozado-footer .ozado-footer__list li,
#footer-widgets .ozado-footer__list li {
    margin: 0 0 6px !important;
    padding: 0 !important;
    text-align: left !important;
    list-style: none !important;
    display: block !important;
}
.ozado-footer .ozado-footer__list li:last-child,
#footer-widgets .ozado-footer__list li:last-child {
    margin-bottom: 0 !important;
}
.ozado-footer .ozado-footer__list li a,
#footer-widgets .ozado-footer__list li a {
    color: #ffffff !important;
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: left !important;
    display: block !important;
}
.ozado-footer .ozado-footer__list li a:hover,
#footer-widgets .ozado-footer__list li a:hover {
    color: #ffffff !important;
    opacity: 0.85;
}

/* La columna entera también force left para que los hijos hereden bien. */
#footer-widgets .ozado-footer__col {
    text-align: left !important;
}

/* Lista con scroll interno (categorías): items pegados a la izquierda y
   compactos (sin demasiado espacio entre cada uno). */
.ozado-footer__list--scroll {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 8px;
    text-align: left !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.ozado-footer__list--scroll li {
    text-align: left !important;
    margin: 0 0 4px !important;
    padding: 0;
}
.ozado-footer__list--scroll li:last-child {
    margin-bottom: 0 !important;
}
.ozado-footer__list--scroll li a {
    text-align: left !important;
    display: inline-block;
    line-height: 1.4;
}
.ozado-footer__list--scroll::-webkit-scrollbar {
    width: 6px;
}
.ozado-footer__list--scroll::-webkit-scrollbar-track {
    background: transparent;
}
.ozado-footer__list--scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}
.ozado-footer__list--scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.55);
}

/* Bloque de contacto */
.ozado-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ozado-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #ffffff;
}
.ozado-footer__contact li svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #ffffff;
    stroke: #ffffff;
}
.ozado-footer__contact li a {
    color: inherit;
}

/* Redes sociales */
.ozado-footer__social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ozado-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #ffffff !important;
    transition: background 0.15s ease, transform 0.15s ease;
}
.ozado-footer__social-link:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    opacity: 1;
    transform: translateY(-2px);
}
.ozado-footer__social-link svg {
    display: block;
    color: #ffffff;
    fill: #ffffff;
    stroke: #ffffff;
}
/* Instagram usa stroke (icono lineal), no fill. Facebook y LinkedIn usan fill. */
.ozado-footer__social-link svg[stroke] {
    fill: none;
}

/* Copyright: fondo #024b6f, texto MUY camuflado (casi invisible), hover
   se vuelve blanco contraste. */
.site-footer.ozado-footer__bottom {
    background: #024b6f !important;
    color: #1a6388 !important; /* muy similar al fondo, apenas visible */
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.85rem;
    margin: 0;
    transition: color 0.25s ease;
}
.site-footer.ozado-footer__bottom .site-info {
    color: #1a6388 !important;
    transition: color 0.25s ease;
}
/* Hover sobre el área del copyright: el texto se vuelve blanco contraste. */
.site-footer.ozado-footer__bottom:hover,
.site-footer.ozado-footer__bottom:hover .site-info {
    color: #ffffff !important;
}

/* =========================================================================
 * Responsive (breakpoints del proyecto: 480/1024/1366)
 * ========================================================================= */

/* Laptop (1024-1365): 5 cols pero más apretado. */
@media (min-width: 1024px) and (max-width: 1365.98px) {
    .ozado-footer__grid {
        gap: 24px;
    }
    .ozado-footer__title {
        font-size: 1rem;
    }
}

/* Tablet (480-1023): 2 columnas. */
@media (min-width: 480px) and (max-width: 1023.98px) {
    #footer-widgets.ozado-footer { padding: 40px 0 24px; }
    .ozado-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
    }
    /* La columna del brand ocupa las 2 columnas (más texto). */
    .ozado-footer__brand {
        grid-column: 1 / -1;
    }
}

/* Móvil (< 480): 1 columna. */
@media (max-width: 479.98px) {
    #footer-widgets.ozado-footer { padding: 32px 0 20px; }
    .ozado-footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ozado-footer__title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
}
