/* Base Gallery Styles */
.dicm-gallery {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Gallery Item Base Styles */
.dicm-gallery .dicm-gallery-item {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.dicm-gallery .dicm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block; /* Evita espacios en blanco debajo de las imágenes */
    box-sizing: border-box;
}

/* Grid Layout */
.dicm-gallery.dicm-grid-layout {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
    gap: var(--gap, 15px);
    max-width: 100%;
}

.dicm-gallery.dicm-grid-layout .dicm-gallery-item {
    height: var(--image-height, 300px);
    width: 100%;
}

/* Masonry Layout */
.dicm-gallery.dicm-masonry-layout {
    column-count: var(--columns, 3);
    column-gap: var(--gap, 15px);
    width: 100%;
    display: block;
}

.dicm-gallery.dicm-masonry-layout .dicm-gallery-item {
    width: 100%;
    margin-bottom: var(--gap, 15px);
    break-inside: avoid;
    display: block;
}

.dicm-gallery.dicm-masonry-layout .dicm-gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Justified Layout */
.dicm-gallery.dicm-justified-layout {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap, 15px);
    width: 100%;
    align-items: stretch;
}

.dicm-gallery.dicm-justified-layout .dicm-gallery-item {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.dicm-gallery.dicm-justified-layout .dicm-gallery-item img {
    width: 100%;
    height: var(--image-height, 300px);
    object-fit: cover;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 980px) {
    /* Garantizar que se apliquen las variables de tablet */
    .dicm-gallery.dicm-grid-layout {
        grid-template-columns: repeat(var(--columns-tablet, 2), minmax(0, 1fr));
        gap: var(--gap-tablet, 12px);
    }
    
    .dicm-gallery.dicm-grid-layout .dicm-gallery-item {
        height: var(--image-height-tablet, 250px);
    }

    .dicm-gallery.dicm-masonry-layout {
        column-count: var(--columns-tablet, 2);
        column-gap: var(--gap-tablet, 12px);
    }
    
    .dicm-gallery.dicm-justified-layout .dicm-gallery-item img {
        height: var(--image-height-tablet, 250px);
    }
    
    .dicm-gallery.dicm-justified-layout {
        gap: var(--gap-tablet, 12px);
    }
}

@media (max-width: 767px) {
    /* Garantizar que se apliquen las variables de móvil */
    .dicm-gallery.dicm-grid-layout {
        grid-template-columns: repeat(var(--columns-phone, 1), minmax(0, 1fr));
        gap: var(--gap-phone, 10px);
    }

    .dicm-gallery.dicm-grid-layout .dicm-gallery-item {
        height: var(--image-height-phone, 200px);
    }

    .dicm-gallery.dicm-masonry-layout {
        column-count: var(--columns-phone, 1);
        column-gap: var(--gap-phone, 10px);
    }
    
    .dicm-gallery.dicm-justified-layout .dicm-gallery-item {
        max-width: 100%;
    }
    
    .dicm-gallery.dicm-justified-layout .dicm-gallery-item img {
        height: var(--image-height-phone, 200px);
    }
    
    .dicm-gallery.dicm-justified-layout {
        gap: var(--gap-phone, 10px);
    }
}

/* Empty State */
.dicm-gallery-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    text-align: center;
    border: 2px dashed #ddd;
    color: #666;
    box-sizing: border-box;
}






/* 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: #ff4757;
    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: #ff4757;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

/* Controls Bottom */
.controls-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Control Buttons */
.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.play-btn svg {
    width: 28px;
    height: 28px;
}

/* Volume Container */
.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-slider {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    appearance: none;
    cursor: pointer;
    outline: none;
    background: linear-gradient(to right, #ff4757 0%, #ff4757 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 100%);
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ff4757;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #ff4757;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Time Display */
.time-display {
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
}

/* 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: 12px;
    }
    
    .controls-left {
        gap: 12px;
    }
    
    .controls-right {
        gap: 8px;
    }
    
    .control-btn {
        padding: 6px;
        width: 36px;
        height: 36px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .play-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .time-display {
        font-size: 12px;
        min-width: 70px;
    }
}

@media (max-width: 767px) {
    .dicm-video-controls {
        padding: 15px 12px 12px;
    }
    
    .controls-bottom {
        gap: 8px;
    }
    
    .controls-left {
        gap: 8px;
    }
    
    .control-btn {
        padding: 4px;
        width: 32px;
        height: 32px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .play-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    .time-display {
        font-size: 11px;
        min-width: 60px;
    }
    
    .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 #ff4757;
    outline-offset: 2px;
}

.volume-slider:focus {
    outline: 2px solid #ff4757;
    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;
}