/* ═════════════════════════════════════════════════════════════════════════
   🦶 FOOTER FULL-BLEED - PRGdb5
   ═════════════════════════════════════════════════════════════════════════ */

/* Variables CSS */
:root {
    --prg-green-100: #e9f7ef;
    --prg-green-600: #1e7f5a;
    --prg-gray-700: #374151;
    --prg-cream: #fff3d9;
    --prg-spacing-sm: 0.5rem;
    --prg-spacing-md: 1rem;
    --prg-spacing-lg: 1.5rem;
    --prg-spacing-xl: 2rem;
    --prg-transition: all 0.3s ease;
}

/* ═════════════════════════════════════════════════════════════════════════
   🔧 UTILITY CLASS: FULL-BLEED
   ═════════════════════════════════════════════════════════════════════════ */

.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
}

/* ═════════════════════════════════════════════════════════════════════════
   🦶 FOOTER STYLES
   ═════════════════════════════════════════════════════════════════════════ */

.prgdb-footer {
    position: relative;
    border-top: 1px solid rgba(30, 127, 90, 0.1);
    color: var(--prg-gray-700);
    margin-top: var(--prg-spacing-xl);
    padding: var(--prg-spacing-lg) 0;
    width: 100%;
}

.prgdb-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--prg-green-100);
    z-index: -1;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.prgdb-footer__inner {
    margin: 0 auto;
    padding: 0 var(--prg-spacing-lg);
}

.prgdb-footer__top {
    text-align: center;
    margin-bottom: var(--prg-spacing-lg);
}

.prgdb-footer__text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--prg-gray-700);
    font-weight: 500;
}

/* ═════════════════════════════════════════════════════════════════════════
   🏢 LOGOS GRID
   ═════════════════════════════════════════════════════════════════════════ */

.prgdb-footer__logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    padding: var(--prg-spacing-lg) 0;
    max-width: 1000px;
    margin: 0 auto;
}

.prgdb-footer__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    transition: var(--prg-transition);
    opacity: 1;
    /* Logos completamente visibles por defecto */
    text-decoration: none;
    border-radius: 8px;
    padding: var(--prg-spacing-sm);
}

.prgdb-footer__logo:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(30, 127, 90, 0.05);
}

.prgdb-footer__logo:focus {
    opacity: 1;
    outline: 2px solid var(--prg-green-600);
    outline-offset: 4px;
    background: rgba(30, 127, 90, 0.1);
}

.prgdb-footer__logo img {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Logos a color por defecto - sin filtros grises */
    transition: var(--prg-transition);
}

.prgdb-footer__logo:hover img {
    filter: brightness(1.1);
}

/* ═════════════════════════════════════════════════════════════════════════
   📄 BOTTOM SECTION
   ═════════════════════════════════════════════════════════════════════════ */

.prgdb-footer__bottom {
    border-top: 1px solid rgba(30, 127, 90, 0.1);
    margin-top: var(--prg-spacing-lg);
    padding-top: var(--prg-spacing-lg);
    text-align: center;
}

.prgdb-footer__legal {
    font-size: 0.9rem;
    color: var(--prg-gray-700);
    margin: 0;
    opacity: 0.8;
}

/* ═════════════════════════════════════════════════════════════════════════
   📱 RESPONSIVE DESIGN
   ═════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .prgdb-footer__logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .prgdb-footer__logo {
        height: 70px;
    }

    .prgdb-footer__logo img {
        max-width: 140px;
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .prgdb-footer__logos {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .prgdb-footer__logo {
        height: 60px;
    }

    .prgdb-footer__logo img {
        max-width: 120px;
        max-height: 50px;
    }
}

/* ═════════════════════════════════════════════════════════════════════════
   ♿ ACCESSIBILITY
   ═════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .prgdb-footer__logo {
        transition: none;
    }

    .prgdb-footer__logo:hover {
        transform: none;
    }
}

/* Focus visible para mejor accesibilidad */
.prgdb-footer__logo:focus-visible {
    outline: 2px solid var(--prg-green-600);
    outline-offset: 4px;
}