/* ========================================================
   CARRUSEL MÓDULOS GMASTER (Rediseño Banner Horizontal)
   ======================================================== */

.gmaster_modulos_carousel_section .section_title h2 {
    color: #00c0d3;
    margin-bottom: 40px;
    /* Espacio inferior entre título y carrusel */
}

/* Sobrescribir estilos de la tarjeta */
/* Sobrescribir estilos de la tarjeta */
.gmaster_modulos_carousel_section .gmaster-carousel-container {
    max-width: 1600px;
    width: 85%;
    /* Reducir un poco para dar espacio a los botones laterales */
    padding-left: 0;
    padding-right: 0;
}

/* Establecer contexto de posicionamiento para los botones */
.gmaster-modulos-carousel {
    position: relative !important;
    z-index: 1;
}

/* Ajuste de Botones de Navegación */

.gmaster_modulos_carousel_section .owl-nav .owl-prev {
    position: absolute !important;
    left: -80px !important;
    /* Ajuste visual fijo en px ya que porcentaje falla por altura de contenedor */
    top: 350px !important;
    transform: translateY(-1%) !important;
    transition: all 0.3s ease;
}

.gmaster_modulos_carousel_section .owl-nav .owl-next {
    position: absolute !important;
    right: -80px !important;
    /* Ajuste visual fijo en px ya que porcentaje falla por altura de contenedor */
    top: 350px !important;
    transform: translateY(-1%) !important;
    transition: all 0.3s ease;
}

.gmaster_modulos_carousel_section .owl-nav .owl-prev:hover,
.gmaster_modulos_carousel_section .owl-nav .owl-next:hover {
    background: var(--purple) !important;
    /* Color de marca en hover */
    color: #fff !important;
    /* Asegurar icono blanco */
    transform: translateY(-1%) scale(1.1) !important;
    /* Mantiene la posición vertical y solo escala un poco */
    margin: 0 !important;
    /* Evita que el margin cambie */
    opacity: 1 !important;
}

.gmaster_modulos_carousel_section .modulo-card {
    width: 100%;
    /* Forzar ancho completo */
    max-width: 100%;
    padding: 10px;
    /* Espacio para que no se corten sobras si las hay */
    background: transparent;
}

.gmaster_modulos_carousel_section .modulo-card-inner {
    background-color: #00c0d3;
    /* Color Cyan GMaster */
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    /* Layout Horizontal */
    align-items: center;
    overflow: hidden;
    padding: 30px;
    min-height: 350px;
    /* Altura mínima consistente */
    box-shadow: 0 10px 30px rgba(0, 192, 211, 0.2);
}

/* Imagen a la derecha */
.gmaster_modulos_carousel_section .modulo-image {
    flex: 0 0 55%;
    /* Ocupa el 55% del ancho */
    order: 2;
    /* Mover a la derecha */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.gmaster_modulos_carousel_section .modulo-image img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 10px;
    /* Sombras o estilos adicionales para la imagen si se desea */
}

/* Contenido (Texto) a la izquierda */
.gmaster_modulos_carousel_section .modulo-content {
    flex: 1;
    /* Ocupa el resto del espacio */
    order: 1;
    /* Mover a la izquierda */
    padding-right: 30px;
    /* Espacio entre texto e imagen */
    text-align: left;
    color: #ffffff;
}

/* Tipografía */
.gmaster_modulos_carousel_section .modulo-content h3 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.gmaster_modulos_carousel_section .modulo-content p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Ajustes Responsive */
@media (max-width: 991px) {

    /* Ajustar espaciado del título en móvil */
    .gmaster_modulos_carousel_section .section_title {
        margin-bottom: 20px;
    }

    .gmaster_modulos_carousel_section .section_title h2 {
        margin-bottom: 25px !important;
        /* Menor espacio en móvil */
    }

    /* Ajustar contenedor principal para mejor uso de espacio en móvil */
    .gmaster_modulos_carousel_section .gmaster-carousel-container {
        width: 90% !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .gmaster_modulos_carousel_section .modulo-card {
        padding: 3px !important;
        /* Padding externo mínimo */
        overflow: visible !important;
        position: relative;
        z-index: 1;
    }

    .gmaster_modulos_carousel_section .modulo-card-inner {
        flex-direction: column;
        /* Vuelta a vertical en tablets/móviles */
        padding: 12px 12px 60px 12px !important;
        /* Padding más compacto */
        text-align: center;
        min-height: auto;
        overflow: visible !important;
        position: relative;
        z-index: 1;
    }

    /* Reducir tamaño de imagen en móvil */
    .gmaster_modulos_carousel_section .modulo-image {
        order: 1;
        margin-bottom: 8px;
        flex: 0 0 auto;
        width: 85%;
        /* Imagen más pequeña */
        max-width: 280px;
        /* Limitar tamaño máximo */
    }

    .gmaster_modulos_carousel_section .modulo-content {
        order: 2;
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    }

    /* Reducir tamaño de título en móvil */
    .gmaster_modulos_carousel_section .modulo-content h3 {
        font-size: 20px !important;
        /* Reducir de 28px a 20px */
        margin-bottom: 10px !important;
    }

    /* Reducir tamaño de texto en móvil */
    .gmaster_modulos_carousel_section .modulo-content p {
        font-size: 14px !important;
        /* Reducir de 16px a 14px */
        line-height: 1.5 !important;
        text-align: justify !important;
        hyphens: auto;
    }

    /* Ocultar botones de navegación en móviles */
    .gmaster_modulos_carousel_section .owl-nav {
        display: none !important;
    }
}

/* Ajuste de Puntos (Dots) del Carrusel - Subirlos */
/* Ajuste de Puntos (Dots) del Carrusel */
.gmaster_modulos_carousel_section .owl-dots {
    position: relative;
    z-index: 5;
    text-align: center;
    /* Desktop Default: No adjust or specific if needed */
    margin-top: 0 !important;
}

/* Mobile specific adjustment for dots - ABSOLUTE POSITIONING FIX V3 */
@media (max-width: 991px) {

    /* Permitir overflow visible en toda la cadena del carrusel */
    .gmaster_modulos_carousel_section .gmaster-modulos-carousel {
        overflow: visible !important;
        position: relative;
        z-index: 1;
    }

    .gmaster_modulos_carousel_section .carousel-wrapper {
        position: relative;
        z-index: 1;
        overflow: visible !important;
    }

    /* Importante: owl-stage-outer es el que tiene overflow: hidden por defecto en Owl Carousel */
    .gmaster_modulos_carousel_section .owl-stage-outer {
        overflow: visible !important;
    }

    .gmaster_modulos_carousel_section .owl-stage {
        overflow: visible !important;
    }

    /* Puntos con posición absoluta relativa al carrusel */
    .gmaster_modulos_carousel_section .owl-dots {
        position: absolute !important;
        bottom: -30px !important;
        /* MOVER FUERA de las tarjetas, debajo del carrusel */
        left: 0 !important;
        width: 100% !important;
        margin-top: 0 !important;
        z-index: 9999 !important;
        pointer-events: none;
    }

    /* Dar espacio adicional debajo del carrusel para los puntos */
    .gmaster_modulos_carousel_section .carousel-wrapper {
        padding-bottom: 40px !important;
        margin-bottom: 20px !important;
    }

    /* Asegurar que los puntos sean visibles (blancos) con mayor opacidad */
    .gmaster_modulos_carousel_section .owl-dots .owl-dot span {
        background: rgba(255, 255, 255, 0.7) !important;
        width: 12px;
        /* Un poco más grandes para mejor visibilidad */
        height: 12px;
        margin: 5px 4px;
    }

    .gmaster_modulos_carousel_section .owl-dots .owl-dot.active span {
        background: #ffffff !important;
    }

    .gmaster_modulos_carousel_section .owl-dots .owl-dot {
        pointer-events: auto;
    }
}