/* --- VARIABLES: Paleta de Colores Corporativa "Deep Tech" --- */
:root {
    /* Azules Corporativos */
    --primary: #3b82f6;       /* Azul Real brillante pero serio */
    --primary-dark: #1d4ed8;  /* Azul oscuro para hovers */
    --accent: #0ea5e9;        /* Cian sutil para detalles pequeños */
    
    /* Fondos (Dark Slate) */
    --bg-main: #0f172a;       /* Fondo principal (Azul grisáceo muy oscuro) */
    --bg-secondary: #1e293b;  /* Fondo de tarjetas/secciones (Gris pizarra) */
    --bg-nav: rgba(15, 23, 42, 0.95); /* Navbar con transparencia */
    
    /* Textos */
    --text-main: #f8fafc;     /* Blanco humo (no blanco puro para no lastimar) */
    --text-muted: #94a3b8;    /* Gris azulado para textos secundarios */
    
    /* Bordes y Estilos */
    --border-color: #334155;
    --font-main: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- SCROLLBAR PERSONALIZADO --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%; /* Ajusté levemente el padding para centrar mejor el logo */
    background: var(--bg-nav);
    backdrop-filter: blur(10px); /* Efecto vidrio esmerilado */
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* LOGO DE SOURSOP (Corregido e Integrado) */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-container:hover {
    opacity: 0.9;
}

.brand-logo {
    height: 45px; /* Tamaño ideal para navbar */
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-weight: 700; 
    font-size: 1.3rem; 
    color: var(--text-main); 
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navegación Links */
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--primary); 
}

/* Subrayado animado elegante */
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--primary);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

#lang-toggle {
    margin-left: 25px;
    padding: 5px 10px;
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    outline: none;
    transition: 0.3s;
}
#lang-toggle:hover { border-color: var(--primary); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    /* Un gradiente sobre la imagen para apagarla y hacerla más seria */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.85), var(--bg-main)), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content { max-width: 800px; padding: 0 20px; z-index: 2; }

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    /* Gradiente sutil en el texto (Blanco a Azul Claro) */
    background: linear-gradient(135deg, #ffffff 0%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-quote {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 3rem;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    display: inline-block;
    text-align: left;
}

/* Botón Estilo "Corporate Flat" */
.btn-primary {
    padding: 14px 35px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px; /* Bordes menos redondos, más serios */
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* --- SECCIONES GLOBALES --- */
.section-padding { padding: 6rem 10%; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 4rem;
    color: var(--text-main);
    font-weight: 700;
}
.section-title::after {
    content: ''; display: block; width: 80px; height: 3px;
    background: var(--primary); margin: 15px auto 0;
    opacity: 0.8;
}

/* --- EMPRESAS (Cards estilo Grid) --- */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.company-card {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color); /* Borde sutil */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Efecto de hover elegante: sube y el borde se ilumina */
.company-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.company-card img {
    max-width: 130px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: grayscale(100%) opacity(0.7); /* Logos apagados por defecto */
    transition: 0.4s;
}

.company-card:hover img { 
    filter: grayscale(0%) opacity(1); /* Logos a color al pasar mouse */
}

.icon-placeholder {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.company-card h3 { 
    color: var(--text-main); 
    margin-bottom: 0.8rem; 
    font-size: 1.25rem; 
}
.company-card p { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    line-height: 1.5;
}

/* --- ABOUT US (Fondo alterno) --- */
.bg-darker { 
    background-color: #0b1120; /* Un tono más oscuro que el bg-main para contraste */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-content { display: flex; align-items: center; gap: 5rem; flex-wrap: wrap; }
.about-text { flex: 1; }
.about-visual { flex: 1; text-align: center; display: flex; justify-content: center;}

.huge-icon { 
    font-size: 12rem; 
    color: var(--bg-secondary); 
    /* Sombra interna para efecto de profundidad "grabado" */
    text-shadow: 1px 1px 2px rgba(255,255,255,0.05), -1px -1px 2px rgba(0,0,0,0.5);
}

.about-text p { 
    margin-bottom: 1.5rem; 
    color: var(--text-muted); 
    font-size: 1.05rem;
}

.stats { display: flex; gap: 3rem; margin-top: 3rem; }
.stat-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--text-main); 
    font-weight: 600; 
    font-size: 1.1rem;
}
.stat-item i { color: var(--accent); font-size: 1.3rem; }

/* --- CONTACT FORM --- */
.contact-wrapper { max-width: 700px; margin: 0 auto; }
.contact-form {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.input-group { position: relative; margin-bottom: 2.5rem; }

.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    font-family: var(--font-main);
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 12px; left: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s;
    background-color: transparent;
    padding: 0 5px;
}

/* Animación del Label al hacer focus */
.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary);
    background-color: var(--bg-secondary); /* Tapa la línea del borde */
}

.btn-submit { width: 100%; padding: 15px; margin-top: 10px; font-size: 1.1rem;}

/* --- FOOTER --- */
footer {
    background: #020617; /* Casi negro absoluto */
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-content { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    font-size: 0.9rem; 
    color: var(--text-muted); 
}
.separator { color: var(--border-color); }

/* --- RESPONSIVE & ANIMACIONES --- */
.fade-up, .fade-right, .fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.fade-right { transform: translateX(-20px); }
.visible { opacity: 1; transform: translateY(0); transform: translateX(0); }

/* Mobile */
.hamburger { display: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }

@media(max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 70px; left: 0; 
        width: 100%; 
        background: var(--bg-secondary); 
        padding: 2rem; 
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 1rem 0; font-size: 1.1rem; }
    .hamburger { display: block; }
    .about-content { flex-direction: column; gap: 2rem; }
    .contact-form { padding: 1.5rem; }
    
    /* Ajuste para que el nombre de la empresa no ocupe tanto en celular si es necesario */
    .brand-name { font-size: 1.1rem; }
}