.off-canvas-wrapper,
.off-canvas-wrapper-inner {
    height: 100%;
}

.off-canvas-content {
    height: 100%;
    /* Habilita el scroll vertical SÓLO en este div */
    overflow-y: auto;
    /* Para scroll suave en iPhone/iPad */
    -webkit-overflow-scrolling: touch;
    background: none;
}

.contenedorVideoFondo video {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: -1;
}

.parallax {
    background-image: var(--parallax-image);
    min-height: 500px;
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.cover {
    display: grid;
    height: 100%;
    align-items: center;
    position: relative;
}

.hero-content {
    min-height: 100vh;
    display: grid;
    align-items: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.modulo-general {
    background-color: #fff;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding-bottom: 50px;
}

/* .modulo-info {
      text-align: center;
      background-color: #fff;
      min-height: 40vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #000;
      color: #fff;
    } */

.align-middle {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.align-self-middle {
    -ms-flex-item-align: center;
    align-self: center;
}

.item-service {
    color: #fff;
    text-shadow: 2px 2px 2px #000;
}

.item-service img {
    max-width: 120px;
    margin-bottom: 15px;
}

h1,
h2 {
    text-shadow: 2px 2px 2px #000;
}

.subtitulo {
    margin: 60px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.subtitulo h2 {
    font-size: 3.5rem;
    font-weight: bold;
}

.texto-modulo {
    font-size: 1.2rem;
}

footer {
    background-color: #a04411;
    text-align: center;
    width: 100%;
    color: white;
    min-height: 200px;
    position: relative;
}

footer .innerfooter {
    padding: 4em 0 4em 0;
    border-top: solid 1px rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    max-width: 75rem;
    text-align: left;
}

.newfooter {
    cursor: default;
    list-style: none;
    padding-left: 0;
    color: #fff;
    text-decoration: none;
    line-height: 1.5em;
}

.newfooter li {
    display: inline-block;
    padding: 0 0.6em 0 0.6em;
    list-style: none;
    vertical-align: top;
    margin-bottom: 10px;
}

.col_footer {
    max-width: 350px;
    min-width: 150px;
}

.img-perfil-footer {
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border-style: solid;
    border-color: #db8b00;
    border-width: 2px;
}

.icon {
    width: 30px;
    margin: 10px;
}

.contenedor-header-pegajoso {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.modulo-general,
.modulo-info,
.parallax,
.hero-content,
.cover,
.contenedorVideoFondo {
    position: relative;
}

.js-off-canvas-overlay {
    z-index: 101 !important;
}

.off-canvas#my-info {
    z-index: 102 !important;
}

.special-gothic {
    font-family: "Special Gothic Expanded One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.corinthia-regular {
    font-family: "Corinthia", cursive;
    font-weight: 400;
    font-style: normal;
}

.corinthia-bold {
    font-family: "Corinthia", cursive;
    font-weight: 700;
    font-style: normal;
}

h1 {
    font-size: 2.5rem;
}

@media screen and (min-width: 40em) {
    h1 {
        font-size: 4rem;
    }

    .texto-modulo {
        font-size: 1.5rem;
    }
}

@media print,
screen and (max-width: 50em) {
    #header-right {
        display: none;
    }
}

/* --- INICIO: Galería de Miniaturas Homogénea --- */

.thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    /* Para que las cajas pasen a la siguiente línea */
    /* Opcional: Centrar la cuadrícula en su contenedor */
    justify-content: center;
}

.thumbnail-box {
    /* 1. Define el tamaño de la caja (100x100) */
    width: 100px;
    height: 100px;

    /* 2. Oculta lo que se desborde (el recorte) */
    overflow: hidden;

    /* 3. Espaciado */
    margin: 0.25rem;
    /* Aprox 4px */

    /* 4. Estética opcional */
    background-color: #222;
    /* Fondo oscuro mientras carga */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.thumbnail-box .thumbnail-media {
    /* 5. ¡LA MAGIA! (Aplica a <img> y <video>) */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Escala y recorta SIN distorsionar */
    object-position: center;
    /* Centra el recorte */
}

.gslide-description {
    display: none;
}

/* --- FIN: Galería de Miniaturas --- */
/* --- ESTILOS PARA FONDO DE VIDEO/IMAGEN EN CELEBRACIONES --- */

.modulo-info {
    /* Asegura que el contenido esté encima del fondo */
    position: relative;
    overflow: hidden;
    /* Para que el video/imagen no se salga */
    /* min-height: 500px; */
    /* Asegura un mínimo de altura si el contenido es corto 
    display: flex;*/
    /* Para centrar el contenido verticalmente */
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    color: white;
    background-color: #000;
}

/* Contenedor del video */
.video-fondo-celebraciones,
.imagen-fondo-celebraciones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Muy importante para que el video no se desborde */
    z-index: 1;
    /* El video/imagen debe estar detrás del contenido */
}

.video-fondo-celebraciones video {
    min-width: 100%;
    /* Asegura que el video cubra todo el ancho */
    min-height: 100%;
    /* Asegura que el video cubra toda la altura */
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centra el video */
    object-fit: cover;
    /* Recorta el video si es necesario para cubrir el área */
}

/* Overlay oscuro para mejorar la legibilidad del texto sobre el video */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay semitransparente oscuro */
    z-index: 1;
    /* Encima del video, debajo del contenido */
}

/* Estilo para la imagen de fallback si no hay video */
.imagen-fondo-celebraciones {
    background-size: cover;
    /* Cubrir todo el contenedor */
    background-position: center center;
    /* Centrar la imagen */
    background-repeat: no-repeat;
    /* No repetir la imagen */
}

/* Ajustes para el contenido encima del fondo */
.modulo-info .grid-container {
    position: relative;
    z-index: 2;
    /* Asegura que el contenido esté encima del overlay y del video/imagen */
}

/* Si tu texto ya es blanco, puedes omitir esto. Si no, fuerza el color */
.modulo-info h2,
.modulo-info .titulo,
.modulo-info div {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    /* Sombra para mejor legibilidad */
}

.callout {
    color: #fff;
    ;
}

.contenedor_black {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.75);
}

.title-bar-title,
.title-bar-right .menu a,
.off-canvas .menu a {
    font-family: "Urbanist", sans-serif;
    font-weight: 600;
}

.title-bar-right .menu a i,
.off-canvas .menu a i {
    margin-right: 8px;
    /* Separación entre el ícono y el texto */
    color: #db8b00;
    /* Un tono dorado/naranja para los íconos (puedes ajustarlo) */
}

/* ESTILO GALERÍA TIPO MOSAICO VIP */

/* Contenedor principal de la cuadrícula */
.vip-gallery-wrapper .thumbnail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* 3 columnas: la primera ocupa el doble */
    grid-template-rows: 150px 150px;
    /* 2 filas de 250px de alto */
    gap: 8px;
    /* Separación elegante entre fotos */
    border-radius: 16px;
    overflow: hidden;
}

/* Cajas de imagen */
.vip-gallery-wrapper .thumbnail-box {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Imágenes adaptables */
.vip-gallery-wrapper .thumbnail-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Llena el espacio sin deformar la foto */
    transition: transform 0.4s ease;
}

/* Efecto de zoom suave al pasar el mouse */
.vip-gallery-wrapper .thumbnail-box:hover .thumbnail-media {
    transform: scale(1.05);
}

/* LA MAGIA: La primera foto ocupa la mitad izquierda completa */
.vip-gallery-wrapper .thumbnail-box:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Ocultamos las fotos de la 6 en adelante de la vista previa */
/* Seguirán existiendo y se podrán ver al abrir el modal GLightbox */
.vip-gallery-wrapper .thumbnail-box:nth-child(n+6) {
    display: none;
}

/* CAPA DE "VER MÁS FOTOS" EN LA 5TA IMAGEN */
.vip-gallery-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Fondo oscuro semitransparente */
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    pointer-events: none;
    /* Permite que el clic pase a la imagen de abajo */
    transition: background 0.3s ease;
}

.vip-gallery-wrapper .thumbnail-box:hover .vip-gallery-more-overlay {
    background: rgba(212, 175, 55, 0.8);
    /* Se pone dorado al pasar el mouse */
}

.vip-gallery-more-overlay span {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Ocultamos el overlay en móviles porque allí es un slider continuo */
@media (max-width: 768px) {
    .vip-gallery-more-overlay {
        display: none !important;
    }
}

/* RESPONSIVE: En móviles se convierte en un carrusel horizontal táctil */
@media (max-width: 768px) {

    /* Forzamos la cuadrícula de 3 fotos */
    .vip-gallery-wrapper .thumbnail-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        /* 2 columnas */
        grid-template-rows: 200px 120px;
        /* Fila 1 alta, Fila 2 baja */
        gap: 6px;
        border-radius: 12px;
        overflow: hidden;
        padding-bottom: 0;
    }

    /* La primera foto ocupa todo el ancho arriba */
    .vip-gallery-wrapper .thumbnail-box:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        display: block !important;
    }

    /* La segunda y tercera foto se muestran abajo */
    .vip-gallery-wrapper .thumbnail-box:nth-child(2),
    .vip-gallery-wrapper .thumbnail-box:nth-child(3) {
        grid-column: auto;
        grid-row: 2 / 3;
        display: block !important;
    }

    /* Ocultamos de la 4 en adelante en móvil */
    .vip-gallery-wrapper .thumbnail-box:nth-child(n+4) {
        display: none !important;
    }

    /* Ajuste del overlay para que sea visible y centrado en la 3ra foto en móvil */
    .vip-gallery-wrapper .thumbnail-box:nth-child(3) .vip-gallery-more-overlay {
        display: flex !important;
        font-size: 1.6rem;
        pointer-events: none;
    }

    .vip-gallery-wrapper .thumbnail-box:nth-child(3) .vip-gallery-more-overlay span {
        font-size: 0.7rem;
    }
}

.container-btn-derecha {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 1000;
}

.flex-align-middle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nxs-nav-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.btn-nav-vip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #674f00;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
    width: 100%;
}

.btn-nav-vip:hover {
    border-color: #D4AF37;
    background: #000;
    transform: translateX(10px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-nav-vip i {
    font-size: 1.2rem;
    color: #D4AF37;
}

.ios-only {
    display: none;
}

.is-ios .ios-only {
    display: flex;
}

@media (max-width: 768px) {
    .container-btn-derecha {
        right: 5px;
        top: 10px;
    }
}