:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #3b82f6; /* Azul eléctrico / Vercel style */
    --accent-glow: rgba(59, 130, 246, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    /* Evitar selección de texto para un feel de app nativa */
    -webkit-font-smoothing: antialiased;
}

/* ThreeJS Canvas Fijo de fondo */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none; /* Que no bloquee clicks */
}

/* Utilidades Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Botones */
.btn {
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-small { padding: 8px 16px; border: 1px solid var(--glass-border); color: #fff; }
.btn-small:hover { background: #fff; color: #000; }

.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.btn-primary:hover { transform: scale(1.05); }

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: var(--glass-bg); }

/* Secciones Generales */
section {
    padding: 15vh 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -1px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Bento Box (Ingeniería) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.bento-item {
    padding: 40px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.bento-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.bento-item h3 { margin-bottom: 15px; font-size: 1.5rem; }
.bento-item p { color: var(--text-muted); line-height: 1.6; }

/* Inversión / Pricing */
.pricing-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    padding: 2px; /* Espacio para el borde spotlight */
}

.card-content {
    background: var(--bg-color);
    border-radius: 15px;
    padding: 40px;
    height: 100%;
}

.card.featured {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.3);
}

.badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card h3 { font-size: 1.5rem; font-weight: 400; color: var(--text-muted); }
.price { font-size: 3rem; font-weight: 800; margin: 15px 0; }
.card p { color: var(--text-muted); margin-bottom: 25px; font-size: 0.9rem; }
.card ul { list-style: none; }
.card ul li { margin-bottom: 15px; font-size: 0.95rem; }

/* Utilidades Animación CSS pura */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .hero-buttons { flex-direction: column; }
    .card.featured { transform: scale(1); }
    .nav-links { display: none; } /* Ocultar en móvil para simplificar el prototipo */
}
/* --- Sección de Contacto --- */
.contact-terminal {
    padding: 10vh 5%;
    position: relative;
    z-index: 10;
}

.terminal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tech-subtitle {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Formulario */
.form-container {
    padding: 40px;
}

.conversion-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.conversion-form input,
.conversion-form select {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.conversion-form input:focus,
.conversion-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 18px;
    font-size: 1.1rem;
    background: #fff;
    color: #000;
}

/* Mapa Tecnológico */
.map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--glass-border);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981; /* Verde esmeralda */
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: pulse-green 2s infinite;
}

/* El truco del mapa en modo oscuro */
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Filtro para invertir Google Maps y darle un tono tecnológico */
    filter: grayscale(100%) invert(92%) contrast(110%) hue-rotate(180deg);
}

/* --- Botón de WhatsApp Global --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
}

/* Animaciones */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .map-container { min-height: 300px; }
}
/* --- Matriz de Experiencia --- */
.experience-matrix {
    padding: 15vh 5%;
    position: relative;
    z-index: 10;
}

.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.text-left {
    text-align: left;
    margin-bottom: 1.5rem;
}

.tech-paragraph {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* Bloque de Estadísticas (Años) */
.stats-block {
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 2px solid var(--accent);
    padding-left: 20px;
}

.stat-number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
}

.stat-number .plus {
    font-size: 3rem;
    color: var(--accent);
    margin-top: 5px;
}

.stat-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.stat-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 250px;
}

/* Stack de Especialidades */
.matrix-skills {
    padding: 40px;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
}

.skills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.skills-header h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-tag {
    padding: 10px 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-tag:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

@media (max-width: 968px) {
    .matrix-grid { grid-template-columns: 1fr; }
    .stats-block { flex-direction: column; align-items: flex-start; }
}
/* --- Actualización Navbar & Dropdown Premium --- */
.nav-item {
    position: relative;
    padding-bottom: 5px;
}

/* Efecto Hover Magnético (Línea inferior que crece) */
.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Contenedor del Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Contenido del Dropdown (Oculto por defecto) */
.dropdown-content {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 200;
}

/* Mostrar el Dropdown al hacer hover */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Enlaces dentro del Dropdown */
.dropdown-content a {
    color: var(--text-muted);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    margin: 0; /* Reseteamos el margin global de nav-links a */
}

.dropdown-content a::after {
    display: none; /* Quitamos la línea inferior aquí */
}

.dropdown-content a:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
    padding-left: 25px; /* Microinteracción de movimiento */
}

/* Responsive: Ocultar menú complejo en móvil (se requiere un menú hamburguesa para mobile) */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
}
/* --- Menú Móvil Premium --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000; /* Siempre por encima de todo */
}

.hamburger .line {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* El menú a pantalla completa */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98); /* Oscuro casi sólido */
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Comienza fuera de la pantalla (arriba) */
    transform: translateY(-100%); 
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Clase que activa la bajada del menú */
.mobile-menu.active {
    transform: translateY(0);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-link {
    font-size: 2.5rem; /* Letras gigantes y legibles en móvil */
    color: var(--text-main);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -1px;
}

.text-accent {
    color: var(--accent);
}

.mobile-socials {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.mobile-socials a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
}

/* Modificación de la Media Query para activar el móvil */
@media (max-width: 968px) {
    .nav-links, .desktop-cta { 
        display: none; /* Escondemos lo de escritorio */
    }
    .hamburger { 
        display: flex; /* Mostramos la hamburguesa */
    }
}

/* Animación de Hamburguesa a "X" */
.hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .line:nth-child(2) {
    opacity: 0; /* La línea del medio desaparece */
}
.hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* =========================================
   SECCIÓN DE PRUEBA SOCIAL (TRUST STRIP)
   ========================================= */

.trust-section {
    padding: 10vh 5%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Evita que el carrusel ensanche la página */
}

/* Carrusel Infinito (Marquee) */
.marquee-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 30px 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 60px;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    /* La magia de la animación CSS pura */
    animation: scroll-marquee 25s linear infinite;
}

/* Pausar al pasar el mouse por si quieren leer */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 30px;
}

.marquee-dot {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Animación Clave para el carrusel */
@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Se mueve la mitad exacta porque el contenido está duplicado */
}

/* Grid de Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    padding: 40px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.quote-icon {
    font-size: 4rem;
    font-family: serif;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 30px;
    line-height: 1;
}

.feedback {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-color), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    border: 1px solid var(--glass-border);
}

.client-details h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
    color: #fff;
}

.client-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}