
/* 1. IMPORTACIÓN UNIFICADA DE GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

:root {
    --blue-600: #3832ec;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;
    --orange: #ff613c ;
    --dark-blue: #1e3a5a;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --transition: all 0.3s ease;
    /* Variables de fuente */
    --font-titles: 'Nunito Sans', sans-serif;
    --font-body: 'Mulish', sans-serif;
}

/* 2. CONFIGURACIÓN GLOBAL */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: var(--font-body); /* Nunito Sans para todo lo demás */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 3. TÍTULOS (Mulish) */
h1, h2, h3, .section-title, .btn-hero, .btn-more, .btn-submit {
    font-family: var(--font-titles);
    font-weight: 800; /* Peso fuerte para Mulish */

}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Mulish', sans-serif; background: var(--blue-600); color: #000; overflow-x: hidden; scroll-behavior: smooth; font-size: 18px; }

.container { max-width: 1280px; margin: 0 auto; px: 1.5rem; }



/* --- NAVEGACIÓN COMPACTA --- */
/* --- NAVEGACIÓN COMPACTA CORREGIDA --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; 
    /* Forzamos el color azul y usamos !important para evitar sobrescrituras */
    background-color: #3832ec !important; 
    display: flex;
    align-items: center;
    z-index: 9999; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Opcional: línea sutil inferior */
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ajuste del Logo */
.logo img {
    height: 40px; /* Tamaño más discreto */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Enlaces de Escritorio Compactos */
.nav-links {
    display: none;
    gap: 1.5rem; /* Espacio reducido entre links */
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-link {
    text-decoration: none;
    color: #fff; /* gray-600 */
    font-weight: 600;
    font-size: 18px; /* Fuente más pequeña y moderna */
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

/* Botón de Contacto Estilizado */
.btn-contacto {
    background: var(--orange);
    color: white !important;
    padding: 0.5rem 1.2rem; /* Más pequeño */
    border-radius: 6px; /* Bordes menos redondeados para un look corporativo */
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-contacto:hover {
    background: var(--blue-600);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Menú Toggle (Hamburguesa) más pequeño */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray-600);
    cursor: pointer;
}

@media (min-width: 768px) {
    .menu-toggle { display: none; }
}

/* --- MENÚ MÓVIL (LATERAL) --- */
.mobile-menu { 
    position: fixed; 
    top: 0; 
    right: 0; 
    height: 100vh; 
    width: 280px; 
    background: white; 
    z-index: 1001; 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    gap: 1.25rem; /* Espaciado entre links */
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); 
}

.mobile-menu.menu-open { transform: translateX(0); }

/* Enlaces dentro del menú móvil para que se vean igual al escritorio */
.mobile-nav-link { 
    text-decoration: none; 
    color: #374151; 
    font-weight: 600; 
    font-size: 0.875rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6; /* Línea sutil divisoria */
    transition: var(--transition);
}

.mobile-nav-link:hover { color: var(--blue-600); padding-left: 5px; }

/* El botón de contacto dentro del menú móvil */
.mobile-menu .btn-contacto { 
    text-align: center; 
    margin-top: 1rem; 
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

/* Botones de control */
.menu-toggle { background: none; border: none; font-size: 1.5rem; color: var(--white); cursor: pointer; }
.close-menu { align-self: flex-end; background: none; border: none; font-size: 1.5rem; color: #9ca3af; cursor: pointer; margin-bottom: 1rem; }}

/* HERO / CAROUSEL ACTUALIZADO */
/* HERO / CAROUSEL ACTUALIZADO */
.hero-carousel { 
    height: 100vh; /* Ocupa el 100% de la altura de la ventana */
    width: 100%;
    position: relative; 
    overflow: hidden; 
    display: flex; /* Ayuda a alinear el contenido interno */
}

.carousel-item { 
    display: none; 
    height: 100vh; /* Forzamos a que cada item sea pantalla completa */
    width: 100vw; 
    position: relative; 
}

.carousel-item.active { 
    display: block; 
    animation: fadeIn 0.8s ease; 
}

.carousel-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* La imagen se recorta para llenar el espacio sin deformarse */
    object-position: center; /* Mantiene el centro de la imagen siempre visible */
}

.carousel-overlay { 
    position: absolute; 
    margin-left: 0;
    inset: 0; 
    /*background: rgba(0, 0, 0, 0.4);  Capa oscura para que el texto resalte más */
    display: flex; 
    align-items: center; 
    justify-content: left; /* Centra el contenido horizontalmente también */
    padding: 0 5%; 
    text-align: center;
}

.hero-content { 
    color: white; 
    max-width: 900px; 
    z-index: 10;
    max-width: 700px;
    margin-left: 0;
}

.hero-content h1 { 
    font-size: clamp(2rem, 8vw, 4rem); /* Tamaño fluido: min 2rem, ideal 8% ancho, max 4rem */
    font-weight: 800; 
    margin-bottom: 1.5rem; 
    line-height: 1.1; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Mejora legibilidad */
}

.hero-content p { 
    font-size: clamp(1rem, 4vw, 1.25rem); 
    margin-bottom: 2rem; 
}

.btn-hero {
    display: inline-block; /* Asegura que respete padding y márgenes */
    background: var(--white); 
    color: var(--blue-900) !important; /* Forzamos el color para que no herede el azul oscuro del texto */
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 1.5rem; /* Espaciado extra */
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Sombra para que flote */
float: left;
}

.btn-hero:hover {
    background: var(--orange);
    color: white !important;
}



/* Si estás usando un enlace simple en el HTML como el de la captura */
.hero-content a {
    color: var(--white);
    
    font-weight: 700;
}

/* O mejor aún, aplica la clase .btn-hero a ese enlace en tu HTML */

.btn-contacto {
    display: flex; /* Asegura que sea visible */
    align-items: center;
    justify-content: center;
}

/* --- SECTIONS --- */
.section-padding { padding: 5rem 1.5rem; }
.white-bg { background: white; }
.gray-bg { background: var(--gray-50); }

.section-title { 
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Tamaño fluido según pantalla */
    font-weight: 800; 
    margin-bottom: 1.5rem; 
}
.section-title.blue { color: var(--blue-600); }

/* --- GRID DE SERVICIOS (OPTIMIZADO) --- */
.services-grid {
    display: grid;
    /* En móviles muy pequeños, 1 columna para que no se vea apretado */
    grid-template-columns: 1fr; 
    gap: 1.5rem;
    margin-top: 3rem;
    width: 100%;
}

@media (min-width: 480px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- TARJETA DE SERVICIO (ICONOS MÁS GRANDES) --- */
.service-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 3rem 1.5rem; /* Aumentado padding superior e inferior */
    width: 100%;
    /* Quitamos aspect-ratio rígido para evitar que el texto se salga en móviles */
    min-height: 400px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Alinea icono arriba, botón abajo */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
}

.reveal.active .service-icon {
    animation: giroInicial 1.2s ease;
}

@keyframes giroInicial {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(56, 50, 236, 0.15);
}

/* --- ICONO MÁS GRANDE Y ANIMACIÓN --- */
.icon-container {
    width: 150px;  /* Aumentado de 80px a 120px */
    height: 150px; /* Aumentado de 80px a 120px */
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px; /* Mejora el efecto 3D del giro */
}

.service-icon {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Asegura que el PNG se vea bien */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg); /* Mantenemos el efecto de giro */
}

/* --- TEXTO Y BOTÓN --- */
.service-text {
    font-weight: 800;
    color: #1e3a5a;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.btn-more {
    display: inline-block;
    background: #3832ec;
    color: #ffffff !important;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #3832ec;
    margin-top: auto; /* Empuja el botón al final de la tarjeta */
}

.btn-more:hover {
    background: transparent;
    color: #3832ec !important;
}
.btn-hero {
    display: inline-block;
    background: white; 
    color: var(--blue-600) !important; 
    padding: 1.2rem 3rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    z-index: 1;
    /* Aplicamos la animación de pulso */
    animation: pulse-attention 3s infinite;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}

/* Animación de Pulso */
@keyframes pulse-attention {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Efecto al pasar el mouse (se detiene la animación y cambia de color) */
.btn-hero:hover {
    animation: none; /* Se detiene para que el usuario pueda hacer clic cómodamente */
    background: var(--orange);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}





/* FORM */
.form-container { max-width: 900px; margin: 0 auto; }
.form-card { border: 1px solid var(--blue-600); border-radius: 40px; padding: 3rem; box-shadow: 0 30px 60px rgba(0,0,0,0.05); }
.contact-form { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .contact-form { grid-template-columns: 1fr 1fr; } .full-width { grid-column: span 2; } }
.form-group label { display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: #aaa; margin-bottom: 0.5rem; margin-left: 0.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: none; background: #f3f4f6; border-radius: 1rem; outline: none; transition: 0.3s; }
.form-group input:focus { ring: 2px solid var(--blue-600); background: white; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.btn-submit { grid-column: 1 / -1; background: #3832ec; color: white; padding: 1.25rem; border: none; border-radius: 1rem; font-weight: bold; text-transform: uppercase; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background: var(--orange); transform: scale(1.02); }

/* FOOTER */
.main-footer { background: #111827; color: #9ca3af; padding: 5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { height: 3rem; margin-bottom: 1.5rem; }
.footer-phone { font-size: 1.8rem; color: var(--blue-600); font-weight: 300; }
.social-links { display: flex; gap: 1.5rem; margin-top: 1.5rem; font-size: 1.5rem; }
.social-links a { color: inherit; transition: 0.3s; }
.social-links a:hover { color: var(--blue-600); }
 

/* ESTADÍSTICAS (STATS) */
.stats-section { background: var(--blue-600); color: white; overflow: hidden; }

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

@media (min-width: 768px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

.stats-tag { color: #60a5fa; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; display: block; margin-bottom: 1rem; }
.stats-title { font-size: 2.5rem; line-height: 1.1; margin-bottom: 2rem; }
.stats-text { color: #bfdbfe; font-size: 1.1rem; line-height: 1.7; margin-bottom: 2.5rem; }

.counter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.counter-number { color: #60a5fa; font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.counter-label { color: #93c5fd; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }

.stats-image img { 
    width: 100%; 
    border-radius: 2rem; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
}

/* CLIENTES (LOGOS) */
.clients-section { background: var(--gray-50); }
.clients-subtitle { 
    color: #9ca3af; 
    font-size: 0.7rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.3em; 
    margin-bottom: 3rem; 
    text-align: center;
}

.clients-logos { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center; 
    gap: 4rem; 
    opacity: 0.4; 
    filter: grayscale(100%); 
    transition: var(--transition); 
}

.clients-logos:hover { opacity: 1; filter: grayscale(0); }
.clients-logos img { height: 80px; width: auto; object-fit: contain; }

/* AUXILIAR: Retraso de animación */
.delay-200 { transition-delay: 0.2s; }
.text-center { text-align: center; }

/* WHATSAPP & ANIMATIONS */
.wa-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 2000; display: flex; flex-direction: column; align-items: flex-end; }
.whatsapp-btn { background: #25D366; color: white; width: 4rem; height: 4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.2); animation: pulse-green 2s infinite; text-decoration: none; }
.wa-popup { background: white; padding: 1rem; border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,0.1); margin-bottom: 1rem; font-size: 0.8rem; border: 1px solid #eee; }
.hidden { display: none; }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }