header {
    z-index: 30;
}

.main-header__menu-button {
    background: #ffffff9c;
    border-radius: 8px;
    height: 36px;
    width: 36px;
}

.vly-banner {
    width: 100%;
    margin: 0 auto 25px;
}

/* Centrar los slides dentro del carrusel */
.vly-slides {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vly-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Ajustar el tamaño de las imágenes */
.vly-slide img, .vly-slide video {
    max-width: 90%;
    min-width: 90%;
    border-radius: 10px;
    height: auto;
    object-fit: cover;
}

.vly-slide a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Centrar las flechas de navegación */
.vly-banner-arrows {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.glide__arrow {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    pointer-events: all;
}

/* Hacer las flechas más visibles en hover */
.glide__arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.banner-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 75px;
    z-index: 2;
    display: flex;
    pointer-events: none;
    align-items: center;
}

.banner-text-overlay .text-container {
    padding: 20px;
    border-radius: 12px;
    max-width: 100%;
}

/* Estilos base para el texto enriquecido del banner */
.banner-text-overlay .text-container {
    font-family: sans-serif;
    line-height: 1.4;
}

/* Tamaños responsivos para Quill (desktop por defecto) */
.banner-text-overlay .ql-size-huge {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
}

.banner-text-overlay .ql-size-large {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

/* Si se usan elementos normales como <p>, <h1>, etc. */
.banner-text-overlay .text-container p {
    margin: 10px 0;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.banner-text-overlay .text-container h1,
.banner-text-overlay .text-container h2 {
    margin: 10px 0;
    font-weight: bold;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.banner-text-overlay .ql-align-center {
    text-align: center;
}

.banner-text-overlay .ql-align-right {
    text-align: right;
}

.banner-text-overlay .ql-align-left {
    text-align: left;
}

.banner-text-overlay .ql-align-justify {
    text-align: justify;
}

/* Mobile / tablet */
@media (max-width: 1024px) {
    .vly-slide img {
        max-width: 90%;
        min-width: 90%;
        height: 18vh;
    }

    .glide__arrow {
        padding: 3px 10px;
    }

    .banner-text-overlay {
        padding: 20px;
    }

    .banner-text-overlay .text-container {
        padding: 10px;
        line-height: 1.2;
        margin-left: 5px;
        max-width: 85%;
    }

    .banner-text-overlay .ql-size-huge {
        font-size: 28px;
        line-height: 1.15;
    }

    .banner-text-overlay .ql-size-large {
        font-size: 24px;
        line-height: 1.2;
    }

    .banner-text-overlay .text-container p {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
        line-height: 1.2;
        margin: 6px 0;
    }

    .banner-text-overlay .text-container h1,
    .banner-text-overlay .text-container h2 {
        font-size: clamp(1rem, 4.5vw, 1.5rem);
        line-height: 1.1;
        margin: 8px 0;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .vly-banner img {
        height: 50vh;
    }

    .banner-text-overlay .text-container {
        margin-left: 50px;
        line-height: 1.15;
        max-width: 75%;
    }

    .banner-text-overlay .ql-size-huge {
        font-size: 48px;
    }
}

/* Banner expanded */

.banner-layout-expanded {
    margin-top:-108px !important;
}
  
.banner-layout-expanded video, .banner-layout-expanded img {
    max-width: 100% !important;
    border-radius: 0 !important;
    object-fit: cover !important;
}

.banner-layout-expanded .vly-banner-arrows {
    display:none;
}
  
  /* Mobile / tablet */
  @media (max-width: 1024px) {
    .banner-layout-expanded video, .banner-layout-expanded img {
      width: auto !important;
      height: 50vh !important;
    }
  }
  
  /* Desktop */
  @media (min-width: 1024px) {
    .banner-layout-expanded video, .banner-layout-expanded img {
      width: 100% !important;
      height: 75vh;
    }
  
    .banner-layout-expanded .banner-text-overlay{
         left: 4%;
    }
  
   }

/* Banner mosaic */
.banner-layout-mosaic {
    margin: 0 auto 25px;
    max-width: 95%; /* Margen a los costados en desktop */
}

.banner-layout-mosaic .glide__track {
    overflow: visible;
}

.banner-layout-mosaic .vly-slides {
    display: grid;
    grid-template-columns: 75% 25%;
    grid-template-rows: auto auto;
    gap: 10px;
    height: auto;
}

.banner-layout-mosaic .vly-slide {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* Primera imagen - Grande a la izquierda */
.banner-layout-mosaic .vly-slide:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
}

.banner-layout-mosaic .vly-slide:first-child img,
.banner-layout-mosaic .vly-slide:first-child video {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-width: 100%;
    object-fit: cover;
}

/* Segunda y tercera imagen - Pequeñas apiladas a la derecha */
.banner-layout-mosaic .vly-slide:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.banner-layout-mosaic .vly-slide:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.banner-layout-mosaic .vly-slide:nth-child(2) img,
.banner-layout-mosaic .vly-slide:nth-child(2) video,
.banner-layout-mosaic .vly-slide:nth-child(3) img,
.banner-layout-mosaic .vly-slide:nth-child(3) video {
    width: 100%;
    height: 100%;
    min-height: 195px;
    max-width: 100%;
    object-fit: cover;
}

/* Ocultar imágenes después de la tercera */
.banner-layout-mosaic .vly-slide:nth-child(n+4) {
    display: none;
}

/* Ocultar controles de navegación en mosaic */
.banner-layout-mosaic .vly-banner-arrows {
    display: none;
}

/* Ajustar texto overlay para mosaic */
.banner-layout-mosaic .banner-text-overlay {
    padding: 30px;
}

/* Mobile / tablet */
@media (max-width: 1024px) {
    .banner-layout-mosaic {
        max-width: 100%; /* Sin margen en mobile */
    }

    .banner-layout-mosaic .vly-slides {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
    }

    /* Primera imagen ocupa toda la primera fila */
    .banner-layout-mosaic .vly-slide:first-child {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    /* Segunda y tercera imagen en la segunda fila, mitad y mitad */
    .banner-layout-mosaic .vly-slide:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        height: 120px; /* Agregar altura al contenedor */
    }

    .banner-layout-mosaic .vly-slide:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        height: 120px; /* Agregar altura al contenedor */
    }

    .banner-layout-mosaic .vly-slide:first-child img,
    .banner-layout-mosaic .vly-slide:first-child video {
        min-height: 200px;
        height: auto;
    }

    .banner-layout-mosaic .vly-slide:nth-child(2) img,
    .banner-layout-mosaic .vly-slide:nth-child(2) video,
    .banner-layout-mosaic .vly-slide:nth-child(3) img,
    .banner-layout-mosaic .vly-slide:nth-child(3) video {
        height: 100%; /* Cambiar a 100% para que ocupen todo el contenedor */
        width: 100%;
        object-fit: cover;
    }

    .banner-layout-mosaic .banner-text-overlay {
        padding: 15px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .banner-layout-mosaic .vly-slide:first-child img,
    .banner-layout-mosaic .vly-slide:first-child video {
        height: 50vh;
        min-height: 300px;
        max-height: 400px;
    }

    .banner-layout-mosaic .vly-slide:nth-child(2) img,
    .banner-layout-mosaic .vly-slide:nth-child(2) video,
    .banner-layout-mosaic .vly-slide:nth-child(3) img,
    .banner-layout-mosaic .vly-slide:nth-child(3) video {
        height: calc(25vh - 5px); /* La mitad menos el gap */
        min-height: 145px;
        max-height: 195px;
    }
    
    .banner-layout-mosaic .banner-text-overlay .text-container{
        margin-left: -20px !important;
   }
}