


/* Estilos para el módulo de carrusel con clases únicas */

/* Contenedor del carrusel */
.dicm-carousel-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0px;
}

/* Contenedor de la imagen principal */
.dicm-carousel-main-container {
    position: relative;
    margin-bottom: 2.5px;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
}

/* Slider principal */
.dicm-carousel-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.4s ease;
}

/* Slide individual */
.dicm-carousel-slide {
    min-width: 100%;
    height: 100%;
    background: none;
}

/* Imágenes dentro del slide */
.dicm-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center 15%;
}

/* Botones de navegación */
.dicm-carousel-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s;
    padding: 0;
}

.dicm-carousel-nav-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1);
}

.dicm-carousel-nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.dicm-carousel-nav-button svg {
    width: 24px;
    height: 24px;
    fill: #333;
    transition: fill 0.3s;
}

.dicm-carousel-nav-button:hover svg {
    fill: #000;
}

.dicm-carousel-prev {
    left: 10px;
}

.dicm-carousel-next {
    right: 10px;
}

/* Contenedor de miniaturas */
.dicm-carousel-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    padding: 10px 0;
    overflow: hidden;
}

/* Estilo de miniaturas */
.dicm-carousel-thumbnail {
    width: 110px;
    height: 110px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.7;
    transition: all 0.3s;
    transform: scale(1);
    flex-shrink: 0;
}

.dicm-carousel-thumbnail:hover {
    opacity: 1;
    transform: scale(1);
}

.dicm-carousel-thumbnail.active {
    opacity: 1;
    border: 2px solid #837874;
    transform: scale(1);
}

/* Estilos responsivos */
@media (max-width: 980px) {
    .dicm-carousel-thumbnails {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
        padding: 10px;
    }

    .dicm-carousel-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .dicm-carousel-thumbnail {
        min-width: 85px;
        width: 85px;
        height: 85px;
        flex-shrink: 0;
    }

    .dicm-carousel-main-container {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .dicm-carousel-thumbnail {
        min-width: 75px;
        width: 75px;
        height: 75px;
    }

    .dicm-carousel-main-container {
        height: 380px;
    }
}

.et-l--header ul{
    list-style-type: none;
    padding: 0px!important;
    line-height: 0px!important;
}



/* Estilos base para botones duales */
.dicm-dual-button-container {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.dicm-dual-button {
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
    padding: 0.3em 1em;
    line-height: 1.7em;
    border-style: solid;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.dicm-dual-button:hover {
    opacity: 0.85;
}

.dicm-dual-button .button-text {
    display: inline-block;
    vertical-align: middle;
}

.dicm-dual-button .et-pb-icon {
    font-size: 1.3em;
    line-height: 1em;
    vertical-align: middle;
    display: inline-block;
}

.dicm-dual-button.icon-left .et-pb-icon {
    margin-right: 0.3em;
}

.dicm-dual-button.icon-right .et-pb-icon {
    margin-left: 0.3em;
}

/* Estilos específicos para Visual Builder */
.et-fb .dicm-dual-button-container {
    display: flex !important;
    width: 100% !important;
}

.et-fb .dicm-dual-button {
    padding: 0.3em 1em !important;
    line-height: 1.7em !important;
    border-style: solid !important;
    display: inline-block !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.et-fb .dicm-dual-button .button-text {
    display: inline-block !important;
    vertical-align: middle !important;
}

.et-fb .dicm-dual-button .et-pb-icon {
    display: inline-block !important;
    font-size: 1.3em !important;
    line-height: 1em !important;
    vertical-align: middle !important;
}

.et-fb .dicm-dual-button.icon-left .et-pb-icon {
    margin-right: 0.3em !important;
}

.et-fb .dicm-dual-button.icon-right .et-pb-icon {
    margin-left: 0.3em !important;
}


.dicm_enhanced_menu_0_tb_header .dicm-mobile-menu-trigger {
    padding:0!important;
    margin-top:0px!important;
  }



  
  /* Asegurar que el contenedor tiene position: relative */
.dicm-gallery.dicm-slider-layout {
    position: relative !important;
    overflow: hidden !important;
}

/* Contenedor de navegación ocupando todo el slider */
.dicm-gallery .slider-navigation {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

/* Estilos base para los botones de navegación */
.dicm-gallery .slider-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
    z-index: 20 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

/* Posición específica para el botón anterior */
.dicm-gallery .slider-nav-btn.slider-prev {
    left: 10px !important;
}

/* Posición específica para el botón siguiente */
.dicm-gallery .slider-nav-btn.slider-next {
    right: 10px !important;
}

/* Asegurar que los iconos SVG se muestran correctamente */
.dicm-gallery .slider-nav-btn svg {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
}

/* Mejora para interfaces táctiles */
@media (hover: none) {
    .dicm-gallery .slider-nav-btn {
        /* Hacer los botones más grandes en dispositivos táctiles */
        padding: 10px !important;
    }
}

/* Solución para el Visual Builder */
.et-fb .dicm-gallery.dicm-slider-layout .slider-navigation {
    /* Asegurar que los controles son visibles en el Visual Builder */
    display: block !important;
}


/* Agregar estos estilos a tu archivo CSS principal */
.dicm-gallery.dicm-slider-layout {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.dicm-slider-layout .slider-track {
    display: flex;
    align-items: center;
}

.dicm-slider-layout[data-auto-slide="on"] .slider-track {
    animation-name: dicm_scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes dicm_scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}



.dicm-social-container 
{
    margin-left:35px!important;
}



.dmg-prev svg,.dmg-next svg{
       filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3))!important; 
}

.dicm_image_gallery_0 .slider-navigation .slider-nav-btn svg {
         filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3))!important;   
}




/* Video Player Styles - Single Video Mode Only */
.dicm-video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dicm-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.dicm-video-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dicm-video-element {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

/* Play Button Overlay */
.dicm-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999998;
    transition: all 0.3s ease;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.dicm-video-play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.dicm-video-play-button svg {
    width: 40%;
    height: 40%;
    fill: currentColor;
}

/* Custom Controls */
.dicm-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 16px 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999999 !important;
}

.dicm-video-player:hover .dicm-video-controls,
.dicm-video-controls.show {
    opacity: 1;
}

/* Progress Container */
.controls-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.controls-progress:hover .progress-bar::after {
    opacity: 1;
}

/* Controls Bottom - TIEMPO AL LADO DERECHO */
.controls-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* Control Buttons - MÁS COMPACTOS */
.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px; /* Reducido de 8px a 4px */
    border-radius: 6px; /* Reducido de 8px a 6px */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; /* Reducido de 40px a 36px */
    height: 36px; /* Reducido de 40px a 36px */
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05); /* Reducido de 1.1 a 1.05 */
}

.control-btn svg {
    width: 20px; /* Reducido de 24px a 20px */
    height: 20px; /* Reducido de 24px a 20px */
    fill: currentColor;
}

.play-btn {
    width: 40px; /* Botón play ligeramente más grande */
    height: 40px;
}

.play-btn svg {
    width: 24px; /* Mantener el play button más grande */
    height: 24px;
}

/* Volume Container - MÁS COMPACTO */
.volume-container {
    display: flex;
    align-items: center;
    gap: 6px; /* Reducido de 12px a 6px */
}

.volume-slider {
    width: 60px; /* Reducido de 80px a 60px */
    height: 4px; /* Reducido de 6px a 4px */
    border-radius: 2px;
    appearance: none;
    cursor: pointer;
    outline: none;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 100%);
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px; /* Reducido de 16px a 12px */
    height: 12px; /* Reducido de 16px a 12px */
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px; /* Reducido de 16px a 12px */
    height: 12px; /* Reducido de 16px a 12px */
    background: #ffffff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Time Display - AL LADO DERECHO */
.time-display {
    color: white;
    font-size: 13px; /* Reducido de 14px a 13px */
    font-weight: 500;
    white-space: nowrap;
    min-width: 70px; /* Reducido de 80px a 70px */
    text-align: right;
    margin-right: 8px;
}

/* Loading State */
.dicm-video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
}

/* Empty State */
.dicm-video-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f5f5f5;
    color: #666;
    border-radius: 8px;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 980px) {
    .controls-bottom {
        gap: 6px; /* Reducido */
    }
    
    .controls-left {
        gap: 3px; /* Más compacto */
    }
    
    .controls-right {
        gap: 3px; /* Más compacto */
    }
    
    .control-btn {
        padding: 3px; /* Más compacto */
        width: 32px; /* Más pequeño */
        height: 32px; /* Más pequeño */
    }
    
    .control-btn svg {
        width: 18px; /* Más pequeño */
        height: 18px; /* Más pequeño */
    }
    
    .play-btn {
        width: 36px;
        height: 36px;
    }
    
    .play-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .volume-slider {
        width: 50px; /* Más compacto */
    }
    
    .time-display {
        font-size: 12px;
        min-width: 60px; /* Más compacto */
    }
}

@media (max-width: 767px) {
    .dicm-video-controls {
        padding: 15px 12px 12px;
    }
    
    .controls-bottom {
        gap: 4px; /* Muy compacto en móvil */
    }
    
    .controls-left {
        gap: 2px; /* Muy juntos */
    }
    
    .controls-right {
        gap: 2px; /* Muy juntos */
    }
    
    .control-btn {
        padding: 2px;
        width: 28px; /* Más pequeño para móvil */
        height: 28px;
    }
    
    .control-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .play-btn {
        width: 32px;
        height: 32px;
    }
    
    .play-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .volume-slider {
        width: 40px; /* Muy compacto */
    }
    
    .volume-container {
        gap: 4px;
    }
    
    .time-display {
        font-size: 11px;
        min-width: 50px;
    }
    
    .dicm-video-play-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

/* Fullscreen Styles */
.dicm-video-container:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0 !important;
}

.dicm-video-container:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0 !important;
}

.dicm-video-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0 !important;
}

.dicm-video-container:-webkit-full-screen .dicm-video-wrapper,
.dicm-video-container:-webkit-full-screen .dicm-video-player {
    height: 100vh !important;
    border-radius: 0 !important;
    padding-bottom: 0 !important;
    position: static !important;
}

.dicm-video-container:-moz-full-screen .dicm-video-wrapper,
.dicm-video-container:-moz-full-screen .dicm-video-player {
    height: 100vh !important;
    border-radius: 0 !important;
    padding-bottom: 0 !important;
    position: static !important;
}

.dicm-video-container:fullscreen .dicm-video-wrapper,
.dicm-video-container:fullscreen .dicm-video-player {
    height: 100vh !important;
    border-radius: 0 !important;
    padding-bottom: 0 !important;
    position: static !important;
}

/* Ensure controls are always visible in fullscreen */
.dicm-video-container:-webkit-full-screen .dicm-video-controls,
.dicm-video-container:-moz-full-screen .dicm-video-controls,
.dicm-video-container:fullscreen .dicm-video-controls {
    z-index: 2147483647 !important;
    opacity: 1 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)) !important;
}

/* Hide native video controls when custom controls are enabled */
.dicm-video-player video::-webkit-media-controls {
    display: none !important;
}

.dicm-video-player video::-webkit-media-controls-panel {
    display: none !important;
}

.dicm-video-player video::-webkit-media-controls-play-button {
    display: none !important;
}

.dicm-video-player video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Focus States for Accessibility */
.control-btn:focus,
.dicm-video-play-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.volume-slider:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Enhanced hover effects for better UX */
.dicm-video-player:hover .dicm-video-play-button {
    opacity: 1;
}

.dicm-video-play-button.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ensure proper stacking in all contexts */
.dicm-video-container {
    isolation: isolate;
}

.dicm-video-player {
    position: relative;
    z-index: 1;
}

.dicm-video-controls {
    position: absolute;
    z-index: 999999;
}

.dicm-video-play-button {
    position: absolute;
    z-index: 999998;
}

/* Better loading state */
.dicm-video-element[data-loading="true"] {
    opacity: 0.5;
}

/* Improved transitions */
.dicm-video-element {
    transition: opacity 0.3s ease;
}

/* Ensure fullscreen works on all devices */
@supports (width: 100dvw) {
    .dicm-video-container:fullscreen {
        width: 100dvw !important;
        height: 100dvh !important;
    }
}

/* Handle iOS Safari fullscreen quirks */
@media screen and (max-device-width: 768px) {
    .dicm-video-container:-webkit-full-screen {
        width: 100vw !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 2147483647 !important;
    }
}

/* Fix for Chrome fullscreen controls */
.dicm-video-container:-webkit-full-screen .dicm-video-controls {
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.dmg-lb-desctext {
    width: 100% !important;
}


/* Settings Panel Styles */
.settings-panel {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(28, 28, 28, 0.95);
    border-radius: 8px;
    padding: 16px;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000000;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.speed-options,
.quality-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.speed-option,
.quality-option {
    background: none;
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
}

.speed-option:hover,
.quality-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.speed-option.active,
.quality-option.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.speed-option.active::before,
.quality-option.active::before {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #ffffff;
}

/* Arrow indicator for settings panel */
.settings-panel::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(28, 28, 28, 0.95);
}

/* Responsive adjustments for settings panel */
@media (max-width: 980px) {
    .settings-panel {
        min-width: 180px;
        padding: 14px;
    }
    
    .settings-content {
        gap: 14px;
    }
    
    .setting-group label {
        font-size: 13px;
    }
    
    .speed-option,
    .quality-option {
        padding: 7px 10px;
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .settings-panel {
        min-width: 160px;
        padding: 12px;
        right: -10px;
    }
    
    .settings-content {
        gap: 12px;
    }
    
    .setting-group label {
        font-size: 12px;
    }
    
    .speed-option,
    .quality-option {
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* Animation for panel appearance */
.settings-panel {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.2s ease;
    pointer-events: none;
}

.settings-panel[style*="block"] {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Ensure settings panel appears above fullscreen controls */
.dicm-video-container:fullscreen .settings-panel,
.dicm-video-container:-webkit-full-screen .settings-panel,
.dicm-video-container:-moz-full-screen .settings-panel {
    position: fixed !important;
    bottom: 80px !important;
    right: 60px !important;
    z-index: 2147483648 !important;
}