/* ==========================================================================
   Inicio (/) — body.page-home
   Valores tomados de la página 17 de Elementor (elementor-post.css) y del kit.
   ========================================================================== */

/* ---------- Comunes ---------- */
.page-home .home-title {
    margin: 0 0 30px;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -1px;
    color: var(--color-primary);
    text-align: center;
}

/* Contenedor de los bloques "flex" de Elementor (1400 px de contenido) */
.page-home .home-wide {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* Botón estándar de Elementor: 15px / 400, padding 15px 40px (alto 45 px) */
.page-home .home-btn {
    padding: 15px 40px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    border-radius: 3px;
}

/* ==========================================================================
   Banner principal
   ========================================================================== */
.page-home .home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 750px;
    padding: 15px;
    overflow: hidden;
    color: var(--color-white);
    background-color: #00243F;
    background-image: linear-gradient(174deg, #00568A 14%, #00243F 86%);
}

/* Capa de la fotografía (multiplicada sobre el degradado, como en Elementor) */
.page-home .home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(0, 119, 194, .77);
    background-image: var(--hero-image, none);
    background-position: center left;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: .7;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.page-home .home-hero__inner {
    display: grid;
    grid-template-columns: 62% 35%;
    grid-template-areas:
        "head features"
        "actions features";
    align-items: start;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: 10px;
}

.page-home .home-hero__head { grid-area: head; padding: 10px 10px 0; }

.page-home .home-hero__title {
    max-width: 65%;
    margin: 0 0 30px;
    font-size: 47px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--color-white);
}

.page-home .home-hero__lead {
    max-width: 86%;
    margin: 0 0 50px;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .05px;
    color: var(--color-white);
}

.page-home .home-hero__actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 10px 10px;
}

.page-home .home-hero__btn {
    padding: 17px 50px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    border-radius: 3px;
    box-shadow: 0 3px 20px -5px rgba(0, 0, 0, .3);
}

/* "Nuestra empresa": borde blanco de 1 px (el .btn global no tiene borde) */
.page-home .home-hero__btn--ghost {
    padding: 16px 50px;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    background-color: transparent;
    background-image: linear-gradient(153deg, rgba(0, 67, 105, .45) -10%, rgba(1, 37, 58, .58) 100%);
}

.page-home .home-hero__btn--ghost:hover,
.page-home .home-hero__btn--ghost:focus-visible {
    color: var(--color-white);
    border-color: transparent;
    background-image: linear-gradient(160deg, #0075BE -30%, var(--color-primary) 100%);
}

/* Columna flexible: los márgenes de 15 px no colapsan (igual que los widgets de Elementor) */
.page-home .home-hero__features {
    grid-area: features;
    align-self: center;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 10px;
    list-style: none;
}

/* Igual que el image-box de Elementor: icono de 110 px con flex-shrink frente a un texto de
   base 100 %; el icono queda en 84 px (escritorio), 75,5 px (tableta) y 76 px (móvil). */
.page-home .home-feature {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-block: 15px;
}

.page-home .home-feature__icon { flex: 0 1 110px; width: 110px; min-width: 0; height: auto; }
.page-home .home-feature__body { flex: 0 1 100%; }

.page-home .home-feature__title {
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--color-white);
}

.page-home .home-feature__text {
    margin: 0;
    font-size: 17px;
    line-height: 24px;
    letter-spacing: .3px;
    color: var(--color-white);
}

/* ==========================================================================
   Servicios
   ========================================================================== */
.page-home .home-services {
    padding: 105px 0 120px;
    background-image: linear-gradient(180deg, var(--color-white) 40%, rgba(241, 242, 245, .88) 100%);
}

.page-home .home-services__head { margin-inline: -10px; text-align: center; }
.page-home .home-services__head .home-title { max-width: 84.424%; margin-inline: auto; }

.page-home .home-services__intro {
    max-width: 75%;
    margin: 0 auto 22px;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--color-text);
}

/* Dos filas explícitas de igual alto (en móvil solo las dos primeras tarjetas se igualan) */
.page-home .home-services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    gap: 35px;
    margin-top: 62px;
}

.page-home .service-card {
    display: flex;
    flex-direction: column;
    padding: 35px 40px;
    background: var(--color-white);
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 23, 63, .08);
}

.page-home .service-card__head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.page-home .service-card__icon { flex: none; width: 62px; height: 62px; }

.page-home .service-card__title {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -1px;
    color: var(--color-primary);
}

.page-home .service-card__text {
    width: 96.8%;
    margin: 0 0 20px;
    font-size: 16.9px;
    line-height: 24px;
    color: var(--color-text);
}

.page-home .service-card__footer { margin-top: auto; }

.page-home .service-card__btn {
    padding: 13px 35px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

/* ==========================================================================
   Diagnóstico 360°
   ========================================================================== */
.page-home .home-diag { padding: 95px 0 100px; background: var(--color-white); }

.page-home .home-diag__inner { max-width: var(--container); margin-inline: auto; }

.page-home .home-diag__head { padding: 10px; }

.page-home .home-diag__title { max-width: 70%; margin-inline: auto; }

.page-home .home-diag__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 10px;
}

.page-home .home-diag__media,
.page-home .home-diag__body { padding: 10px; }

.page-home .home-diag__media { display: flex; justify-content: center; align-items: flex-start; }
.page-home .home-diag__media img { width: 370px; }

.page-home .home-diag__body { display: flex; flex-direction: column; justify-content: center; }

.page-home .home-diag__text {
    width: 96.8%;
    margin: 0 0 25px;
    font-size: 17px;
    line-height: 24px;
    color: var(--color-text);
}

.page-home .home-diag__list {
    width: calc(96.8% + 3px);
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 17px;
    font-weight: 300;
    line-height: 24px;
    color: var(--color-text);
}

.page-home .home-diag__list li { display: flex; align-items: flex-start; gap: 7px; }
.page-home .home-diag__list li + li { margin-top: 5px; }
.page-home .home-diag__list b { font-weight: 700; }

.page-home .home-diag__list .icon {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 4px;
    color: var(--color-blue);
    stroke-width: 4;
}

.page-home .home-diag__action { margin-top: 25px; }

/* ==========================================================================
   Metodología
   ========================================================================== */
.page-home .home-method {
    padding: 100px 0 110px;
    background: #F4F5F7;
}

/* Columna de Elementor con 10 px de relleno: el título ocupa 1408 px (escritorio) / 1004 px (tableta) */
.page-home .home-method > .container { padding-inline: 10px; }

.page-home .home-method__title { margin-bottom: 50px; }

.page-home .home-method__track { max-width: 1180px; margin-inline: auto; }

.page-home .home-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-home .home-step {
    position: relative;
    padding: 10px 15px 0;
    text-align: center;
}

.page-home .home-step:last-child { padding-inline: 12px; }
.page-home .home-step:first-child .home-step__title { line-height: 1.3; }

.page-home .home-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 77px;
    height: 71px;
    margin: 0 auto 12px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-accent);
}

.page-home .home-step__num svg { width: 33px; height: 33px; margin-top: 2px; fill: currentColor; }

.page-home .home-step__title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--color-text);
}

.page-home .home-step__arrow {
    position: absolute;
    top: 43px;
    right: -35px;
    width: 70px;
    height: 21px;
    fill: none;
    stroke: rgba(0, 38, 62, .75);
    stroke-linecap: round;
    stroke-miterlimit: 10;
    overflow: visible;
}

.page-home .home-step:last-child .home-step__arrow { display: none; }

.page-home .home-phases {
    display: grid;
    grid-template-columns: 60% 40%;
    margin-top: 25px;
}

.page-home .home-phase {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    margin: 2px 5px 2px 0;
    border-radius: 0 50px 50px 0;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--color-white) 70%);
}

.page-home .home-phase__label {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--color-primary);
}

/* ==========================================================================
   Especialistas en asesorías (banda azul con imagen)
   ========================================================================== */
/* Sin contexto de apilamiento propio: la capa "multiply" se mezcla con el degradado translúcido
   y el fondo blanco de la página, igual que el overlay de Elementor */
.page-home .home-banner {
    position: relative;
    padding: 110px 0 100px;
    overflow: hidden;
    color: var(--color-white);
    text-align: center;
    background-image: linear-gradient(33deg, rgba(0, 35, 71, .94) 33%, rgba(0, 82, 126, .97) 110%);
}

.page-home .home-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-image, none);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: .56;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.page-home .home-banner__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin-inline: auto;
    padding: 0 0 0 60px;
}

.page-home .home-banner__title {
    margin: 0 0 20px;
    font-size: 35px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -.6px;
    color: var(--color-white);
}

.page-home .home-banner__text {
    max-width: 84.92%;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-white);
}

.page-home .home-banner__action { margin-top: 50px; }

/* ==========================================================================
   Cifras
   ========================================================================== */
.page-home .home-stats {
    border-block: 1px solid var(--color-border);
    background: #F5F5F8;
}

.page-home .home-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: var(--container);
    margin-inline: auto;
}

.page-home .home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    text-align: center;
}

.page-home .home-stat:nth-child(2) { border-inline: 1px solid var(--color-border); }

.page-home .home-stat__number {
    margin: 0 0 10px;
    font-size: 63px;
    font-weight: 900;
    line-height: 1;
    color: #DA0026;
}

.page-home .home-stat__title {
    max-width: 66.8%;
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--color-text);
}

.page-home .home-stat:nth-child(2) .home-stat__title { max-width: 55.4%; }

.page-home .home-stat__logo { width: auto; height: 55px; margin-bottom: 20px; }

.page-home h3.home-stat__title { max-width: 81.4%; margin-bottom: 5px; padding-bottom: 10px; }

.page-home .home-stat__text {
    max-width: 84.2%;
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
}

/* line-height: 1 evita que el enlace (15 px) agrande la línea del párrafo (14,6 px en móvil) */
.page-home .home-stat__text .btn-small { display: inline; margin-left: 6px; line-height: 1; }

/* ==========================================================================
   Clientes (carrusel de logos)
   ========================================================================== */
.page-home .home-clients { padding: 105px 0 110px; }

/* Las flechas del carrusel (right/left: -14px) sobresalen 4px del contenedor cuando este ocupa todo el ancho
   (< 1436px): sin recortarlas la página se desplaza de lado en móviles y tabletas. "clip" no crea contenedor de scroll. */
.page-home .home-clients { overflow: hidden; overflow: clip; }

.page-home .home-clients > .container { padding-inline: 10px; }

.page-home .home-clients__title { margin-bottom: 50px; }

/* Visor de 1348 px (escritorio) / 944 px (tableta) / 310 px (móvil), como el swiper original */
.page-home .home-clients__carousel { padding-inline: 30px; }

.page-home .home-clients__carousel .carousel__track { align-items: center; }

.page-home .home-clients__carousel .carousel__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.page-home .home-clients__carousel img { width: auto; max-width: 100%; max-height: 90px; }

.page-home .home-clients__carousel .carousel__btn {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    color: rgba(92, 96, 111, .35);
}

.page-home .home-clients__carousel .carousel__btn:hover { color: var(--color-text); background: transparent; }
.page-home .home-clients__carousel .carousel__btn svg { width: 36px; height: 36px; stroke-width: 2.6; }
.page-home .home-clients__carousel .carousel__btn--prev { left: -14px; }
.page-home .home-clients__carousel .carousel__btn--next { right: -14px; }

/* ==========================================================================
   Convocatorias
   ========================================================================== */
.page-home .home-calls { padding: 20px 0 90px; }

.page-home .home-calls__title { margin-bottom: 60px; }

.page-home .home-calls__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* 10 px de la columna + 25 px del widget: imagen de 600 px (escritorio), 412 px (tableta), 280 px (móvil) */
.page-home .home-calls__item {
    display: flex;
    justify-content: center;
    padding-inline: 35px;
}

.page-home .home-calls__item img {
    width: 600px;
    height: 320px;
    object-fit: cover;
    object-position: center;
    transition: opacity var(--transition);
}

.page-home .home-calls__item:hover img { opacity: .9; }

/* ==========================================================================
   Contenido para ti (componente LatestPosts)
   ========================================================================== */
.page-home .home-posts { padding: 40px 0 83px; }

/* Sin entradas (p. ej. base de datos no disponible): se oculta la sección */
.page-home .home-posts:not(:has(.post-card)) { display: none; }

.page-home .home-posts__title { margin-bottom: 50px; }

.page-home .home-posts .post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px 28px;
}

.page-home .home-posts .post-card {
    border-radius: 0;
    box-shadow: none;
    background: var(--color-white);
}

.page-home .home-posts .post-card:hover { transform: none; box-shadow: none; }

.page-home .home-posts .post-card__media { aspect-ratio: auto; height: 200px; }

.page-home .home-posts .post-card__body { gap: 0; padding: 15px 5px 20px; }

.page-home .home-posts .post-card__meta { display: none; }

.page-home .home-posts .post-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.6px;
}

.page-home .home-posts .post-card__title a { color: var(--color-primary); }
.page-home .home-posts .post-card__title a:hover { color: var(--color-primary); text-decoration: underline; }

.page-home .home-posts .post-card__excerpt {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
}

.page-home .home-posts .post-card__more { margin-top: 20px; padding-top: 0; }

.page-home .home-posts .post-card__more .link-arrow {
    display: inline-flex;
    gap: 0;
    padding: 7px 25px;
    border-radius: 2px;
    background-image: var(--gradient-accent);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
}

.page-home .home-posts .post-card__more .link-arrow:hover {
    background-image: var(--gradient-accent-hover);
    color: var(--color-white);
}

.page-home .home-posts .post-card__more .link-arrow svg { display: none; }
.page-home .home-posts .post-card__more .link-arrow::after { content: "\a0»"; }

/* ==========================================================================
   ¿Estás listo para empezar? (formulario)
   ========================================================================== */
.page-home .home-cta { padding: 60px 0 180px; }

.page-home .home-cta__box {
    display: grid;
    grid-template-columns: 33.747% 66.253%;
    align-items: center;
    max-width: var(--container);
    margin-inline: auto;
    padding: 30px 30px 30px 40px;
    border-radius: 8px;
    background: rgba(241, 242, 245, .88);
}

.page-home .home-cta__intro { padding: 10px; }

.page-home .home-cta__title {
    margin: 0 0 15px;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--color-primary);
}

.page-home .home-cta__text {
    margin: 0;
    font-size: 22px;
    line-height: 1.5;
    color: var(--color-text);
}

.page-home .home-cta__form {
    margin: -70px 30px -70px 50px;
    padding: 40px;
    border-radius: 8px;
    background-image: linear-gradient(180deg, #003557 0%, var(--color-primary) 100%);
    box-shadow: 10px 10px 25px rgba(0, 12, 32, .18);
}

.page-home .home-cta .contact-form__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px 15px;
}

.page-home .home-cta .contact-form__fields > .contact-form__field { grid-column: auto; }
.page-home .home-cta .contact-form__fields > .contact-form__field:nth-child(n+4) { grid-column: 1 / -1; }

.page-home .home-cta .contact-form input[type="text"],
.page-home .home-cta .contact-form input[type="email"],
.page-home .home-cta .contact-form input[type="tel"],
.page-home .home-cta .contact-form textarea {
    min-height: 40px;
    padding: 11.25px;
    border: 0;
    border-radius: 3px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.4;
}

.page-home .home-cta .contact-form textarea { height: 115px; min-height: 115px; padding: 5px 14px; }
.page-home .home-cta .contact-form ::placeholder { color: rgba(92, 96, 111, .6); }

.page-home .home-cta .contact-form__check {
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.page-home .home-cta .contact-form__check input { width: 13px; height: 13px; margin: 0; }
.page-home .home-cta .contact-form__check a { color: var(--color-white); text-decoration: none; }
.page-home .home-cta .contact-form__check a:hover { text-decoration: underline; }

.page-home .home-cta .contact-form__actions { margin-top: 25px; }

/* Botón "sm" del formulario de Elementor: 15px / 400, alto mínimo 40 px */
.page-home .home-cta .contact-form__submit {
    width: calc(50% - 7.5px);
    min-height: 40px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    border-radius: 3px;
}

/* ==========================================================================
   Tableta (≤ 1024 px)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Banner: como en Elementor, los botones pasan a la columna derecha (35 %), apilados bajo la
       propuesta de valor; las filas 1fr centran ese bloque frente al título. El título y el texto
       conservan su ancho (65 % / 86 %) y se centran dentro de él. */
    .page-home .home-hero { padding: 50px 15px; }
    .page-home .home-hero::before { background-position: center right; }
    .page-home .home-hero__inner {
        grid-template-rows: 1fr auto auto 1fr;
        grid-template-areas:
            "head ."
            "head features"
            "head actions"
            "head .";
    }
    .page-home .home-hero__head { align-self: center; padding: 10px; }
    .page-home .home-hero__title { font-size: 45px; text-align: center; }
    .page-home .home-hero__lead { text-align: center; }
    .page-home .home-hero__features { align-self: auto; padding-bottom: 0; }
    .page-home .home-hero__actions { flex-direction: column; align-items: flex-start; padding: 10px 20px 20px; }
    .page-home .home-hero__btn--ghost { margin-left: 25px; padding-block: 15px; background-image: none; }

    .page-home .home-services__intro { max-width: 95%; }
    .page-home .home-services__grid { gap: 20px; }
    .page-home .service-card { padding: 30px; }
    .page-home .service-card__head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .page-home .service-card__icon { width: 65px; height: 65px; }
    .page-home .service-card__text { width: 100%; }

    .page-home .home-diag__text,
    .page-home .home-diag__list { width: 100%; }

    /* La metodología se desplaza horizontalmente, como en el sitio original */
    .page-home .home-method__scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
    .page-home .home-method__track { width: 1100px; max-width: none; padding-inline: 10px; }

    .page-home .home-banner__inner { padding: 0 20px 20px; }

    .page-home .home-stats { padding-bottom: 30px; }
    .page-home .home-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-home .home-stat { padding: 30px 15px 20px; }
    .page-home .home-stat:nth-child(2) { border-inline-end: 0; }
    .page-home .home-stat:nth-child(3) { grid-column: 1 / -1; }
    .page-home .home-stat__title,
    .page-home .home-stat:nth-child(2) .home-stat__title,
    .page-home h3.home-stat__title,
    .page-home .home-stat__text { max-width: none; }
    /* Margen inferior del <p> del editor de texto (visible al no igualarse las columnas) */
    .page-home .home-stat:not(:last-child) .home-stat__text { margin-bottom: 16px; }
    .page-home .home-stat__number { font-size: 65px; }
    .page-home .home-stat__logo { height: 60px; }

    .page-home .home-posts .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .page-home .home-cta { padding-top: 50px; padding-bottom: 170px; }
    .page-home .home-cta__box { grid-template-columns: 1fr; padding: 50px 30px 70px; text-align: center; }
    .page-home .home-cta__intro { margin-bottom: 20px; }
    .page-home .home-cta__form { margin: 0; text-align: left; }
}

/* ==========================================================================
   Tableta vertical (768–921 px): el tema Astra del sitio original reduce aquí
   la tipografía base a 14,6 px / 21,9 px, que heredan estos textos.
   ========================================================================== */
@media (min-width: 768px) and (max-width: 921px) {
    .page-home .home-feature__text,
    .page-home .service-card__text,
    .page-home .home-diag__text,
    .page-home .home-diag__list { line-height: 21.9px; }
    .page-home .home-stat__text { font-size: 14.6px; line-height: 21.9px; }
    .page-home .home-stat:not(:last-child) .home-stat__text { margin-bottom: 14.6px; }
    .page-home .home-phase { min-height: 18px; }
    .page-home .home-phase__label { font-size: 14.6px; }
    .page-home .home-cta .contact-form__check { font-size: 14.6px; line-height: 1.5; }
}

/* ==========================================================================
   Móvil (≤ 767 px)
   ========================================================================== */
@media (max-width: 767px) {
    .page-home .home-title { font-size: 28px; line-height: 1.2; }

    /* Banner principal */
    .page-home .home-hero { min-height: 0; margin-bottom: 50px; padding: 70px 0 80px; }
    .page-home .home-hero::before { background-image: var(--hero-image-sm, var(--hero-image, none)); background-position: center left; opacity: .82; }
    .page-home .home-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: "head" "features" "actions";
    }
    .page-home .home-hero__head { padding: 10px 10px 0; }
    .page-home .home-hero__title { max-width: none; margin-bottom: 30px; font-size: 30px; }
    .page-home .home-hero__lead { max-width: none; margin-bottom: 20px; font-size: 18px; }
    .page-home .home-hero__features { align-items: center; padding: 20px 10px 0; }
    .page-home .home-feature { width: 85%; gap: 15px; }
    .page-home .home-feature__title { margin-bottom: 3px; }
    .page-home .home-feature__text { line-height: 22px; }
    .page-home .home-hero__actions { flex-direction: column; align-items: center; padding: 10px; }
    .page-home .home-hero__btn { padding: 12px 20px; }
    .page-home .home-hero__btn--ghost { margin-left: 0; padding: 11px 20px; }
    .page-home .home-hero__actions .btn--primary { margin-right: 7px; }

    /* Servicios */
    .page-home .home-services { padding: 10px 0 40px; }
    .page-home .home-services__head .home-title,
    .page-home .home-services__intro { max-width: none; }
    .page-home .home-services__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .page-home .service-card__head { gap: 5px; }
    .page-home .service-card__icon { width: 60px; height: 60px; }
    .page-home .service-card__title { font-size: 27px; line-height: 1.1; }
    .page-home .service-card__text { line-height: 1.3; }

    /* Diagnóstico */
    .page-home .home-diag { padding: 50px 0; }
    .page-home .home-diag__title { max-width: none; font-size: 28px; line-height: 1.2; }
    .page-home .home-diag__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .page-home .home-diag__media img { width: 230px; }
    .page-home .home-diag__text { margin-bottom: 20px; line-height: 1.3; }
    .page-home .home-diag__list { font-size: 18px; line-height: 1.3; }
    .page-home .home-diag__list .icon { margin-top: 4px; }
    .page-home .home-diag__action { margin-top: 15px; padding: 0 0 22px 10px; text-align: center; }

    /* Metodología: franja con desplazamiento horizontal (1000 px), como en el sitio original */
    /* El área desplazable va de 10 a 380 px (el relleno de la sección queda fuera del recorte) */
    .page-home .home-method { padding: 100px 0 60px; }
    .page-home .home-method__title { margin-bottom: 54px; }
    .page-home .home-method__scroller { margin-inline: 10px; }
    .page-home .home-method__track { width: 1000px; padding-inline: 0; }
    .page-home .home-step { padding: 0 10px; }
    .page-home .home-step:last-child { padding: 0 7px; }
    .page-home .home-step__arrow { top: 33.5px; right: -30px; width: 50px; height: 15px; }
    .page-home .home-phase { min-height: 18px; }
    .page-home .home-phase__label { font-size: 14.6px; }

    /* Banda azul */
    .page-home .home-banner { padding: 70px 0 70px; }
    .page-home .home-banner::before { background-position: center; }
    .page-home .home-banner__inner { padding: 0 20px; }
    .page-home .home-banner__title { font-size: 28px; }
    .page-home .home-banner__text { max-width: none; }
    .page-home .home-banner__action { margin-top: 35px; padding: 0 0 22px 10px; }

    /* Cifras */
    .page-home .home-stats { margin-bottom: 50px; }
    .page-home .home-stats__grid { grid-template-columns: minmax(0, 1fr); }
    .page-home .home-stat:nth-child(2) { border-inline: 0; border-block: 1px solid var(--color-border); }
    .page-home .home-stat:nth-child(3) { padding-block: 30px; }
    .page-home .home-stat__text { font-size: 14.6px; line-height: 22px; }
    .page-home .home-stat:not(:last-child) .home-stat__text { margin-bottom: 14.6px; }

    /* Clientes */
    .page-home .home-clients { padding: 10px 0 60px; }
    .page-home .home-clients__carousel .carousel__slide { min-height: 86px; }

    /* Convocatorias */
    .page-home .home-calls { padding: 20px 0 80px; }
    .page-home .home-calls__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .page-home .home-calls__item img { width: 100%; }

    /* Entradas */
    .page-home .home-posts { padding: 50px 0 83px; }
    .page-home .home-posts .post-grid { grid-template-columns: minmax(0, 1fr); }

    /* Formulario */
    .page-home .home-cta { padding: 50px 0 20px; }
    .page-home .home-cta__box { padding: 50px 20px; border-radius: 8px; }
    .page-home .home-cta__title { font-size: 32px; }
    .page-home .home-cta__form { padding: 30px 20px; }
    .page-home .home-cta .contact-form__fields { grid-template-columns: minmax(0, 1fr); }
    .page-home .home-cta .contact-form__fields > .contact-form__field { grid-column: 1 / -1; }
    .page-home .home-cta .contact-form__check { gap: 4px; font-size: 14.6px; line-height: 1.5; }
    .page-home .home-cta .contact-form__submit { width: 100%; }
}
