/* ==========================================================================
   DISEÑO BASE Y VARIABLES (SISTEMA DE DISEÑO)
   ========================================================================== */ 
:root {
    /* Paleta de Colores (Estilo Dark Tech - Sincronizado con founder.airesolutionlabs.com) */
    --primary: #f8fafc;         /* Blanco Slate */
    --primary-light: #94a3b8;   /* Gris Muted */
    --accent: #3b82f6;          /* Azul Brillante (Primary Glow) */
    --accent-hover: #60a5fa;    /* Azul Claro */
    --secondary: #8b5cf6;       /* Violeta/Púrpura (Secondary Glow) */
    --pink-glow: #ec4899;       /* Rosa Glow */
    
    --bg-primary: #030712;      /* Fondo Principal Oscuro */
    --bg-secondary: #080c18;    /* Fondo Secundario */
    --bg-tertiary: rgba(15, 23, 42, 0.45); /* Tarjetas con Glassmorphic */
    
    --text-primary: #f8fafc;    /* Texto Principal */
    --text-secondary: #94a3b8;  /* Texto Secundario (Muted) */
    --text-light: #ffffff;      /* Texto Claro */
    
    --border-color: rgba(255, 255, 255, 0.08); /* Bordes sutiles oscuros */
    
    /* Fuentes y Tipografía */
    --font-main: 'Outfit', sans-serif;
    
    /* Sombras (Shadows) */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.05);
    
    /* Transiciones y Bordes */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & ESTILOS GLOBALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.12) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0, transparent 50%),
        linear-gradient(to bottom, #030712, #080c18);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Cuadrícula de fondo tecnológica */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    z-index: -2;
    opacity: 0.7;
    pointer-events: none;
}

/* Resplandor dinámico del cursor */
#mouse-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: width 0.3s ease, height 0.3s ease;
}

@media (max-width: 640px) {
    #mouse-glow {
        position: absolute;
        width: 300px;
        height: 300px;
        left: 50%;
        top: 30%;
        background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.05) 60%, transparent 100%);
        transform: translate(-50%, -50%);
    }
}

img, svg {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   COMPONENTES: BOTONES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--text-light);
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-block {
    display: width;
    width: 100%;
}

/* ==========================================================================
   CABECERA (HEADER)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-sm);
    background-color: rgba(3, 7, 18, 0.85);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo-text-bold {
    font-weight: 700;
    color: var(--text-light);
}

.logo-text-light {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
}

.nav-indicator {
    position: absolute;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    box-shadow: 0 0 8px var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0;
}

.nav-btn {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--text-light) !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    border: none;
}

.nav-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--secondary));
}

/* Botón menú hamburguesa (móvil) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero-section {
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at 90% 10%, rgba(0, 119, 182, 0.05) 0%, transparent 60%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-tagline {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Tarjetas Visuales en el Hero (Efecto minimalista e IA) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.tech-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding-left: 35px;
    box-sizing: border-box;
}

.tech-connection-line {
    position: absolute;
    left: 12px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.tech-connection-line::after {
    content: '';
    position: absolute;
    left: -1px;
    width: 4px;
    height: 35px;
    border-radius: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), var(--secondary), transparent);
    box-shadow: 0 0 8px var(--accent), 0 0 15px var(--secondary);
    animation: fiber-pulse 4s infinite linear;
}

@keyframes fiber-pulse {
    0% {
        top: -35px;
    }
    100% {
        top: 100%;
    }
}

.tech-card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 100%;
    max-width: 270px;
    min-height: 120px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-sizing: border-box;
    z-index: 2;
}

.tech-card::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid #030712;
    transition: all 0.4s ease;
    z-index: 3;
}

.tech-card::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    z-index: 1;
}

/* Tarjeta Activa o Hover: Feedback instantáneo */
.tech-card.active, .tech-card:hover {
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.15), 0 5px 12px rgba(0, 0, 0, 0.3);
}

.tech-card.active::before, .tech-card:hover::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    transform: translateY(-50%) scale(1.3);
}

.tech-card.active::after, .tech-card:hover::after {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.tech-icon {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.tech-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0;
    font-weight: 600;
}

.tech-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   SECCIÓN SERVICIOS
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.section-header p {
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.1);
    border-color: var(--secondary);
}

.service-icon-bg {
    width: 50px;
    height: 50px;
    background-color: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-bg {
    background-color: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.3);
}

.service-icon {
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   SECCIÓN SOBRE NOSOTROS
   ========================================================================== */
.about-section {
    padding: 100px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Estética de Cristal (Glassmorphism) */
.about-visual {
    display: flex;
    justify-content: center;
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    text-align: center;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.15);
}

.profile-container {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 1.5rem auto;
}

.profile-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--secondary), var(--pink-glow));
    z-index: 1;
    animation: rotateGlow 8s linear infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #030712;
    position: relative;
    z-index: 2;
    background-color: #080c18;
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.profile-link-wrapper {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.profile-link-wrapper:hover .profile-img {
    transform: scale(1.03);
    border-color: var(--secondary);
}

.profile-link-wrapper:hover .profile-glow {
    animation-duration: 4s;
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--secondary);
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-info {
    padding: 0.5rem 0 0 0;
    text-align: center;
}

.profile-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.profile-title {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ==========================================================================
   SECCIÓN DE CONTACTO
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    background-color: rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-info {
    background-color: rgba(15, 23, 42, 0.45);
    color: var(--text-light);
    padding: 4rem 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-info h2 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form-container {
    padding: 4rem 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.45);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(15, 23, 42, 0.65);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.main-footer {
    background-color: #030712;
    color: var(--text-secondary);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left .logo {
    margin-bottom: 0.5rem;
}

.footer-left .logo-text-light {
    color: var(--text-light);
}

.footer-tagline {
    font-size: 0.9rem;
}

.footer-right p {
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVIDAD (MEDIA QUERIES)
   ========================================================================== */

/* Tablet (hasta 992px) */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 3rem 2rem;
    }
    
    .contact-form-container {
        padding: 3rem 2rem;
    }
}

/* Mobile (hasta 768px) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Menú móvil */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
        z-index: 999;
        overflow-y: auto;
        visibility: hidden;
    }
    
    .nav-menu.active {
        left: 0;
        visibility: visible;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 3rem 2rem;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.2rem;
        width: 100%;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .nav-indicator {
        display: none;
    }
    
    /* Animación del hamburguesa */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}


