:root {
    --primary-brand: #1E1B4B;
    --secondary-tech: #2563EB;
    --accent-cta: #DC2626;
    --background-light: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-600: #475569;
    --gray-800: #1E293B;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--background-light); color: var(--gray-800); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Navbar */
.navbar {
    background-color: var(--primary-brand);
    position: fixed; top: 0; width: 100%; z-index: 999;
    box-shadow: 0 4px 20px rgba(30, 27, 75, 0.15);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem;
}
.logo {
    display: flex; align-items: center; gap: 0.75rem; text-decoration: none;
}
.logo-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--secondary-tech), var(--primary-brand));
    border-radius: 10px; color: white; font-weight: 700; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
}
.logo-text {
    color: white; font-weight: 700; font-size: 1.3rem; line-height: 1.2;
}
.logo-subtext {
    color: #A5B4FC; font-size: 0.75rem; font-weight: 500;
}

/* Menu Desktop */
.nav-menu {
    display: flex; align-items: center; gap: 2rem;
}
.nav-menu ul {
    display: flex; list-style: none; gap: 2rem;
}
.nav-link {
    color: #E2E8F0; text-decoration: none; font-weight: 500;
    transition: color 0.2s; padding: 0.5rem 0; position: relative;
}
.nav-link:hover { color: white; }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background-color: var(--secondary-tech);
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.btn-ot {
    background-color: var(--accent-cta); color: white; border: none;
    padding: 0.75rem 1.5rem; border-radius: 6px; font-weight: 600;
    text-decoration: none; transition: all 0.3s; white-space: nowrap;
}
.btn-ot:hover { background-color: #B91C1C; transform: translateY(-2px); }

/* Menu Toggle Mobile */
.menu-toggle, .close-menu {
    display: none; background: none; border: none; color: white;
    font-size: 1.5rem; cursor: pointer;
}

/* Hero */
.hero {
    padding-top: 140px; padding-bottom: 80px;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    text-align: center;
}
.hero-title {
    font-size: 3.5rem; font-weight: 800; color: var(--primary-brand);
    margin-bottom: 1.5rem; line-height: 1.1;
}
.hero-subtitle {
    font-size: 1.25rem; color: var(--gray-600);
    max-width: 700px; margin: 0 auto 3rem;
}
.hero-cta {
    background-color: var(--secondary-tech); color: white;
    padding: 1rem 2.5rem; border-radius: 8px; font-size: 1.1rem;
    font-weight: 600; text-decoration: none; display: inline-flex;
    align-items: center; gap: 0.5rem; transition: all 0.3s;
}
.hero-cta:hover { background-color: #1D4ED8; transform: translateY(-2px); }

/* Stats */
.stats-section { background-color: var(--white); }
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; margin-top: 3rem;
}
.stat-card {
    text-align: center; padding: 2rem; background: var(--background-light);
    border-radius: 12px; border: 1px solid var(--gray-200);
}
.stat-icon { font-size: 3rem; color: var(--secondary-tech); margin-bottom: 1rem; }
.stat-number {
    font-size: 3.5rem; font-weight: 800; color: var(--primary-brand);
    display: block; line-height: 1;
}
.stat-label { color: var(--gray-600); font-size: 1.1rem; margin-top: 0.5rem; }

/* Services Carousel */
.carousel-container {
    position: relative; max-width: 1000px; margin: 3rem auto 0;
    overflow: hidden;
}
.services-carousel {
    display: flex; transition: transform 0.5s ease; gap: 2rem;
}
.service-category {
    flex: 0 0 calc(33.333% - 1.34rem); /* Muestra 3 por vista */
    background: var(--white); border-radius: 12px; padding: 2rem;
    border: 1px solid var(--gray-200); box-shadow: 0 4px 20px rgba(30, 27, 75, 0.08);
}
.category-icon { font-size: 2.5rem; color: var(--secondary-tech); margin-bottom: 1rem; }
.service-category h3 { font-size: 1.5rem; color: var(--primary-brand); margin-bottom: 1rem; }
.service-category ul { list-style: none; }
.service-category li { padding: 0.5rem 0; color: var(--gray-600); display: flex; align-items: center; gap: 0.5rem; }
.service-category li i { color: var(--secondary-tech); }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--primary-brand); color: white; border: none;
    width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem;
    cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--secondary-tech); }
.prev { left: -25px; }
.next { right: -25px; }
.carousel-dots {
    display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem;
}
.carousel-dots .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--gray-200); cursor: pointer; transition: background 0.3s;
}
.carousel-dots .dot.active { background: var(--secondary-tech); }

/* Logos Sections */
.logos-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem; margin-top: 3rem; align-items: center; justify-items: center;
}
.logos-grid img {
    max-width: 120px; max-height: 80px; width: auto; height: auto;
    filter: grayscale(100%); opacity: 0.8; transition: all 0.3s;
}
.logos-grid img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.05); }

/* Contact */
.contact-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    margin-top: 3rem;
}
.contact-form, .contact-info, .contact-map {
    background: var(--white); padding: 2rem; border-radius: 12px;
    border: 1px solid var(--gray-200);
}
.contact-form h3, .contact-info h3, .contact-map h3 {
    color: var(--primary-brand); margin-bottom: 1.5rem;
}
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 0.75rem; margin-bottom: 1rem;
    border: 1px solid var(--gray-200); border-radius: 6px;
    font-family: 'Inter', sans-serif;
}
.submit-btn {
    background-color: var(--secondary-tech); color: white;
    border: none; padding: 0.75rem 2rem; border-radius: 6px;
    font-weight: 600; cursor: pointer; width: 100%;
}
.submit-btn:hover { background-color: #1D4ED8; }
.contact-info p { margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-info i { color: var(--secondary-tech); margin-top: 0.25rem; }
.contact-map iframe {
    width: 100%; height: 300px; border: none; border-radius: 8px;
}

/* Footer */
.footer {
    background-color: var(--primary-brand); color: white;
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
    margin-bottom: 3rem;
}
.footer-about h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-subtext {
    color: #A5B4FC; font-size: 0.85rem; font-weight: 500;
    margin-bottom: 1rem;
}
.footer-contact h4, .footer-links h4 {
    font-size: 1.1rem; margin-bottom: 1.5rem; color: #818CF8;
}
.footer-contact p { margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.footer-contact i { color: #818CF8; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: #E2E8F0; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom {
    text-align: center; padding-top: 2rem; border-top: 1px solid #3730A3;
    color: #A5B4FC; font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-category { flex: 0 0 calc(50% - 1rem); } /* 2 por vista en tablet */
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .contact-map { grid-column: span 2; }
}
@media (max-width: 768px) {
    .menu-toggle, .close-menu { display: block; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; height: 100vh;
        background: var(--primary-brand); width: 280px; padding: 2rem;
        flex-direction: column; align-items: flex-start;
        transition: right 0.3s ease; z-index: 1001;
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; gap: 1.5rem; }
    .close-menu { align-self: flex-end; margin-bottom: 2rem; }
    .btn-ot { margin-top: 1rem; align-self: stretch; text-align: center; }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .service-category { flex: 0 0 100%; } /* 1 por vista en móvil */
    .carousel-btn { display: none; } /* Ocultar flechas en móvil */
    .contact-grid { grid-template-columns: 1fr; }
    .contact-map { grid-column: 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; }
}