/* ===================================
   FOOTER GNP SEGUROS - CSS CORREGIDO
   Escritorio: 4 columnas completas
   Móvil: Solo logo + ubicación
   =================================== */

/* Footer principal */
.footer {
    background-color: #f5f5f5;
    margin-top: 50px;
}

/* Sección principal del footer */
.footer-main {
    background-color: #f5f5f5;
    padding: 40px 0;
    border-top: 3px solid #ff6900;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 0 40px;
}

/* Columnas del footer */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Logo del footer */
.footer-logo {
    margin-bottom: 15px;
}

.footer-logo a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo a:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.logo-footer {
    height: 95px;
    width: auto;
}

.logo-vivir-footer {
    height: 35px;
    width: auto;
}

/* Descripción del footer */
.footer-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Títulos de las columnas */
.footer-title {
    color: #1e3a8a;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #ff6900;
    padding-bottom: 8px;
}

/* Items de contacto en el footer */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item-footer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon-footer {
    width: 20px;
    height: 20px;
    fill: #1e3a8a;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-icon-footer.whatsapp {
    fill: #25d366;
}

.contact-item-footer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.contact-item-footer strong {
    color: #333;
}

.contact-label {
    color: #666;
    font-size: 12px !important;
}

/* Información de dirección */
.address-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.address-text {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 2px 0;
}

/* Redes sociales del footer */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.footer-social-link:hover {
    color: #1e3a8a;
    background-color: rgba(30, 58, 138, 0.1);
    padding-left: 10px;
}

.footer-social-icon {
    width: 18px;
    height: 18px;
    fill: #1e3a8a;
}

/* Enlaces legales en columna (ESCRITORIO) */
.footer-links {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.links-title {
    color: #1e3a8a;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 12px 0;
}

.footer-link {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ff6900;
}

/* ===================================
   ENLACES LEGALES HORIZONTALES (MÓVIL)
   OCULTOS EN ESCRITORIO
   =================================== */
.footer-legal-links-mobile {
    display: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px 0 40px;
    border-top: 2px solid #ff6900;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-legal-link {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.footer-legal-link:hover {
    color: #ff6900;
    text-decoration: underline;
}

.legal-separator {
    color: #ff6900;
    font-size: 18px;
    font-weight: bold;
}

/* ===================================
   SECCIÓN INFERIOR DEL FOOTER
   =================================== */
.footer-bottom {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 15px 0;
    border-top: 3px solid #ff6900;
    width: 100%;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.footer-bottom-left p,
.footer-bottom-right p {
    color: white;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.footer-bottom-right p {
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Botón de WhatsApp en footer */
.contact-item-footer[data-whatsapp] {
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.2s;
}

.contact-item-footer[data-whatsapp]:hover {
    transform: scale(1.02);
}

/* ===================================
   RESPONSIVE - TABLET (max-width: 1024px)
   =================================== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 0 30px;
    }
}

/* ===================================
   RESPONSIVE - MÓVIL (max-width: 768px)
   OCULTAR CONTACTO Y REDES SOCIALES
   =================================== */
@media (max-width: 768px) {
    /* OCULTAR columnas de contacto y redes sociales */
    .footer-contact-desktop,
    .footer-social-desktop {
        display: none !important;
    }

    /* Cambiar a 1 columna para logo y ubicación */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px;
        text-align: center;
    }

    /* MOSTRAR enlaces legales horizontales para móvil */
    .footer-legal-links-mobile {
        display: flex !important;
        padding: 20px 20px 0 20px;
        gap: 15px;
    }

    /* Centrar elementos */
    .footer-brand,
    .footer-location {
        align-items: center;
    }

    .address-item {
        justify-content: center;
        text-align: left;
        max-width: 350px;
    }

    /* Footer bottom en columna */
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0 20px;
    }
}

/* ===================================
   RESPONSIVE - MÓVIL PEQUEÑO (max-width: 480px)
   =================================== */
@media (max-width: 480px) {
    .footer-main {
        padding: 30px 0;
    }
    
    .footer-container {
        padding: 0 15px;
        gap: 20px;
    }

    .logo-footer {
        height: 70px;
    }

    .logo-vivir-footer {
        height: 30px;
    }

    .footer-title {
        font-size: 16px;
    }

    .footer-description,
    .address-text {
        font-size: 13px;
    }

    /* Enlaces legales verticales en móvil pequeño */
    .footer-legal-links-mobile {
        padding: 15px 15px 0 15px;
        flex-direction: column;
        gap: 8px;
    }

    .legal-separator {
        display: none;
    }

    .footer-legal-link {
        font-size: 12px;
        padding: 8px 15px;
        border-bottom: 1px solid #ddd;
        width: 100%;
        text-align: center;
    }

    .footer-legal-link:last-child {
        border-bottom: none;
    }

    .footer-bottom-left p,
    .footer-bottom-right p {
        font-size: 12px;
    }
}

/* ===================================
   IMPRESIÓN
   =================================== */
@media print {
    .footer-bottom {
        display: none;
    }
    
    .footer-legal-links-mobile {
        display: none !important;
    }
    
    .footer-contact-desktop,
    .footer-social-desktop {
        display: flex !important;
    }
}