/* ==========================================================================
   ESTRUCTURA Y ESTILOS DEL FOOTER (ALIMAR)
   ========================================================================== */

.site-footer {
    width: 100% !important;
    background-color: var(--azul-oscuro) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer-inner {
    background-color: var(--azul-oscuro) !important;
    color: var(--blanco) !important;
    padding: 60px 40px 30px 40px !important; 
    box-sizing: border-box !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.footer-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; 
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    gap: 0 !important; 
}

/* COLUMNA IZQUIERDA */
.footer-left-col {
    padding-right: 10% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important; 
}

.footer-logo {
    margin-bottom: 25px !important;
    display: block !important;
}

.footer-logo img {
    max-height: 55px !important;
    width: auto !important;
    display: block !important;
}

/* Redes Sociales Footer */
.footer-socials {
    display: flex !important;
    gap: 24px !important;
    margin-bottom: 50px !important;
    align-items: center !important;
}

.footer-socials a {
    color: var(--blanco) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.footer-socials a:hover {
    color: #25D366 !important; 
    transform: scale(1.15) !important;
}

.footer-legal-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 35px !important;
}

.footer-legal-links a {
    color: var(--blanco) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
    width: fit-content !important;
}

.footer-legal-links a:hover {
    color: #25D366 !important;
}

/* COLUMNA DERECHA */
.footer-right-col {
    padding-left: 12% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.footer-column-title {
    font-family: var(--fuente-titulos) !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    font-style: italic !important;
    text-transform: uppercase !important;
    margin: 0 0 30px 0 !important;
    letter-spacing: 0.5px !important;
    color: var(--blanco) !important;
    text-align: left !important;
}

.footer-address-block {
    margin-bottom: 50px !important;
}

.address-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.address-icon {
    color: var(--blanco) !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 18px !important;
    margin-top: 3px !important;
}

.address-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    text-align: left !important;
}

.address-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
}

.address-reference {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 !important;
}

/* WhatsApp Footer */
.footer-whatsapp-block {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.footer-whatsapp-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: var(--blanco) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    width: fit-content !important;
}

.footer-whatsapp-link:hover {
    color: #25D366 !important;
    transform: translateX(4px) !important;
}

.whatsapp-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

.whatsapp-icon i {
    color: #25D366 !important;
    display: inline-block !important;
    font-style: normal !important;
    transition: transform 0.2s ease !important;
}

.footer-whatsapp-link:hover .whatsapp-icon i {
    transform: scale(1.1) !important;
}

/* COPYRIGHT */
.footer-bottom-bar {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 40px auto 0 auto !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
}

.footer-bottom-bar p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 !important;
}

/* ==========================================================================
   COMPONENTE FLOTANTE OPTIMIZADO
   ========================================================================== */
.alimar-floating-widget {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    z-index: 9999 !important;
}

/* Botón flotante de WhatsApp */
.floating-whatsapp-trigger {
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    background-color: #25D366 !important; 
    color: var(--blanco) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 10 !important;
    text-decoration: none !important;
    padding: 0 !important;
    border: none !important;
    font-size: 36px !important;
}

.floating-whatsapp-trigger i {
    color: var(--blanco) !important;
    line-height: 1 !important;
}

.floating-whatsapp-trigger:hover {
    transform: scale(1.08) rotate(6deg) !important;
    background-color: #20ba5a !important;
}

/* Cápsula de redes sociales flotantes */
.floating-socials-capsule {
    background-color: var(--azul-oscuro) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 40px !important;
    padding: 22px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 22px !important;
    box-shadow: 0 10px 30px rgba(4, 24, 51, 0.3) !important;
    
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.9) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Iconos de las redes */
.floating-social-icon {
    color: var(--blanco) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 20px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.floating-social-icon:hover {
    color: #25D366 !important;
    transform: scale(1.2) !important;
}

/* Interacción en Escritorio */
@media (min-width: 992px) {
    .alimar-floating-widget:hover .floating-socials-capsule {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
    }
}

/* ==========================================================================
   ADAPTACIÓN MÓVIL
   ========================================================================== */
@media (max-width: 991px) {
    .site-footer-inner { 
        padding: 40px 20px 25px 20px !important; 
    }
    
    .footer-container { 
        grid-template-columns: 1fr !important; 
        gap: 40px !important; 
    }

    .footer-left-col { 
        padding-right: 0 !important; 
        border-right: none !important; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important; 
        padding-bottom: 40px !important; 
        text-align: center !important; 
        align-items: center !important; 
    }

    .footer-socials { 
        justify-content: center !important; 
        margin-bottom: 35px !important; 
    }

    .footer-legal-links { 
        align-items: center !important; 
        gap: 15px !important; 
        margin-bottom: 25px !important; 
    }

    .footer-right-col { 
        padding-left: 0 !important; 
        text-align: center !important; 
        align-items: center !important; 
    }

    .footer-column-title { 
        text-align: center !important;
        margin-bottom: 20px !important; 
        font-size: 28px !important; 
    }

    .address-content-wrapper {
        text-align: center !important;
    }

    .footer-address-block { 
        margin-bottom: 35px !important; 
    }

    .address-item { 
        justify-content: center !important; 
    }

    .footer-whatsapp-block { 
        align-items: center !important; 
    }

    .footer-bottom-bar {
        margin-top: 30px !important;
        padding-top: 20px !important;
    }

    /* Widget Flotante Móvil */
    .alimar-floating-widget { 
        bottom: 20px !important; 
        right: 20px !important; 
    }

    .floating-socials-capsule { 
        display: none !important; 
        opacity: 0 !important; 
        visibility: hidden !important; 
    }

    .floating-whatsapp-trigger { 
        width: 58px !important; 
        height: 58px !important; 
        font-size: 30px !important;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important; 
    }
}