/* ===== CSS UNIVERSAL PARA MÓVILES - BASADO EN INDEX.HTML ===== */

/* Variables CSS para consistencia */
:root {
    --primary-color: #59BEC9;
    --secondary-color: #EB451B;
    --text-dark: #2c3e50;
    --navbar-height: 60px;
    --transition-smooth: all 0.3s ease-in-out;
}

/* ===== NAVBAR UNIVERSAL - COLOR #58bdc8 CON TRANSPARENCIA EN TODAS LAS PÁGINAS ===== */
/* Navbar DESKTOP - 50% transparencia en TODAS las páginas */
@media (min-width: 992px) {
    .navbar {
        background: rgba(88, 189, 200, 0.5) !important; /* 50% transparencia */
        backdrop-filter: blur(15px) !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1) !important;
        transition: all 0.3s ease-in-out !important;
    }
    
    /* Enlaces con texto BLANCO */
    .navbar .nav-link {
        color: white !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    }
    
    .navbar .nav-link:hover {
        color: #EB451B !important;
        background: rgba(255, 255, 255, 0.15) !important;
    }
    
    .navbar .dropdown-menu {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .navbar .dropdown-item {
        color: #2c3e50 !important;
    }
    
    .navbar .dropdown-item:hover {
        background: rgba(235, 69, 27, 0.1) !important;
        color: #EB451B !important;
    }
}

/* ===== NAVBAR MÓVIL - AZUL SÓLIDO EN TODAS LAS PÁGINAS ===== */
@media (max-width: 991px) {
    .navbar,
    body.index-page .navbar {
        background: #58bdc8 !important; /* Azul SÓLIDO sin transparencia */
        backdrop-filter: none !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.15) !important;
        transition: all 0.3s ease-in-out !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
    }
    
    /* Navbar oculto al hacer scroll hacia abajo */
    .navbar.hidden {
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Navbar visible al volver arriba */
    .navbar.visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Navbar forzado a mostrar (cuando el menú está abierto) */
    .navbar.force-visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Botón hamburguesa - IGUAL QUE DESKTOP (texto blanco) */
    .navbar-toggler {
        border: 2px solid white !important;
        border-radius: 8px !important;
        padding: 8px 10px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3) !important;
        outline: none !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 20px !important;
        height: 20px !important;
        display: block !important;
    }
    
    /* Menú colapsable - Mismo azul sólido (incluso index.html) */
    .navbar-collapse,
    body.index-page .navbar-collapse {
        background: #58bdc8 !important; /* Azul SÓLIDO igual que navbar */
        backdrop-filter: none !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
        border-radius: 0 0 15px 15px !important;
        margin-top: 10px !important;
        padding: 1rem !important;
        display: none !important;
    }
    
    .navbar-collapse.show,
    body.index-page .navbar-collapse.show {
        display: block !important;
    }
    
    /* Enlaces del navbar - Texto NEGRO (incluso en index.html) */
    .navbar-nav .nav-link,
    body.index-page .navbar-nav .nav-link {
        color: #2c3e50 !important; /* Negro/oscuro */
        font-size: 1rem !important;
        padding: 0.8rem 1rem !important;
        text-align: center !important;
        border-radius: 8px !important;
        margin: 3px 0 !important;
        text-shadow: none !important;
    }
    
    .navbar-nav .nav-link:hover,
    body.index-page .navbar-nav .nav-link:hover {
        background: rgba(235, 69, 27, 0.2) !important;
        color: #EB451B !important;
    }
    
    /* Dropdown - Fondo blanco */
    .navbar-nav .dropdown-menu {
        background: rgba(255, 255, 255, 0.95) !important;
        border: none !important;
        margin: 0.5rem 0 !important;
        border-radius: 8px !important;
    }
    
    .navbar-nav .dropdown-item {
        text-align: center !important;
        padding: 0.8rem 1rem !important;
        color: #2c3e50 !important;
    }
    
    .navbar-nav .dropdown-item:hover {
        background: rgba(235, 69, 27, 0.1) !important;
        color: #EB451B !important;
    }
}

/* ===== CAROUSEL UNIVERSAL ===== */
@media (max-width: 991px) {
    /* Ajustar fondo azul del carousel en index.html - solo 5px más que el video */
    .bgcarouselintro {
        background-color: #59B4BF !important;
        padding: 5px !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .bgcarouselintro .carousel-inner {
        height: auto !important;
        min-height: 50vh !important;
    }
    
    .bgcarouselintro .carousel-item {
        height: auto !important;
        min-height: 50vh !important;
    }
    
    .bgcarouselintro .carousel-item iframe {
        width: 100% !important;
        height: 50vh !important;
        display: block !important;
    }
    
    /* Carousel caption universal - Estilo de index.html */
    .Hstart .carousel-caption,
    .smooth-carousel .carousel-caption {
        padding: 20px !important;
        width: 80% !important;
        height: 30% !important;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 3 !important;
    }
    
    .Hstart .carousel-caption h1,
    .smooth-carousel .carousel-caption h1 {
        font-size: 1.4rem !important;
        text-align: center !important;
        margin-bottom: 0.5rem !important;
        color: white !important;
        font-weight: 700 !important;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8) !important;
        line-height: 1.2 !important;
    }
    
    .Hstart .carousel-caption p,
    .smooth-carousel .carousel-caption p {
        font-size: 0.9rem !important;
        text-align: center !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7) !important;
        line-height: 1.3 !important;
    }
    
    /* Indicadores del carousel - OCULTOS en móvil */
    .carousel-indicators {
        display: none !important;
    }
}

/* ===== CONTENIDO PRINCIPAL UNIVERSAL ===== */
@media (max-width: 991px) {
    /* Espaciado del body para navbar fijo */
    body {
        padding-top: var(--navbar-height) !important;
    }
    
    /* Secciones principales */
    .QS-Azul,
    .section-modern,
    .beneficios {
        padding: 2rem 1rem !important;
        margin: 0 !important;
    }
    
    /* Títulos principales */
    .QS-Azul h3,
    .section-modern h2,
    .beneficios h3,
    .section-title {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        color: white !important;
    }
    
    /* Títulos secundarios */
    .beneficios h4 {
        font-size: 1.3rem !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Párrafos universales */
    .QS-Azul p,
    .section-modern p,
    .beneficios p,
    .texto-justificado {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        text-align: justify !important;
        text-justify: inter-word !important;
        margin-bottom: 1rem !important;
    }
    
    /* Listas universales */
    .QS-Azul ul,
    .beneficios ul {
        padding-left: 1.5rem !important;
    }
    
    .QS-Azul li,
    .beneficios li {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
        text-align: justify !important;
        text-justify: inter-word !important;
    }
    
    /* Botones modernos universales */
    .btn-modern {
        display: block !important;
        margin: 1rem auto !important;
        padding: 12px 25px !important;
        font-size: 1rem !important;
        text-align: center !important;
        max-width: 250px !important;
        transition: var(--transition-smooth) !important;
    }
    
    .btn-modern:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    }
    
    /* Esquemas de servicio */
    .esquemaServicio {
        text-align: center !important;
        padding: 1.5rem !important;
        background: rgba(89, 190, 201, 0.05) !important;
        border-radius: 15px !important;
        margin: 1.5rem 0 !important;
    }
    
    .esquemaServicio p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        text-align: justify !important;
        text-justify: inter-word !important;
        margin-bottom: 1rem !important;
    }
    
    /* Cards modernas */
    .card-modern {
        margin-bottom: 2rem !important;
        padding: 1.5rem !important;
        border-radius: 15px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: var(--transition-smooth) !important;
    }
    
    .card-modern:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    }
    
    /* Ocultar elementos decorativos en móviles */
    .svgDER,
    .svgIZQ {
        display: none !important;
    }
    
    /* Ajustar espaciado excesivo */
    br {
        display: none !important;
    }
}

/* ===== BREAKPOINTS ADICIONALES ===== */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px !important;
    }
    
    .Hstart .carousel-caption h1,
    .smooth-carousel .carousel-caption h1 {
        font-size: 1.3rem !important;
    }
    
    .Hstart .carousel-caption p,
    .smooth-carousel .carousel-caption p {
        font-size: 0.85rem !important;
    }
    
    /* Indicadores ocultos en tablets también */
    .carousel-indicators {
        display: none !important;
    }
    
    .QS-Azul h3,
    .section-modern h2,
    .beneficios h3 {
        font-size: 1.3rem !important;
    }
    
    .beneficios h4 {
        font-size: 1.2rem !important;
    }
    
    .QS-Azul p,
    .QS-Azul li,
    .beneficios p,
    .beneficios li {
        font-size: 0.85rem !important;
    }
    
    .esquemaServicio p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        height: 35px !important;
    }
    
    .Hstart .carousel-caption h1,
    .smooth-carousel .carousel-caption h1 {
        font-size: 1.1rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .Hstart .carousel-caption p,
    .smooth-carousel .carousel-caption p {
        font-size: 0.8rem !important;
    }
    
    /* Indicadores ocultos en móviles pequeños también */
    .carousel-indicators {
        display: none !important;
    }
    
    .QS-Azul,
    .section-modern,
    .beneficios {
        padding: 1.5rem 0.8rem !important;
    }
    
    .QS-Azul h3,
    .section-modern h2,
    .beneficios h3 {
        font-size: 1.2rem !important;
    }
    
    .beneficios h4 {
        font-size: 1.1rem !important;
    }
    
    .QS-Azul p,
    .QS-Azul li,
    .beneficios p,
    .beneficios li {
        font-size: 0.8rem !important;
    }
    
    .esquemaServicio p {
        font-size: 0.8rem !important;
    }
    
    .btn-modern {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        max-width: 200px !important;
    }
}

/* ===== CAROUSEL INDICATORS EN DESKTOP - PEQUEÑOS Y A LA DERECHA ===== */
@media (min-width: 992px) {
    /* Posicionar indicadores a la derecha en desktop */
    .carousel-indicators {
        bottom: 30px !important;
        right: 30px !important;
        left: auto !important;
        justify-content: flex-end !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin: 0 !important;
    }
    
    /* Indicadores PEQUEÑOS en desktop */
    .carousel-indicators .indicator,
    .carousel-indicators li,
    .carousel-indicators button {
        width: 10px !important;
        height: 10px !important;
        margin: 0 !important;
        border-radius: 50% !important;
    }
    
    .carousel-indicators .indicator::before {
        width: 4px !important;
        height: 4px !important;
    }
    
    .carousel-indicators .indicator.active {
        width: 12px !important;
        height: 12px !important;
    }
    
    .carousel-indicators .indicator.active::before {
        width: 4px !important;
        height: 4px !important;
    }
}

/* ===== TARJETAS SIN ANIMACIONES - SOLO CURSOR DEFAULT ===== */
/* Quitar cursor pointer y DESACTIVAR todas las animaciones de tarjetas */
.result-card,
.value-card,
.benefit-card,
.differentiator-card,
.stat-card,
.card-modern,
.card {
    cursor: default !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Hover muy sutil - solo elevación mínima, NO cursor pointer */
.result-card:hover,
.value-card:hover,
.benefit-card:hover,
.differentiator-card:hover,
.stat-card:hover,
.card-modern:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    cursor: default !important;
    transition: all 0.3s ease !important;
}

/* ===== ESTILOS ESPECÍFICOS ESTERILIZACION-INHOUSE ===== */
/* Texto de "Resultados comprobados" en blanco */
.beneficios p[data-i18n="inhouse.proven_results_desc"] {
    color: white !important;
}

/* ===== MEJORAS DE CONTRASTE - FONDOS CLAROS CON TEXTO BLANCO ===== */
/* QS-Azul tiene fondo #59BEC9 (azul claro) - cambiar texto blanco a oscuro para mejor contraste */
.QS-Azul {
    color: #2c3e50 !important; /* Texto oscuro en lugar de blanco */
}

.QS-Azul h3,
.QS-Azul h4,
.QS-Azul p,
.QS-Azul li {
    color: #2c3e50 !important; /* Texto oscuro para mejor contraste */
}

/* Mantener títulos y textos generales en blanco dentro de .beneficios (fondo oscuro) */
.beneficios h1,
.beneficios h2,
.beneficios h3,
.beneficios h4,
.beneficios h5 {
    color: white !important;
}

/* Párrafos directos en .beneficios en blanco */
.beneficios > p,
.beneficios > ul > li {
    color: white !important;
}

/* TODAS las tarjetas en TODO el HTML con texto NEGRO (oscuro) */
.benefit-card,
.benefit-card h1,
.benefit-card h2,
.benefit-card h3,
.benefit-card h4,
.benefit-card h5,
.benefit-card p,
.benefit-card span,
.benefit-card .benefit-title,
.benefit-card .benefit-description,
.benefit-card .benefit-badge,
.differentiator-card,
.differentiator-card h1,
.differentiator-card h2,
.differentiator-card h3,
.differentiator-card h4,
.differentiator-card h5,
.differentiator-card p,
.differentiator-card span,
.differentiator-card .differentiator-title,
.differentiator-card .differentiator-description,
.differentiator-card .differentiator-tag,
.result-card,
.result-card h1,
.result-card h2,
.result-card h3,
.result-card h4,
.result-card h5,
.result-card p,
.result-card span,
.result-card .result-title,
.result-card .result-description,
.result-card .result-highlight,
.value-card,
.value-card h1,
.value-card h2,
.value-card h3,
.value-card h4,
.value-card h5,
.value-card p,
.value-card span,
.value-card .value-title,
.value-card .value-description,
.value-card .value-badge,
.stat-card,
.stat-card h1,
.stat-card h2,
.stat-card h3,
.stat-card h4,
.stat-card h5,
.stat-card p,
.stat-card span,
.stat-card .stat-title,
.stat-card .stat-description,
.card-modern,
.card-modern h1,
.card-modern h2,
.card-modern h3,
.card-modern h4,
.card-modern h5,
.card-modern p,
.card-modern span {
    color: #2c3e50 !important; /* Texto oscuro en TODAS las tarjetas */
}

/* ===== MEJORAS ESPECÍFICAS PARA VALUE-CARD (NOSOTROS.HTML) ===== */
/* Asegurar texto justificado y composición uniforme */
.value-card .value-description {
    text-align: justify !important;
    text-justify: inter-word !important;
    line-height: 1.6 !important;
    hyphens: auto !important;
}

/* Responsive para value-card */
@media (max-width: 768px) {
    .value-card {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
    
    .value-icon {
        margin: 0 auto 1rem auto !important;
    }
    
    .value-content {
        width: 100% !important;
        text-align: center !important;
    }
    
    .value-title {
        text-align: center !important;
        font-size: 1.3rem !important;
    }
    
    .value-description {
        text-align: justify !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    .value-badge {
        display: inline-block !important;
        margin: 0.5rem auto 0 auto !important;
    }
}

/* ===== ANIMACIONES AOS MÁS LENTAS Y SUAVES EN MÓVIL ===== */
@media (max-width: 991px) {
    /* Hacer las animaciones AOS más lentas y suaves en móvil */
    [data-aos] {
        transition-duration: 1s !important;
        transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    /* Animaciones fade */
    [data-aos="fade-up"],
    [data-aos="fade-down"],
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transition-duration: 1.2s !important;
    }
    
    /* Aumentar el offset para que la animación empiece antes */
    [data-aos] {
        --aos-offset: 50px !important;
    }
}

/* ===== BOTÓN TOGGLE DE IDIOMA SIMPLIFICADO ===== */
.btn-language-toggle {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    padding: 0.4rem 0.9rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

.btn-language-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.05) !important;
}

/* Responsive del botón de idioma */
@media (max-width: 991px) {
    .btn-language-toggle {
        border-color: rgba(44, 62, 80, 0.3) !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .btn-language-toggle:hover {
        background: rgba(235, 69, 27, 0.1) !important;
        border-color: var(--secondary-color) !important;
    }
}

/* ===== BARRA DE PROGRESO DE LECTURA ===== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(89, 190, 201, 0.1);
    z-index: 1060;
    overflow: hidden;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #59BEC9 0%, #EB451B 100%);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(89, 190, 201, 0.5);
}

/* ===== BOTÓN INTELIGENTE MULTI-FUNCIÓN ===== */
.smart-scroll-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* A la IZQUIERDA para no chocar con Tawk.to */
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(89, 190, 201, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.3; /* Transparente por defecto */
    visibility: visible;
    transform: translateY(0) scale(0.9);
}

/* Mostrar completamente al hacer hover o interacción */
.smart-scroll-btn.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.smart-scroll-btn:hover {
    opacity: 1;
    background: var(--secondary-color);
    transform: translateY(0) scale(1.15);
    box-shadow: 0 6px 30px rgba(235, 69, 27, 0.5);
}

.smart-scroll-btn i {
    font-size: 1.6rem;
    margin: 0;
    transition: transform 0.3s ease;
}

.smart-scroll-btn .btn-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smart-scroll-btn:hover i {
    transform: translateY(-3px);
}

/* Animación de pulso sutil */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(89, 190, 201, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(89, 190, 201, 0.7);
    }
}

.smart-scroll-btn.pulse {
    animation: pulse 2s infinite;
}

/* Responsive - más pequeño en móvil */
@media (max-width: 768px) {
    .smart-scroll-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px; /* A la izquierda */
    }
    
    .smart-scroll-btn i {
        font-size: 1.4rem;
    }
    
    .smart-scroll-btn .btn-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .smart-scroll-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px; /* A la izquierda */
    }
    
    .smart-scroll-btn i {
        font-size: 1.3rem;
    }
    
    .smart-scroll-btn .btn-label {
        display: none; /* Ocultar texto en móviles muy pequeños */
    }
}

/* ===== UTILIDADES UNIVERSALES ===== */
@media (max-width: 991px) {
    /* Animaciones suaves para todos los elementos */
    * {
        transition: var(--transition-smooth) !important;
    }
    
    /* Scroll suave */
    html {
        scroll-behavior: smooth !important;
    }
    
    /* Prevenir zoom en inputs */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Mejorar accesibilidad táctil */
    button, a, .btn {
        min-height: 44px !important;
        min-width: 44px !important;
    }
}
