/* =============================================================================
   FOOTER-STYLE.CSS — PrevenSalud Premium "Deep Dark Innovation"
   Aesthetic: Minimalist Digital Healthcare Experience 4.0
   ============================================================================= */

:root {
    --ps-footer-dark: #001A33;
    --ps-footer-white: #FFFFFF;
    --ps-footer-mute: rgba(255, 255, 255, 0.6);
    --ps-footer-accent: #00c896;
    --ps-footer-glass: rgba(255, 255, 255, 0.05);
    --ps-footer-border: rgba(255, 255, 255, 0.1);
    --ps-footer-transition: all 0.4s cubic-bezier(0.25, 1, 0.33, 1);
}

/* =========================================================================
   ESTABILIDAD ESTRUCTURAL (ASTRA FIX)
   ========================================================================= */
html,
body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}

.site-footer,
#ps-premium-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* Base Footer Shell */
#ps-premium-footer {
    position: relative;
    background: var(--ps-footer-dark) !important;
    color: var(--ps-footer-white) !important;
    font-family: 'Poppins', sans-serif !important;
    padding: 100px 0 0 !important;
    /* Espacio para el bottom bar */
    overflow: hidden;
    display: block !important;
}

/* Orbes Decorativos */
.footer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.12;
}

.footer-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--ps-footer-accent);
    top: -200px;
    left: -150px;
}

.footer-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--ps-footer-accent);
    bottom: -100px;
    right: -100px;
}

/* Contenedor Principal */
.footer-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================================================
   GRID PRINCIPAL (3 COLUMNAS)
   ========================================================================= */
.footer-main-grid {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    padding-bottom: 80px;
}

.footer-brand-col {
    flex: 1.5;
}

.footer-contact-col {
    flex: 1;
}

.footer-newsletter-col {
    flex: 1.2;
}

@media (max-width: 1024px) {
    .footer-main-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-main-grid {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .footer-brand-col,
    .footer-contact-col,
    .footer-newsletter-col {
        flex: 1;
    }
}

/* Columna Marca (Logo & Social) */
.ag-logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.ag-logo-text span {
    color: #FFFFFF !important;
}

.brand-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ps-footer-mute);
    margin-bottom: 30px;
    max-width: 320px;
}

@media (max-width: 768px) {
    .brand-description {
        margin-left: auto;
        margin-right: auto;
    }
}

.footer-social-pill {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .footer-social-pill {
        justify-content: center;
    }
}

.social-link {
    width: 42px;
    height: 42px;
    background: var(--ps-footer-glass);
    border: 1px solid var(--ps-footer-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--ps-footer-transition);
}

.social-link:hover {
    background: var(--ps-footer-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 200, 150, 0.3);
}

/* Columna Contacto */
.footer-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .contact-list {
        align-items: center;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--ps-footer-mute);
}

.contact-item i {
    color: var(--ps-footer-accent);
    font-size: 1.1rem;
}

/* Columna Newsletter */
.newsletter-desc {
    font-size: 0.9rem;
    color: var(--ps-footer-mute);
    margin-bottom: 25px;
    line-height: 1.6;
}

.newsletter-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--ps-footer-glass);
    border: 1px solid var(--ps-footer-border);
    border-radius: 50px;
    padding: 6px;
    transition: var(--ps-footer-transition);
}

.newsletter-input-wrapper:focus-within {
    border-color: var(--ps-footer-accent);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-input-wrapper input {
    background: transparent !important;
    border: none !important;
    padding: 10px 20px;
    color: white !important;
    flex: 1;
    outline: none !important;
    font-size: 0.9rem;
}

.newsletter-input-wrapper button {
    background: var(--ps-footer-accent);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.newsletter-input-wrapper button:hover {
    transform: scale(1.1);
}

/* =========================================================================
   BARRA INFERIOR (BOTTOM BAR)
   ========================================================================= */
.footer-bottom-bar {
    border-top: 1px solid var(--ps-footer-border);
    padding: 35px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-bottom-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--ps-footer-mute);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal-links a {
    color: var(--ps-footer-mute);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-legal-links a:hover {
    color: var(--ps-footer-accent);
}

.legal-sep {
    color: var(--ps-footer-border);
    font-size: 0.8rem;
}