:root {
    --primary-color: #155494;
    --accent-color: #007BFF;
    --accent-hover: #0056b3;
    --bg-light: #F6F9FC;
    --bg-white: #FFFFFF;
    --text-dark: #333;
    --text-light: #6B7C93;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1100px;
}

/* --- RESET Y GLOBALES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
}
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3 { font-family: var(--font-title); color: var(--primary-color); font-weight: 700; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }

/* --- HEADER Y NAVEGACIÓN --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}
.header-scrolled { box-shadow: 0 2px 15px rgba(0,0,0,0.07); border-bottom: 1px solid #E0E6EB; }
.main-nav { display: flex; justify-content: space-between; align-items: center; height: 70px; position: relative; }
.logo { text-decoration: none; color: var(--primary-color); font-size: 1.3rem; }
.logo strong { color: var(--accent-color); }
.nav-links { display: flex; list-style: none; gap: 1rem; }
.nav-links a { text-decoration: none; color: var(--primary-color); padding: 0.5rem 1rem; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }

/* Estilos para el botón de hamburguesa (oculto en desktop) */
.menu-toggle {
    display: none; 
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 101; 
}

/* --- SECCIÓN HERO --- */
#hero {
    background: linear-gradient(to right, #0A2540, #3C5A7D);
    color: var(--bg-white);
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}
#hero h1 { font-size: 3.5rem; color: var(--bg-white); margin-bottom: 1rem; }
#hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem auto; opacity: 0.9; }

.cta-button {
    background: var(--accent-color);
    color: var(--bg-white);
    padding: 14px 28px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}
.cta-button:hover { background-color: var(--accent-hover); transform: translateY(-3px); }

/* --- SECCIÓN CLIENTES (Modificado para Swiper) --- */
#clientes { background: var(--bg-light); padding: 2rem 0; }
#clientes p { text-align: center; font-weight: 600; color: var(--text-light); margin-bottom: 1.5rem; }

/* Estilos aplicados a las imágenes dentro del Swiper */
.client-swiper img { 
    max-height: 40px; 
    opacity: 0.7; 
    transition: all 0.3s ease; 
}
.client-swiper img:hover { 
    filter: grayscale(0%); 
    opacity: 1; 
}

/* ESTILO PARA UN LOGO ESPECÍFICO (ej: teamcortes2) */
.client-swiper img.logo-teamcortes-grande {
    max-height: 60px; 
    vertical-align: middle; 
}


/* Estilo para el nuevo logo Rocketbot */

.client-swiper img.logo-rocketbot-peq {
    max-height: 20px; 
    vertical-align: middle; 
}

/* Estilo para el nuevo logo Smartker */

.client-swiper img.logo-smartker-peq {
    max-height: 20px; 
    vertical-align: middle; 
}

/* --- SECCIÓN SERVICIOS --- */
#servicios { padding: 5rem 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* forzado a 2 columnas */
    gap: 2rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* una columna en móviles */
    }
}


.service-card {
    background: linear-gradient(135deg, #e0f2f7, #c2e2fd);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;<s
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.service-card i { font-size: 3rem; color: var(--accent-color); margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 1rem; }

/* --- NUEVA SECCIÓN: TESTIMONIOS --- */
.testimonials-section {
    padding: 5rem 0;
    background: var(--bg-light); 
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    display: flex; 
    flex-direction: column;
    justify-content: space-between; 
    text-align: center; 
    min-height: 250px; 
}

.testimonial-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.testimonial-card .quote {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem; 
    font-style: italic; 
}

.testimonial-card .author {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600; 
}

.testimonial-card .title {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0;
}

/* --- CASOS DE USO (TABS) --- */
.use-cases { padding: 5rem 0; background: var(--bg-light); }
.tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;} 
.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: #fff;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap; 
}
.tab-link:hover { background: #eee; }
.tab-link.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.tab-content { 
    display: none; 
    text-align: center; 
    max-width: 700px; 
    margin: 0 auto; 
    padding: 1rem 0; 
}
.tab-content.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Estilos para video responsivo dentro de las pestañas */
.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
    border-radius: 8px; 
}

/* --- SECCIÓN: SOBRE NOSOTROS --- */
#sobre-nosotros { padding: 5rem 0; background: var(--bg-white); }
.about-container {
    display: grid;
    grid-template-columns: 2fr 1.5fr; 
    gap: 4rem;
    align-items: center;
}
.about-text h2 { text-align: left; margin-bottom: 1.5rem;} 
.about-text p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 1rem; }

.about-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap; 
}
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1; 
    margin-bottom: 0.5rem;
}
.stat-item p {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- NUEVA SECCIÓN: PREGUNTAS FRECUENTES (FAQ) --- */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.faq-question {
    display: block; 
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    user-select: none; 
}

.faq-question::after {
    content: '\f078'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(180deg); 
}

.faq-answer {
    padding: 0 1.5rem 1.2rem 1.5rem;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}
.faq-answer p:last-child {
    margin-bottom: 0; 
}


/* Logo del banner */
/* ESTILOS PARA LA IMAGEN DEL LOGO DENTRO DEL HEADER (AJUSTADO) */
.logo-img {
    height: 35px; /* **VALOR AJUSTADO: Hice el logo más pequeño, puedes ajustar este valor.** */
    width: auto; /* Mantiene la proporción de la imagen */
    vertical-align: middle; /* Buena práctica para alineación */
}
@media (max-width: 768px) {
    /* ... otros estilos ... */
    .logo-img {
        height: 20px; /* **VALOR AJUSTADO: Lo he bajado a 20px para móviles.** */
    }
    /* ... otros estilos ... */
}

/* --- SECCIÓN CONTACTO --- */
#contacto { padding: 5rem 0; background: linear-gradient(135deg, #ffffff, #4ca3fa);} /* Para cambiar el color de la parte de contacto.*/

.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-info p { margin-bottom: 1rem; font-size: 1.1rem; }
.contact-info i { color: var(--accent-color); margin-right: 10px; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    background-color: #FFFFFF;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline-color: var(--accent-color); }
.contact-form button { width: 100%; }

/* --- FOOTER --- */
.main-footer { background-color: #f0f8ff; color: #131212; text-align: center; padding: 2rem 0; }

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; 
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    z-index: 1000; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08); 
    box-shadow: 2px 2px 12px rgba(0,0,0,0.3);
}

/* --- ANIMACIONES DE SCROLL --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .about-container { 
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .about-text h2 { text-align: center; }
}

/* MEDIA QUERY PARA MÓVILES (cuando aparece la hamburguesa) */
@media (max-width: 768px) {
    .contact-container { grid-template-columns: 1fr; }
    #hero h1 { font-size: 2.5rem; }
    
    /* Oculta los enlaces de navegación y muestra el botón de hamburguesa */
    .nav-links {
        display: flex; /* Se mantiene flex para la dirección de columna, pero se controla visibilidad con opacity */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; 
        left: 0;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        padding: 0; /* padding 0 inicial para la transición */
        z-index: 99;
        max-height: 0; 
        overflow: hidden; 
        opacity: 0; /* Inicialmente transparente */
        pointer-events: none; /* No interactuable cuando está oculto */
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out; /* Transiciones suaves */
    }

    .nav-links.active {
        max-height: 300px; /* Altura suficiente para mostrar los enlaces */
        opacity: 1; /* Completamente visible */
        padding: 1rem 0; /* Padding de vuelta para el contenido */
        pointer-events: auto; /* Interactuable cuando está activo */
    }

    .nav-links li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        display: block; 
        color: var(--primary-color);
        font-weight: 600;
    }

    .nav-links a:hover {
        background-color: var(--bg-light);
    }

    .menu-toggle {
        display: block; 
    }

    .about-stats { flex-direction: column; } 
    .tabs { flex-direction: column; align-items: center; } 
    .tab-link { width: 100%; } 

    /* Ajuste para el botón flotante en móviles */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}
