.ast-container{
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 767px) {

    /* BLOQUE SUPERIOR DEL FOOTER */

    #colophon .site-above-footer-inner-wrap {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 32px 24px !important;
        align-items: start !important;
    }

    /* Marca y descripción: ancho completo */
    #colophon .site-footer-above-section-1 {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    /* La segunda sección está vacía */
    #colophon .site-footer-above-section-2 {
        display: none !important;
    }

    /* Explora y Conecta: una columna cada uno */
    #colophon .site-footer-above-section-3 {
        grid-column: 1 !important;
        width: 100% !important;
    }

    #colophon .site-footer-above-section-4 {
        grid-column: 2 !important;
        width: 100% !important;
    }

    /* Contacto debajo de los dos menús */
    #colophon .site-footer-above-section-5 {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    #colophon .site-above-footer-inner-wrap .site-footer-section {
        min-width: 0 !important;
        max-width: none !important;
        text-align: left !important;
    }

    #colophon .site-above-footer-inner-wrap .widget {
        margin-bottom: 0 !important;
    }


    /* LÍNEA SOBRE COPYRIGHT Y MENÚ LEGAL */

    #colophon .site-below-footer-wrap {
        border-top: 1px solid #0f11151f !important;
    }


    /* COPYRIGHT Y MENÚ LEGAL EN FILAS */

    #colophon .site-below-footer-inner-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
    }

    #colophon .site-footer-below-section-1,
    #colophon .site-footer-below-section-2 {
        width: 100% !important;
        min-width: 0;
        text-align: left !important;
    }

    #colophon .site-footer-below-section-1 {
        order: 1;
    }

    #colophon .site-footer-below-section-2 {
        order: 2;
    }

    #colophon .ast-footer-copyright {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    #colophon #astra-footer-menu {
        justify-content: flex-start !important;
        text-align: left !important;
    }

}

@media (max-width: 767px) {

    /* Quitar espacios entre los elementos de Explora y Conecta */
    #colophon #nav_menu-3 ul,
    #colophon #nav_menu-4 ul {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #colophon #nav_menu-3 li,
    #colophon #nav_menu-4 li {
        margin: 0 !important;
        padding: 0 !important;
    }

    #colophon #nav_menu-3 li a,
    #colophon #nav_menu-4 li a {
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Explora a la izquierda */
    #colophon .site-footer-above-section-3 {
        grid-column: 1 !important;
        grid-row: 2 / 4 !important;
        align-self: start !important;
    }

    /* Conecta a la derecha */
    #colophon .site-footer-above-section-4 {
        grid-column: 2 !important;
        grid-row: 2 !important;
        align-self: start !important;
    }

    /* Contacto debajo de Conecta */
    #colophon .site-footer-above-section-5 {
        grid-column: 2 !important;
        grid-row: 3 !important;
        align-self: start !important;
    }

    /* Menú legal en horizontal */
    #colophon #astra-footer-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px 16px;
    }

}

@media (max-width: 767px) {

    /* Quitar el margen inferior de los títulos */
    #colophon .widget-title {
        margin-bottom: 0 !important;
    }

    /* Centrar el menú legal */
    #colophon .footer-nav-wrap {
        text-align: center !important;
    }

    #colophon #astra-footer-menu {
        justify-content: center !important;
    }

}

@media (max-width: 767px) {

    #colophon .site-above-footer-inner-wrap {
        grid-template-rows: auto min-content auto !important;
        row-gap: 0 !important;
    }

    /* Separación entre la marca y los menús */
    #colophon .site-footer-above-section-1 {
        margin-bottom: 32px !important;
    }

    /* Separación entre Conecta y Contacto */
    #colophon .site-footer-above-section-4 {
        margin-bottom: 12px !important;
    }

}

@media (max-width: 767px) {

    /* Ícono y nombre juntos */
    #colophon #block-11 .wp-block-column {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
    }

    #colophon #block-11 .wp-block-column .wp-block-image {
        float: none !important;
        flex: 0 0 auto;
        margin: 0 !important;
    }

    #colophon #block-11 .wp-block-column p {
        flex: 0 0 auto;
        margin: 0 !important;
    }

}

#colophon .site-above-footer-wrap[data-section="section-above-footer-builder"] .ast-builder-grid-row {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Proyectos individuales: márgenes interiores y alineación */
body.single-campana .entry-content.clear {
    box-sizing: border-box;
    padding-left: 80px !important;
    padding-right: 80px !important;
}

body.single-campana .entry-content.clear :is(
    .csec,
    .creel,
    .impact,
    .wp-block-columns.ff-case-contact-layout
) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.single-campana .creel__text {
    justify-self: start;
    text-align: left !important;
}

/* Anula la justificación general solo en los párrafos de este bloque */
body.single-campana .creel__text p {
    text-align: left !important;
}

/* Fondo negro de borde a borde, incluidos los proyectos aún sin migrar */
body.single-campana .clients__grid-wrapper.ff-clients-section {
    background: #000 !important;
    box-shadow: 0 0 0 100vmax #000;
    clip-path: inset(0 -100vmax);
}

/* Alinear el texto del reel al inicio de su columna */
body.single-campana .creel__text {
    margin-left: 0 !important;
}

/* Dar aire arriba y abajo al bloque de marcas */
body.single-campana .clients__grid-wrapper.ff-clients-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* Centrar el flamenco y las dos líneas como un conjunto */
body.single-campana .contact-divider {
    display: flex;
    justify-content: center;
    align-items: center;
}

body.single-campana .contact-divider::before,
body.single-campana .contact-divider::after {
    position: static !important;
    transform: none !important;
    flex: 0 1 120px !important;
    margin-inline: 0 !important;
}

body.single-campana .contact-divider__flamingo {
    flex-shrink: 0;
    margin-inline: 0 !important;
}

/* Sistema: quitar el margen izquierdo del H2 */
.ff-service-hero--creators + .ff-system-section-services > h2 {
    margin-left: 0 !important;
}

/* Caso de éxito: quitar el margen automático del texto */
.ff-service-hero--creators + .ff-system-section-services + .creel .creel__text {
    margin-left: 0 !important;
}

/* FAQ: rótulo, título e introducción en filas separadas */
.ff-service-hero--creators ~ .ff-faq-section-services .ff-service-faq__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.ff-service-hero--creators ~ .ff-faq-section-services .ff-service-faq__header > :is(
    .ff-service-faq__kicker,
    .ff-service-faq__title,
    .ff-service-faq__intro
) {
    grid-area: auto;
}

@media (max-width: 767px) {
    .ff-service-hero--creators .ff-service-hero__title {
        font-size: clamp(32px, 8vw, 40px);
        line-height: 1.05;
        overflow-wrap: break-word;
    }

    .ff-service-hero--creators .ff-service-hero__information {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .ff-service-hero--creators .ff-service-hero__description {
        width: 100%;
    }

    .ff-service-hero--creators .ff-service-hero__footer {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .ff-service-hero--creators + .ff-system-section-services > h2 {
        font-size: clamp(28px, 7vw, 35px) !important;
    }

    .ff-service-hero--creators + .ff-system-section-services > h2 span {
        white-space: normal !important;
    }

    .ff-service-hero--creators + .ff-system-section-services .system__diagram {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .ff-service-hero--creators + .ff-system-section-services .sys__arrow {
        display: none;
    }

    .ff-service-hero--creators + .ff-system-section-services ~ .creel {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .ff-service-hero--creators + .ff-system-section-services ~ .creel .creel__text {
        margin-left: 0 !important;
        min-width: 0;
    }

    .ff-service-hero--creators + .ff-system-section-services ~ .creel .creel__media {
        max-width: 100%;
        margin-inline: auto;
    }

    .ff-service-hero--creators + .ff-system-section-services ~ .creel .creel__video {
        display: block;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {
    .ff-service-hero--creators .ff-service-hero__title {
        font-size: 35px;
        line-height: 1.05;
    }

    .ff-service-hero--creators .ff-service-hero__cta {
        display: flex;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        justify-content: center;
    }

    .ff-service-hero--creators .ff-service-hero__content,
    .ff-service-hero--creators .ff-service-hero__footer,
    .ff-service-hero--creators + .ff-system-section-services .system__diagram,
    .ff-service-hero--creators + .ff-system-section-services ~ .creel,
    .ff-service-hero--creators ~ #criterio-flowflamingo :is(.crit__head, .crit__pin, .crit__spreads),
    .ff-service-hero--creators ~ .ff-faq-section-services :is(.ff-service-faq__inner, .ff-service-faq__header, .ff-service-faq__accordion) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .ff-system-section-services #systemDiagram.system__diagram {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
    }

    .ff-system-section-services #systemDiagram > .sys__node {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .ff-system-section-services {
        padding-right: 40px !important;
    }
}

@media (max-width: 767px) {
    body.single-campana .entry-content.clear {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    body.single-campana .entry-content.clear :is(
        .pwrap,
        .csec,
        .creel,
        .levers,
        .impact,
        .resultados,
        .wp-block-columns.ff-case-contact-layout
    ) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 767px) {
    body.single-campana .levers .levers__grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
    }

    body.single-campana .levers .levers__grid > .lever {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-width: 0;
    }

    body.single-campana .resultados {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* Ocultar el título "Consent" en ambos formularios */
#forminator-module-168 label.forminator-label[for^="forminator-field-consent-"],
#forminator-module-886 label.forminator-label[for^="forminator-field-consent-"] {
    display: none !important;
}

/* Correcciones generales de ancho en mobile */
@media (max-width: 767px) {

    /* Casos: permitir que los controles bajen de línea */
    .ff-actions {
        display: flex;
        flex-wrap: wrap !important;
        gap: 14px !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .ff-actions > :first-child {
        flex: 0 0 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Footer: eliminar márgenes que ensanchan la página */
    body .site-above-footer-wrap,
    body .site-below-footer-wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100%;
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box;
    }

    /* Permitir que el correo se ajuste si falta espacio */
    .site-footer a[href^="mailto:"] {
        overflow-wrap: anywhere;
    }
}

/* FOOTER — Distribución mobile */
@media (max-width: 767px) {

    /* Contenedores sin desborde */
    #colophon .site-above-footer-wrap,
    #colophon .site-below-footer-wrap {
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box;
    }

    #colophon .ast-builder-grid-row-container-inner {
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
    }

    /* Marca arriba, dos columnas y contacto debajo */
    #colophon .site-above-footer-inner-wrap {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 24px !important;
        align-items: start;
    }

    #colophon .site-footer-above-section-1 {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    /* Columna vacía del diseño de escritorio */
    #colophon .site-footer-above-section-2 {
        display: none !important;
    }

    #colophon .site-footer-above-section-3 {
        grid-column: 1;
        grid-row: 2;
    }

    #colophon .site-footer-above-section-4 {
        grid-column: 2;
        grid-row: 2;
    }

    #colophon .site-footer-above-section-5 {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    /* Alinear todos los contenidos a la izquierda */
    #colophon .site-footer-section,
    #colophon .footer-widget-area,
    #colophon .widget,
    #colophon .widget-title {
        min-width: 0;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    #colophon .site-footer-section {
        display: block !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Mantener oculta la columna vacía */
    #colophon .site-footer-above-section-2 {
        display: none !important;
    }

    #colophon .widget {
        margin-bottom: 0 !important;
    }

    #colophon .widget_nav_menu ul {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
    }

    /* Marca y frase sin márgenes laterales del editor */
    #colophon #block-11 .wp-block-group {
        max-width: none;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #colophon #block-11 .wp-block-group > p {
        width: 100%;
        max-width: none;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 28px de aire antes de la divisoria */
    #colophon .site-above-footer-wrap {
        padding-bottom: 28px !important;
        border-bottom: 0 !important;
    }

    #colophon .site-below-footer-wrap {
        margin-top: 0 !important;
        border-top: 1px solid rgba(15, 17, 21, .12);
        padding-top: 24px !important;
    }

    /* Copyright y legales apilados */
    #colophon .site-below-footer-inner-wrap {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
        border-top: 0 !important;
    }

    #colophon .ast-footer-copyright {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    #colophon .ast-footer-copyright p {
        margin: 0;
    }

    /* Legales: una sola fila, separados por 22px */
    #colophon #astra-footer-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center;
        gap: 22px !important;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }

    #colophon #astra-footer-menu > li {
        flex: 0 0 auto;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    #colophon #astra-footer-menu > li > a {
        display: block;
        padding: 0 !important;
        white-space: nowrap;
        font-size: 12px;
    }
}