/* Estilos personalizados para justificación de texto */

/* Justificación global para párrafos y textos */
p, 
.text-justify,
.service-text p,
.fact-item p,
.team-item p,
.about-text p,
.feature-text p,
.testimonial-item p,
.bg-light p,
div p {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Excepciones para elementos que no deben justificarse */
.text-center p,
.text-start p,
.text-end p,
.navbar p,
.footer p,
.breadcrumb p,
.alert p,
.btn p,
button p,
.pagination p,
.topbar p {
    text-align: inherit !important;
}

/* Justificación específica para contenido principal */
.container p:not(.text-center):not(.text-start):not(.text-end),
.service-item p,
.fact-item p,
.about-content p,
.risk-content p,
.methodology-content p {
    text-align: justify !important;
}

/* Mejorar legibilidad en textos justificados */
p {
    line-height: 1.6;
    word-spacing: 0.1em;
}

/* Estilos personalizados para navegación de carrusel con puntos */
/* Resetear completamente los estilos del carrusel header */
.header-carousel .owl-dots {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 20px auto 0 auto !important;
    padding: 0 20px !important;
    background: transparent !important;
}

.header-carousel .owl-dots .owl-dot {
    position: relative !important;
    display: inline-block !important;
    margin: 0 15px !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.header-carousel .owl-dots .owl-dot:hover,
.header-carousel .owl-dots .owl-dot.active {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transform: none !important;
}

/* Ocultar completamente cualquier imagen dentro de los puntos */
.header-carousel .owl-dots .owl-dot img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Asegurar que los puntos sean visibles */
.header-carousel .owl-dots .owl-dot::before {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: inherit !important;
}

/* Estilos para botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 2px 2px 25px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.whatsapp-float i {
    line-height: 1;
}

/* Animación de pulso para el botón de WhatsApp */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

/* Responsive: ajustar en pantallas pequeñas */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 20px;
        left: 15px;
    }
}

/* Asegurar que listas también se justifiquen cuando corresponda */
.list-unstyled li {
    text-align: justify !important;
}
