/* --- Estilos Generales --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0F172A; /* Azul oscuro profundo */
    color: #E2E8F0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Barra de Navegación --- */
header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1E293B;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.logo span {
    color: #38BDF8; /* Acento cian tecnológico */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #94A3B8;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #38BDF8;
}

.nav-btn {
    background: #0284C7;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: #0369A1;
}

/* --- Sección Hero --- */
.hero {
    position: relative;
    background: #0F172A; 
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #1E293B;
    overflow: hidden;
}

#neural-net {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #38BDF8;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-quote {
    font-size: 1rem;
    color: #94A3B8;
    font-style: italic;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: #0EA5E9;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #0284C7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

/* --- Sección Quiénes Somos --- */
.about-section {
    padding: 80px 20px;
    background-color: #0B1120;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.about-text p {
    color: #94A3B8;
    margin-bottom: 15px;
    font-size: 1rem;
}

.about-card-mini {
    background: #1E293B;
    border: 1px solid #334155;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.metric {
    font-size: 2rem;
    font-weight: 700;
    color: #38BDF8;
    margin-bottom: 10px;
}

/* --- Sección Servicios --- */
.services-section {
    padding: 80px 20px;
    background-color: #0F172A;
}

.services-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #FFFFFF;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: #1E293B;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #0EA5E9;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.card h3 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card p {
    color: #94A3B8;
    font-size: 0.9rem;
    margin: 0;
}

/* --- Sección Agente IA --- */
.ai-section {
    padding: 90px 20px;
    background-color: #0B1120;
    text-align: center;
}

.ai-section h2 {
    color: #FFFFFF;
    margin-bottom: 10px;
    font-size: 2rem;
}

.ai-section p {
    color: #94A3B8;
    margin-bottom: 40px;
}

.ai-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #1E293B;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ai-wrapper:hover {
    border-color: #38BDF8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), 
                0 0 40px rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

iframe {
    border-radius: 8px;
    background: #0F172A;
    display: block;
}

/* --- Sección CTA Final --- */
.cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #0B1120 0%, #1E293B 100%);
    text-align: center;
    border-top: 1px solid #1E293B;
}

.cta-section h2 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.cta-section p {
    color: #94A3B8;
    font-size: 1rem;
    margin-bottom: 25px;
}

/* --- Pie de Página --- */
footer {
    background-color: #090D16;
    color: #64748B;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #1E293B;
}

.copyright {
    font-size: 0.8rem;
    color: #475569;
}

/* --- OPTIMIZACIÓN FINAL PARA MÓVIL --- */
@media (max-width: 768px) {
    .about-section, .services-section, .ai-section, .cta-section {
        padding: 50px 15px !important; 
    }
    nav {
        flex-direction: column;
        gap: 10px;
        padding: 15px 10px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 25px !important;
    }
    
    /* Solución definitiva centrada para Quiénes Somos en Móvil */
    .about-section .about-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-section .about-text {
        width: 100%;
        text-align: center !important;
    }
    .about-section .about-text h2 {
        text-align: center !important;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-card-mini {
        margin: 20px auto 0 auto;
        max-width: 280px;
    }
    .ai-wrapper {
        padding: 5px;
        margin-top: 15px;
    }
    iframe {
        height: 350px !important;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
