/*
Theme Name: Concitech Ultra Enterprise
Description: Diseño de alta gama con efecto Glassmorphism, neones sutiles, timeline y tarjetas interactivas.
Author: Concitech Team
Version: 8.3 (Responsive & Testimonial Carousel)
*/

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;600;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --purpura-corp: #2A1E5B; 
    /* 1. SE LE BAJÓ EL TONO AL COLOR VERDE PARA QUE SEA MÁS SOBRIO */
    --verde-acc: #029A30;    
    --verde-glow: rgba(2, 154, 48, 0.4);
    --fondo-deep: #03030b;
    --blanco: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* =========================================
   BASE Y TIPOGRAFÍA
   ========================================= */
body {
    background-color: var(--fondo-deep);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(42, 30, 91, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(2, 154, 48, 0.05) 0%, transparent 40%),
        url('assets/images/FONDO%20LANDING%20PAGE.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--blanco);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo { 
    font-family: 'Lexend', sans-serif; 
    letter-spacing: -0.5px;
    margin-top: 0;
}

.text-green { color: var(--verde-acc); }
.section { padding: 100px 8%; position: relative; z-index: 10; }
.container { max-width: 1200px; margin: 0 auto; }

/* =========================================
   ELIPSES MAGICAS (FONDO)
   ========================================= */
.bg-elipse {
    position: fixed;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--verde-glow) 0%, transparent 70%);
    z-index: 0;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.15;
    animation: floatingLight 25s infinite alternate ease-in-out;
}

@keyframes floatingLight {
    0% { transform: translate(-10%, -10%); }
    100% { transform: translate(30%, 20%); }
}

/* =========================================
   NAVBAR Y FOOTER (GLASSMORPHISM)
   ========================================= */
.theme-bar {
    background: rgba(18, 13, 43, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: var(--verde-acc);
    border-style: solid;
    box-sizing: border-box;
}

/* 2. NAVBAR MODIFICADO PARA QUE QUEDE FLOTANDO ESTILO ISLA */
.navbar {
    position: fixed; 
    top: 20px; /* Separación del techo */
    left: 5%; /* Centrado */
    width: 90%; /* No toca las orillas */
    border-radius: 20px; /* Bordes redondeados para el efecto flotante */
    border: 1px solid var(--verde-acc);
    padding: 0 5%;
    min-height: 80px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Sombra para resaltar el flote */
    transition: all 0.3s ease;
}

.site-footer {
    border-width: 2px 0 0 0;
    padding: 60px 8%;
    margin-top: 80px;
}

/* =========================================
   BOTONES
   ========================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--verde-acc) 0%, #027a26 100%);
    color: #fff; /* Texto blanco por el verde más oscuro */
    padding: 16px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    transition: 0.4s ease;
    box-shadow: 0 10px 20px rgba(2, 154, 48, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(2, 154, 48, 0.5);
}

/* 3. BOTÓN BLANCO PARA EL HERO */
.btn-white {
    background: #FFFFFF;
    color: var(--purpura-corp);
    padding: 16px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    transition: 0.4s ease;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
    border: none;
}

.btn-white:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.4);
    background: #f0f0f0;
}

/* =========================================
   TARJETAS DE SOLUCIONES TECNOLÓGICAS
   ========================================= */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-card {
    background: linear-gradient(145deg, rgba(42, 30, 91, 0.6), rgba(18, 13, 43, 0.9));
    border: 1px solid rgba(2, 154, 48, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tech-card::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--verde-acc);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 25px rgba(2, 154, 48, 0.2);
    border-color: rgba(2, 154, 48, 0.5);
}

.tech-card:hover::before { transform: scaleX(1); }

.icon-wrapper {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(2, 154, 48, 0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
    border: 1px solid rgba(2, 154, 48, 0.3);
    transition: transform 0.4s ease;
}

.tech-card:hover .icon-wrapper {
    transform: rotateY(180deg);
    background: var(--verde-acc);
}

.tech-card:hover .icon-wrapper i { color: var(--fondo-oscuro); }

.icon-wrapper i {
    font-size: 1.8rem;
    color: var(--verde-acc);
    transition: color 0.4s ease;
}

/* =========================================
   METODOLOGÍA (LÍNEA DE TIEMPO)
   ========================================= */
.methodology-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.step-box {
    flex: 1; min-width: 250px;
    text-align: center; position: relative; z-index: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.step-box:hover {
    background: rgba(42, 30, 91, 0.3);
    border-color: rgba(2, 154, 48, 0.3);
    transform: translateY(-5px);
}

.step-number {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: var(--fondo-oscuro);
    border: 3px solid var(--verde-acc);
    color: var(--blanco);
    font-size: 2rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 0 25px rgba(2, 154, 48, 0.2);
    font-family: 'Lexend', sans-serif;
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute; width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--verde-acc);
    filter: blur(20px); opacity: 0.2;
}

/* =========================================
   LOGO Y REDES SOCIALES
   ========================================= */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 100px; 
    height: auto; 
    max-height: none; 
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
    transform: scale(1.3); 
    transform-origin: left center; 
}

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

.social-icons a {
    color: var(--blanco);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--verde-acc);
    transform: translateY(-3px) scale(1.1);
}

/* =========================================
   SECCIÓN DE TESTIMONIOS (CARRUSEL NUEVO)
   ========================================= */
.testimonials-carousel-container {
    width: 100%;
    overflow: hidden; 
    position: relative;
    padding: 20px 0; 
    display: flex;
    /* ESTA ES LA MAGIA: Una máscara transparente para desvanecer los bordes */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.testimonials-carousel-track {
    display: inline-flex;
    gap: 20px;
    padding-right: 20px; /* Igual que el gap para loop perfecto */
    /* 40s es la velocidad, ajustalo si lo quieres más rápido o lento */
    animation: scrollTestimonials 40s linear infinite; 
}

.testimonials-carousel-track:hover {
    animation-play-state: paused; /* Se detiene al pasar el cursor */
}

.testimonial-card {
    background: rgba(18, 13, 43, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    width: 250px;
    flex-shrink: 0; /* Evita que las tarjetas se aplasten */
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    white-space: normal; /* Asegura que el texto baje de línea */
}

/* =========================================
   ACTUALIZACIÓN EFECTO HOVER TESTIMONIOS
   ========================================= */

.testimonial-card:hover {
    /* Mantenemos el translateY(-10px) para que suba */
    /* Y AGREGAMOS scale(1.05) para que se agrande un 5% sutilmente */
    transform: translateY(-10px) scale(1.05); 
    
    border-color: var(--verde-acc);
    box-shadow: 0 15px 40px rgba(2, 154, 48, 0.2);
    
    /* Agregamos esto para asegurar que la tarjeta que se agranda 
       quede visualmente por encima de las que están a los lados */
    z-index: 10; 
}

.testimonial-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 4px solid var(--verde-acc);
}

.testimonial-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    color: var(--blanco);
}

.testimonial-highlight {
    color: var(--verde-acc);
    font-weight: 800;
    font-size: 1.1rem;
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Mueve exactamente la mitad (1 grupo entero) */
}


/* =========================================
   CARRUSEL DE CLIENTES (MARCAS ANIMADAS)
   ========================================= */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    display: flex;
}

.carousel-container::before,
.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15vw; 
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.carousel-track {
    display: inline-flex;
    align-items: center;
    animation: scrollLogos 35s linear infinite; 
}

.carousel-track:hover {
    animation-play-state: paused; 
}

.carousel-track img {
    height: 85px; 
    width: auto;
    margin: 0 50px; 
    opacity: 0.5; 
    transition: all 0.3s ease;
}

.carousel-track img:hover {
    opacity: 1; 
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* =========================================
   ADAPTACIÓN RESPONSIVE (MÓVILES Y TABLETS)
   ========================================= */

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        padding: 15px 5%;
        border-radius: 15px;
        min-height: auto;
    }
    .nav-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-top: 15px;
    }
    .nav-links a { font-size: 0.95rem; }
    
    .logo-img {
        transform: scale(1) !important;
        width: 140px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 5% !important; 
    }
    
    #inicio {
        padding-top: 150px !important; 
    }

    #nosotros .container > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    
    #nosotros blockquote {
        text-align: left; 
    }

    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 2rem !important; }
    
    /* Mantenemos un ancho fijo para las tarjetas en móvil para que el carrusel funcione */
    .testimonial-card {
        width: 250px;
    }
    
    .carousel-track img {
        height: 55px; 
        margin: 0 30px;
    }
    
    .container span {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .btn-primary, .btn-white {
        width: 100%; 
        box-sizing: border-box;
        text-align: center;
    }
    .nav-links {
        gap: 10px !important;
    }
    .nav-links a { font-size: 0.85rem; }
}