
/**
 * ==========================================================
 * VISTALINCE — LANDING DISEÑO WEB / 01. HERO — V3
 * ==========================================================
 * Archivo completo: assets/css/diseno-web.css
 * Dependencia: assets/css/main.css y hero.php existente.
 * Una sola imagen HTML 16:9 de WordPress.
 *
 * Desktop / tablet horizontal (>= 960px):
 * contenido izquierda y dispositivos derecha.
 *
 * Tablet vertical / móvil (<= 959px):
 * texto arriba e imagen debajo.
 * ==========================================================
 */

/* 01. SECCIÓN E IMAGEN */

.vl-web-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: clamp(38rem, 50vw, 50rem);

    background-color: #eadbd2;
    color: var(--vl-color-text-primary);

    border-bottom:
        var(--vl-border-width)
        solid
        var(--vl-color-border-subtle);
}

.vl-web-hero__visual {
    position: absolute;
    inset: 0;
    z-index: 0;

    overflow: hidden;
    margin: 0;
    pointer-events: none;
}

.vl-web-hero__image {
    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    object-position: center center;
}

/* Protección de legibilidad del texto */

.vl-web-hero::before {
    position: absolute;
    inset: 0;
    z-index: 1;

    content: "";
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgb(247 245 241 / 27%) 0%,
        rgb(247 245 241 / 12%) 32%,
        transparent 55%
    );
}

/* 02. CONTENEDOR Y COLUMNA IZQUIERDA */

.vl-web-hero__inner {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: stretch;

    min-height: inherit;
}

.vl-web-hero__left {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;

    width: min(47%, 42rem);
    min-width: 0;

    padding-block:
        var(--vl-space-7)
        var(--vl-space-6);
}

/* 03. BREADCRUMB */

.vl-web-hero__breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: var(--vl-space-2);

    margin: 0;
    padding: 0;
    list-style: none;

    color: var(--vl-color-text-secondary);

    font-family: var(--vl-font-body);
    font-size: var(--vl-text-body-sm);
    line-height: var(--vl-leading-ui);
}

.vl-web-hero__breadcrumb-list a {
    color: inherit;
    text-decoration: none;
}

.vl-web-hero__breadcrumb-list a:hover {
    color: var(--vl-color-link);
    text-decoration: underline;
}

.vl-web-hero__breadcrumb-list a:focus-visible,
.vl-web-hero__secondary:focus-visible {
    outline: 2px solid var(--vl-color-brand-strong);
    outline-offset: 4px;
}

.vl-web-hero__breadcrumb-separator {
    color: var(--vl-color-text-muted);
}

/* 04. CONTENIDO */

.vl-web-hero__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    min-width: 0;

    padding-block:
        var(--vl-space-3)
        var(--vl-space-6);
}

.vl-web-hero__content .vl-eyebrow {
    color: var(--vl-color-brand-strong);
}

/* H1 */

.vl-web-hero__title {
    max-width: none;

    margin: var(--vl-space-5) 0 0;

    color: var(--vl-color-text-primary);

    font-family: var(--vl-font-heading);

    font-size: clamp(
        3rem,
        3.35vw,
        3.75rem
    );

    font-weight: var(--vl-weight-bold);
    line-height: 1.1;
    letter-spacing: var(--vl-tracking-display);

    text-wrap: balance;
}

/* DESCRIPCIÓN */

.vl-web-hero__description {
    max-width: 60ch;

    margin: var(--vl-space-5) 0 0;

    color: var(--vl-color-text-secondary);

    font-family: var(--vl-font-body);
    font-size: var(--vl-text-body-lg);
    line-height: var(--vl-leading-body);

    text-wrap: pretty;
}

/* 05. ACCIONES */

.vl-web-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap:
        var(--vl-space-4)
        var(--vl-space-5);

    margin-top: var(--vl-space-6);
}

.vl-web-hero__primary {
    min-height: 3.25rem;
    padding-inline: var(--vl-space-6);
}

.vl-web-hero__primary .vl-icon,
.vl-web-hero__secondary .vl-icon {
    display: inline-flex;
    flex: none;

    width: var(--vl-icon-sm);
    height: var(--vl-icon-sm);
}

.vl-web-hero__primary .vl-icon svg,
.vl-web-hero__secondary .vl-icon svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================
   06. PORTÁTIL / TABLET HORIZONTAL
   960px — 1199px
   ========================================================== */

@media (min-width: 960px) and (max-width: 1199px) {

    .vl-web-hero {
        min-height: 38rem;
    }

    .vl-web-hero__left {
        width: 47%;
        padding-block: var(--vl-space-6);
    }

    .vl-web-hero__content {
        padding-block:
            var(--vl-space-2)
            var(--vl-space-5);
    }

    .vl-web-hero__title {
        margin-top: var(--vl-space-4);

        font-size: clamp(
            2.375rem,
            3.9vw,
            3rem
        );

        line-height: 1.1;
    }

    .vl-web-hero__description {
        margin-top: var(--vl-space-4);

        font-size: var(--vl-text-body-md);
        line-height: 1.55;
    }

    .vl-web-hero__actions {
        gap:
            var(--vl-space-3)
            var(--vl-space-4);

        margin-top: var(--vl-space-5);
    }

    .vl-web-hero__primary {
        padding-inline: var(--vl-space-5);
    }

    .vl-web-hero__image {
        object-position: left center;
    }
}

/* ==========================================================
   07. TABLET VERTICAL
   HASTA 959px
   ========================================================== */

@media (max-width: 959px) {

    .vl-web-hero {
        display: flex;
        flex-direction: column;

        min-height: 0;

        background: var(--vl-color-bg-canvas);
    }

    .vl-web-hero::before {
        display: none;
    }

    .vl-web-hero__inner {
        order: 0;
        min-height: 0;
    }

    .vl-web-hero__left {
        width: 100%;
        max-width: 43rem;

        padding-block: var(--vl-space-7);
    }

    .vl-web-hero__content {
        padding-block: var(--vl-space-7) 0;
    }

    .vl-web-hero__title {
        max-width: 20ch;

        font-size: clamp(
            2.5rem,
            5vw,
            3.25rem
        );
    }

    .vl-web-hero__description {
        max-width: 60ch;
    }

    /* La misma imagen aparece debajo del contenido */

    .vl-web-hero__visual {
        position: relative;
        inset: auto;

        order: 1;

        width: 100%;
        aspect-ratio: 16 / 10;
        max-height: 38rem;
    }

    .vl-web-hero__image {
        object-position: 70% center;
    }
}

/* ==========================================================
   08. MÓVIL
   HASTA 600px
   ========================================================== */

@media (max-width: 600px) {

    .vl-web-hero__left {
        padding-block:
            var(--vl-space-5)
            var(--vl-space-7);
    }

    .vl-web-hero__content {
        padding-top: var(--vl-space-7);
    }

    .vl-web-hero__title {
        max-width: 17ch;
        margin-top: var(--vl-space-4);

        font-size: clamp(
            2.25rem,
            7.5vw,
            2.875rem
        );
    }

    .vl-web-hero__description {
        margin-top: var(--vl-space-4);
        font-size: var(--vl-text-body-md);
    }

    .vl-web-hero__actions {
        gap:
            var(--vl-space-3)
            var(--vl-space-4);

        margin-top: var(--vl-space-5);
    }

    .vl-web-hero__primary {
        padding-inline: var(--vl-space-5);
    }

    .vl-web-hero__visual {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .vl-web-hero__image {
        object-position: right center;
    }
}

/* 09. AJUSTES DE LEGIBILIDAD */

.vl-web-hero__title,
.vl-web-hero__description {
    overflow-wrap: break-word;
}
