/* ===================================
   ESTILOS DEL FOOTER - CONSTRUCTORA CASTREJÓN
   Estos estilos tienen alta especificidad para evitar sobrescritura
   =================================== */

/* Global reset to prevent gaps */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    width: 100%;
    overflow-x: hidden;
}

/* Asegurar que no haya espacios después del último contenido antes del footer */
.elementor-831 .elementor-element:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Footer principal con máxima prioridad */
footer.custom-footer,
#colophon.custom-footer {
    background-color: #2c3e50 !important;
    color: #ecf0f1 !important;
    padding: 80px 40px 50px !important;
    font-family: 'Roboto', sans-serif !important;
    position: relative !important;
    z-index: 1000 !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    /* Eliminar cualquier espacio que pueda mostrar la imagen de fondo */
    display: block !important;
}

/* Contenedor del footer */
.custom-footer .footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 0 !important;
}

/* Sección izquierda del footer */
.custom-footer .footer-left {
    flex: 1 !important;
    min-width: 300px !important;
    max-width: 45% !important;
}

/* Sección derecha del footer */
.custom-footer .footer-right {
    flex: 1.2 !important;
    min-width: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

/* Logo del footer */
.custom-footer .footer-logo img {
    max-width: 280px !important;
    height: auto !important;
    margin-bottom: 20px !important;
    filter: brightness(0) invert(1) !important;
}

/* Slogan del footer */
.custom-footer .footer-slogan {
    font-size: 17px !important;
    color: #ecf0f1 !important;
    margin-bottom: 25px !important;
    line-height: 1.6 !important;
    max-width: 400px !important;
    font-weight: 400 !important;
}

/* Iconos sociales */
.custom-footer .social-icons {
    display: flex !important;
    gap: 15px !important;
}

.custom-footer .social-icon {
    width: 42px !important;
    height: 42px !important;
    background-color: #7f8c8d !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 20px !important;
}

.custom-footer .social-icon:hover {
    background-color: #b91d47 !important;
    transform: translateY(-3px) !important;
}

/* Información de contacto */
.custom-footer .contact-info {
    display: flex !important;
    gap: 30px !important;
    margin-bottom: 60px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    margin-top: 5px !important;
}

.custom-footer .contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.custom-footer .contact-icon {
    width: 38px !important;
    height: 38px !important;
    background-color: #7f8c8d !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 16px !important;
    color: white !important;
}

.custom-footer .contact-text {
    font-size: 16px !important;
    color: #ecf0f1 !important;
    font-weight: 400 !important;
}

/* Copyright */
.custom-footer .copyright {
    font-size: 14px !important;
    color: #95a5a6 !important;
    margin-top: auto !important;
    text-align: right !important;
}

/* Responsive - Tablets y móviles */
/* Responsive - Tablets y móviles */
@media (max-width: 991px) {
    .custom-footer {
        padding: 50px 20px 30px !important;
    }

    .custom-footer .footer-container {
        flex-direction: column !important;
        gap: 30px !important;
        align-items: center !important;
    }

    .custom-footer .footer-left,
    .custom-footer .footer-right {
        max-width: 100% !important;
        width: 100% !important;
        align-items: center !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Centrar logo */
    .custom-footer .footer-logo img {
        margin: 0 auto 20px !important;
    }

    /* Centrar slogan */
    .custom-footer .footer-slogan {
        margin: 0 auto 25px !important;
        max-width: 90% !important;
    }

    /* Centrar redes sociales */
    .custom-footer .social-icons {
        justify-content: center !important;
        margin-bottom: 10px !important;
    }

    /* Ajustar info de contacto */
    .custom-footer .contact-info {
        justify-content: center !important;
        margin-bottom: 30px !important;
        gap: 15px !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 20px !important;
    }

    .custom-footer .contact-item {
        justify-content: center !important;
        width: 100% !important;
    }

    /* Copyright centrado */
    .custom-footer .copyright {
        text-align: center !important;
        margin-top: 20px !important;
    }

    /* Centrar botón si existe */
    .footer-services-btn {
        display: block !important;
        width: fit-content !important;
        margin: 0 auto 25px !important;
    }
}

/* Asegurar que el wrapper del footer no tenga espacios */
#page {
    margin: 0 !important;
    padding: 0 !important;
}

/* Eliminar cualquier margen o padding del último elemento antes del footer */
.elementor-page .elementor-section:last-of-type,
.elementor-page .e-con:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Botón de Servicios en Footer */
.footer-services-btn {
    display: inline-block !important;
    background-color: #B82247 !important;
    color: #ffffff !important;
    padding: 12px 35px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    margin-bottom: 25px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(184, 34, 71, 0.3) !important;
}

.footer-services-btn:hover {
    background-color: #921b38 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(184, 34, 71, 0.4) !important;
    color: #ffffff !important;
}

/* ESTILO PERSONALIZADO PARA TÍTULO "Precisión técnica..." */
.custom-trust-title {
    text-transform: none !important;
    /* Copiamos los estilos que probablemente tenia la clase anterior pero sin el text-transform */
    font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
    font-weight: 600 !important;
    font-size: 5rem !important;
    line-height: 1.1 !important;
    color: #FFFFFF !important;
    margin-bottom: 20px !important;
}

/* Responsive para el título */
@media(max-width: 768px) {
    .custom-trust-title {
        font-size: 2.5rem !important;
    }
}