/* 
 *  Owl Carousel - Animate Plugin
 */
.owl2-carousel .animated {
    -webkit-animation-duration: 1000ms;
    animation-duration: 1000ms;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.owl2-carousel .owl2-animated-in {
    z-index: 0;
}

.owl2-carousel .owl2-animated-out {
    z-index: 1;
}

.owl2-carousel .fadeOut {
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut;
}

@-webkit-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* 
 * 	Owl Carousel - Auto Height Plugin
 */
.owl2-height {
    -webkit-transition: height 500ms ease-in-out;
    -moz-transition: height 500ms ease-in-out;
    -ms-transition: height 500ms ease-in-out;
    -o-transition: height 500ms ease-in-out;
    transition: height 500ms ease-in-out;
}

/* 
 *  Core Owl Carousel CSS File
 */
.owl2-carousel {
    /*display: none;*/
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    /* position relative and z-index fix webkit rendering fonts issue */
    position: relative;
    z-index: 1;
}

    .owl2-carousel .owl2-stage {
        position: relative;
        -ms-touch-action: pan-Y;
    }

        .owl2-carousel .owl2-stage:after {
            content: ".";
            display: block;
            clear: both;
            visibility: hidden;
            line-height: 0;
            height: 0;
        }

    .owl2-carousel .owl2-stage-outer {
        position: relative;
        overflow: hidden;
        /* fix for flashing background */
        -webkit-transform: translate3d(0px, 0px, 0px);
        transform: translate3d(0px, 0px, 0px);
        -moz-transform: translate3d(0px, 0px, 0px);
    }

    .owl2-carousel .owl2-controls .owl2-nav .owl2-prev,
    .owl2-carousel .owl2-controls .owl2-nav .owl2-next,
    .owl2-carousel .owl2-controls .owl2-dot {
        cursor: pointer;
        cursor: hand;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .owl2-carousel.owl2-loaded {
        display: block;
    }

    .owl2-carousel.owl2-loading {
        opacity: 0;
        display: block;
    }

    .owl2-carousel.owl2-hidden {
        opacity: 0;
    }

    .owl2-carousel .owl2-refresh .owl2-item {
        /*display: none;*/
    }

    .owl2-carousel .owl2-item {
        position: relative;
        min-height: 1px;
        float: left;
        -webkit-backface-visibility: hidden;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

        .owl2-carousel .owl2-item img {
            display: block;
            -webkit-transform-style: preserve-3d;
        }

    .owl2-carousel.owl2-text-select-on .owl2-item {
        -webkit-user-select: auto;
        -moz-user-select: auto;
        -ms-user-select: auto;
        user-select: auto;
    }

    .owl2-carousel .owl2-grab {
        cursor: move;
        cursor: -webkit-grab;
        cursor: -o-grab;
        cursor: -ms-grab;
        cursor: grab;
    }

    .owl2-carousel.owl2-rtl {
        direction: rtl;
    }

        .owl2-carousel.owl2-rtl .owl2-item {
            float: right;
        }

/* No Js */
.no-js .owl2-carousel {
    display: block;
}

/* 
 * 	Owl Carousel - Lazy Load Plugin
 */
.owl2-carousel .owl2-item .owl2-lazy {
    opacity: 0;
    -webkit-transition: opacity 400ms ease;
    -moz-transition: opacity 400ms ease;
    -ms-transition: opacity 400ms ease;
    -o-transition: opacity 400ms ease;
    transition: opacity 400ms ease;
}

.owl2-carousel .owl2-item img {
    transform-style: preserve-3d;
    width: 100%;
}

/* 
 * 	Owl Carousel - Video Plugin
 */
.owl2-carousel .owl2-video-wrapper {
    position: relative;
    height: 100%;
    background: #000;
}

.owl2-carousel .owl2-video-play-icon {
    position: absolute;
    height: 80px;
    width: 80px;
    left: 50%;
    top: 50%;
    margin-left: -40px;
    margin-top: -40px;
    background: url("owl.video.play.png") no-repeat;
    cursor: pointer;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    -webkit-transition: scale 100ms ease;
    -moz-transition: scale 100ms ease;
    -ms-transition: scale 100ms ease;
    -o-transition: scale 100ms ease;
    transition: scale 100ms ease;
}

    .owl2-carousel .owl2-video-play-icon:hover {
        -webkit-transition: scale(1.3, 1.3);
        -moz-transition: scale(1.3, 1.3);
        -ms-transition: scale(1.3, 1.3);
        -o-transition: scale(1.3, 1.3);
        transition: scale(1.3, 1.3);
    }

.owl2-carousel .owl2-video-playing .owl2-video-tn,
.owl2-carousel .owl2-video-playing .owl2-video-play-icon {
    /*display: none;*/
}

.owl2-carousel .owl2-video-tn {
    opacity: 0;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    -webkit-transition: opacity 400ms ease;
    -moz-transition: opacity 400ms ease;
    -ms-transition: opacity 400ms ease;
    -o-transition: opacity 400ms ease;
    transition: opacity 400ms ease;
}

.owl2-carousel .owl2-video-frame {
    position: relative;
    z-index: 1;
}
/* Estilo básico para la galería */
figure {
    margin: 0;
}

#gallery {
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    position: relative;
    height: 450px; /* Ajusta esta altura según sea necesario */
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%; /* Ajusta la altura al 100% del contenedor principal */
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ajusta la altura al 100% del contenedor principal */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .gallery-item img {
        width: 100%;
        height: 100%; /* Asegura que las imágenes llenen el contenedor */
        object-fit: cover; /* Ajusta la imagen para cubrir el contenedor sin distorsión */
        display: block;
    }

    .gallery-item.active {
        opacity: 1;
    }

/* Navegación de la galería */
.gallery-navigation {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 40px);
    margin: 0 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nav-button {
    background-color: rgba(0,0,0, .3);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

    .nav-button > span {
        font-size: 30px;
    }

    .nav-button:hover {
        background-color: #005f5f;
    }
.encima {
    position: absolute;
    width: 50%;
    top: 90%;
    left: 30%;
    transform: translate(-50%, -50%);
    color: #fff !important;
}



