/* Estilos trasladados del editor de la landing Proyectos. */
.ff-projects-eyebrow { display: inline-flex; align-items: center; }
.ff-projects-eyebrow__line {
    width: 28px; height: 1px; background: #b0361d; opacity: .7;
    display: inline-block; margin-right: 11.2px; flex-shrink: 0;
}
.ff-projects-eyebrow__text {
    color: #0f11158c; font-size: 12.48px; font-weight: 500;
    letter-spacing: 1.4976px; text-transform: uppercase; line-height: 1;
}
.ff-projects-section-label { display: flex; align-items: center; gap: .15rem; margin: 0; margin-top: 150px; }
.ff-projects-section-label--clients { margin-left: 40px; }
.ff-projects-section-label__number {
    color: #b0361d; font-weight: 600; letter-spacing: .1em; font-size: 12.48px;
}
.ff-projects-section-label__text {
    font-size: 12.48px; font-weight: 500; letter-spacing: .1em; color: #0f11158c;
}
.ff-projects-section-label--clients .ff-projects-section-label__text { color: #f9f7f18c; }
.ff-projects-clients { width: 100%; }
.ff-projects-clients .clients__grid {
    display: grid; grid-template-columns: repeat(6, 1fr); align-items: center;
    gap: 16px; padding: 72px 40px; width: 100%; box-sizing: border-box; background: #000;
}
.ff-projects-clients .client__item {
    display: flex; align-items: center; justify-content: center;
    min-height: 88px; opacity: 1; transition: opacity .65s ease;
}
.ff-projects-clients .client__item.fade-out { opacity: 0; }
.ff-projects-clients .client__item img {
    width: 100%; max-width: 180px; height: auto; object-fit: contain; display: block;
}
.ff-projects-contact .contact__sub {
    font-size: 19px; color: #0f11158c; line-height: 1.6;
    max-width: 440px; margin-bottom: 32px; margin-top: 30px;
}
.ff-projects-contact .contact__meta {
    display: flex; flex-direction: column; gap: 8px; padding-top: 32px;
    border-top: 1px solid #0f11151f; font-size: 14.08px; color: #0f11158c;
}
.ff-projects-contact .contact__meta a { color: #0f1115; text-decoration: none; }
.ff-projects-contact .contact__meta .ff-projects-contact__email {
    border-bottom: 1px solid #0f11151f; padding-bottom: 2px;
}
@media (max-width: 1024px) {
    .ff-projects-clients .clients__grid { grid-template-columns: repeat(3, 1fr); padding: 56px 24px; }
}
@media (max-width: 768px) {
    .ff-projects-clients .clients__grid { grid-template-columns: repeat(2, 1fr); padding: 48px 20px; gap: 20px; }
    .ff-projects-clients .client__item img { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
    .ff-projects-clients .client__item { transition: none; }
}

/* Ajustes exclusivos de la landing de Proyectos */
body:has(.ff-projects-clients) .hero__head {
    margin-top: 80px;
}

body:has(.ff-projects-clients) .hero__head-left {
    margin-left: 40px;
    margin-right: 0;
}

body:has(.ff-projects-clients) .ff-campaign-grid {
    margin-right: 40px;
}

/* Franja negra continua */
.ff-projects-dark {
    display: flow-root;
    width: calc(100% + 40px);
    box-sizing: border-box;
    background-color: #000000;
    color: #f9f7f1;
    box-shadow: 0 0 0 100vmax #000000;
    clip-path: inset(0 -100vmax);
}

.ff-projects-dark .levers,
.ff-projects-dark .levers__grid,
.ff-projects-dark .levers__note,
.ff-projects-dark .ff-projects-clients,
.ff-projects-dark .clients__grid {
    background-color: #000000;
}

.ff-projects-dark .levers {
    margin-top: 100px;
}

.ff-projects-dark .ff-projects-clients {
    margin-top: 100px;
}

/* Contacto: texto a izquierda, formulario a derecha */
.ff-projects-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    margin-right: 40px;
}

.ff-projects-contact-layout > .ff-projects-contact,
.ff-projects-contact-layout > .ff-projects-form {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.ff-projects-form .forminator-ui {
    margin-top: 0 !important;
}

body:has(.ff-projects-clients) .ff-testimonials-section {
    margin-top: 80px !important;
    margin-bottom: 80px !important;
    margin-block-start: 80px !important;
    margin-block-end: 80px !important;
}

/* Apilar las columnas en móvil */
@media (max-width: 767px) {
    .ff-projects-contact-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

body:has(.ff-projects-clients).ast-page-builder-template
.entry-content[data-ast-blocks-layout]
> .inherit-container-width > *,

body:has(.ff-projects-clients).ast-page-builder-template
.entry-content[data-ast-blocks-layout]
> *:not(.wp-block-group):where(
    :not(.uagb-is-root-container):not(.spectra-is-root-container)
) > *,

body:has(.ff-projects-clients)
.entry-content[data-ast-blocks-layout]
> .wp-block-cover .wp-block-cover__inner-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body .clients__grid-wrapper.ff-clients-section.ff-projects-clients {
    background-color: #000000;
    box-shadow: 0 0 0 100vmax #000000;
    clip-path: inset(0 -100vmax);
    padding-top: 45px;
    padding-bottom: 45px;
}

@media (max-width: 767px) {

    /* Título principal */
    body:has(.ff-projects-clients) .hero__claim {
        font-size: 45px;
        margin-bottom: 0;
    }

    /* Dos CTA, uno por columna */
    body:has(.ff-projects-clients) .hero__ctas {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body:has(.ff-projects-clients) .hero__ctas .hbtn {
        width: 100%;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
        text-align: center;
        white-space: normal;
    }

    /* Bloque de criterio */
    body:has(.ff-projects-clients) .readme__inner {
        display: block;
    }

    body:has(.ff-projects-clients) .readme__left {
        margin-bottom: 24px;
    }

    body:has(.ff-projects-clients) .readme {
        padding: 0;
    }

    /* Espaciados */
    body:has(.ff-projects-clients) .pgrid-sec {
        padding-top: 50px;
    }

    body .ff-projects-dark .levers {
        margin-top: 50px;
    }

    /* Tarjetas en una columna */
    body:has(.ff-projects-clients) .levers__grid--4 {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        padding-right:0px;
    }

    /* Logos: carrusel táctil de una imagen por vez */
    body .ff-projects-clients .clients__grid {
        display: flex;
        gap: 0;
        padding-left: 0;
        padding-right: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: #b0361d #000000;
    }

    body .ff-projects-clients .client__item {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        padding: 0 20px;
        box-sizing: border-box;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    body .ff-projects-clients .client__item img {
        max-width: 180px;
    }
}

@media (max-width: 767px) {

    /* Contenedor ajustado a la pantalla */
    body:has(.ff-projects-clients) .entry-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    /* Eliminar anchos mínimos y desplazamientos del hero */
    body:has(.ff-projects-clients) .hero__head,
    body:has(.ff-projects-clients) .hero__claim,
    body:has(.ff-projects-clients) .hero__meta,
    body:has(.ff-projects-clients) .hero__copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body:has(.ff-projects-clients) .hero__head-left {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body:has(.ff-projects-clients) .hero__claim {
        font-size: 45px;
        letter-spacing: -0.04em;
        overflow-wrap: break-word;
    }

    body:has(.ff-projects-clients) .hero__tag {
        width: 100%;
        max-width: 100%;
    }

    /* Evitar que los botones ensanchen el contenedor */
    body:has(.ff-projects-clients) .hero__ctas {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
    }

    body:has(.ff-projects-clients) .hero__ctas .hbtn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        box-sizing: border-box;
    }

    /* Quitar la ampliación de escritorio del bloque negro */
    body:has(.ff-projects-clients) .ff-projects-dark {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767px) {

    body:has(.ff-projects-clients) .ff-testimonials-section,
    body:has(.ff-projects-clients) .ff-testimonials-slider {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Quitar el padding de 80px del slider original */
    body:has(.ff-projects-clients)
    .ff-testimonials-slider .swiper-slide {
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    body:has(.ff-projects-clients) .ff-testimonial-card {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    /* Texto a todo el ancho disponible */
    body:has(.ff-projects-clients) .ff-testimonial-text {
        width: 100%;
        max-width: none;
        margin: 50px 0 32px;
        padding: 0;
        box-sizing: border-box;
        font-size: 24px;
        line-height: 1.35;
    }

    /* Comillas sobre el texto */
    body:has(.ff-projects-clients)
    .ff-testimonial-text::before {
        top: -55px;
        left: 0;
        width: 44px;
        height: 55px;
    }

    /* Autor */
    body:has(.ff-projects-clients) .ff-testimonial-meta {
        max-width: 100%;
        padding: 20px 0;
        box-sizing: border-box;
    }

    /* Flechas debajo del contenido */
    body:has(.ff-projects-clients) .ff-testimonial-prev,
    body:has(.ff-projects-clients) .ff-testimonial-next {
        position: static;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: none;
        margin: 16px 8px 0 0;
    }

    body:has(.ff-projects-clients) .ff-testimonial-pagination {
        margin-top: 24px;
    }

    /* Evitar que “04 /” se parta */
    body:has(.ff-projects-clients)
    .ff-projects-section-label__number {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    body:has(.ff-projects-clients) .hero__claim {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    body:has(.ff-projects-clients) .hero__head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    body:has(.ff-projects-clients) .hero__head-right {
        width: auto;
        text-align: right;
    }
}

@media (min-width: 1024px) {
    body:has(.ff-projects-clients) .entry-content {
        margin-left: 20px !important;
        margin-right: 20px !important;
        width: auto;
    }
}

.ff-projects-form {
    padding: 40px;
    border-radius: 16px;
    box-sizing: border-box;
}

.pgrid-coda {
    transition: color .45s ease, border-color .45s ease;
}

body.ff-projects-bg-dark .pgrid-coda {
    color: #ffffff;
    border-top-color: rgba(255, 255, 255, .2);
}