:root {
    --primary: #009FE3;   /* Azul Claro */
    --secondary: #00508d; /* Azul Medio */
    --dark-navy: #0b1623; /* Azul Marino Oscuro */
    --accent: #f39200;    /* Naranja */
    --highlight: #ffc400; /* Amarillo */
    --text-dark: #333333;
    --text-light: #f4f7f6;
    --text-muted: #a0aab5;
    --font-main: 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    color: var(--text-dark);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Navbar --- */
.navbar {
    background: linear-gradient(90deg, rgba(11, 22, 35, 1) 0%, rgba(0, 80, 141, 0.95) 100%);
    backdrop-filter: blur(10px);
    height: 80px; position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo-img { height: 50px; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-menu { display: flex; gap: 25px; }
.nav-menu a { color: var(--text-light); font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--primary); }
.nav-cta { background: var(--primary); padding: 8px 20px; border-radius: 50px; color: white !important; font-weight: 600; }
.nav-cta:hover { background: var(--accent); }

/* Switch Idioma */
.lang-switch-container { display: flex; align-items: center; gap: 10px; }
.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #555; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
.lang-label { font-size: 0.85rem; font-weight: bold; color: white; }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; position: relative;
    background: radial-gradient(circle at top right, var(--secondary), var(--dark-navy));
    padding-top: 100px; padding-bottom: 50px; color: white;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.hero-logo-wrapper {
    margin-bottom: 25px;
    width: 100%;
}

.hero-logo-top {
    height: auto;
    max-width: 350px;
    display: block;
}

.hero-text-content {
    max-width: 800px;
    text-align: left;
}

.tagline { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; display: block; margin-bottom: 15px; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; max-width: 700px; }
.hero-btns { display: flex; gap: 15px; justify-content: flex-start; }

.btn { padding: 12px 30px; border-radius: 5px; font-weight: 600; transition: all 0.3s ease; display: inline-block; border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(180deg, var(--primary), #29b6f6); color: white; }
.btn-primary:hover { transform: translateY(-3px); }
.btn-outline { border: 2px solid var(--text-muted); color: var(--text-light); background: transparent; }
.btn-outline:hover { border-color: var(--text-light); background: rgba(255,255,255,0.05); }

/* --- About Section --- */
.bg-gradient-light { 
    background: linear-gradient(180deg, #e6f0fa 0%, #dce4eb 100%); 
    color: var(--text-dark); 
}
.section { padding: 100px 0; }
.about-layout { display: flex; align-items: center; gap: 60px; }
.about-text { flex: 1; }
.section-title-dark { font-size: 2.2rem; margin-bottom: 20px; color: var(--secondary); position: relative; }
.section-title-dark::after { content: ''; display: block; width: 50px; height: 3px; background: var(--accent); margin-top: 10px; }
.about-stats { display: flex; gap: 30px; margin-top: 30px; }
.stat-item { display: flex; flex-direction: column; font-weight: bold; color: var(--secondary); }
.stat-item i { font-size: 2rem; color: var(--accent); margin-bottom: 5px; }
.about-image { flex: 1; display: flex; justify-content: center; }
.graphic-box { width: 300px; height: 300px; background: white; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--secondary); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.big-icon { font-size: 8rem; opacity: 0.2; }

/* --- Services --- */
.bg-gradient-mid { 
    background: linear-gradient(180deg, #dce4eb 0%, #103050 100%); 
    color: white; 
}
.section-header h2 { font-size: 2.5rem; color: white; text-align: center; }
.line { width: 60px; height: 4px; background: var(--accent); margin: 10px auto 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.card { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15); padding: 30px; border-radius: 15px; transition: transform 0.3s; backdrop-filter: blur(5px); }
.card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.2); }
.icon-box { width: 60px; height: 60px; background: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--secondary); margin-bottom: 20px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; color: white; }
.card p { color: rgba(255,255,255,0.9); font-size: 0.95rem; }

/* --- Clients --- */
.bg-gradient-dark { 
    background: linear-gradient(180deg, #103050 0%, #0b1623 100%); 
    color: white; 
}
.section-title-light { text-align: center; font-size: 2.2rem; color: white; margin-bottom: 50px; }
.clients-wrapper { display: flex; justify-content: center; gap: 80px; flex-wrap: wrap; align-items: center; }

.logo-container {
    background: transparent;
    padding: 10px;
    transition: transform 0.3s ease;
}

.logo-container:hover { transform: scale(1.1); }

.client-img { 
    max-height: 100px;
    max-width: 250px;
    filter: grayscale(100%) brightness(1.2); 
    opacity: 0.8;
    transition: all 0.4s ease;
}

.logo-container:hover .client-img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* --- Why Us (CÓDIGO SOLICITADO EXACTO) --- */
.bg-gradient-footer {
    background: linear-gradient(180deg, #0b1623 0%, #000000 100%);
    color: white;
}

.why-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.why-text { flex: 1; }

.why-list { margin-top: 30px; }
.why-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.why-list i {
    font-size: 1.5rem;
    color: var(--highlight);
    background: rgba(255, 196, 0, 0.1);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.why-list strong { display: block; color: white; font-size: 1.1rem; margin-bottom: 5px; }
.why-list p { color: var(--text-muted); font-size: 0.9rem; }

.why-visual {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tech-badge {
    background: rgba(255,255,255,0.1);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    /* Agregamos color blanco para asegurar legibilidad sobre fondo oscuro */
    color: white; 
}


/* --- Contact --- */
.bg-black { background-color: #000000; padding-bottom: 60px; }
.contact-box { max-width: 700px; margin: 0 auto; background: #0b1623; padding: 50px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.5); color: white; }
.contact-box h2 { text-align: center; margin-bottom: 10px; }
.contact-sub { text-align: center; color: var(--accent); margin-bottom: 40px; }
.form-row { display: flex; gap: 20px; }
.form-group { width: 100%; margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group textarea { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 12px; border-radius: 6px; color: white; font-family: inherit; }
.btn-full { width: 100%; background: var(--accent); color: white; font-size: 1.1rem; }
.btn-full:hover { background: var(--highlight); color: var(--text-dark); }

footer { background: #050505; padding: 30px; text-align: center; font-size: 0.9rem; color: #444; border-top: 1px solid #111; }

/* Mobile */
.menu-toggle { display: none; color: white; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu { position: fixed; top: 80px; right: -100%; background: #0b1623; flex-direction: column; width: 100%; height: calc(100vh - 80px); padding: 50px; transition: 0.3s; }
    .nav-menu.active { right: 0; }
    .hero-container { align-items: center; text-align: center; }
    .hero-text-content { text-align: center; }
    .hero-btns { justify-content: center; }
    .hero h1 { font-size: 2.5rem; }
    .about-layout, .why-layout, .form-row { flex-direction: column; }
    .why-visual { width: 100%; justify-content: center; margin-top: 30px; }
    .clients-wrapper { gap: 30px; flex-direction: column; }
    .client-img { max-height: 80px; }
}
/* Al final de styles.css, dentro del media query existente */
@media (max-width: 768px) {
    /* ... otros estilos existentes ... */
    
    .hero-logo-top {
        max-width: 280px; /* En celular se mantiene controlado */
    }
}