/* Estilos de la página: index.php */

/* Hero Section V3 - Ultra Premium Carousel */
:root {
    --hero-primary-color: #0056a8; /* Azul corporativo principal */
    --hero-secondary-color: #00cef5; /* Azul acento vibrante */
    --hero-text-light: #ffffff;
    --hero-text-dark: #0e1b2b;
    --hero-font-primary: 'Montserrat', sans-serif;
    --hero-font-secondary: 'Poppins', sans-serif;
}

/* Ocultar barra de desplazamiento manteniendo funcionalidad */
html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
    overflow-x: hidden;
    width: auto;
    max-width: 100%;
}

/* Para Chrome, Safari y Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Definir ancho máximo de contenido con margen automático */
.container {
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-section-v3 {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    min-height: 700px; /* Minimum height for smaller screens */
    overflow: hidden;
}

.hero-slider-v3 {
    width: 100%;
    height: 100%;
}

.hero-slide-v3 {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay-v3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 20, 40, 0.7) 0%, rgba(0, 50, 90, 0.5) 100%);
    z-index: 1;
}

.hero-container-v3 {
    position: relative;
    z-index: 2;
    display: flex; /* Asegura que este contenedor también pueda centrar a su hijo */
    flex-direction: column; /* Apila los hijos verticalmente */
    justify-content: center; /* Centra verticalmente a hero-content-v3 dentro de este contenedor */
    width: 100%; /* Para que ocupe el ancho provisto por la clase .container de Bootstrap */
    height: 100vh; /* Ocupa todo el alto del hero */
    min-height: 700px;
    /* Ajuste para compensar el header fijo */
    padding-top: 60px;
}

@media (max-width: 992px) {
    .hero-container-v3 {
        min-height: 650px;
        height: 80vh;
        padding-top: 50px;
    }
}
@media (max-width: 576px) {
    .hero-container-v3 {
        min-height: 500px;
        height: 70vh;
        padding-top: 40px;
    }
}

.hero-content-v3 {
    max-width: 750px;
    color: var(--hero-text-light);
}

.hero-content-v3.text-center-v3 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-v3.text-right-v3 {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

.hero-subtitle-v3 {
    display: block;
    font-family: var(--hero-font-secondary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-title-v3 {
    font-family: var(--hero-font-primary);
    font-size: 3.8rem; /* Ajustado para impacto */
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 2rem;
    text-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
}

.hero-title-v3 .highlight-word {
    color: var(--hero-secondary-color);
    /* Efecto de texto sutil, puede ser un gradiente o un color sólido */
    /* background: linear-gradient(to right, var(--hero-secondary-color), #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}

.hero-description-v3 {
    font-family: var(--hero-font-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-content-v3.text-center-v3 .hero-description-v3,
.hero-content-v3.text-right-v3 .hero-description-v3 {
    margin-left: auto;
    margin-right: auto;
}

/* Optimización de carga para botones en el hero */
.hero-buttons-v3 {
    display: flex;
    gap: 1.2rem;
    will-change: transform;
    contain: layout style;
    opacity: 1 !important;
}

.hero-content-v3.text-center-v3 .hero-buttons-v3 {
    justify-content: center;
}

.hero-content-v3.text-right-v3 .hero-buttons-v3 {
    justify-content: flex-end;
}

/* Botones optimizados para carga rápida */
.btn-primary-v3, .btn-outline-v3 {
    font-family: var(--hero-font-secondary);
    padding: 1rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.9rem;
    transition: transform 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    background-clip: padding-box; /* Asegura que el fondo no se extienda más allá del borde */
}

.btn-primary-v3 {
    background-color: var(--hero-primary-color);
    color: var(--hero-text-light);
    box-shadow: 0 8px 15px rgba(0, 86, 168, 0.3);
    border: none; /* Asegurar que no tenga bordes */
}

.btn-primary-v3:hover {
    background-color: var(--hero-secondary-color);
    color: var(--hero-text-dark);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 206, 245, 0.35);
}

.btn-outline-v3 {
    background: rgba(255, 255, 255, 0); /* Completamente transparente */
    background-color: transparent;
    color: var(--hero-text-light);
    border: 2px solid var(--hero-text-light); /* Borde explícito */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); /* Sombra más sutil */
}

.btn-outline-v3:hover {
    background-color: var(--hero-text-light);
    color: var(--hero-primary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: transparent; /* Eliminar borde al hacer hover */
}

/* Optimización de efectos de brillo para mejor rendimiento */
.btn-primary-v3::before, .btn-outline-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: transform 0.6s ease;
    z-index: 0; /* Cambiado de -1 a 0 para asegurar que está por encima del fondo */
    opacity: 0.6; /* Reducir opacidad */
}

.btn-primary-v3:hover::before, .btn-outline-v3:hover::before {
    transform: translateX(200%);
    opacity: 0.8; /* Un poco más visible al hacer hover */
}

/* Icono optimizado */
.btn-primary-v3 i, .btn-outline-v3 i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
    position: relative; /* Asegurar que el icono esté por encima */
    z-index: 2; /* Mayor z-index para estar por encima del efecto */
}

.btn-primary-v3:hover i, .btn-outline-v3:hover i {
    transform: translateX(5px);
}

/* Animación de pulso simplificada */
@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 86, 168, 0.4); }
    100% { box-shadow: 0 0 0 12px rgba(0, 86, 168, 0); }
}

.btn-primary-v3:focus {
    animation: buttonPulse 1.5s infinite;
}

/* Eliminar data-aos para cargar botones de inmediato */
[data-aos].hero-buttons-v3,
[data-aos].hero-subtitle-v3,
[data-aos].hero-title-v3,
[data-aos].hero-description-v3 {
    opacity: 1 !important;
    transform: none !important;
    transition-duration: 0s !important;
}

.hero-pagination-v3 .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 6px !important; /* Importante para anular estilos por defecto */
}

.hero-pagination-v3 .swiper-pagination-bullet-active {
    background-color: var(--hero-secondary-color);
    width: 25px; /* Hacer el activo más largo */
    border-radius: 6px;
}

.hero-nav-prev-v3, .hero-nav-next-v3 {
    color: var(--hero-text-light);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-nav-prev-v3:hover, .hero-nav-next-v3:hover {
    background-color: var(--hero-primary-color);
    color: var(--hero-text-light);
}

.hero-nav-prev-v3::after, .hero-nav-next-v3::after {
    font-size: 1.2rem; /* Tamaño de las flechas */
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title-v3 {
        font-size: 3rem;
    }
    .hero-description-v3 {
        font-size: 1.1rem;
        max-width: 90%;
    }
    .hero-content-v3 {
        max-width: 600px;
        margin: 0 auto; /* Centrar contenido en tablets */
        text-align: center; /* Forzar centro en tablets */
    }
    .hero-content-v3.text-right-v3 {
        text-align: center; /* Forzar centro en tablets */
    }
    .hero-buttons-v3 {
        justify-content: center; /* Centrar botones en tablets */
    }
    .hero-content-v3.text-right-v3 .hero-buttons-v3 {
        justify-content: center; /* Centrar botones en tablets */
    }
}

@media (max-width: 768px) {
    .hero-section-v3 {
        height: 100vh;
        min-height: 100vh;
        margin-top: -70px; /* Compensar el header */
        padding-top: 0;
    }
    
    .hero-container-v3 {
        height: 100vh;
        min-height: 100vh;
        padding-top: 90px; /* Espacio para que el contenido no quede detrás del header */
        display: flex;
        align-items: center;
    }
    
    /* Ajuste importante para bajar el contenido que sigue al hero */
    .services-section {
        margin-top: 70px !important; /* Margen superior importante para evitar solapamiento */
        padding-top: 40px !important;
    }
    
    /* En dispositivos móviles, agregar más margen entre secciones */
    .section-padding {
        padding: 70px 0 !important;
    }
    
    body {
        padding-top: 70px; /* Ajustar el padding-top del body para compensar */
    }
    
    /* Resto del código media query se mantiene igual */
    .hero-slide-v3 {
        background-position: center;
    }
    
    .hero-title-v3 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description-v3 {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        max-width: 100%;
    }
    
    .hero-buttons-v3 {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn-primary-v3, .btn-outline-v3 {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section-v3 {
        height: 100vh;
        margin-top: -70px;
    }
    
    .hero-container-v3 {
        height: 100vh;
        padding-top: 90px;
    }
    
    .hero-overlay-v3 {
        background: linear-gradient(45deg, rgba(0, 20, 40, 0.8) 0%, rgba(0, 50, 90, 0.7) 100%);
    }
    
    .hero-title-v3 {
        font-size: 1.8rem;
    }
    
    .hero-description-v3 {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Ocultar navegación que podría causar problemas */
    .hero-nav-prev-v3, .hero-nav-next-v3 {
        display: none;
    }
    
    .hero-pagination-v3 {
        bottom: 10px !important;
    }
}

@media (max-width: 576px) {
    .hero-title-v3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    .hero-description-v3 {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        text-align: center;
        display: block;
        opacity: 0.95;
    }
    .hero-buttons-v3 {
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
    }
    .btn-primary-v3, .btn-outline-v3 {
        width: 90vw;
        max-width: 320px;
        font-size: 1rem;
        padding: 1rem 0;
    }
    .hero-pagination-v3 {
        bottom: 10px !important;
    }
    .hero-nav-prev-v3, .hero-nav-next-v3 {
        display: none;
    }
    /* Servicios destacados */
    .services-section .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .service-card {
        padding: 1.2rem 1rem;
        border-radius: 18px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    }
    .service-card h3 {
        font-size: 1.1rem;
    }
    .service-card p {
        font-size: 0.98rem;
    }
    .service-link {
        font-size: 1rem;
    }
    /* Sección CTA */
    .cta-section .cta-content h2 {
        font-size: 1.2rem;
        text-align: center;
    }
    .cta-section .cta-content p {
        font-size: 1rem;
        text-align: center;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
    }
    /* Newsletter */
    .newsletter-section .newsletter-content h2 {
        font-size: 1.1rem;
        text-align: center;
    }
    .newsletter-section .newsletter-content p {
        font-size: 0.98rem;
        text-align: center;
    }
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    /* Testimonios y clientes */
    .clients-section .clients-logos {
        margin-bottom: 1.5rem;
    }
    .testimonial-item {
        padding: 1.2rem 0.5rem;
    }
    .testimonial-text {
        font-size: 0.98rem;
    }
    .testimonial-author h4 {
        font-size: 1rem;
    }
    /* Estadísticas */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .stat-item {
        padding: 0.7rem 0.2rem;
    }
}

@media (max-width: 576px) {
    html, body {
        overflow-x: hidden !important;
    }
    body {
        position: relative;
        left: 0 !important;
    }
    .container, .hero-section-v3, .services-section, .why-choose-section, .clients-section, .stats-section, .cta-section, .newsletter-section {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Prevenir desplazamiento horizontal en todo momento */
html, body {
    overflow-x: hidden !important;
    width: 100vw;
}

/* Corrección para el scroll en dispositivos móviles */
@media (max-width: 992px) {
    html, body {
        overflow-x: hidden;
        width: auto;
        position: relative;
        -webkit-overflow-scrolling: touch; /* Mejorar scroll en iOS */
    }
    
    body {
        /* Evitar position:relative con left:0 que puede causar problemas */
        left: auto;
        /* Reducir el impacto de animaciones en rendimiento */
        will-change: auto;
    }
    
    .container, section, .hero-section-v3, .services-section, 
    .why-choose-section, .clients-section {
        transform: translateZ(0); /* Forzar aceleración de hardware */
        backface-visibility: hidden; /* Optimización de rendimiento */
        perspective: 1000px; /* Optimización de rendimiento */
        max-width: none; /* Evitar conflictos con overflow */
    }
    
    /* Reducir animaciones en scroll para mejorar rendimiento */
    .swiper-slide {
        will-change: transform;
    }
    
    /* Eliminar animaciones AOS en móviles para mejor rendimiento */
    [data-aos] {
        transition-duration: 0s !important;
        transform: translate(0) !important;
        opacity: 1 !important;
    }
    
    /* Simplificar sombras y efectos visuales complejos */
    .service-card {
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .service-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    /* Eliminar efectos hover que pueden causar retrasos */
    .service-link:hover i,
    .btn:hover::before,
    .service-icon {
        transition: none;
    }
}

/* Eliminar reglas anteriores que causaban problemas */
html, body {
    overflow-x: hidden;
    width: auto; /* En lugar de 100vw que puede causar problemas */
}

/* Alinear todos los botones "Ver detalles" a la misma altura en las tarjetas de servicios del index */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px; /* Altura mínima para todas las tarjetas */
}

.service-card p {
    flex-grow: 1; /* Permite que el párrafo ocupe el espacio disponible */
}

.service-features {
    margin-bottom: 1.5rem;
    margin-top: auto; /* Empuja las características hacia abajo */
}

.service-link {
    align-self: flex-start; /* Alinea al inicio horizontal */
    margin-top: auto; /* Empuja el enlace hacia abajo */
}

/* Asegurar que las tarjetas en la grid tengan la misma altura */
.services-grid {
    grid-auto-rows: 1fr; /* Hace que todas las filas tengan la misma altura */
}

@media (max-width: 576px) {
    .hero-section-v3 {
        min-height: 400px;
        height: 60vh;
        padding-top: 0;
    }
    .hero-title-v3 {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
        text-align: center;
    }
    .hero-description-v3 {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        text-align: center;
        max-width: 95vw;
    }
    .hero-buttons-v3 {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    .btn-primary-v3, .btn-outline-v3 {
        width: 95vw;
        max-width: 320px;
        font-size: 1rem;
        padding: 0.9rem 0;
    }
    .services-grid, .stats-grid, .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .service-card, .stat-item, .blog-card {
        padding: 1.2rem 0.7rem !important;
        border-radius: 12px !important;
        min-height: unset !important;
    }
    .why-choose-wrapper, .cta-wrapper, .newsletter-wrapper {
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        align-items: stretch !important;
    }
    .why-choose-content, .why-choose-video, .cta-content, .newsletter-content, .newsletter-form {
        max-width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
    }
    .video-wrapper {
        margin-bottom: 1.2rem;
    }
    .section-padding {
        padding: 2.5rem 0 !important;
    }
    .section-title {
        font-size: 1.3rem !important;
    }
    .section-header {
        margin-bottom: 1.2rem !important;
    }
    .stat-number {
        font-size: 2rem !important;
    }
    .stat-label {
        font-size: 0.95rem !important;
    }
    .cta-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }
    .btn-light, .btn-outline-light {
        width: 95vw !important;
        max-width: 320px !important;
        font-size: 1rem !important;
        padding: 0.9rem 0 !important;
    }
    .newsletter-form .form-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .form-group input, .form-group button {
        width: 100% !important;
        border-radius: 50px !important;
        margin-bottom: 0.5rem !important;
    }
    .form-check label {
        font-size: 0.9rem !important;
    }
    .client-logo {
        height: 70px !important;
    }
    .client-img {
        max-height: 40px !important;
    }
    html, body, .container, section {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* Ajuste crucial para móviles: separar el hero del contenido siguiente */
@media (max-width: 768px) {
    /* Asegurarse de que el viewport tenga la altura completa */
    .hero-section-v3 {
        height: 100vh !important;
        min-height: 100vh !important;
        margin-top: -70px !important; /* Compensar el header */
        margin-bottom: 70px !important; /* Espacio adicional después del hero */
    }
    
    /* Espacio extra para el contenido que viene después del hero */
    .services-section {
        padding-top: 100px !important; /* Mucho más espacio para que no se solape */
        margin-top: 70px !important;
    }
    
    .section-padding {
        padding: 70px 0 !important;
    }
    
    /* Forzar que el hero ocupe toda la altura */
    .hero-container-v3 {
        min-height: 100vh !important;
        height: 100vh !important;
    }
    
    /* Ajuste del body para compensación */
    body {
        padding-top: 70px !important;
    }
}

/* Solución final para arreglar el espaciado en móviles */
@media (max-width: 768px) {
    /* Hero section - mantener altura completa */
    .hero-section-v3 {
        height: 100vh !important;
        min-height: 100vh !important;
        margin-top: -70px;
        margin-bottom: 100px !important; /* Espacio importante después del hero */
        position: relative;
        z-index: 1;
    }
    
    /* Sección de servicios - mover hacia abajo con margen negativo */
    .services-section {
        margin-top: 150px !important; /* Mucho margen para separar del hero */
        padding-top: 50px !important;
        position: relative;
        z-index: 10; /* Mayor z-index para asegurar que esté por encima */
        background-color: #f0faff; /* Asegurar que tenga fondo */
    }
    
    /* Sobrescribir padding para crear más espacio entre secciones */
    .section-padding {
        padding: 100px 0 70px !important;
    }
}

/* Solución definitiva para evitar que el contenido tape el hero en móviles */
@media (max-width: 768px) {
    /* Hero ocupa toda la pantalla */
    .hero-section-v3 {
        height: 100vh !important;
        min-height: 100vh !important;
        margin-top: -70px;
        position: relative;
        z-index: 1;
    }
    
    /* Asegurar que el contenido siguiente aparezca después del 100vh */
    .services-section {
        margin-top: 100vh !important; /* Esto es crucial - posiciona la sección de servicios después del hero */
        position: relative;
        z-index: 10;
        background-color: #f0faff;
        padding-top: 4rem !important;
    }
    
    /* Contenedor del hero ocupa toda la pantalla */
    .hero-container-v3 {
        height: 100vh !important;
        min-height: 100vh !important;
        padding-top: 90px;
    }
}

/* Solución ajustada para el hero en móviles - reduciendo el espacio excesivo */
@media (max-width: 768px) {
    /* Hero ocupa toda la pantalla */
    .hero-section-v3 {
        height: 100vh !important;
        min-height: 100vh !important;
        margin-top: -70px;
        position: relative;
        z-index: 1;
    }
    
    /* Asegurar que el contenido siguiente aparezca justo después del hero */
    .services-section {
        margin-top: 0 !important; /* Quitar margen excesivo */
        position: relative;
        z-index: 10;
        background-color: #f0faff;
        padding-top: 4rem !important;
    }
    
    /* Contenedor del hero ocupa toda la pantalla */
    .hero-container-v3 {
        height: 100vh !important;
        min-height: 100vh !important;
        padding-top: 90px;
    }
}

/* Estilos específicos para corregir la apariencia de los botones outline */
.btn-outline-v3 {
    background: rgba(255, 255, 255, 0) !important; /* Forzar transparencia */
    background-color: transparent !important;
}

.btn-outline-v3:hover {
    background-color: var(--hero-text-light) !important; /* Solo cambiar a blanco en hover */
}

/* Solución adicional para dispositivos móviles */
@media (max-width: 767px) {
    .btn-outline-v3 {
        background: none !important;
        background-color: transparent !important;
    }
}

/* Estilos complementarios para aumentar márgenes y ocultar scroll */
body {
    -ms-overflow-style: none !important;  /* IE y Edge */
    scrollbar-width: none !important;     /* Firefox */
}

body::-webkit-scrollbar {
    display: none !important;             /* Chrome, Safari y Opera */
}

.container {
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Aplicar márgenes a todas las secciones */
.services-section,
.why-choose-section,
.clients-section,
.stats-section,
.cta-section,
.newsletter-section {
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .container,
    .services-section,
    .why-choose-section,
    .clients-section,
    .stats-section,
    .cta-section,
    .newsletter-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

body {
    background-color: #f0faff; /* Tonalidad celeste muy suave */
}

/* Secciones con fondo alternado */
.services-section, 
.clients-section, 
.newsletter-section {
    background-color: #f0faff; /* Misma tonalidad celeste suave */
}

.why-choose-section {
    background-color: #e1f5ff; /* Tono celeste ligeramente más intenso para contraste */
}

/* Cartas de servicios con fondo blanco para mejor contraste */
.service-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 116, 183, 0.07);
}

/* Efecto hover mejorado para las tarjetas */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 116, 183, 0.12);
}

/* Estilos para la sección de clientes premium con carrusel */
.premium-clients-section {
    background-color: #f0faff;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.premium-clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 86, 168, 0.02) 0%, rgba(38, 196, 133, 0.02) 100%);
    z-index: 1;
}

.premium-clients-section .container {
    position: relative;
    z-index: 2;
}

/* Carrusel tipo cinta transportadora */
.clients-carousel-wrapper {
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 86, 168, 0.08);
    padding: 2rem 0;
}

.clients-carousel-wrapper::before,
.clients-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.clients-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.clients-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.clients-carousel {
    overflow: hidden;
    width: 100%;
}

.clients-track {
    display: flex;
    animation: scroll-infinite 60s linear infinite;
    width: calc(200px * 40); /* Ancho total para 40 items (20 originales + 20 duplicados) */
}

.client-item {
    flex: 0 0 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 86, 168, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0056a8, #26c485);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 86, 168, 0.12);
}

.client-item:hover::before {
    transform: scaleX(1);
}

.client-logo {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

.client-item:hover .client-logo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Animación de scroll infinito */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 20 - 2rem * 20)); /* Mover exactamente la mitad del ancho total */
    }
}

/* Pausar animación al hover para mejor UX */
.clients-carousel:hover .clients-track {
    animation-play-state: paused;
}

/* Media queries para responsividad */
@media (max-width: 1200px) {
    .client-item {
        flex: 0 0 180px;
    }
    
    .clients-track {
        width: calc(180px * 40);
    }
    
    @keyframes scroll-infinite {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-180px * 20 - 2rem * 20));
        }
    }
}

@media (max-width: 992px) {
    .client-item {
        flex: 0 0 160px;
        height: 100px;
        margin: 0 0.5rem;
    }
    
    .clients-track {
        width: calc(160px * 40);
        animation-duration: 50s;
    }
    
    .client-logo {
        max-width: 120px;
        max-height: 70px;
    }
    
    @keyframes scroll-infinite {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-160px * 20 - 1rem * 20));
        }
    }
}

@media (max-width: 768px) {
    .premium-clients-section {
        padding: 3rem 0;
    }
    
    .clients-carousel-wrapper {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    .client-item {
        flex: 0 0 140px;
        height: 90px;
    }
    
    .clients-track {
        width: calc(140px * 40);
        animation-duration: 40s;
    }
    
    .client-logo {
        max-width: 100px;
        max-height: 60px;
    }
    
    @keyframes scroll-infinite {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-140px * 20 - 1rem * 20));
        }
    }
}

@media (max-width: 576px) {
    .clients-carousel-wrapper::before,
    .clients-carousel-wrapper::after {
        width: 50px;
    }
    
    .client-item {
        flex: 0 0 120px;
        height: 80px;
        margin: 0 0.25rem;
    }
    
    .clients-track {
        width: calc(120px * 40);
        animation-duration: 35s;
    }
    
    .client-logo {
        max-width: 80px;
        max-height: 50px;
    }
    
    @keyframes scroll-infinite {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 20 - 0.5rem * 20));
        }
    }
}

/* Efecto de brillo ocasional para mayor dinamismo */
.client-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.clients-track:hover .client-item:nth-child(5n)::after {
    left: 100%;
}

/* Nuevos estilos para los botones CTA */
.btn-cta-primary {
    background-color: #2395FF; /* Azul más claro y vibrante */
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #2395FF;
    box-shadow: 0 6px 15px rgba(35, 149, 255, 0.3);
    text-transform: uppercase;
}

.btn-cta-primary:hover {
    background-color: #1a85e8; /* Ligeramente más oscuro en hover */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(35, 149, 255, 0.4);
    color: #ffffff;
}

.btn-cta-outline {
    background-color: transparent;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
}

.btn-cta-outline:hover {
    background-color: #ffffff;
    color: #0056a8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Ajustes específicos para la sección CTA */
.cta-section-hero {
    background: url('/assets/img/servicios/cta.webp') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.cta-section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 59, 115, 0.85), rgba(0, 116, 183, 0.75));
    z-index: 1;
}

.cta-hero-content {
    position: relative;
    z-index: 2;
}

.cta-wrapper-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content-hero {
    max-width: 60%;
    text-align: left;
}

.cta-content-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.cta-content-hero p {
    opacity: 0.95;
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.cta-buttons-hero {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-end;
}

.btn-cta-hero-primary,
.btn-cta-hero-outline {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 220px;
    text-align: center;
}

.btn-cta-hero-primary {
    background: #fff;
    color: #0074B7;
}

.btn-cta-hero-primary:hover {
    background: rgba(26, 188, 156, 0.9);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(26, 188, 156, 0.4);
}

.btn-cta-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-cta-hero-outline:hover {
    background: #fff;
    color: #0074B7;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive para CTA Hero */
@media (max-width: 992px) {
    .cta-wrapper-hero {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .cta-content-hero {
        max-width: 100%;
        text-align: center;
    }
    
    .cta-buttons-hero {
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cta-section-hero {
        padding: 4rem 0;
    }
    
    .cta-wrapper-hero {
        padding: 0 1.5rem;
    }
    
    .cta-content-hero h2 {
        font-size: 2rem;
    }
    
    .cta-content-hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons-hero {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-cta-hero-primary,
    .btn-cta-hero-outline {
        width: 100%;
        max-width: 300px;
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }
}

@media (max-width: 576px) {
    .cta-content-hero h2 {
        font-size: 1.7rem;
    }
    
    .cta-content-hero p {
        font-size: 1rem;
    }
}
/* Media queries para responsividad */
@media (max-width: 992px) {
    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }
    
    .btn-cta-primary, .btn-cta-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* Estilos para la sección de LinkedIn simplificada */
.linkedin-section {
    background: linear-gradient(135deg, #f0faff 0%, #e8f4fd 100%);
    padding: 5rem 0;
}

.linkedin-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.linkedin-photo {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 119, 181, 0.08);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.linkedin-photo:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 119, 181, 0.15);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #0077b5;
    font-size: 1.1rem;
    font-weight: 500;
}

.photo-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #0077b5;
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
    border: none;
}

.btn-linkedin:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 119, 181, 0.4);
    background: linear-gradient(135deg, #005885, #0077b5);
    color: white;
}
.linkedin-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.linkedin-photo {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 119, 181, 0.08);
    transition: all 0.3s ease;
    /* Quitar aspect-ratio fijo para que se adapte al contenido */
    position: relative;
}

.linkedin-photo:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 119, 181, 0.15);
}

.linkedin-image {
    width: 100% !important;
    height: auto !important; /* Altura automática para mantener proporción */
    object-fit: contain !important; /* CLAVE: contain en lugar de cover */
    object-position: center !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    background: white !important; /* Fondo blanco por si hay espacios */
}

.linkedin-photo:hover .linkedin-image {
    transform: scale(1.02) !important; /* Zoom más sutil */
}

/* Responsive mejorado */
@media (max-width: 992px) {
    .linkedin-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .linkedin-photos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
    
    .linkedin-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .linkedin-photos-grid {
        gap: 1rem;
        max-width: 350px;
    }
}

.btn-linkedin i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-linkedin:hover i {
    transform: scale(1.1);
}
.btn-linkedin {
    margin-top: 2.5rem !important;
}

@media (max-width: 768px) {
    .btn-linkedin {
        margin-top: 2rem !important;
    }
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .linkedin-photos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .linkedin-section {
        padding: 3rem 0;
    }
    
    .photo-placeholder i {
        font-size: 2.5rem;
    }
    
    .btn-linkedin {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .linkedin-photos-grid {
        gap: 1rem;
        max-width: 300px;
    }
    
    .photo-placeholder {
        font-size: 1rem;
    }
    
    .photo-placeholder i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .btn-linkedin {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Estilos para la página principal */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-overlay-green {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 30%, rgba(38, 196, 133, 0.4));
}

.hero-overlay-blue {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 30%, rgba(0, 116, 183, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: white;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-btns .btn-outline {
    border-color: white;
    color: white;
}

.hero-btns .btn-outline:hover {
   background-color: white;
   color: var(--primary-color);
}

.hero-credentials {
   display: flex;
   gap: 2rem;
}

.credential {
   display: flex;
   flex-direction: column;
}

.credential-number {
   font-size: 2.5rem;
   font-weight: 700;
   color: var(--secondary-color);
}

.credential-text {
   font-size: 0.9rem;
   opacity: 0.8;
}

.hero-sello {
   display: flex;
   align-items: center;
   margin-top: 2rem;
}

.sello-mujer-img {
   width: 80px;
   margin-right: 1rem;
}

.hero-sello span {
   font-weight: 600;
   letter-spacing: 1px;
   font-size: 1.1rem;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
   color: white;
}

.swiper-pagination-bullet {
   width: 12px;
   height: 12px;
   background: white;
   opacity: 0.5;
}

.swiper-pagination-bullet-active {
   background: var(--secondary-color);
   opacity: 1;
}

/* Section General */
.section-padding {
   padding: 5rem 0;
}

.section-header {
   margin-bottom: 3rem;
}

.section-subtitle {
   display: block;
   color: var(--primary-color);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 2px;
   margin-bottom: 1rem;
   font-size: 0.9rem;
}

.section-title {
   font-size: 2.5rem;
   margin-bottom: 1.5rem;
   color: var(--dark-color);
}

.section-separator {
   display: flex;
   justify-content: center;
   margin-bottom: 1.5rem;
}

.section-separator span {
   position: relative;
   width: 80px;
   height: 3px;
   background-color: var(--secondary-color);
}

.section-separator span::before,
.section-separator span::after {
   content: '';
   position: absolute;
   width: 15px;
   height: 3px;
   background-color: var(--secondary-color);
   opacity: 0.6;
}

.section-separator span::before {
   left: -25px;
}

.section-separator span::after {
   right: -25px;
}

.section-description {
   max-width: 800px;
   margin: 0 auto;
   font-size: 1.1rem;
   color: var(--gray-color);
}

/* Services Section */
.services-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 2rem;
   margin-top: 3rem;
}

.service-card {
   background-color: white;
   border-radius: 15px;
   padding: 2.5rem 2rem;
   transition: all 0.3s ease;
   box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
   position: relative;
   overflow: hidden;
   z-index: 1;
}

.service-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 0;
   background-color: var(--primary-color);
   opacity: 0.05;
   z-index: -1;
   transition: all 0.5s ease;
}

.service-card:hover {
   transform: translateY(-15px);
   box-shadow: 0 15px 50px rgba(0, 116, 183, 0.15);
}

.service-icon {
   width: 80px;
   height: 80px;
   background-color: rgba(0, 116, 183, 0.1);
   color: var(--primary-color);
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   margin-bottom: 1.5rem;
   font-size: 1.8rem;
   transition: all 0.3s ease;
}

.service-card:hover .service-icon {
   background-color: var(--primary-color);
   color: white;
}

.service-icon-blue {
   background-color: rgba(0, 168, 232, 0.1);
   color: var(--accent-color);
}

.service-card:hover .service-icon-blue {
   background-color: var(--accent-color);
   color: white;
}

.service-icon-green {
   background-color: rgba(38, 196, 133, 0.1);
   color: var(--secondary-color);
}

.service-card:hover .service-icon-green {
   background-color: var(--secondary-color);
   color: white;
}

.service-icon-purple {
   background-color: rgba(130, 36, 227, 0.1);
   color: #8224e3;
}

.service-card:hover .service-icon-purple {
   background-color: #8224e3;
   color: white;
}

.service-card h3 {
   font-size: 1.3rem;
   margin-bottom: 1rem;
   font-weight: 600;
}

.service-card p {
   color: var(--gray-color);
   margin-bottom: 1.5rem;
   line-height: 1.7;
   flex-grow: 1; /* Permite que el párrafo ocupe el espacio disponible */
}

.service-features {
   margin-bottom: 1.5rem;
   margin-top: auto; /* Empuja las características hacia abajo */
}

.service-feature {
   display: flex;
   align-items: center;
   margin-bottom: 0.75rem;
}

.service-feature i {
   color: var(--secondary-color);
   margin-right: 0.75rem;
   font-size: 0.9rem;
}

.service-link {
   display: flex;
   align-items: center;
   font-weight: 600;
   color: var(--primary-color);
   transition: all 0.3s ease;
   align-self: flex-start; /* Alinea al inicio horizontal */
   margin-top: auto; /* Empuja el enlace hacia abajo */
}

.service-link i {
   margin-left: 0.5rem;
   transition: all 0.3s ease;
}

.service-link:hover {
   color: var(--secondary-color);
}

.service-link:hover i {
   transform: translateX(5px);
}

/* Asegurar que las tarjetas en la grid tengan la misma altura */
.services-grid {
    grid-auto-rows: 1fr; /* Hace que todas las filas tengan la misma altura */
}

/* Why Choose Us Section */
.why-choose-section {
   background-color: var(--light-color);
   padding: 5rem 0;
}

.why-choose-wrapper {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
}

.why-choose-content h2 {
   font-size: 2.2rem;
   margin-bottom: 2rem;
}

.why-choose-feature {
   display: flex;
   margin-bottom: 2rem;
}

.feature-icon {
   flex-shrink: 0;
   width: 60px;
   height: 60px;
   background-color: white;
   color: var(--primary-color);
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   margin-right: 1.5rem;
   font-size: 1.5rem;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-content h3 {
   font-size: 1.2rem;
   margin-bottom: 0.5rem;
}

.feature-content p {
   color: var(--gray-color);
   line-height: 1.7;
}

.video-wrapper {
   position: relative;
   border-radius: 15px;
   overflow: hidden;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}.video-thumbnail {
   width: 100%;
   display: block;
}

/* Clients Section */
.clients-logos {
   margin-bottom: 4rem;
}

.client-logo {
   height: 100px;
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0.7;
   transition: all 0.3s ease;
}

.client-logo:hover {
   opacity: 1;
}

.client-logo img {
   max-width: 80%;
   max-height: 60px;
}

/* Testimonials */
.testimonial-item {
   padding: 2rem;
}

.testimonial-content {
   background-color: white;
   border-radius: 15px;
   padding: 3rem;
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
   position: relative;
}

.testimonial-content::after {
   content: '\f10e';
   font-family: 'Font Awesome 5 Free';
   font-weight: 900;
   position: absolute;
   top: 2rem;
   right: 2rem;
   font-size: 3rem;
   color: rgba(0, 116, 183, 0.05);
}

.testimonial-rating {
   margin-bottom: 1.5rem;
   color: #FFD700;
}

.testimonial-text {
   font-size: 1.1rem;
   line-height: 1.8;
   margin-bottom: 2rem;
   font-style: italic;
   color: var(--gray-color);
}

.testimonial-author {
   display: flex;
   align-items: center;
}

.author-image {
   width: 70px;
   height: 70px;
   border-radius: 50%;
   overflow: hidden;
   margin-right: 1.5rem;
   border: 3px solid var(--secondary-color);
}

.author-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.author-info h4 {
   margin-bottom: 0.25rem;
   font-weight: 600;
}

.author-info p {
   color: var(--gray-color);
   font-size: 0.9rem;
}

/* Stats Section */
/* Stats Section - Diseño Profesional y Limpio */
.stats-section {
    background-color: #ffffff;
    padding: 3rem 0 !important;
    position: relative;
    border: 1px solid #eaeaea;
    margin: 3rem auto !important;
    max-width: 1100px !important;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.stats-section .container {
    padding: 0 2rem !important;
    max-width: 100% !important;
}

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    align-items: center;
    justify-content: center;
}

.stat-item {
    text-align: center !important;
    padding: 1.5rem !important;
    transition: transform 0.3s ease !important;
}

.stat-item:hover {
    transform: translateY(-5px) !important;
}

.stat-icon {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    color: #0056a8 !important; /* Color corporativo */
}

.stat-number {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    color: #222222 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1 !important;
}

.stat-label {
    font-size: 0.95rem !important;
    color: #666666 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 600 !important;
}

/* Responsive para Stats Section */
@media (max-width: 992px) {
    .stats-section {
        padding: 2.5rem 0 !important;
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1rem !important;
    }
    .stat-number {
        font-size: 2.5rem !important;
    }
    .stat-icon {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    .stat-label {
        font-size: 0.8rem !important;
        letter-spacing: 0.5px !important;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 2rem 0 !important;
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.5rem !important;
    }
    .stat-number {
        font-size: 1.8rem !important;
    }
    .stat-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.8rem !important;
    }
    .stat-label {
        font-size: 0.65rem !important;
        letter-spacing: 0px !important;
    }
}

@media (max-width: 576px) {
    .stats-section {
        padding: 1.5rem 0 !important;
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.2rem !important;
    }
    .stat-number {
        font-size: 1.3rem !important;
    }
    .stat-icon {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    .stat-label {
        font-size: 0.55rem !important;
        letter-spacing: 0px !important;
    }
    .stat-item {
        padding: 0.5rem !important;
    }
}

/* Móviles: estadísticas en 2x2 (este bloque había quedado fuera de su media query
   y forzaba 2 columnas también en escritorio) */
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stat-item {
        padding: 1.5rem 0.8rem !important;
        border-radius: 15px !important;
    }
    
    .stat-icon {
        font-size: 2.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .stat-number {
        font-size: 2.2rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem !important;
    }
}
/* CTA Section */
.cta-section {
   padding: 5rem 0;
   background-color: var(--primary-color);
   color: white;
}

.cta-wrapper {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.cta-content {
   max-width: 60%;
}

.cta-content h2 {
   font-size: 2.2rem;
   margin-bottom: 1rem;
}

.cta-content p {
   opacity: 0.9;
   font-size: 1.1rem;
}

.cta-buttons {
   display: flex;
   gap: 1rem;
}

.btn-light {
   background-color: white;
   color: var(--primary-color);
}

.btn-light:hover {
   background-color: var(--secondary-color);
   color: white;
}

.btn-outline-light {
   border: 2px solid white;
   color: white;
}

.btn-outline-light:hover {
   background-color: white;
   color: var(--primary-color);
}

/* Blog Section */
.blog-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
   margin-top: 3rem;
}

.blog-card {
   background-color: white;
   border-radius: 15px;
   overflow: hidden;
   box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
   transition: all 0.3s ease;
}

.blog-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 15px 40px rgba(0, 116, 183, 0.1);
}

.blog-image {
   position: relative;
   overflow: hidden;
}

.blog-image img {
   width: 100%;
   height: 250px;
   object-fit: cover;
   transition: all 0.5s ease;
}

.blog-card:hover .blog-image img {
   transform: scale(1.1);
}

.blog-date {
   position: absolute;
   bottom: 15px;
   left: 15px;
   background-color: var(--secondary-color);
   color: white;
   padding: 0.5rem 1rem;
   border-radius: 5px;
   text-align: center;
   box-shadow: 0 3px 10px rgba(38, 196, 133, 0.3);
}

.blog-date .day {
   display: block;
   font-size: 1.3rem;
   font-weight: 700;
   line-height: 1;
}

.blog-date .month {
   font-size: 0.8rem;
   text-transform: uppercase;
}

.blog-content {
   padding: 2rem;
}

.blog-title {
   font-size: 1.3rem;
   margin-bottom: 1rem;
   line-height: 1.4;
}

.blog-title a {
   color: var(--dark-color);
   transition: all 0.3s ease;
}

.blog-title a:hover {
   color: var(--primary-color);
}

.blog-meta {
   display: flex;
   margin-bottom: 1rem;
   gap: 1.5rem;
   font-size: 0.9rem;
   color: var(--gray-color);
}

.blog-meta i {
   margin-right: 0.5rem;
   color: var(--primary-color);
}

.blog-excerpt {
   color: var(--gray-color);
   margin-bottom: 1.5rem;
   line-height: 1.7;
}

.blog-read-more {
   font-weight: 600;
   color: var(--primary-color);
   display: flex;
   align-items: center;
}

.blog-read-more i {
   margin-left: 0.5rem;
   transition: all 0.3s ease;
}

.blog-read-more:hover i {
   transform: translateX(5px);
}


.form-group {
   display: flex;
   margin-bottom: 1rem;
}

.form-group input {
   flex: 1;
   padding: 1rem 1.5rem;
   border: 1px solid #e0e0e0;
   border-radius: 50px 0 0 50px;
   font-size: 1rem;
   outline: none;
   transition: all 0.3s ease;
}

.form-group input:focus {
   border-color: var(--primary-color);
}

.form-group button {
   border-radius: 0 50px 50px 0;
   padding: 1rem 2rem;
}

.form-check {
   display: flex;
   align-items: flex-start;
   font-size: 0.9rem;
   color: var(--gray-color);
}

.form-check input {
   margin-right: 0.75rem;
   margin-top: 0.25rem;
}

.form-check a {
   text-decoration: underline;
}

/* Media Queries */
@media screen and (max-width: 1200px) {
   .hero-content h1 {
       font-size: 3rem;
   }
   
   .services-grid,
   .stats-grid {
       grid-template-columns: repeat(2, 1fr);
   }
   
   .why-choose-wrapper {
       gap: 2rem;
   }
   
   .newsletter-wrapper {
       flex-direction: column;
   }
   
   .newsletter-content {
       max-width: 100%;
       margin-bottom: 2rem;
       text-align: center;
   }
   
   .newsletter-form {
       width: 100%;
   }
}

@media screen and (max-width: 992px) {
   .hero-section {
       height: 80vh;
   }
   
   .hero-content h1 {
       font-size: 2.5rem;
   }
   
   .why-choose-wrapper {
       grid-template-columns: 1fr;
   }
   
   .why-choose-video {
       order: -1;
   }
   
   .cta-wrapper {
       flex-direction: column;
       text-align: center;
   }
   
   .cta-content {
       max-width: 100%;
       margin-bottom: 2rem;
   }
   
   .blog-grid {
       grid-template-columns: repeat(2, 1fr);
   }
}

@media screen and (max-width: 768px) {
   .hero-section {
       height: auto;
       min-height: 600px;
   }
   
   .hero-content h1 {
       font-size: 2rem;
   }
   
   .hero-content p {
       font-size: 1rem;
   }
   
   .hero-credentials {
       flex-wrap: wrap;
   }
   
   .section-title {
       font-size: 2rem;
   }
   
   .services-grid,
   .stats-grid {
       grid-template-columns: 1fr;
   }
   
   .blog-grid {
       grid-template-columns: 1fr;
   }
   
   .form-group {
       flex-direction: column;
   }
   
   .form-group input {
       border-radius: 50px;
       margin-bottom: 1rem;
   }
   
   .form-group button {
       border-radius: 50px;
       width: 100%;
   }
}

/* Animations for counters */
@keyframes countUp {
   from {
       opacity: 0;
       transform: translateY(20px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}
