/**
 * Video Hover Player v2.17
 * Archivo CSS externo optimizado
 */

.thumb_video .e-con-inner .elementor-widget-shortcode{
    position: absolute;
    top: 0;
    width: 100%;
    height: 300px;
    transition: opacity 0.3s ease;
}
.thumb_video .e-con-inner .elementor-shortcode{
    height: 100%;
}
/* Estilos para el reproductor de Vimeo */
.vimeo-player-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    overflow: hidden;
    cursor: pointer;
    opacity: 0; /* Inicialmente invisible */
    transition: opacity 0.3s ease; /* Transición suave para opacidad */
}

.vimeo-player video {
  object-fit: cover;         /* Hace que el video cubra todo el contenedor manteniendo la proporción */
  object-position: center;   /* Centra el video */
  max-height: 300px;
}
@media screen and (max-width: 760px) {
    .vimeo-player video {
        object-fit: cover;         /* Hace que el video cubra todo el contenedor manteniendo la proporción */
        object-position: center;   /* Centra el video */
        max-height: 200px;
    }
}
.thumb_video:hover .titulo .elementor-heading-title{
    color: var(--e-global-color-2b2fe422);
}

/* Contenedor principal */
.vimeo-player.vhp-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Player y video */
.vhp-player {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.vhp-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* CSS para videos elevados */
.vimeo-player video.vhp-elevated {
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
}

/* Estados de visibilidad */
.vhp-hidden {
    opacity: 0;
    pointer-events: none;
}

.vhp-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Video elevado */
.vhp-video.vhp-elevated {
    position: fixed !important;
    z-index: 9999 !important;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform-origin: center center;
}

.vhp-video.vhp-animating {
    pointer-events: auto !important;
}

/* Overlay para oscurecer */
.vhp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.vhp-overlay.vhp-active {
    opacity: 1;
    pointer-events: auto;
}

.vhp-overlay.vhp-redirect-active {
    opacity: 1;
    pointer-events: auto;
    transition: none;
}

/* Ocultar elementos del grid */
.jet-listing-grid__item.vhp-item-hidden {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

/* Clase para ocultar elementos durante redirección */
.vhp-body-redirecting * {
    visibility: hidden !important;
}

.vhp-body-redirecting .vhp-overlay.vhp-redirect-active {
    visibility: visible !important;
}

/* Preloader centrado */
.vhp-preloader {
    position: fixed;
    z-index: 10000;
    width: 40px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.1s ease;
    pointer-events: none;
    left: 50% !important;
    top: 50% !important;
    transform: translateX(-50%);
}

.vhp-preloader.vhp-preloader-active {
    opacity:0 !important;
}

.vhp-body-redirecting .vhp-preloader.vhp-preloader-active {
    visibility: visible !important;
    opacity: 1;
}

/* Spinner rotativo */
.vhp-preloader-spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: vhp-spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes vhp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile styles */
@media (max-width: 768px) {
    .vimeo-player.vhp-container {
        min-height: 44px;
    }
    
    .vhp-video.vhp-elevated {
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        border-radius: 6px;
    }
    
    .vhp-preloader {
        width: 32px;
        height: 32px;
    }
    
    .vhp-preloader-spinner {
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .vhp-video.vhp-elevated {
        box-shadow: 0 5px 20px rgba(0,0,0,0.4);
        border-radius: 4px;
    }
    
    .vhp-preloader {
        width: 28px;
        height: 28px;
    }
}