/* ==========================================================
   BC&B BUSINESS - NUEVA LANDING
   ----------------------------------------------------------
   Objetivos:
   - Mantener navbar/footer/identidad existentes.
   - Graphik como tipografía.
   - Reutilizar assets originales de BC&B Business.
   - Desktop fiel a la composición 50/50.
   - Mobile diseñado como mobile, no como desktop apilado.
   ========================================================== */


/* ==========================================================
   TIPOGRAFÍA
   ========================================================== */

@font-face {
    font-family: "Graphik";
    src:
        url("/fonts/graphik/Graphik-Regular.woff2") format("woff2"),
        url("/fonts/graphik/Graphik-Regular.woff") format("woff"),
        url("/fonts/graphik/Graphik-Regular.ttf") format("truetype"),
        url("/fonts/graphik/Graphik-Regular.eot");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


:root {
    --business-green: #00442b;
    --business-white: #ffffff;
    --business-text: #00442b;

    --business-shell: 1760px;
    --business-desktop-pad: clamp(48px, 5.5vw, 108px);
}


/* ==========================================================
   NAVBAR ORIGINAL
   Estas reglas existían en el CSS anterior y el navbar
   depende de ellas. No se rediseña.
   ========================================================== */

.lawbusiness {
    background-color: #ffffff !important;
    color: #00442b !important;

    box-shadow:
        0 -5px 10px rgba(0, 68, 43, 1),
        0 5px 10px rgba(0, 68, 43, 1);
}

.linknavbusiness {
    color: #00442b !important;
    text-decoration: none !important;
}

.linknavbusiness:hover,
.linknavbusiness:focus {
    color: #00442b !important;
    text-decoration: none !important;
}

.logohol {
    max-height: 70px;
    width: auto;
}


/* ==========================================================
   BASE
   ========================================================== */

html,
body {
    overflow-x: hidden;
}

.business-new,
.business-new * {
    box-sizing: border-box;
}

.business-new {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    background: #ffffff;
    color: var(--business-text);

    font-family: "Graphik", Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.business-shell {
    width: min(88%, var(--business-shell));
    margin-inline: auto;
}


/* ==========================================================
   HERO
   ========================================================== */

.business-hero {
    position: relative;
    isolation: isolate;

    width: 100%;
    min-height: clamp(500px, 46vw, 720px);

    display: flex;
    align-items: center;

    overflow: hidden;
}

.business-hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image: url("../img/Business1.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/*
   La fotografía ya tiene tratamiento visual.
   Sólo se añade una capa leve para garantizar contraste.
*/
.business-hero::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(0, 68, 43, .28) 0%,
            rgba(0, 68, 43, .12) 55%,
            rgba(0, 68, 43, 0) 100%
        );
}

.business-hero__content {
    padding-block: clamp(64px, 7vw, 110px);
}

.business-hero h1 {
    max-width: 1040px;

    margin: 0;

    color: #ffffff;

    font-family: "Graphik", Arial, Helvetica, sans-serif;
    font-size: clamp(3.2rem, 4.35vw, 5.35rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.035em;

    text-wrap: balance;
}

.business-hero p {
    max-width: 830px;

    margin: clamp(30px, 3vw, 45px) 0 0;

    color: #ffffff;

    font-family: "Graphik", Arial, Helvetica, sans-serif;
    font-size: clamp(1.15rem, 1.45vw, 1.65rem);
    font-weight: 400;
    line-height: 1.5;
}


/* ==========================================================
   SERVICIOS - DESKTOP
   ========================================================== */

.business-services {
    width: 100%;
}

.business-service {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 100%;
    margin: 0;
}

.business-panel {
    position: relative;

    min-width: 0;
    min-height: clamp(310px, 26vw, 440px);

    display: flex;
    align-items: center;

    overflow: hidden;
}

.business-panel--light {
    background-color: #ffffff;
    color: var(--business-text);
}

.business-panel--green {
    background-color: var(--business-green);
    color: #ffffff;
}


/*
   Asset ORIGINAL de la web.
   No se recrea con radial-gradient ni formas CSS.
*/
.business-panel--brand-bg {
    background-color: var(--business-green);
    background-image: url("../img/Fondo verde BC&B.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.business-panel__content {
    position: relative;
    z-index: 1;

    width: 100%;

    padding:
        clamp(48px, 5vw, 90px)
        var(--business-desktop-pad);
}

.business-panel h2 {
    max-width: 650px;

    margin: 0;

    color: inherit;

    font-family: "Graphik", Arial, Helvetica, sans-serif;
    font-size: clamp(2rem, 2.75vw, 3.45rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.025em;

    text-wrap: pretty;
}

.business-panel p {
    max-width: 760px;

    margin: 0;

    color: inherit;

    font-family: "Graphik", Arial, Helvetica, sans-serif;
    font-size: clamp(1.08rem, 1.32vw, 1.5rem);
    font-weight: 400;
    line-height: 1.58;
}

.business-panel p + p {
    margin-top: 1.05em;
}

.business-panel .business-lead {
    margin-bottom: 1.05em;
}

.business-panel ul {
    margin: 1.15em 0 0;
    padding-left: 1.35em;

    color: inherit;

    font-family: "Graphik", Arial, Helvetica, sans-serif;
    font-size: clamp(1.05rem, 1.28vw, 1.45rem);
    line-height: 1.72;
}

.business-link {
    display: inline-flex;
    align-items: center;

    margin-top: clamp(48px, 5vw, 78px);

    color: var(--business-text);

    font-family: "Graphik", Arial, Helvetica, sans-serif;
    font-size: clamp(1rem, 1.08vw, 1.2rem);
    font-weight: 400;

    text-decoration: none;

    transition: opacity .18s ease;
}

.business-link--light {
    color: #ffffff;
}

.business-link:hover,
.business-link:focus-visible {
    color: inherit;
    text-decoration: none;
    opacity: .68;
}


/* ==========================================================
   BOTÓN DE IDIOMA
   ========================================================== */

.business-language {
    position: fixed;
    z-index: 1000;

    right: clamp(16px, 2vw, 35px);
    bottom: clamp(16px, 2vw, 35px);

    width: clamp(52px, 4vw, 68px);
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    padding: 0;

    background: #ffffff;

    border-radius: 11px;

    box-shadow:
        0 7px 22px rgba(0, 0, 0, .25);

    text-decoration: none;
}

.business-language img {
    display: block;
    width: 38%;
    height: auto;
}


/* ==========================================================
   TABLET / INTERMEDIO
   ========================================================== */

@media (max-width: 1100px) and (min-width: 768px) {

    .business-shell {
        width: 86%;
    }

    .business-panel__content {
        padding: 52px 44px;
    }

    .business-panel h2 {
        font-size: clamp(2rem, 3.4vw, 3rem);
    }

    .business-panel p {
        font-size: clamp(1rem, 1.8vw, 1.3rem);
    }
}


/* ==========================================================
   MOBILE - RECONSTRUCCIÓN
   ----------------------------------------------------------
   Cada servicio deja de ser "dos bloques apilados".
   Se convierte en una sola sección coherente.
   ========================================================== */

@media (max-width: 767.98px) {

    /* -------------------------
       NAVBAR
       Sólo conservamos comportamiento visual existente.
       ------------------------- */

    .logohol {
        max-height: 64px;
    }


    /* -------------------------
       HERO
       ------------------------- */

    .business-hero {
        min-height: 465px;
        align-items: flex-end;
    }

    .business-hero__background {
        background-position: center center;
    }

    .business-hero::after {
        background:
            linear-gradient(
                180deg,
                rgba(0, 68, 43, .05) 0%,
                rgba(0, 68, 43, .20) 38%,
                rgba(0, 68, 43, .65) 100%
            );
    }

    .business-shell {
        width: 100%;
    }

    .business-hero__content {
        padding:
            72px
            24px
            44px;
    }

    .business-hero h1 {
        max-width: 430px;

        font-size: clamp(2.45rem, 10.5vw, 3.35rem);
        line-height: 1.03;
        letter-spacing: -.025em;

        /*
           No hay <br> forzados.
           El navegador distribuye el título según el ancho real.
        */
        text-wrap: pretty;
    }

    .business-hero p {
        max-width: 440px;

        margin-top: 24px;

        font-size: 1.02rem;
        line-height: 1.52;
    }


    /* -------------------------
       SERVICIOS
       ------------------------- */

    .business-services {
        padding: 18px 0;
        background: #f7f8f6;
    }

    .business-service {
        display: flex;
        flex-direction: column;

        width: calc(100% - 32px);
        max-width: 620px;

        margin: 0 auto 18px;

        border-radius: 0;

        overflow: hidden;

        box-shadow:
            0 4px 18px rgba(0, 68, 43, .07);
    }

    .business-service:last-child {
        margin-bottom: 0;
    }

    .business-panel {
        min-height: 0;
        width: 100%;
    }

    .business-panel__content {
        padding:
            34px
            26px;
    }

    .business-panel h2 {
        max-width: none;

        font-size: clamp(2rem, 8.2vw, 2.7rem);
        line-height: 1.08;
        letter-spacing: -.02em;

        text-wrap: pretty;
    }

    .business-panel p {
        max-width: none;

        font-size: 1.03rem;
        line-height: 1.62;
    }

    .business-panel ul {
        margin-top: 18px;

        font-size: 1rem;
        line-height: 1.7;
    }

    .business-link {
        margin-top: 26px;

        font-size: 1rem;
    }


    /* ======================================================
       CONSULTORÍA
       Una sola tarjeta blanca.
       El panel verde deja de sentirse como una sección aparte.
       ====================================================== */

    .business-service--consulting {
        background: #ffffff;
    }

    .business-service--consulting .business-service__intro,
    .business-service--consulting .business-service__detail {
        background-color: #ffffff;
        background-image: none;
        color: var(--business-text);
    }

    .business-service--consulting .business-service__intro .business-panel__content {
        padding-bottom: 18px;
    }

    .business-service--consulting .business-service__detail .business-panel__content {
        padding-top: 0;
        padding-bottom: 38px;
    }

    .business-service--consulting .business-link {
        margin-top: 24px;
    }


    /* ======================================================
       RETAIL COMMUNITY
       Una sola sección verde con el asset original.
       ====================================================== */

    .business-service--community {
        position: relative;

        background-color: var(--business-green);
        background-image: url("../img/Fondo verde BC&B.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;

        color: #ffffff;
    }

    .business-service--community .business-service__intro,
    .business-service--community .business-service__detail {
        background: transparent;
        color: #ffffff;
    }

    .business-service--community .business-service__intro .business-panel__content {
        padding-bottom: 18px;
    }

    .business-service--community .business-service__detail .business-panel__content {
        padding-top: 0;
        padding-bottom: 38px;
    }

    .business-service--community .business-link {
        margin-top: 24px;
        color: #ffffff;
    }

    .business-service--community .business-lead {
        font-size: 1.08rem;
    }


    /* ======================================================
       SOLUCIONES ADMINISTRATIVAS
       Una sola tarjeta blanca.
       El fondo corporativo no se fuerza donde perjudica
       legibilidad en móvil.
       ====================================================== */

    .business-service--admin {
        background: #ffffff;
    }

    .business-service--admin .business-service__intro,
    .business-service--admin .business-service__detail {
        background-color: #ffffff;
        background-image: none;
        color: var(--business-text);
    }

    .business-service--admin .business-service__intro .business-panel__content {
        padding-bottom: 18px;
    }

    .business-service--admin .business-service__detail .business-panel__content {
        padding-top: 0;
        padding-bottom: 38px;
    }

    .business-service--admin .business-link {
        margin-top: 24px;
    }


    /* -------------------------
       IDIOMA
       ------------------------- */

    .business-language {
        width: 48px;
        right: 14px;
        bottom: 14px;
        border-radius: 10px;
    }
}


/* ==========================================================
   MÓVIL PEQUEÑO
   ========================================================== */

@media (max-width: 399.98px) {

    .business-hero {
        min-height: 445px;
    }

    .business-hero__content {
        padding:
            62px
            20px
            38px;
    }

    .business-hero h1 {
        font-size: clamp(2.25rem, 10.5vw, 2.7rem);
    }

    .business-hero p {
        font-size: .98rem;
    }

    .business-services {
        padding-block: 14px;
    }

    .business-service {
        width: calc(100% - 24px);
        margin-bottom: 14px;
    }

    .business-panel__content {
        padding-left: 22px;
        padding-right: 22px;
    }
}


/* ==========================================================
   DESKTOP GRANDE
   Evita que los textos se dispersen demasiado sin limitar
   el ancho visual de las secciones.
   ========================================================== */

@media (min-width: 1700px) {

    .business-panel__content {
        padding-left: clamp(90px, 6.2vw, 125px);
        padding-right: clamp(90px, 6.2vw, 125px);
    }
}


/* ==========================================================
   ACCESIBILIDAD
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .business-link {
        transition: none;
    }
}
