﻿:root {
    --bg: #0b1b2e;
    --txt: #e9eef5;
    --muted: #b8c2cf;
    --brand: #91D42C;
    --brand-d: #63a70f;
    --nav-bg: #ffffff;
    --nav-txt: #23272f;
    --container: 1200px;
    --logo-gap: 26px;
    --radius: 16px;
    --gap: 26px;
    --loop: 0px;
    --dur: 22s;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--txt);
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Arial,sans-serif;
    background: white;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    border-bottom: 1px solid #e5e9f0
}

.header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none
}

.brand__logo {
    height: 44px;
    width: auto
}

.main-nav {
    position: relative
}

.main-nav__list {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0
}

.main-nav__link {
    text-decoration: none;
    color: var(--nav-txt);
    font-weight: 600;
    padding: 10px 0
}

    .main-nav__link.is-active {
        color: #111
    }

    .main-nav__link:hover {
        color: #000
    }

.main-nav__toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px
}

    .main-nav__toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #333;
        margin: 5px 0
    }

/* Hero */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: center/cover no-repeat url("../img/banner-home.png");
    background-color: #0d1220;
}

.hero__subtitle {
    font-size: clamp(1rem, 0.8rem + 0.7vw, 1.2rem);
    text-align: center
}

.hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    text-align: center;
}




.hero__quote {
    margin: clamp(18px, 3vw, 28px) auto;
    max-width: min(720px, 100%);
    text-align: center;
    padding: clamp(12px, 2.2vw, 18px) clamp(14px, 3vw, 22px);
    border-radius: 16px;
    background: rgba(0,0,0,.18);
    backdrop-filter: blur(2px);
}

.hero__quote-text {
    margin: 0;
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
    font-size: clamp(14px, 1.6vw, 18px);
    color: rgba(255,255,255,.92);
}

.hero__quote-author {
    margin-top: 10px;
    font-weight: 700;
    font-size: clamp(13px, 1.3vw, 16px);
    color: rgba(255,255,255,.85);
}






/* ABOUT */
.about {
    background: #f2f3f4;
    padding: 72px 0 96px;
    position: relative;
}

.about__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about__media {
    min-height: clamp(220px, 40vw, 340px);
    border-radius: 32px;
    background: center / cover no-repeat url("../img/somos-beon.png");
    box-shadow: 0 20px 60px rgba(0,0,0,.12) inset, 0 10px 30px rgba(0,0,0,.08);
    display: block;
}

.about__kicker {
    margin: 0 0 8px;
    font-size: 28px;
    color: #555;
    font-weight: 600;
}

.about__title {
    margin: 0;
    font-size: clamp(2rem,1.2rem + 2.5vw,3rem);
    font-weight: 800;
    color: #333;
}

.about__rule {
    display: block;
    width: 180px;
    height: 8px;
    border-radius: 999px;
    margin: 14px 0 18px;
    background: linear-gradient(90deg,#8BE019 0%, #2b6bdc 100%);
}

.about__text {
    color: #4a4f57;
    font-size: 1.125rem;
    line-height: 1.55;
    margin: 0 0 28px;
}

.about__content {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.about__cta {
    border-radius: 16px;
    padding: 16px 28px;
}

.about__scroll {
    position: absolute;
    left: 50%;
    bottom: -22px; /* sobresale hacia la siguiente sección */
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #3a3d41;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 10;
}

.about__scroll:hover {
    background: #2b2e32;
}

@media (max-width: 768px) {
    .about__content {
        align-items: center;
        text-align: center;
    }

    .about__cta {
        align-self: center;
    }
}

/* SOLUTIONS */
.solutions__lead {
    max-width: 560px;
    margin-bottom: 22px;
}

.solutions__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    margin-bottom: 28px;
}

.solutions__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* clave para que el texto pueda wrappear bien */
}

.solutions__icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #0b74b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

    .solutions__icon img {
        width: 35px;
        height: 35px;
        object-fit: contain;
    }

    .solutions__icon-white img {
        width: 45px;
        height: 45px;
        object-fit: contain;
    }

.solutions__label {
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    line-height: 1.25;
    overflow-wrap: anywhere; /* evita cortes feos en mobile */
}



.solutions {
    padding: 80px 0
}

.solutions__title {
    text-align: center;
    margin: 0 0 10px;
    font-weight: 400;
    color: #333;
    font-size: clamp(1.8rem,1.2rem + 2.5vw,3.2rem);
}

.solutions__highlight {
    display: block;
    color: #333;
    font-weight: 800;
}

.solutions__subtitle {
    text-align: center;
    color: #666;
    margin: 0 0 50px;
    font-size: 1.125rem;
}

/* Grillas */
.solutions__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.solutions__grid--reverse {
    grid-template-columns: 1.1fr 1fr;
}

.solutions__copy {
    text-align: center;
    color: #4a4f57;
    font-size: 1.125rem;
    line-height: 1.55;
}

.solutions__cta {
    margin-top: 22px;
    display: inline-block;
}

/* Cards */
.solutions-card {
    position: relative;
    aspect-ratio: 538 / 362;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.solutions-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.solutions-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.solutions-card__overlay {
    position: absolute;
    text-align: center;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
    gap: 6px;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,.55) 100%);
    color: #fff;
}

.solutions-card__title {
    margin: 0;
    font-weight: 800;
    font-size: 1.75rem;
}

.solutions-card__kicker {
    margin: 0;
    opacity: .9;
    font-style: italic;
}

.solutions-card__text {
    margin: 6px 0 0;
}


/* CASE STUDIES */
.cases {
    padding: 88px 0;
    background: #f5f6f7;
}

.cases__title {
    text-align: center;
    margin: 0 0 10px;
    color: #444;
    font-weight: 800;
    font-size: clamp(1.8rem,1.2rem + 2.5vw,3.2rem);
}

.cases__highlight {
    display: block;
    color: #333;
}

.cases__grid {
    margin-top: 36px;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, 1fr);
}

.case {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.case__meta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.case__icon {
    opacity: .7;
}

.case__link {
    color: #5a6472;
    text-decoration: none;
    line-height: 1.35;
}

    .case__link:hover {
        text-decoration: underline;
    }

.case__time {
    color: #1f2937;
    font-weight: 800;
    white-space: nowrap;
}

/* Clients carousel */
.clients {
    background: #f5f6f7;
    padding: 56px 0
}

.clients__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: center;
}

.clients__title {
    margin: 0;
    color: #444;
    font-size: clamp(1.4rem,1rem + 2vw,2.1rem);
}

.clients__highlight {
    display: block;
    font-weight: 700
}

.clients__carousel {
    overflow: hidden
}

.clients__track {
    display: flex;
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
    animation: scroll var(--dur) linear infinite;
    will-change: transform;
}

    .clients__track + .clients__track {
        animation-name: marquee2;
    }

.clients__item {
    flex: 0 0 auto;
    background: #fff;
    border-radius: 18px;
    padding: 16px 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

    .clients__item img {
        display: block;
        max-height: 44px;
        width: auto;
        object-fit: contain;
    }
.clients__item {
    flex: 0 0 160px;
    width: 160px;
    height: 84px;
    background: #fff !important;
    border-radius: 18px;
    padding: 16px 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .clients__item img {
        display: block;
        max-width: 100%;
        max-height: 44px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
/* hover pausa */
.clients__carousel:hover .clients__track {
    animation-play-state: paused
}

/* accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .clients__track {
        animation: none
    }
}

/* keyframes */
@keyframes scroll {
    to {
        transform: translateX(calc(-1 * var(--loop)));
    }
}

/* PROCESS */
.process {
    padding: clamp(48px, 6vw, 96px) 0;
    background: #fff;
    color: #111827;
}

.process__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.process__title {
    margin: 0 0 12px;
    line-height: 1.1;
}

.process__subtitle {
    margin: 0 0 24px;
    width: 100%;
    opacity: 0.9;
}

.process__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.process-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
}

.process-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.process-card__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.9;
}

.process__graphic img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 520px;
    margin-left: auto;
}

/* CTA SECTION */
.cta {
    background: radial-gradient(circle at top,#3fc4c9 0%,#0b2151 100%);
    color: #fff;
    text-align: center;
    padding-block: clamp(2.8rem, 7vw, 7.4rem);
    padding-inline: 20px;
}

.cta__title {
    margin: 0 0 8px;
    font-size: clamp(2rem,1rem + 3vw,3rem);
    font-weight: 800;
}

.cta__subtitle {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 600;
}

.cta__text {
    color: #dbe4ef;
    max-width: 1040px; /* permite que la línea completa quepa en desktop */
    margin: 0 auto 40px;
    font-size: 1.1rem;
    text-wrap: balance;
}

.cta__form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

    .cta__form input {
        flex: 1 1 260px;
        height: auto;
        min-height: auto;
        border: none;
        border-radius: 16px;
        padding: 16px 22px;
        font-size: 1rem;
        color: #333;
    }

        .cta__form input::placeholder {
            color: #8b93a2;
        }

        .cta__form input.is-invalid {
            box-shadow: 0 0 0 2px rgba(145, 212, 44, 0.5);
        }

        .cta__form .cta__error {
            position: absolute;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #f3fbe5;
            border: 1px solid var(--brand);
            color: #1f2f10;
            border-radius: 10px;
            padding: 8px 12px;
            font-size: 0.95rem;
            box-shadow: 0 8px 18px rgba(15, 88, 13, 0.12);
            text-align: left;
            z-index: 2;
            pointer-events: none;
            line-height: 1.35;
        }

            .cta__form .cta__error::before {
                content: "!";
                display: inline-flex;
                align-items: center;
                justify-content: center;
                height: 22px;
                width: 22px;
                border-radius: 50%;
                background: var(--brand);
                color: #0a2305;
                font-weight: 800;
                font-size: 0.9rem;
            }

            .cta__form .cta__error::after {
                content: "";
                position: absolute;
                top: -7px;
                left: 18px;
                width: 12px;
                height: 12px;
                background: #f3fbe5;
                border-left: 1px solid var(--brand);
                border-top: 1px solid var(--brand);
                transform: rotate(45deg);
            }

@media (min-width: 992px) {
    .cta {
        min-block-size: 68svh;
    }
}

@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
    }

    .solutions__grid--reverse {
        grid-template-columns: 1fr;
    }

    .clients__grid {
        grid-template-columns: 1fr
    }

    .clients__copy {
        text-align: center
    }

    .about__media {
        order: -1;
        min-height: 300px;
    }

    .solutions__grid {
        grid-template-columns: 1fr;
    }

    .solutions__copy {
        order: 2;
    }

    .solutions-card {
        order: 1;
    }

    .cases__grid {
        grid-template-columns: 1fr;
    }

    .clients__logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .process__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .process__steps {
        align-items: center;
    }

    .process__graphic {
        order: -1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .main-nav__toggle {
        display: block
    }

    .main-nav__list {
        position: absolute;
        right: 0;
        top: 56px;
        display: none;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e5e9f0;
        border-radius: 12px;
        padding: 12px;
        min-width: 220px;
    }

        .main-nav__list.is-open {
            display: flex
        }
    .process__grid {
        grid-template-columns: 1fr;
    }

    .process__graphic img {
        max-width: 520px;
        margin: 12px auto 0;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 68vh;
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .hero__subtitle {
        margin-bottom: 22px;
    }
}

@media (max-width: 640px) {
    .clients__logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta__form {
        flex-direction: column;
        align-items: stretch;
    }

    .cta__form input {
        flex: 0 0 auto;
        width: 100%;
    }
    .solutions__list {
        grid-template-columns: 1fr;
    }
    .hero__quote {
        text-align: center;
    }
}

.process__title--section {
    margin: 0 0 40px;
    text-align: center;
    font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
    line-height: 1.15;
    color: #111827;
    max-width: 100%;
    text-wrap: balance;
}
@media (max-width: 760px){
    .process__title--section {
        margin: 0 0 0px;
        text-align: center;
        font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
        line-height: 1.15;
        color: #111827;
        max-width: 100%;
        text-wrap: balance;
    }
}
.process__title--section {
    font-weight: 400;
}

.process__title-strong {
    font-weight: 700;
}