
/* Lab Hero Slider
   Banner adaptable para Elementor.
   Evita que el botón quede pegado al borde inferior.
*/

.lhs-hero,
.lhs-hero * {
    box-sizing: border-box;
}

/* BANNER PRINCIPAL */
.lhs-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: auto;
    min-height: max(650px, var(--lhs-height, 570px));
    overflow: hidden;
    background: #10243b;
    color: #fff;
    font-family: inherit;
    line-height: 1.45;
}

/* CONTENEDOR DE DIAPOSITIVAS */
.lhs-slides {
    position: relative;
    display: grid;
    width: 100%;
    min-height: max(650px, var(--lhs-height, 570px));
}

.lhs-slide {
    position: relative;
    grid-area: 1 / 1;
    display: flex;
    width: 100%;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .85s ease, visibility .85s ease;
    background: linear-gradient(115deg, #09233b, #234d76);
    color: #fff;
}

.lhs-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

/* IMAGEN DE FONDO */
.lhs-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.lhs-position-top { object-position: center top; }
.lhs-position-bottom { object-position: center bottom; }
.lhs-position-left { object-position: left center; }
.lhs-position-right { object-position: right center; }

/* OSCURECIMIENTO DE LA FOTOGRAFÍA */
.lhs-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,12,29,calc(var(--lhs-overlay,.5) + .12)) 0%,
        rgba(0,12,29,var(--lhs-overlay,.5)) 52%,
        rgba(0,12,29,calc(var(--lhs-overlay,.5) * .45)) 100%
    );
}

.lhs-text-dark {
    color: #0c2034;
}

.lhs-text-dark .lhs-shade {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.80),
        rgba(255,255,255,.60),
        rgba(255,255,255,.18)
    );
}

/* CONTENIDO: TÍTULO, DESCRIPCIÓN Y BOTÓN */
.lhs-content {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2;
    width: 100%;
    padding: 56px clamp(58px,8.5vw,160px) 76px;
    margin: 0 auto;
}

.lhs-copy {
    width: min(760px,100%);
    text-align: left;
}

/* ALINEACIONES */
.lhs-content.lhs-align-center {
    justify-content: center;
    padding-left: 75px;
    padding-right: 75px;
}

.lhs-align-center .lhs-copy {
    text-align: center;
}

.lhs-content.lhs-align-right {
    justify-content: flex-end;
}

.lhs-align-right .lhs-copy {
    text-align: right;
}

/* ETIQUETA SUPERIOR */
.lhs-eyebrow {
    display: inline-block;
    font-size: clamp(12px,1.1vw,15px);
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
    margin: 0 0 18px;
    color: #a7def7;
    text-shadow: 0 1px 10px rgba(0,0,0,.2);
}

.lhs-text-dark .lhs-eyebrow {
    color: #115c92;
    text-shadow: none;
}

/* TÍTULO */
.lhs-heading {
    color: inherit !important;
    font-family: inherit !important;
    font-size: clamp(32px,4.5vw,70px) !important;
    font-weight: 750 !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em !important;
    text-transform: none !important;
    margin: 0 0 19px !important;
    max-width: none !important;
    text-shadow: 0 2px 22px rgba(0,0,0,.16);
}

.lhs-text-dark .lhs-heading {
    text-shadow: none;
}

/* DESCRIPCIÓN */
.lhs-description {
    color: inherit !important;
    font-family: inherit;
    font-size: clamp(15px,1.5vw,21px) !important;
    line-height: 1.55 !important;
    max-width: 640px;
    font-weight: 400;
    margin: 0 0 27px !important;
    opacity: .96;
    text-shadow: 0 1px 10px rgba(0,0,0,.18);
}

.lhs-text-dark .lhs-description {
    text-shadow: none;
}

.lhs-align-center .lhs-description {
    margin-left: auto !important;
    margin-right: auto !important;
}

.lhs-align-right .lhs-description {
    margin-left: auto !important;
}

/* BOTÓN */
.lhs-button,
.lhs-button:visited {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 25px;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    background: #fff;
    color: #133b60 !important;
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 4px 22px rgba(0,0,0,.13);
    transition: transform .2s, background .2s, color .2s;
}

.lhs-button:hover,
.lhs-button:focus-visible {
    background: #d9f2ff;
    color: #09263f !important;
    transform: translateY(-2px);
}

.lhs-text-dark .lhs-button,
.lhs-text-dark .lhs-button:visited {
    background: #123a60;
    color: #fff !important;
    border-color: #123a60;
}

.lhs-text-dark .lhs-button:hover {
    background: #21669e;
}

/* FLECHAS DE NAVEGACIÓN */
.lhs-arrow {
    appearance: none;
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    width: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 50%;
    background: rgba(3,17,34,.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    font-family: Arial,sans-serif;
    line-height: 1;
}

.lhs-arrow span {
    font-size: 38px;
    line-height: 30px;
    font-weight: 300;
    margin-top: -4px;
}

.lhs-arrow:hover,
.lhs-arrow:focus-visible {
    background: rgba(3,17,34,.72);
    color: #fff;
    transform: translateY(-50%) scale(1.06);
}

.lhs-arrow-prev { left: 15px; }
.lhs-arrow-next { right: 15px; }

/* INDICADORES DE DIAPOSITIVAS */
.lhs-dots {
    position: absolute;
    z-index: 4;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 100px;
    background: rgba(0,12,25,.12);
}

.lhs-dot {
    appearance: none;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(255,255,255,.52) !important;
    width: 9px;
    height: 9px;
    border-radius: 20px;
    cursor: pointer;
    transition: width .25s, background .25s;
}

.lhs-dot.is-active {
    width: 30px;
    background: #fff !important;
}

.lhs-hero :focus-visible {
    outline: 3px solid #81d2ff;
    outline-offset: 4px;
}

.lhs-empty {
    background: #f3f6fa;
    border-left: 4px solid #3273aa;
    padding: 16px 20px;
    color: #243b53;
}

/* RESPONSIVE: TELÉFONOS Y TABLETAS PEQUEÑAS */
@media (max-width: 767px) {

    .lhs-hero {
        height: auto;
        min-height: max(470px,var(--lhs-mobile-height,430px));
    }

    .lhs-slides {
        min-height: max(470px,var(--lhs-mobile-height,430px));
    }

    .lhs-content {
        padding: 48px 36px 96px;
    }

    .lhs-content.lhs-align-center {
        padding: 48px 36px 96px;
    }

    .lhs-heading {
        font-size: clamp(28px,8vw,43px) !important;
        line-height: 1.14 !important;
        letter-spacing: -.02em !important;
    }

    .lhs-description {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    .lhs-eyebrow {
        font-size: 11px;
        margin-bottom: 13px;
    }

    .lhs-shade {
        background: linear-gradient(
            90deg,
            rgba(0,12,29,calc(var(--lhs-overlay,.5) + .18)),
            rgba(0,12,29,calc(var(--lhs-overlay,.5) + .08))
        );
    }

    .lhs-arrow {
        width: 32px;
        height: 32px;
        top: auto;
        bottom: 21px;
        transform: none;
    }

    .lhs-arrow:hover,
    .lhs-arrow:focus-visible {
        transform: none;
    }

    .lhs-arrow span {
        font-size: 29px;
        margin-top: -3px;
    }

    .lhs-arrow-prev { left: 16px; }
    .lhs-arrow-next { right: 16px; }

    .lhs-dots { bottom: 20px; }

    .lhs-button {
        padding: 12px 18px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* TELÉFONOS MUY ESTRECHOS */
@media (max-width: 360px) {

    .lhs-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .lhs-content.lhs-align-center {
        padding-left: 24px;
        padding-right: 24px;
    }

    .lhs-heading {
        font-size: 28px !important;
    }

    .lhs-dots {
        bottom: 18px;
    }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
    .lhs-slide,
    .lhs-button,
    .lhs-arrow,
    .lhs-dot {
        transition: none !important;
    }
}
