/*
Custom Css
*/

.services-icon-wap:hover {
  background-color: #F37021 !important; 
  color: #ffffff !important;
}

.services-icon-wap:hover i {
  color: #ffffff !important;
}

/* ===================================================
   FIX RESPONSIVE CAROUSEL - TELECOMUNICACIONES
   Agregar esto a custom.css ANTES del responsive_mobile.css
   =================================================== */

/* Carousel Hero - Mejoras General */
#template-mo-zay-hero-carousel {
    background: #f8f9fa;
}

.carousel-item .container {
    max-width: 100%;
}

.carousel-item .row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ========== DESKTOP (lg y arriba) ========== */
@media (min-width: 992px) {
    .carousel-item .row {
        flex-direction: row;
    }
    
    .carousel-item .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .carousel-item img {
        max-width: 100% !important;
        height: auto;
    }
    
    .carousel-item .text-align-left {
        padding-right: 30px;
    }
}

/* ========== TABLET (md) ========== */
@media (max-width: 991px) and (min-width: 768px) {
    .carousel-item .row {
        flex-direction: column-reverse;
        padding: 20px !important;
        gap: 20px;
    }
    
    .carousel-item .col-md-8 {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .carousel-item img {
        max-width: 80% !important;
        margin: 0 auto;
        display: block;
    }
    
    .carousel-item .col-lg-6 {
        width: 100%;
        max-width: 100%;
    }
    
    .carousel-item .text-align-left {
        padding: 0;
    }
}

/* ========== MOBILE (xs y sm) ========== */
@media (max-width: 767px) {
    .carousel-item .row {
        flex-direction: column-reverse;
        padding: 15px !important;
        gap: 15px;
    }
    
    /* Imagen en móvil */
    .carousel-item .col-md-8,
    .carousel-item .mx-auto {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
    }
    
    .carousel-item img {
        max-width: 100% !important;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    /* Texto en móvil */
    .carousel-item .col-lg-6 {
        width: 100%;
        max-width: 100%;
    }
    
    .carousel-item h1 {
        font-size: 24px !important;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .carousel-item p {
        font-size: 14px !important;
        line-height: 1.5;
        text-align: justify;
        margin: 0;
        padding: 0 5px;
    }
    
    .carousel-item .text-align-left {
        padding: 0 !important;
        text-align: left;
    }
    
    /* Flechas de navegación */
    .carousel-control-prev,
    .carousel-control-next {
        opacity: 0.7;
    }
}

/* ========== EXTRA SMALL (< 375px) ========== */
@media (max-width: 374px) {
    .carousel-item .row {
        padding: 10px !important;
        gap: 10px;
    }
    
    .carousel-item h1 {
        font-size: 20px !important;
    }
    
    .carousel-item p {
        font-size: 13px !important;
    }
}

/* ========== FIX PARA ORDEN DE ELEMENTOS ========== */
/* order-lg-last coloca la imagen a la derecha en desktop */
/* En móvil, flex-direction: column-reverse la pone arriba */

.carousel-item .order-lg-last {
    order: 1;
}

@media (min-width: 992px) {
    .carousel-item .order-lg-last {
        order: 2;
    }
    
    .carousel-item .col-lg-6:not(.order-lg-last) {
        order: 1;
    }
}

/* ========== INDICATORS (PUNTOS DE NAVEGACIÓN) ========== */
@media (max-width: 576px) {
    .carousel-indicators {
        bottom: 10px;
        gap: 8px;
    }
    
    .carousel-indicators [data-bs-slide-to] {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin: 0;
    }
}

/* ========== AJUSTES ADICIONALES ========== */

/* Asegurar que el contenedor sea responsive */
.carousel-item .container {
    width: 100%;
    padding: 0;
}

/* Remover espacios en blanco */
.carousel-item .row {
    margin: 0;
}

/* Alineación de texto en móvil */
.carousel-item .text-align-left {
    text-align: left !important;
}

@media (max-width: 576px) {
    .carousel-item .text-align-left {
        text-align: left !important;
    }
    
    .carousel-item .d-flex {
        display: flex !important;
        align-items: flex-start !important;
        min-height: auto;
    }
}

/* ========== HOVER EFFECTS ========== */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 24px;
    color: #003D80;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* ========== TRANSICIONES SUAVES ========== */
.carousel-item {
    transition: all 0.6s ease-in-out;
}

.carousel-item img {
    transition: transform 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.02);
}

/* ========== MEJORA DE LEGIBILIDAD ========== */
.carousel-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 576px) {
    .carousel-item p {
        letter-spacing: 0;
        word-spacing: 0.1em;
    }
}
