:root {
    --bg: #030712;
    --surface: #0f172a;
    --primary-blue: #1d4ed8; 
    --accent-orange: #f97316;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s ease;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg); 
    color: var(--text-main); 
    line-height: 1.6; 
}

h1, h2, h3 { 
    font-family: 'Outfit', sans-serif; 
}

/* --- Header --- */
header {
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 100;
    padding: 1.2rem 8%; 
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: var(--text-main); 
    letter-spacing: -1px; 
}

.logo span { 
    color: var(--accent-orange); 
}

.nav-links {
    display: flex; 
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dim); 
    text-decoration: none; 
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-links a.active {
    color: var(--text-main); 
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px; 
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

/* --- Hero --- */
.hero {
    padding: 120px 8% 60px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 b { 
    color: var(--accent-orange); 
}

.hero p {
    font-size: 1.1rem; 
    max-width: 1200px;
    padding-bottom: 10px;
}

/* --- Services Grid --- */
.section { 
    padding: 100px 8%; 
}

.section-header { 
    margin-bottom: 3rem; 
}

.section-header h2 { 
    font-size: 2.5rem; 
    color: var(--text-main); 
}

.section-header .line { 
    width: 50px; 
    height: 4px; 
    background: var(--accent-orange); 
    margin-top: 10px; 
}

/* -- STACK TECH -- */
.stack-slider {
    background: linear-gradient(60deg, #030712 0%, #0a132e 50%, #030712 100%);
    padding: 2rem 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    margin-top: 20px;
}

.stack-track {
    display: flex;
    width: calc(250px * 20);
    animation: scroll 60s linear infinite;
    align-items: center;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 250px;
    justify-content: center;
    filter: grayscale(1) opacity(0.6);
    transition: var(--transition);
}

.stack-item:hover {
    filter: grayscale(0) opacity(1);
}

.stack-item img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.stack-item span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dim);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 10)); }
}

/* -- Servicios -- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface); 
    padding: 2.5rem; 
    border-radius: 12px;
    border: 1px solid var(--border); 
    transition: var(--transition);
}

.service-card:hover { 
    border-color: var(--accent-orange); 
    transform: translateY(-5px); 
}

.service-card svg { 
    width: 40px; 
    height: 40px; 
    stroke: var(--accent-orange); 
    margin-bottom: 1.5rem; 
}

.service-card h3 { 
    margin-bottom: 1rem; 
    font-size: 1.4rem; 
}

.service-card p { 
    color: var(--text-dim); 
    font-size: 0.95rem; 
}

/* -- Blog Preview -- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.1);
}

.blog-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-info {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 600;
    letter-spacing: 1px;
}

.blog-info h3 {
    margin: 0.8rem 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.blog-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.3s;
}

.blog-link:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

/* --- Diferencial Section --- */
.diferencial { 
    background: #070e1b; 
    display: flex; 
    gap: 4rem; 
    align-items: center; 
    flex-wrap: wrap; 
}

.dif-content { 
    flex: 1; 
    min-width: 300px; 
}

.dif-text {
    color: var(--text-dim); 
    font-size: 1.1rem;
}

.dif-image { 
    flex: 1; 
    min-width: 300px; 
    background: var(--surface); 
    height: 400px; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid var(--border); 
    position: relative; 
    overflow: hidden; 
}

.dif-image:hover .radar-label {
    fill: var(--text-main);
}

.accuracy-label {
    color: var(--accent-orange); 
    font-family: 'Outfit'; 
    font-weight: 800; 
    letter-spacing: 5px;
}

.radar-chart {
    overflow: visible;
    width: 320px;
    height: 320px;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.2));
}

.radar-grid {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

.radar-line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
}

.radar-label {
    fill: var(--text-dim); /* Color gris suave para no saturar */
    font-family: 'Outfit', sans-serif;
    font-size: 8px; /* Tamaño pequeño y elegante */
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.radar-lines line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
}

.radar-limit {
    fill: rgba(249, 115, 22, 0.03);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
    stroke-dasharray: 4; /* Esto da el look de 'objetivo' o límite */
}

.radar-area {
    fill: rgba(249, 115, 22, 0.3);
    stroke: #f97316; /* var(--accent-orange) */
    stroke-width: 2;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.4));
}

.accuracy-label {
    position: absolute;
    bottom: 20px;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--accent-orange);
    opacity: 0.8;
}


/* --- Buttons --- */
.btn-cta {
    display: inline-block; 
    padding: 1rem 2.5rem; 
    margin-top: 25px;
    background: var(--accent-orange);
    color: white; 
    text-decoration: none; 
    font-weight: 700; 
    border-radius: 6px; 
    transition: var(--transition);
}

.btn {
    display: inline-block; 
    padding: 1rem 2.5rem; 
    background: var(--accent-orange);
    color: white; 
    text-decoration: none; 
    font-weight: 700; 
    border-radius: 6px; 
    transition: var(--transition);
}

.btn:hover { 
    filter: brightness(1.2); 
    transform: scale(1.05); 
}

/* -- Testimonial -- */
.testimonial-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.testimonial-track {
    display: flex;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
    gap: 2rem;
}

.testimonial-card {
    min-width: calc(100% - 2rem); /* Una tarjeta visible a la vez en móvil */
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-left: 3px solid var(--accent-orange);
    border-radius: 4px;
    box-sizing: border-box;
}

/* Pantallas grandes: 2 tarjetas visibles */
@media (min-width: 992px) {
    .testimonial-card {
        min-width: calc(50% - 1rem);
    }
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--text-dim);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-orange);
    transform: scale(1.2);
}

/* --- Footer --- */
.main-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Redes Sociales */
.footer-socials {
    display: flex;
    gap: 2rem;
}

.footer-socials a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--accent-orange);
}

/* Enlaces Secundarios (Legal) */
.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--text-main);
}

.footer-bottom {
    margin-top: 2rem;
    padding: 1rem 8%;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin: 0;
}

.social-links {
    color: #f97316
}

/* --- ESTILOS DEL BOTÓN --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        position: fixed !important; 
        right: 8%;
        top: 20px;
        z-index: 9999 !important; /* Por encima de la cortina */
    }

    /* Color de las barras para que contrasten */
    .menu-toggle .bar {
        background-color: var(--text-main) !important;
        width: 30px;
        height: 2px;
    }

    /* 2. El Panel del Menú (Cortina) */
    header .nav-links {
        display: flex !important;
        position: fixed !important;
        right: -100% !important;
        top: 0;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(3, 7, 18, 0.98) !important; /* Casi opaco para mejor lectura */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.6s cubic-bezier(0.85, 0, 0.15, 1) !important;
        z-index: 5000 !important; /* Menor que el botón */
        margin: 0 !important;
    }

    header .nav-links.active {
        right: 0 !important;
    }

    /* 3. Animación de los enlaces (Stagger) */
    header .nav-links a {
        font-size: 1.8rem !important;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s ease;
    }

    header .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Retrasos para la cascada de enlaces */
    header .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    header .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
    header .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
    header .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }
    header .nav-links.active a:nth-child(5) { transition-delay: 0.5s; }
    header .nav-links.active a:nth-child(6) { transition-delay: 0.6s; }
    header .nav-links.active a:nth-child(7) { transition-delay: 0.7s; }

    /* 4. Transformación a X (Asegúrate de que esto sea visible) */
    .menu-toggle.is-active .bar {
        background-color: var(--accent-orange) !important; /* Cambia a naranja al abrirse */
    }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}gle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Divisor */
section.section {
    border-top: 1px solid transparent;
    /* Esto crea la línea usando un borde con imagen de degradado */
    border-image: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    ) 1;
}

/* -- MAP -- */
.maps-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Lado a lado */
    gap: 20px;
    margin-top: 30px;
}

.map-box {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
}

.map-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(10, 15, 25, 0.85);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-orange);
    z-index: 10;
    border-left: 3px solid var(--accent-orange);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(45%) invert(90%) contrast(100%); 
}

/* --- Contenedor de la cuadrícula (Grid) --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px; 
    width: 100%;
    margin: 2rem 0;
}

/* --- Estilo exclusivo para tarjetas estáticas (evita conflictos con Contentful) --- */
.static-client-card {
    background: #0a0e14;
    border-left: 3px solid #ff6b00; 
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.static-client-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Estilo del título dentro de la tarjeta estática --- */
.static-client-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Mantiene los títulos alineados aunque tengan diferente longitud */
    min-height: 3em; 
    display: flex;
    align-items: center;
}

/* --- Lista de marcas dentro de la tarjeta estática --- */
.static-brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.static-brand-list li {
    font-family: 'Inter', sans-serif;
    color: #cccccc;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.static-brand-list li:last-child {
    border-bottom: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .maps-container {
        grid-template-columns: 1fr;
    }
}