body#index #content-wrapper {
    margin-bottom: 0px !important;
}

#main .page-footer {
    margin: 0 !important;
}

#footer {
    padding: 0;
}

#footer .container {
    width: unset !important;
    max-width: unset !important;
}

#footer .footer-container {
    padding: 0px !important;
}

#footer .footer-container .wrapper {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
}

#footer .footer-container .custom-footer-main .container-fluid {
    padding: 0 !important;
}

/* =================================================
   LAYOUT GENERAL
================================================= */
.custom-footer-main {
    background: #fff;
    width: 100%;
    overflow-x: hidden;
    /* Evita scroll horizontal por si acaso */
}

/* =================================================
   NEWSLETTER SUPERIOR CENTRADO
================================================= */
.footer-newsletter-row {
    width: calc(100% - 100px);
    justify-self: center;
    text-align: center;
    border-top: 1px solid #c3c3c3;
    border-bottom: 1px solid #c3c3c3;
    padding: 40px 0;
    margin: 0 50px;
}

.native-newsletter-wrapper {
    margin: 0 auto;
}

.native-newsletter-wrapper .block_newsletter {
    margin: 0 !important;
    max-width: unset !important;
    width: 100% !important;
}

.native-newsletter-wrapper .block_newsletter p {
    margin: 0 !important;
}

.native-newsletter-wrapper .input-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.native-newsletter-wrapper input[type="email"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #c3c3c3;
    border-radius: 4px;
}

.native-newsletter-wrapper .btn {
    background-color: #D0121A;
    color: white;
    border: none;
    padding: 0 20px;
    text-transform: uppercase;
    font-weight: bold;
}

/* =================================================
   RESTO DEL FOOTER
================================================= */
.display-flex-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0;
    padding-top: 40px;
}

/* COLUMNA IZQUIERDA (LOGO) */
.footer-left-col {
    flex: 0 0 auto;
    margin-right: 50px;
    margin-left: 50px;
}

.footer-main-logo {
    max-width: 250px;
    height: auto;
    display: block;
}

/* COLUMNA DERECHA */
.footer-right-col {
    flex: 1;
    width: 100%;
}

.dynamic-columns-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-right: 50px;
    gap: 30px;
    justify-content: space-between;
}

.footer-column-item {
    flex: 1;
    min-width: 200px;
}

.footer-column-item:not(.native-integration) {
    border-left: 2px solid #999;
    padding-right: 10px;
    padding-left: 10px;
}

/* Título Estilo Botón */
.footer-title {
    display: inline-block;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 1rem;
    white-space: nowrap;
}

/* ESTILOS ENLACES Y ANIMACIONES */
.footer-rows,
.native-integration ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-row-item,
.native-integration li {
    margin-bottom: 12px;
}

.row-content {
    display: flex;
    align-items: flex-start;
}

.row-icon {
    width: 20px;
    height: auto;
    margin-right: 5px;
    flex-shrink: 0;
}

.footer-container li a,
.block-contact {
    color: #4d4d4d;
}

/* Animación Hover */
.footer-row-item a,
.footer-row-item span,
.native-integration a {
    font-size: 14px;
    text-decoration: none;
    line-height: 1.5;
    color: #4d4d4d;
    display: inline-block;
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* EFECTO HOVER USANDO VARIABLE DINAMICA */
.footer-row-item a:hover,
.footer-row-item span:hover,
.native-integration a:hover {
    /* Si existe la variable usa el color configurado, si no, usa rojo */
    color: var(--hover-color, #d0121a) !important;
    transform: translateX(5px);
}

/* =================================================
   REDES SOCIALES (FLUSH RIGHT / A LA ORILLA)
================================================= */
.footer-social-section {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    /* Alinea a la derecha */
    margin-top: 40px;
    padding-top: 10px;

    /* TRUCO: Margen negativo para anular el padding de 50px del contenedor padre */
    margin-right: -50px;
}

.social-capsule {
    display: inline-flex;
    align-items: center;
    padding: 10px 40px 10px 30px;
    /* Un poco más de padding a la derecha */

    /* Bordes: Redondo izquierda, Cuadrado derecha (pegado al borde) */
    border-radius: 50px 0 0 50px;

    color: #fff;
    /* El background-color viene del TPL */
}

.social-label {
    font-size: 18px;
    font-weight: 700;
    margin-right: 20px;
    text-transform: capitalize;
}

.social-icons-list {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon-link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.3s;
}

.social-icon-link:hover img {
    transform: scale(1.1);
}

/* =================================================
   RESPONSIVE (MÓVIL)
================================================= */
@media (max-width: 991px) {
    .custom-footer-main {
        padding: 30px 15px;
    }

    .display-flex-footer {
        flex-direction: column;
    }

    .footer-left-col {
        margin-right: 0;
        margin-bottom: 40px;
        text-align: center;
        width: 100%;
    }

    .footer-main-logo {
        margin: 0 auto;
    }

    .dynamic-columns-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .footer-column-item {
        width: 100%;
        text-align: center;
    }

    .row-content {
        justify-content: center;
    }

    .native-newsletter-wrapper .input-wrapper {
        flex-direction: column;
    }

    /* Ajuste Redes Sociales en Móvil: CENTRADAS */
    .footer-social-section {
        justify-content: center;
        margin-right: 0;
        /* Quitamos el margen negativo en móvil */
    }

    .social-capsule {
        border-radius: 50px;
        /* Volvemos a redondear todo en móvil */
        padding: 10px 30px;
    }
}

/* =================================================
   COPYRIGHT SECTION
================================================= */
.footer-bottom-copyright {
    width: calc(100% - 100px);
    justify-self: center;
    margin-left: 50px;
    margin-right: 50px;
    margin-top: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #c3c3c3;
    text-align: center;
}

.footer-bottom-copyright p {
    color: #7a7a7a;
    /* Gris suave */
    font-size: 14px;
    margin: 0;
}