.nvb-hs {

    --nvb-hs-azul: #1fb5f0;
    --nvb-hs-azul-osc: #0f8fc4;
    --nvb-hs-rosa: #fb67c4;
    --nvb-hs-rosa-osc: #d94c95;
    --nvb-hs-tinta: #152132;
    --nvb-hs-gris: #5b6b7e;
    --nvb-hs-blanco: #ffffff;


    --nvb-hs-intervalo: 20000ms;

    --nvb-hs-alto: clamp(540px, 82vh, 720px);
    --nvb-hs-radio: 0px;

    --nvb-hs-acento: var(--nvb-hs-rosa);

    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--nvb-hs-radio);

    -webkit-font-smoothing: antialiased;
}

@font-face {
    font-family: 'Utendo';
    src: url('../fonts/Utendo.woff2') format('woff2');
    /* O cambia a .ttf según el formato de tu archivo */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --fuente-base: 'Utendo', sans-serif;
}

/* Aplicar la variable globalmente en todo el sistema */
body,
input,
button,
textarea,
select,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--fuente-base);
}

.nvb-hs *,
.nvb-hs *::before,
.nvb-hs *::after {
    box-sizing: border-box;
}

.nvb-hs__track {
    display: grid;
    min-height: var(--nvb-hs-alto);
    touch-action: pan-y;
}

.nvb-hs__slide {
    grid-area: 1 / 1;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(16px, 4vw, 64px);
    padding: clamp(48px, 6vw, 80px) clamp(24px, 7vw, 120px) clamp(84px, 9vw, 110px);
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity .9s ease, visibility 0s linear .9s;
}

.nvb-hs__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: opacity .9s ease, visibility 0s;
}


.nvb-hs__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.nvb-hs__bg::after {

    content: "";
    position: absolute;
    width: 46vmax;
    height: 46vmax;
    left: -16vmax;
    bottom: -30vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%);
}

.nvb-hs__slide[data-nvb-tema="cielo"] {
    --nvb-hs-acento: var(--nvb-hs-rosa);
}

.nvb-hs__slide[data-nvb-tema="cielo"] .nvb-hs__bg {
    background: linear-gradient(118deg, #d4effc 0%, #e9f7fe 50%, #cfeafb 100%);
}

.nvb-hs__slide[data-nvb-tema="rosa"] {
    --nvb-hs-acento: var(--nvb-hs-azul-osc);
}

.nvb-hs__slide[data-nvb-tema="rosa"] .nvb-hs__bg {
    background: linear-gradient(118deg, #fde3f0 0%, #fff2f8 50%, #fadbea 100%);
}

.nvb-hs__slide[data-nvb-tema="mixto"] {
    --nvb-hs-acento: var(--nvb-hs-rosa-osc);
}

.nvb-hs__slide[data-nvb-tema="mixto"] .nvb-hs__bg {
    background: linear-gradient(118deg, #daf2fd 0%, #f4f9ff 48%, #fde7f2 100%);
}


.nvb-hs__content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.nvb-hs__content>* {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}

.nvb-hs__slide.is-active .nvb-hs__content>* {
    opacity: 1;
    transform: none;
}

.nvb-hs__slide.is-active .nvb-hs__content> :nth-child(1) {
    transition-delay: .25s;
}

.nvb-hs__slide.is-active .nvb-hs__content> :nth-child(2) {
    transition-delay: .38s;
}

.nvb-hs__slide.is-active .nvb-hs__content> :nth-child(3) {
    transition-delay: .52s;
}

.nvb-hs__slide.is-active .nvb-hs__content> :nth-child(4) {
    transition-delay: .66s;
}

.nvb-hs__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 4px 14px rgba(21, 33, 50, .06);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nvb-hs__tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nvb-hs-acento);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--nvb-hs-acento) 22%, transparent);
}

.nvb-hs__title {
    margin: 18px 0 14px;
    font-size: clamp(2.1rem, 1.1rem + 3.6vw, 3.9rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.nvb-hs__title em {
    font-style: normal;
    color: var(--nvb-hs-acento);
    background: linear-gradient(transparent 78%, color-mix(in srgb, var(--nvb-hs-acento) 14%, transparent) 78%);
}

.nvb-hs__text {
    margin: 0 0 28px;
    max-width: 440px;
    font-size: clamp(.95rem, .9rem + .3vw, 1.08rem);
    line-height: 1.6;
    color: var(--nvb-hs-gris);
}

.nvb-hs__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nvb-hs__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.nvb-hs__btn--solid {
    background: var(--nvb-hs-tinta);
    color: var(--nvb-hs-blanco);
    box-shadow: 0 10px 24px rgba(21, 33, 50, .22);
}

.nvb-hs__btn--solid:hover {
    background: var(--nvb-hs-azul-osc);
    transform: translateY(-2px);
}

.nvb-hs__btn--ghost {
    border: 1.5px solid var(--nvb-hs-tinta);
    color: var(--nvb-hs-tinta);
    background: rgba(255, 255, 255, .4);
}

.nvb-hs__btn--ghost:hover {
    background: var(--nvb-hs-blanco);
    transform: translateY(-2px);
}

.nvb-hs__btn:focus-visible {
    outline: 3px solid var(--nvb-hs-azul);
    outline-offset: 3px;
}


.nvb-hs__media {
    position: relative;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 1 / 1;
    justify-self: center;
}

.nvb-hs [data-nvb-parallax] {
    translate: 0 var(--nvb-hs-py, 0px);
    rotate: var(--nvb-hs-rot, 0deg);
    will-change: translate;
}

.nvb-hs__circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .0) 0 14px, rgba(255, 255, 255, .35) 14px 15px),
        radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 30px 80px rgba(31, 181, 240, .12);
    transform: scale(.85);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), opacity 1s ease;
}

.nvb-hs__slide.is-active .nvb-hs__circle {
    transform: scale(1);
    opacity: 1;
}

.nvb-hs__img {
    display: block;
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.nvb-hs__img--main {
    position: absolute;
    width: 80%;
    left: 6%;
    top: 6%;
    z-index: 1;
    filter: drop-shadow(0 30px 30px rgba(21, 33, 50, .18));
    opacity: 0;
    transform: translateX(80px) scale(.92);
    transition: opacity .9s ease .15s, transform 1.2s cubic-bezier(.2, .8, .2, 1) .15s;
}

.nvb-hs__slide.is-active .nvb-hs__img--main {
    opacity: 1;
    transform: none;
}

.nvb-hs__mini {
    position: absolute;
    margin: 0;
    right: -2%;
    bottom: 4%;
    z-index: 2;
    width: 34%;
    padding: 10px 10px 12px;
    border-radius: 24px;
    background: var(--nvb-hs-blanco);
    box-shadow: 0 18px 40px rgba(21, 33, 50, .14);
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease .55s, transform 1s cubic-bezier(.2, .8, .2, 1) .55s;
}

.nvb-hs__slide.is-active .nvb-hs__mini {
    opacity: 1;
    transform: none;
}

.nvb-hs__img--alt {
    width: 100%;
    border-radius: 16px;
    background: linear-gradient(160deg, #eef9fe, #fdf1f7);
}

.nvb-hs__mini figcaption {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--nvb-hs-tinta);
}


.nvb-hs__badge {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 30px rgba(21, 33, 50, .1);
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .6s ease, transform .7s cubic-bezier(.3, 1.5, .5, 1);
}

.nvb-hs__badge strong {
    display: block;
    font-weight: 700;
}

.nvb-hs__badge small {
    color: var(--nvb-hs-gris);
    font-size: 11px;
}

.nvb-hs__badge--top {
    left: -6%;
    top: 8%;
}

.nvb-hs__badge--bottom {
    left: 2%;
    bottom: 14%;
}

.nvb-hs__slide.is-active .nvb-hs__badge--top {
    opacity: 1;
    transform: none;
    transition-delay: .8s;
}

.nvb-hs__slide.is-active .nvb-hs__badge--bottom {
    opacity: 1;
    transform: none;
    transition-delay: 1s;
}

.nvb-hs__badge-ico {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 15px;
    background: color-mix(in srgb, var(--nvb-hs-azul) 16%, white);
    color: var(--nvb-hs-azul-osc);
    font-weight: 800;
}

.nvb-hs__badge-ico--alt {
    background: color-mix(in srgb, var(--nvb-hs-rosa) 16%, white);
    color: var(--nvb-hs-rosa-osc);
}

.nvb-hs__slide.is-active .nvb-hs__badge-ico {
    animation: nvb-hs-flotar 4s ease-in-out infinite;
}

@keyframes nvb-hs-flotar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}


.nvb-hs__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--nvb-hs-blanco);
    color: var(--nvb-hs-tinta);
    box-shadow: 0 10px 26px rgba(21, 33, 50, .14);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease, background-color .25s ease, color .25s ease;
}

.nvb-hs__arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nvb-hs__arrow--prev {
    left: clamp(10px, 2vw, 24px);
    transform: translate(-14px, -50%);
}

.nvb-hs__arrow--next {
    right: clamp(10px, 2vw, 24px);
    transform: translate(14px, -50%);
}

.nvb-hs__arrow:hover {
    background: var(--nvb-hs-azul);
    color: var(--nvb-hs-blanco);
}

.nvb-hs__arrow:focus-visible {
    outline: 3px solid var(--nvb-hs-rosa);
    outline-offset: 3px;
}


.nvb-hs--ui .nvb-hs__arrow,
.nvb-hs__arrow:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
}


.nvb-hs--sin-flechas .nvb-hs__arrow {
    display: none !important;
}


@media (hover: none) {
    .nvb-hs__arrow {
        display: none;
    }

    .nvb-hs--flechas-tactil .nvb-hs__arrow {
        display: grid;
        opacity: 1;
        pointer-events: auto;
        width: 42px;
        height: 42px;
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .nvb-hs--flechas-tactil .nvb-hs__arrow--prev {
        left: auto;
        right: 72px;
    }

    .nvb-hs--flechas-tactil .nvb-hs__arrow--next {
        right: 20px;
    }
}

.nvb-hs__controls {
    position: absolute;
    z-index: 5;
    left: clamp(24px, 7vw, 120px);
    bottom: clamp(26px, 4vw, 40px);
    display: flex;
    align-items: center;
    gap: 14px;
}

.nvb-hs__dots {
    display: flex;
    gap: 8px;
}

.nvb-hs__dot {
    position: relative;
    width: 26px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(21, 33, 50, .16);
    overflow: hidden;
    cursor: pointer;
    transition: width .5s cubic-bezier(.2, .8, .2, 1);
}

.nvb-hs__dot::before {
    /* zona táctil más grande */
    content: "";
    position: absolute;
    inset: -12px -2px;
}

.nvb-hs__dot.is-active {
    width: 56px;
}

.nvb-hs__dot-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--nvb-hs-azul), var(--nvb-hs-rosa));
    transform: scaleX(0);
    transform-origin: left;
}

.nvb-hs__dot.is-active .nvb-hs__dot-fill {
    animation: nvb-hs-progreso var(--nvb-hs-intervalo) linear forwards;
}

.nvb-hs--pausado .nvb-hs__dot.is-active .nvb-hs__dot-fill,
.nvb-hs--detenido .nvb-hs__dot.is-active .nvb-hs__dot-fill {
    animation-play-state: paused;
}

.nvb-hs__dot:focus-visible {
    outline: 2px solid var(--nvb-hs-azul);
    outline-offset: 4px;
}

@keyframes nvb-hs-progreso {
    to {
        transform: scaleX(1);
    }
}

.nvb-hs__pause {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
    color: var(--nvb-hs-tinta);
    cursor: pointer;
    transition: background-color .2s ease;
}

.nvb-hs__pause:hover {
    background: var(--nvb-hs-blanco);
}

.nvb-hs__pause svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nvb-hs__ico-play {
    display: none;
}

.nvb-hs--detenido .nvb-hs__ico-play {
    display: block;
}

.nvb-hs--detenido .nvb-hs__ico-pause {
    display: none;
}



@media (max-width: 1024px) {
    .nvb-hs__slide {
        grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    }

    .nvb-hs__badge--top {
        left: 0;
    }
}

@media (max-width: 820px) {
    .nvb-hs {
        --nvb-hs-alto: auto;
    }

    .nvb-hs__slide {
        grid-template-columns: 1fr;
        align-content: start;
        gap: 8px;
        padding: 28px 22px 84px;
        text-align: center;
    }

    .nvb-hs__media {
        order: -1;
        max-width: min(380px, 86vw);
    }

    .nvb-hs__content {
        max-width: 560px;
        margin-inline: auto;
    }

    .nvb-hs__text {
        margin-inline: auto;
    }

    .nvb-hs__actions {
        justify-content: center;
    }

    .nvb-hs__title {
        margin: 14px 0 10px;
    }

    .nvb-hs__controls {
        left: 50%;
        transform: translateX(-50%);
        bottom: 26px;
    }

    .nvb-hs__badge--top {
        left: -4%;
        top: 4%;
    }

    .nvb-hs__badge--bottom {
        display: none;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .nvb-hs__slide {
        padding: 20px 16px 76px;
    }

    .nvb-hs__tag {
        font-size: 10.5px;
        padding: 6px 12px;
    }

    .nvb-hs__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nvb-hs__btn {
        justify-content: center;
        padding: 13px 20px;
    }

    .nvb-hs__badge {
        padding: 7px 12px 7px 7px;
        font-size: 12px;
    }

    .nvb-hs__badge-ico {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .nvb-hs__badge small {
        display: none;
    }

    .nvb-hs__mini {
        width: 36%;
        padding: 6px 6px 8px;
        border-radius: 18px;
    }

    .nvb-hs__mini figcaption {
        font-size: 10px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .nvb-hs *,
    .nvb-hs *::before,
    .nvb-hs *::after {
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }

    .nvb-hs__badge-ico {
        animation: none !important;
    }

    .nvb-hs [data-nvb-parallax] {
        translate: none;
        rotate: none;
    }
}

/* Imagen de fondo en cada slide */
.nvb-hs__bg {
    background-image:
        /* velo claro a la izquierda para que el texto se lea */
        linear-gradient(90deg,
            rgba(255, 255, 255, .90) 0%,
            rgba(255, 255, 255, .60) 40%,
            rgba(255, 255, 255, 0) 70%),
        var(--nvb-bg) !important;
    background-size: cover !important;
    background-position: center right !important;
    background-repeat: no-repeat !important;
}

/* Quita los adornos del fondo anterior, si los tiene */
.nvb-hs__bg::before,
.nvb-hs__bg::after {
    display: none !important;
}

/* Oculta el coche, el círculo, la miniatura y las insignias */
.nvb-hs__media {
    display: none !important;
}

/* En el móvil el velo cubre todo, porque el texto ocupa todo el ancho */
@media (max-width: 768px) {
    .nvb-hs__bg {
        background-image:
            linear-gradient(rgba(255, 255, 255, .75), rgba(255, 255, 255, .75)),
            var(--nvb-bg) !important;

    }
}

/* Slider más alto en celular */
@media (max-width: 820px) {
    .nvb-hs {
        --nvb-hs-alto: 78vh;
        /* respaldo para navegadores antiguos */
        --nvb-hs-alto: 78svh;
        /* alto real visible en móvil */
    }

    .nvb-hs__track {
        min-height: var(--nvb-hs-alto);
    }

    .nvb-hs__slide {
        align-content: center;
        /* centra el texto en vertical */
        padding-top: 40px;
        padding-bottom: 96px;
        /* espacio para los puntos y la pausa */
    }


}

@media (max-width: 480px) {
    .nvb-hs {
        --nvb-hs-alto: 82vh;
        --nvb-hs-alto: 82svh;
    }
}

/* En el móvil: imagen propia (si existe) + velo */
@media (max-width: 820px) {
    .nvb-hs__bg {
        background-image:
            linear-gradient(rgba(255, 255, 255, .75), rgba(255, 255, 255, .75)),
            var(--nvb-bg-movil, var(--nvb-bg)) !important;
        background-position: center !important; /* ajusta: center top, 30% center, etc. */
    }
}