
/* ==========================================================
   Vidrio Artesanía · ajustes sobre Story + galería dinámica
   ========================================================== */

.va-kicker,
.va-section-number {
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    opacity: 0.55;
}

.va-section-number {
    font-weight: 600;
}

.va-work-section {
    overflow: hidden;
    padding-bottom: 2rem;
}

.va-gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 2rem 0 0;
}

.va-gallery-filters .button {
    margin: 0;
}

.va-gallery-filters .va-filter.is-active {
    box-shadow: inset 0 0 0 2px #000;
}

.va-carousel-shell {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) 4rem;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem 0;
}

.va-carousel {
    min-height: 31rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    overflow: hidden;
    perspective: 1200px;
}

.va-slide {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex: 0 0 min(62vw, 780px);
    aspect-ratio: 16 / 10;
    transition:
        transform 450ms cubic-bezier(.2,.75,.25,1),
        opacity 450ms ease,
        filter 450ms ease;
}

.va-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 0.35rem;
    background: #f5f5f5;
    box-shadow: 0 1.5rem 4rem rgba(0,0,0,.20);
}

.va-slide.va-side {
    flex-basis: min(19vw, 240px);
    opacity: 0.42;
    filter: saturate(.65);
    transform: scale(.78);
}

.va-slide.va-side:hover {
    opacity: 0.65;
}

.va-arrow,
.va-close,
.va-lb-prev,
.va-lb-next {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.va-arrow {
    width: 4rem;
    height: 4rem;
    font-size: 2.5rem;
    line-height: 1;
    opacity: 0.55;
    transition: opacity .2s ease, transform .2s ease;
}

.va-arrow:hover {
    opacity: 1;
    transform: scale(1.08);
}

.va-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2rem;
    padding: 1rem 1rem 2rem;
}

.va-dot {
    appearance: none;
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #bbb;
    cursor: pointer;
}

.va-dot.is-active {
    background: #333;
}

/* Lightbox */
.va-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) 4rem;
    align-items: center;
    padding: 2rem;
    background: rgba(0,0,0,.94);
}

.va-lightbox[hidden] {
    display: none;
}

.va-lightbox figure {
    margin: 0;
    text-align: center;
}

.va-lightbox img {
    max-width: min(88vw, 1500px);
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 1.5rem 5rem rgba(0,0,0,.45);
}

.va-lightbox figcaption {
    max-width: 900px;
    margin: 1rem auto 0;
    color: #fff;
}

.va-lightbox figcaption h2 {
    margin-bottom: .4rem;
    color: #fff;
}

.va-lightbox figcaption p {
    margin: 0;
    opacity: .72;
}

.va-close {
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    color: #fff;
    font-size: 2.4rem;
    z-index: 2;
}

.va-lb-prev,
.va-lb-next {
    color: #fff;
    font-size: 2.8rem;
    opacity: .65;
}

.va-lb-prev:hover,
.va-lb-next:hover,
.va-close:hover {
    opacity: 1;
}

/* Mensajes de galería */
.va-gallery-message {
    width: 100%;
    text-align: center;
    opacity: .65;
}

/* Móvil */
@media screen and (max-width: 736px) {
    .va-carousel-shell {
        grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
        gap: .35rem;
        padding: 1rem .5rem 0;
    }

    .va-carousel {
        min-height: 22rem;
        gap: 0;
    }

    .va-slide {
        flex-basis: 100%;
        aspect-ratio: 4 / 3;
    }

    .va-slide.va-side {
        display: none;
    }

    .va-arrow {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2rem;
    }

    .va-lightbox {
        grid-template-columns: 2.5rem minmax(0,1fr) 2.5rem;
        padding: 1rem .5rem;
    }

    .va-lightbox img {
        max-width: 100%;
        max-height: 72vh;
    }

    .va-gallery-filters {
        padding: 0 1rem;
    }
}


/* ==========================================================
   Correcciones carrusel v4
   ========================================================== */

.va-carousel-shell {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;
}

.va-carousel {
    min-width: 0;
}

.va-arrow,
.va-lb-prev,
.va-lb-next,
.va-close {
    min-width: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
}

.va-arrow::before,
.va-arrow::after,
.va-lb-prev::before,
.va-lb-prev::after,
.va-lb-next::before,
.va-lb-next::after,
.va-close::before,
.va-close::after {
    display: none !important;
}

.va-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 3.5rem !important;
    max-width: 3.5rem;
    height: 3.5rem !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    overflow: hidden;
}

.va-slide {
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 0.35rem;
}

.va-slide img {
    object-fit: contain !important;
}

/* Las laterales siguen siendo más pequeñas pero muestran la imagen completa. */
.va-slide.va-side img {
    object-fit: contain !important;
}

@media screen and (max-width: 736px) {
    .va-carousel-shell {
        overflow: hidden;
    }

    .va-arrow {
        width: 2.4rem !important;
        max-width: 2.4rem;
        height: 2.4rem !important;
    }
}


/* ==========================================================
   AJUSTE CARRUSEL v5
   ========================================================== */

/*
 * Las fotos del carrusel se hacen más grandes.
 * Seguimos usando object-fit: contain para NO recortar la fotografía.
 */
.va-carousel {
    min-height: 42rem;
}

.va-slide {
    flex-basis: min(72vw, 1050px);
    aspect-ratio: 16 / 10;
}

.va-slide.va-side {
    flex-basis: min(24vw, 330px);
    transform: scale(.88);
}

/*
 * LIGHTBOX: mantener siempre visibles < > y X.
 *
 * IMPORTANTE:
 * Si más adelante queremos VOLVER ATRÁS y ocultar los botones,
 * este es el bloque que hay que eliminar/comentar.
 */
.va-lightbox .va-close,
.va-lightbox .va-lb-prev,
.va-lightbox .va-lb-next {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10002 !important;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

.va-lightbox .va-close {
    position: fixed !important;
    top: 1rem !important;
    right: 1.25rem !important;
    width: 3.25rem !important;
    height: 3.25rem !important;
}

.va-lightbox .va-lb-prev,
.va-lightbox .va-lb-next {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3.5rem !important;
    height: 5rem !important;
}

.va-lightbox .va-lb-prev {
    left: 1rem !important;
}

.va-lightbox .va-lb-next {
    right: 1rem !important;
}

@media screen and (max-width: 736px) {
    .va-carousel {
        min-height: 27rem;
    }

    .va-slide {
        flex-basis: 100%;
        aspect-ratio: 4 / 3;
    }

    .va-lightbox .va-lb-prev {
        left: .25rem !important;
    }

    .va-lightbox .va-lb-next {
        right: .25rem !important;
    }

    .va-lightbox .va-close {
        top: .5rem !important;
        right: .5rem !important;
    }
}


/* ==========================================================
   AJUSTE CARRUSEL v6 · RESPETAR PROPORCIÓN REAL DE LA FOTO
   ========================================================== */

/*
 * IMPORTANTE:
 * En v5 la caja de cada foto tenía una proporción fija 16:10.
 * Con object-fit: contain las fotos verticales quedaban diminutas.
 *
 * Desde v6 JavaScript pasa a cada .va-slide la proporción REAL
 * de la imagen mediante --va-image-ratio.
 *
 * Si alguna vez queremos volver al sistema anterior, basta con
 * comentar este bloque y restaurar el aspect-ratio fijo.
 */

.va-carousel {
    min-height: min(72vh, 720px);
    height: min(72vh, 720px);
    padding: 1.5rem 0;
}

.va-slide {
    flex: 0 0 auto !important;
    width: auto !important;
    height: min(64vh, 640px) !important;
    max-width: min(72vw, 1050px);
    aspect-ratio: var(--va-image-ratio, 16 / 10) !important;
    background: transparent !important;
}

.va-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: transparent !important;
}

/*
 * Las laterales conservan exactamente la proporción de su foto,
 * pero son físicamente más pequeñas que la imagen central.
 */
.va-slide.va-side {
    flex-basis: auto !important;
    width: auto !important;
    height: min(38vh, 380px) !important;
    max-width: min(25vw, 360px);
    transform: none !important;
    opacity: .5;
}

@media screen and (max-width: 736px) {
    .va-carousel {
        min-height: 62vh;
        height: 62vh;
        padding: .75rem 0;
    }

    .va-slide {
        height: min(56vh, 520px) !important;
        max-width: calc(100vw - 7rem);
    }

    .va-slide.va-side {
        display: none;
    }
}


/* ==========================================================
   FIX LIGHTBOX v7 · CENTRADO DEL FIGURE
   ========================================================== */

/*
 * Al fijar las flechas < > con position: fixed, dejaron de ocupar
 * sus columnas del grid. El <figure> pasó entonces a la primera
 * columna estrecha del lightbox.
 *
 * ESTE BLOQUE fuerza al figure a ocupar todo el ancho disponible
 * y centra imagen + textos.
 *
 * Si en el futuro se vuelve al sistema anterior de flechas dentro
 * del grid, revisar/comentar este bloque.
 */
.va-lightbox figure {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center !important;
}

.va-lightbox figure img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 9rem) !important;
    max-height: 78vh !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

.va-lightbox figcaption {
    width: min(900px, calc(100vw - 4rem)) !important;
    max-width: 900px !important;
    margin: 1rem auto 0 !important;
    text-align: center !important;
}

.va-lightbox figcaption h2,
.va-lightbox figcaption p {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

@media screen and (max-width: 736px) {
    .va-lightbox figure img {
        max-width: calc(100vw - 3.5rem) !important;
        max-height: 76vh !important;
    }

    .va-lightbox figcaption {
        width: calc(100vw - 2rem) !important;
    }
}


/* ==========================================================
   FIX LIGHTBOX v8 · FLEX REAL, SIN GRID
   ========================================================== */

/*
 * PROBLEMA:
 * Story + los ajustes anteriores seguían condicionando el layout
 * del lightbox mediante grid. Eso provocaba desplazamientos laterales
 * y hacía que el texto no aprovechase todo el ancho disponible.
 *
 * SOLUCIÓN:
 * El lightbox deja de usar grid y pasa a ser un contenedor FLEX
 * centrado. Las flechas y la X permanecen con position: fixed,
 * por lo que no afectan al espacio ocupado por imagen y textos.
 *
 * SI QUEREMOS VOLVER ATRÁS:
 * comentar/eliminar TODO este bloque v8.
 */

.va-lightbox {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem 5rem !important;
}

.va-lightbox[hidden] {
    display: none !important;
}

.va-lightbox figure {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;

    /* Anula completamente cualquier resto de grid */
    grid-column: auto !important;
    grid-row: auto !important;
}

.va-lightbox figure img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 76vh !important;

    margin: 0 auto !important;

    object-fit: contain !important;
    object-position: center center !important;
}

.va-lightbox figcaption {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 1.25rem 0 0 !important;
    padding: 0 1rem !important;

    text-align: center !important;
}

.va-lightbox figcaption h2,
.va-lightbox figcaption p {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    text-align: center !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.va-lightbox figcaption h2 {
    margin-top: 0 !important;
    margin-bottom: .5rem !important;
}

.va-lightbox figcaption p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media screen and (max-width: 736px) {
    .va-lightbox {
        padding: 1rem 3rem !important;
    }

    .va-lightbox figure img {
        max-height: 72vh !important;
    }

    .va-lightbox figcaption {
        padding: 0 !important;
    }
}


/* ==========================================================
   CARRUSEL v9 · 3 IMÁGENES O MENOS
   ========================================================== */

/*
 * Con tres imágenes o menos todas están ya visibles.
 * Las flechas se mantienen en su sitio para no alterar el diseño,
 * pero quedan desactivadas y no responden al clic.
 *
 * Si queremos volver al comportamiento anterior:
 * eliminar/comentar este bloque y la condición `items.length <= 3`
 * de la función move() en vidrioartesania-gallery.js.
 */
.va-arrow.is-disabled,
.va-arrow:disabled {
    opacity: .18 !important;
    cursor: default !important;
    pointer-events: none !important;
    transform: none !important;
}


/* ==========================================================
   CARRUSEL v10 · TRANSICIÓN AL CAMBIAR DE IMAGEN
   ========================================================== */

/*
 * Al pulsar < o >:
 * 1. el grupo visible se desplaza y pierde opacidad;
 * 2. se renderizan las nuevas posiciones;
 * 3. el grupo entra suavemente desde el lado contrario.
 *
 * Si queremos VOLVER al cambio instantáneo:
 * - comentar/eliminar este bloque CSS
 * - restaurar la función move() indicada en el comentario JS.
 */

.va-carousel {
    transition:
        transform 220ms ease,
        opacity 220ms ease;
    will-change: transform, opacity;
}

.va-carousel.is-animating {
    pointer-events: none;
}

.va-carousel.move-left {
    transform: translateX(-3.5rem);
    opacity: 0;
}

.va-carousel.move-right {
    transform: translateX(3.5rem);
    opacity: 0;
}

/* Estado inicial de entrada */
.va-carousel.enter-right {
    transform: translateX(3.5rem);
    opacity: 0;
    transition: none !important;
}

.va-carousel.enter-left {
    transform: translateX(-3.5rem);
    opacity: 0;
    transition: none !important;
}

/*
 * Los propios slides siguen conservando sus transiciones de tamaño/opacidad.
 * Esto ayuda a que la imagen central y las laterales intercambien posición
 * sin sensación de salto brusco.
 */
.va-slide {
    transition:
        transform 360ms cubic-bezier(.2,.75,.25,1),
        opacity 360ms ease,
        filter 360ms ease,
        height 360ms ease,
        max-width 360ms ease !important;
}

@media (prefers-reduced-motion: reduce) {
    .va-carousel,
    .va-slide {
        transition: none !important;
    }
}


/* ==========================================================
   CARRUSEL v12 · ANIMACIÓN TIPO DESPLAZAMIENTO
   ========================================================== */

/*
 * Esta versión parte de la v10 estable.
 * La animación real se hace desde JavaScript con Web Animations API.
 *
 * Estos estilos ANULAN únicamente el fundido/desplazamiento global de v10.
 * Si queremos volver atrás, eliminar este bloque y restaurar move() de v10.
 */

.va-carousel.move-left,
.va-carousel.move-right,
.va-carousel.enter-left,
.va-carousel.enter-right {
    transform: none !important;
    opacity: 1 !important;
}

.va-carousel {
    transform: none !important;
    opacity: 1 !important;
}

/*
 * Mientras se anima, evitamos dobles clics en las imágenes.
 * Las flechas ya quedan bloqueadas desde JS mediante data-animating.
 */
.va-carousel[data-animating="1"] .va-slide {
    pointer-events: none;
}


/* ==========================================================
   CARRUSEL v13 · MOVIMIENTO CONTINUO TIPO HELIOS
   ========================================================== */

/*
 * IMPORTANTE:
 * Este bloque está al FINAL del CSS y sustituye visualmente
 * las transiciones v10/v12 anteriores.
 *
 * No hay fundido entre un render y otro.
 * Todas las fotos permanecen en el DOM y viajan físicamente:
 *
 * hidden-left -> left -> center -> right -> hidden-right
 *
 * Si más adelante se quiere volver atrás, comentar/eliminar
 * TODO este bloque v13 y restaurar el JS anterior.
 */

.va-carousel {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;

    width: 100% !important;
    height: min(72vh, 720px) !important;
    min-height: min(72vh, 720px) !important;

    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

/* Anula estados heredados de v10/v12 */
.va-carousel.move-left,
.va-carousel.move-right,
.va-carousel.enter-left,
.va-carousel.enter-right,
.va-carousel.is-animating {
    transform: none !important;
    opacity: 1 !important;
}

/*
 * Cada slide está centrado geométricamente en el carrusel.
 * Las clases de posición modifican únicamente translateX + scale.
 */
.va-carousel .va-track-slide {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    display: block !important;

    width: auto !important;
    height: min(62vh, 620px) !important;
    max-width: min(68vw, 1000px) !important;

    margin: 0 !important;
    padding: 0 !important;

    aspect-ratio: var(--va-image-ratio, 16 / 10) !important;

    background: transparent !important;
    border: 0 !important;

    transform-origin: center center !important;

    transition:
        transform 650ms cubic-bezier(.22,.78,.22,1),
        opacity 500ms ease,
        filter 500ms ease !important;

    will-change: transform, opacity, filter;
}

.va-carousel .va-track-slide img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;

    background: transparent !important;
}

/* Central */
.va-carousel .va-track-slide.va-pos-center {
    transform:
        translate(-50%, -50%)
        translateX(0)
        scale(1) !important;

    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
}

/* Lateral izquierda */
.va-carousel .va-track-slide.va-pos-left {
    transform:
        translate(-50%, -50%)
        translateX(-34vw)
        scale(.62) !important;

    opacity: .46 !important;
    filter: saturate(.72) !important;
    pointer-events: auto !important;
}

/* Lateral derecha */
.va-carousel .va-track-slide.va-pos-right {
    transform:
        translate(-50%, -50%)
        translateX(34vw)
        scale(.62) !important;

    opacity: .46 !important;
    filter: saturate(.72) !important;
    pointer-events: auto !important;
}

/* En espera fuera de pantalla */
.va-carousel .va-track-slide.va-pos-hidden-left {
    transform:
        translate(-50%, -50%)
        translateX(-80vw)
        scale(.48) !important;

    opacity: 0 !important;
    filter: saturate(.5) !important;
    pointer-events: none !important;
}

.va-carousel .va-track-slide.va-pos-hidden-right {
    transform:
        translate(-50%, -50%)
        translateX(80vw)
        scale(.48) !important;

    opacity: 0 !important;
    filter: saturate(.5) !important;
    pointer-events: none !important;
}

/* Primer posicionamiento al cargar: sin animación. */
.va-carousel.va-no-transition .va-track-slide {
    transition: none !important;
}

/*
 * Con 3 imágenes o menos no se mueve el carrusel.
 * Dejamos las flechas atenuadas, como ya habíamos acordado.
 */
.va-arrow.is-disabled,
.va-arrow:disabled {
    opacity: .18 !important;
    cursor: default !important;
    pointer-events: none !important;
}

@media screen and (max-width: 1100px) {
    .va-carousel .va-track-slide.va-pos-left {
        transform:
            translate(-50%, -50%)
            translateX(-31vw)
            scale(.56) !important;
    }

    .va-carousel .va-track-slide.va-pos-right {
        transform:
            translate(-50%, -50%)
            translateX(31vw)
            scale(.56) !important;
    }
}

@media screen and (max-width: 736px) {
    .va-carousel {
        height: 62vh !important;
        min-height: 62vh !important;
    }

    .va-carousel .va-track-slide {
        height: min(55vh, 520px) !important;
        max-width: calc(100vw - 6rem) !important;
    }

    /* En móvil: solo la central visible, pero sigue animando. */
    .va-carousel .va-track-slide.va-pos-left {
        transform:
            translate(-50%, -50%)
            translateX(-105vw)
            scale(.82) !important;

        opacity: 0 !important;
        pointer-events: none !important;
    }

    .va-carousel .va-track-slide.va-pos-right {
        transform:
            translate(-50%, -50%)
            translateX(105vw)
            scale(.82) !important;

        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .va-carousel .va-track-slide {
        transition: none !important;
    }
}


/* ==========================================================
   CARRUSEL v14 · MOVIMIENTO LENTO TIPO NICEPAGE
   ========================================================== */

/*
 * Objetivo:
 * Menos "cover flow" y más sensación de TIRA FOTOGRÁFICA que se
 * desplaza horizontalmente.
 *
 * La animación dura 1100ms.
 * Si queremos hacerla más rápida/lenta:
 * cambiar 1100ms en este bloque y 1150ms en move() del JS.
 */

.va-carousel .va-track-slide {
    transition:
        transform 1100ms cubic-bezier(.25,.72,.25,1),
        opacity 900ms ease,
        filter 900ms ease !important;
}

/*
 * Reducimos la diferencia de tamaño entre la central y las laterales.
 * Así parece que las fotos se deslizan por una misma cinta.
 */
.va-carousel .va-track-slide.va-pos-center {
    transform:
        translate(-50%, -50%)
        translateX(0)
        scale(1) !important;

    opacity: 1 !important;
}

.va-carousel .va-track-slide.va-pos-left {
    transform:
        translate(-50%, -50%)
        translateX(-31vw)
        scale(.78) !important;

    opacity: .68 !important;
    filter: saturate(.82) !important;
}

.va-carousel .va-track-slide.va-pos-right {
    transform:
        translate(-50%, -50%)
        translateX(31vw)
        scale(.78) !important;

    opacity: .68 !important;
    filter: saturate(.82) !important;
}

/*
 * Las siguientes fotos esperan justo fuera de pantalla,
 * no tan lejos como en v13, para que la entrada sea continua.
 */
.va-carousel .va-track-slide.va-pos-hidden-left {
    transform:
        translate(-50%, -50%)
        translateX(-61vw)
        scale(.72) !important;

    opacity: 0 !important;
}

.va-carousel .va-track-slide.va-pos-hidden-right {
    transform:
        translate(-50%, -50%)
        translateX(61vw)
        scale(.72) !important;

    opacity: 0 !important;
}

/*
 * Las fotografías tienen un poco más de presencia horizontal.
 */
.va-carousel .va-track-slide {
    height: min(60vh, 600px) !important;
    max-width: min(62vw, 920px) !important;
}

@media screen and (max-width: 1100px) {
    .va-carousel .va-track-slide.va-pos-left {
        transform:
            translate(-50%, -50%)
            translateX(-29vw)
            scale(.72) !important;
    }

    .va-carousel .va-track-slide.va-pos-right {
        transform:
            translate(-50%, -50%)
            translateX(29vw)
            scale(.72) !important;
    }
}


/* ==========================================================
   CONTACTO · MAPA · FORMULARIO
   ========================================================== */

.va-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.va-contact-card {
    min-width: 0;
}

.va-map {
    width: 100%;
    min-height: 24rem;
    background: #f3f3f3;
    overflow: hidden;
}

.va-map iframe {
    display: block;
    width: 100%;
    height: 24rem;
    border: 0;
}

.va-map-placeholder {
    min-height: 24rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.va-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.va-privacy-check {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
}

.va-text-button,
.va-footer-link {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    box-shadow: none !important;
}

.va-form-status {
    min-height: 1.5em;
    margin-top: 1rem;
}

.va-form-status.is-success {
    font-weight: 600;
}

.va-form-status.is-error {
    font-weight: 600;
}

/* ==========================================================
   COOKIES
   ========================================================== */

.va-modal-open {
    overflow: hidden;
}

.va-consent,
.va-legal-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, .58);
}

.va-consent[hidden],
.va-legal-modal[hidden] {
    display: none !important;
}

.va-consent-box,
.va-legal-box {
    width: min(46rem, 100%);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    padding: 2rem;
    background: #fff;
    color: #222;
    box-shadow: 0 1rem 4rem rgba(0, 0, 0, .25);
}

.va-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.va-cookie-options {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.va-cookie-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.va-consent-more {
    margin: 1.25rem 0 0;
}

/* ==========================================================
   MODAL LEGAL
   ========================================================== */

.va-legal-box {
    position: relative;
    width: min(62rem, 100%);
}

.va-legal-close {
    position: sticky;
    float: right;
    top: 0;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    background: #fff;
    cursor: pointer;
    box-shadow: none !important;
}

.va-legal-content {
    clear: both;
}

.va-legal-content h3 {
    margin-top: 2rem;
}

/* ==========================================================
   RESPONSIVE · CONTACTO / MODALES
   ========================================================== */

@media screen and (max-width: 980px) {
    .va-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 736px) {
    .va-consent,
    .va-legal-modal {
        padding: .75rem;
    }

    .va-consent-box,
    .va-legal-box {
        padding: 1.35rem;
        max-height: calc(100vh - 1.5rem);
    }

    .va-consent-actions {
        flex-direction: column;
    }

    .va-consent-actions .button {
        width: 100%;
    }
}


/* ==========================================================
   LIGHTBOX v15.5 · HOVER AZUL EN CONTROLES
   ========================================================== */

/*
 * En versiones anteriores se forzó `color: #fff !important`
 * para mantener visibles los botones < > X sobre fondo negro.
 * Eso anuló el color azul de hover.
 *
 * Estado normal: blanco.
 * Hover / focus: azul eléctrico.
 *
 * Si algún día queremos volver al blanco permanente,
 * comentar/eliminar este bloque.
 */

.va-lightbox .va-close,
.va-lightbox .va-lb-prev,
.va-lightbox .va-lb-next {
    color: #fff !important;
    transition:
        color 180ms ease,
        text-shadow 180ms ease,
        transform 180ms ease !important;
}

.va-lightbox .va-close:hover,
.va-lightbox .va-close:focus-visible,
.va-lightbox .va-lb-prev:hover,
.va-lightbox .va-lb-prev:focus-visible,
.va-lightbox .va-lb-next:hover,
.va-lightbox .va-lb-next:focus-visible {
    color: #00a8ff !important;
    text-shadow:
        0 0 8px rgba(0, 168, 255, .75),
        0 0 18px rgba(0, 168, 255, .45) !important;
}


/* ==========================================================
   BOTÓN v15.6 · VOLVER ARRIBA
   ========================================================== */

.va-back-to-top {
    position: fixed;
    right: 1.35rem;
    bottom: 1.35rem;
    z-index: 15000;

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

    width: 3rem;
    height: 3rem;
    min-width: 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(255,255,255,.55) !important;
    border-radius: 50% !important;
    background: rgba(20,20,20,.72) !important;
    color: #fff !important;

    font-size: 1.45rem;
    line-height: 1;

    opacity: 0;
    visibility: hidden;
    transform: translateY(.75rem);

    transition:
        opacity 220ms ease,
        visibility 220ms ease,
        transform 220ms ease,
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease !important;

    cursor: pointer;
}

.va-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.va-back-to-top:hover,
.va-back-to-top:focus-visible {
    color: #00a8ff !important;
    border-color: #00a8ff !important;
    box-shadow:
        0 0 8px rgba(0,168,255,.65),
        0 0 18px rgba(0,168,255,.35) !important;
}

@media screen and (max-width: 736px) {
    .va-back-to-top {
        right: .85rem;
        bottom: .85rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* ==========================================================
   v15.11 · OCULTAR VOLVER ARRIBA DURANTE EL ZOOM
   ========================================================== */
body.va-modal-open .va-back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(.75rem) !important;
}


/* ==========================================================
   v15.12 · OCULTAR VOLVER ARRIBA DURANTE EL ZOOM
   ========================================================== */
body.va-lightbox-open .va-back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(.75rem) !important;
}
