/**
 * C+ — Who We Are view styles
 */

/* =========================================
   Banner Compact (hero de who_we_are)
   ========================================= */
.banner-home--compact {
    min-height: unset;
    background: none;
    display: block;
    padding: 0;
}

.banner-home--compact__bg {
    width: 100%;
    height: auto;
    display: block;
}

.banner-home--compact .banner-home__inner {
    position: absolute;
    inset: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* ── Contenido centrado del banner compact ── */
.banner-compact__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem);
    padding-top: clamp(5rem, 12vw, 10rem);
    box-sizing: border-box;
}

.banner-compact__title-wrap {
    position: relative;
    display: inline-block;
}

.banner-compact__sparkle {
    position: absolute;
    top: -55%;
    right: -6%;
    width: clamp(40px, 6vw, 80px);
    height: auto;
    pointer-events: none;
}

.banner-compact__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 900px;
}

.banner-compact__eyebrow {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.banner-compact__title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.6rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #2727E1;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}

.banner-compact__trazo {
    width: clamp(180px, 40vw, 520px);
    height: auto;
    display: block;
    margin: 0;
}

.banner-compact__desc {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(0.9rem, 1.4vw, 1.15rem);
    font-weight: 400;
    color: #111111;
    line-height: 1.6;
    margin: 0.5rem 0 0;
}

.banner-compact__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    color: #ffffff;
    font-family: 'Archivo', sans-serif;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 0.75rem 2.25rem;
    border-radius: 999px;
    background: #2727E1;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.banner-compact__cta:hover {
    background: #1a1ab0;
    transform: translateY(-2px);
}

/* =========================================
   Plan Design — proporciones imagen / contenido
   ========================================= */
.mkt-problem--media-first .mkt-problem__media {
    flex: 0 0 38%;
    max-width: 38%;
}

.mkt-problem--media-first .mkt-problem__content {
    flex: 1 1 58%;
    max-width: 640px;
}

@media (max-width: 900px) {
    .mkt-problem--media-first .mkt-problem__media,
    .mkt-problem--media-first .mkt-problem__content {
        flex: none;
        max-width: 100%;
    }
}

/* Separación más compacta entre párrafos */
.mkt-problem__lead {
    margin-bottom: 0.65rem;
}

.mkt-problem__body {
    margin-bottom: 0.75rem;
}

.mkt-problem__body:last-child {
    margin-bottom: 0;
}

/* =========================================
   Next Build
   ========================================= */
.next-build {
    width: 100%;
    display: block;
    --next-build-overlap: clamp(3rem, 7vw, 9rem);
    margin-bottom: calc(-1 * var(--next-build-overlap));
}

.next-build__frame {
    position: relative;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.next-build__bg {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: clamp(-2rem, -4vw, -5rem);
}

.next-build__inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 8% 42% 8% 9%;
    box-sizing: border-box;
    pointer-events: none;
}

.next-build__title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.9rem, 4vw, 4.2rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.12;
    letter-spacing: 0.02em;
    margin: 0;
    max-width: 100%;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .next-build__inner {
        padding: 9% 40% 9% 8%;
    }

    .next-build__title {
        font-size: clamp(1.4rem, 3.6vw, 2.8rem);
    }
}

@media (max-width: 900px) {
    .next-build__inner {
        align-items: flex-start;
        padding: 10% 38% 10% 7%;
    }

    .next-build__title {
        font-size: clamp(1.1rem, 4.8vw, 1.9rem);
    }
}

@media (max-width: 600px) {
    .next-build__inner {
        padding: 9% 32% 9% 6%;
    }

    .next-build__title {
        font-size: clamp(0.8rem, 4.2vw, 1.35rem);
        line-height: 1.15;
    }
}

@media (max-width: 400px) {
    .next-build__inner {
        padding: 8% 28% 8% 5%;
    }

    .next-build__title {
        font-size: clamp(0.7rem, 3.8vw, 1.1rem);
    }
}

.next-build + .register-contact {
    margin-top: 0;
    padding-top: calc(5rem + var(--next-build-overlap, clamp(3rem, 7vw, 9rem)));
}

/* =========================================
   Service Card — Animaciones de entrada
   ========================================= */
@keyframes cardSlideRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes cardSlideLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}

.service-card {
    opacity: 0;
}

.service-card.is-visible {
    animation: cardSlideRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.service-card--reverse.is-visible {
    animation: cardSlideLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* =========================================
   Service Card Section
   ========================================= */
.service-card-section {
    background: #ffffff;
    padding: 4rem 0 5rem;
    width: 100%;
    overflow-x: clip;
}

.service-card-section__wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    box-sizing: border-box;
}

.service-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e8e8f0;
    border-radius: 1.5rem;
    padding: clamp(2rem, 3vw, 2.5rem);
    padding-right: 50%;
    box-shadow: 0 4px 24px rgba(39,39,225,0.05);
    box-sizing: border-box;
    overflow: visible;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.service-card__content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service-card__header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.service-card__title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 800;
    color: #2727E1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 0.4rem;
}

.service-card__trazo {
    width: clamp(80px, 12vw, 150px);
    height: auto;
    display: block;
}

.service-card__lead {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 700;
    color: #606060;
    line-height: 1.4;
    margin: 0 0 0.85rem;
}

.service-card__body {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 400;
    color: #606060;
    line-height: 1.5;
    margin: 0 0 2rem;
}

.service-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    color: #ffffff;
    font-family: 'Archivo', sans-serif;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 0.65rem 1.75rem;
    border-radius: 999px;
    background: #2727E1;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.service-card__cta:hover {
    background: #1a1ab0;
    transform: translateY(-2px);
}

/* Tamaño uniforme para todas las imágenes de service cards */
.service-card__media,
.service-card__media--left {
    position: absolute;
    width: 50%;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    object-fit: contain;
    border-radius: 1.25rem;
    display: block;
    z-index: 2;
}

.service-card__media {
    right: -1rem;
}

/* ── Variante reverse: imagen izquierda, texto derecha ── */
.service-card--reverse {
    padding-right: clamp(2rem, 3vw, 2.5rem);
    padding-left: 50%;
}

.service-card__media--left {
    left: -1rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .banner-home--compact {
        position: relative;
        background-image: url('../../../res/img/banners@300x.webp');
        background-size: cover;
        background-position: center top;
        min-height: 85vw;
        overflow: hidden;
        width: 100%;
    }
    .banner-home--compact__bg {
        display: none;
    }
    .banner-compact__inner {
        position: absolute;
        inset: 0;
        padding: 5rem 1.5rem 2rem;
        justify-content: center;
        overflow: hidden;
    }
    .banner-compact__content {
        max-width: 100%;
    }
    .banner-compact__sparkle {
        display: none;
    }
    .banner-compact__title {
        font-size: clamp(1.4rem, 8vw, 2.8rem);
    }
    .banner-compact__eyebrow {
        font-size: clamp(0.85rem, 4vw, 1.3rem);
    }
    .banner-compact__desc {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }
    .banner-compact__trazo {
        width: clamp(130px, 65vw, 300px);
    }
    .service-card-section {
        padding: 2.5rem 0 3rem;
        overflow-x: hidden;
    }
    .service-card {
        padding: clamp(1.5rem, 4vw, 2rem);
        min-height: unset;
        flex-direction: column;
        overflow: hidden;
    }
    .service-card__media,
    .service-card__media--left {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100%;
        height: auto;
        margin-top: 1.5rem;
        border-radius: 1rem;
    }
    .service-card--reverse {
        padding: clamp(1.5rem, 4vw, 2rem);
        min-height: unset;
        flex-direction: column;
        overflow: hidden;
    }
    .service-card__media--left {
        order: 1;
        margin-top: 1.5rem;
    }
    .service-card--reverse .service-card__content {
        order: 0;
    }
}

@media (max-width: 500px) {
    .banner-home--compact {
        min-height: 110vw;
    }
    .banner-compact__title {
        font-size: clamp(1.2rem, 7.5vw, 2rem);
    }
    .banner-compact__eyebrow {
        font-size: clamp(0.75rem, 3.5vw, 1rem);
    }
    .banner-compact__desc {
        font-size: clamp(0.75rem, 3vw, 0.9rem);
    }
    .banner-compact__cta {
        font-size: 0.8rem;
        padding: 0.6rem 1.5rem;
    }
    .banner-compact__trazo {
        width: clamp(110px, 55vw, 220px);
    }
}

@media (min-width: 2000px) {
    .banner-compact__content {
        max-width: 1400px;
    }
    .banner-compact__title {
        font-size: 6.5rem;
    }
    .banner-compact__eyebrow {
        font-size: 1.9rem;
    }
    .banner-compact__desc {
        font-size: 1.35rem;
    }
    .banner-compact__trazo {
        width: 650px;
    }
    .banner-compact__sparkle {
        width: 120px;
    }
    .banner-compact__cta {
        font-size: 1.1rem;
        padding: 1rem 3rem;
    }

    .mkt-problem--media-first .mkt-problem__media {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .mkt-problem--media-first .mkt-problem__content {
        flex: 1 1 62%;
        max-width: 780px;
    }

    .mkt-problem__lead {
        margin-bottom: 0.85rem;
    }

    .mkt-problem__body {
        margin-bottom: 0.9rem;
    }

    .next-build__frame {
        max-width: 2200px;
        margin: 0 auto;
    }

    .next-build__title {
        font-size: 5rem;
    }

    .next-build + .register-contact {
        padding-top: calc(7rem + var(--next-build-overlap, clamp(3rem, 7vw, 9rem)));
        padding-bottom: 7rem;
    }
}

@media (min-width: 2560px) {
    .banner-compact__content {
        max-width: 1700px;
    }
    .banner-compact__title {
        font-size: 9rem;
    }
    .banner-compact__eyebrow {
        font-size: 2.2rem;
    }
    .banner-compact__desc {
        font-size: 1.6rem;
    }
    .banner-compact__trazo {
        width: 850px;
    }
    .banner-compact__cta {
        font-size: 1.25rem;
        padding: 1.1rem 3.5rem;
    }

    .mkt-problem--media-first .mkt-problem__media {
        flex: 0 0 32%;
        max-width: 32%;
    }

    .mkt-problem--media-first .mkt-problem__content {
        flex: 1 1 65%;
        max-width: 920px;
    }

    .mkt-problem__lead {
        margin-bottom: 1rem;
    }

    .mkt-problem__body {
        margin-bottom: 1rem;
    }

    .next-build__frame {
        max-width: 2800px;
    }

    .next-build__title {
        font-size: 6.5rem;
    }

    .next-build + .register-contact {
        padding-top: calc(7rem + var(--next-build-overlap, clamp(3rem, 7vw, 9rem)));
        padding-bottom: 7rem;
    }
}
