/* public/css/main.css */

/* Reset universal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ============================================
   HEADER MODERNO
   ============================================ */

.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.4s ease;
    background: rgba(51, 71, 249, 0.45);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    width: 120px;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d1d5db;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: #2563eb;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.nav-link:hover::before {
    width: 60%;
}

.nav-link.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    font-weight: 600;
}

.nav-link.active::before {
    width: 60%;
}

.nav-cta {
    margin-left: 1rem;
}

.btn-nav {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    display: inline-block;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-nav::before {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(37, 99, 235, 0.05);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #1f2937;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #2563eb;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #2563eb;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* ============================================
   CARRUSEL DE PORTFOLIO
   ============================================ */

.portfolio-carousel-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.portfolio-carousel-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-carousel-section .section-title {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.portfolio-carousel-section .section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
}

.portfolio-carousel-container {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

.portfolio-carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.portfolio-project-card {
    min-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.portfolio-project-inner {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.portfolio-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-project-content {
    padding: 2rem;
}

.portfolio-project-content h3 {
    color: #2563eb;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-project-cliente {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-project-desc {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #f3f4f6;
    color: #2563eb;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.portfolio-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2563eb;
}

.portfolio-carousel-btn:hover {
    background: #2563eb;
    color: white;
}

.portfolio-carousel-btn.prev-btn {
    left: 10px;
}

.portfolio-carousel-btn.next-btn {
    right: 10px;
}

#dots-container,
.portfolio-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.portfolio-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.3s;
}

.portfolio-dot.active {
    background: #2563eb;
}

.portfolio-cta {
    text-align: center;
    margin-top: 3rem;
}

           /* ============================================
        CARRUSEL DE CLIENTES - LOGOS INFINITO
        ============================================ */

        .clientes-carousel-section {
            padding: 4rem 0;
            background: #f9fafb;
            overflow: hidden;
        }

        .clientes-carousel-section .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .clientes-carousel-section .section-title {
            font-size: 2rem;
            color: #1f2937;
            margin-bottom: 0.5rem;
        }

        .clientes-carousel-section .section-subtitle {
            color: #6b7280;
            font-size: 1.1rem;
        }

        .clientes-carousel-container {
            position: relative;
            width: 100%;
            overflow: hidden;
            mask-image: linear-gradient(
                to right,
                transparent,
                black 10%,
                black 90%,
                transparent
            );
            -webkit-mask-image: linear-gradient(
                to right,
                transparent,
                black 10%,
                black 90%,
                transparent
            );
        }

        .clientes-carousel-track {
            display: flex;
            animation: scroll-logos 30s linear infinite;
            width: max-content;
        }

        .clientes-carousel-track:hover {
            animation-play-state: paused;
        }

        .cliente-logo-card {
            flex-shrink: 0;
            width: 200px;
            height: 120px;
            margin: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border-radius: 10px;
            padding: 1.5rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .cliente-logo-card:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }

        .cliente-logo-card img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            filter: grayscale(100%);
            opacity: 0.7;
            transition: all 0.3s ease;
        }

        .cliente-logo-card:hover img {
            filter: grayscale(0%);
            opacity: 1;
        }

        /* Animación infinita */
        @keyframes scroll-logos {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }





.cobertura-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.cobertura-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cobertura-section .section-title {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.cobertura-section .section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
}

.mapa-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mapa-wrapper {
    position: relative;
    background: white;
}

#mapa-colombia {
    width: 100%;
    height: auto;
    max-height: 700px;
}

.departamentos-lista {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
}

.departamentos-lista h3 {
    color: #1f2937;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.departamentos-tags {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.departamento-tag {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.departamento-tag:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.departamento-tag.activo {
    background: #2563eb;
    color: white;
}

.departamento-icon {
    width: 24px;
    height: 24px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.departamento-tag.activo .departamento-icon {
    background: white;
    color: #2563eb;
}

.departamento-nombre {
    font-weight: 600;
    flex: 1;
}

.departamento-proyectos {
    background: rgba(37, 99, 235, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.departamento-tag.activo .departamento-proyectos {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Responsive */
@media (max-width: 968px) {
    .mapa-container {
        grid-template-columns: 1fr;
    }
    
    .departamentos-lista {
        order: -1;
    }
}

        /* ============================================
            fin MAPA DE COLOMBIA - COBERTURA
        ============================================ */

/* ============================================
   RESPONSIVE - MÓVILES
   ============================================ */

/* Responsive para el header */
@media (max-width: 768px) {
  
    
    .mapa-container {
        padding: 1.5rem;
    }
    
    #mapa-colombia {
        max-height: 400px;
    }

    .clientes-carousel-section .section-title {
                font-size: 1.5rem;
            }
            
    .cliente-logo-card {
                width: 150px;
                height: 100px;
                margin: 0 1rem;
            }
            
     @keyframes scroll-logos {
        0% {
            transform: translateX(0);
            }
        100% {
            transform: translateX(-50%);
            }
            }

    .hamburger {
        display: flex;
    }
    
        /* Header debe ser relativo para que el menú se posicione respecto a él */
    .header {
        position: relative;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .logo img {
        width: 140px;
        height: auto;
    }

    /* Menú desplegable hacia abajo */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-white);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        border-top: 1px solid var(--border-color);
    }
     /* Estado activo: menú desplegado */
    .nav-menu.active {
        max-height: 600px;
        padding: 1rem 0;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        text-align: left;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(37, 99, 235, 0.05);
        padding-left: 2rem;
    }
    
    .nav-link.active::after {
        display: none;
    }



    /* Botón CTA en móvil */
    .nav-cta {
        margin-left: 0;
        padding: 0.5rem 1.5rem;
    }
    
    .btn-nav {
        display: block;
        text-align: center;
        padding: 0.8rem !important;
    }

    /* Animación del hamburguesa a X */
    .hamburger {
        padding: 10px;
        margin-right: 10px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Ajustes generales responsive */
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo img {
        width: 70px;
        height: 100%;
    }
    
    .portfolio-carousel-section .section-title {
        font-size: 1.8rem;
    }
    
    .portfolio-carousel-container {
        max-width: 95%;
    }
    
    .portfolio-carousel-btn {
        width: 35px;
        height: 35px;
    }

 
  
}