:root {
    --azul-degradado: linear-gradient(135deg, #0a2e61 0%, #15468a 100%);
    --azul-primario: #0d6efd;
    --azul-oscuro: #0a2e61;
    --gris-fondo: #f8f9fa;
    --blanco: #ffffff;
}

/* 1. ESTILOS GLOBALES (RESTAURADOS) */
body, html {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--gris-fondo);
    color: #333;
}

/* Reset de márgenes para Jekyll */
.main-content, #main, .container-lg { 
    max-width: 100% !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}

/* 2. MENÚ DE NAVEGACIÓN (RESTAURADO) */
.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 5%; 
    background: var(--blanco); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 20px; 
    margin: 0; 
    padding: 0; 
}

.nav-links a { 
    text-decoration: none; 
    color: #555; 
    font-weight: 500; 
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--azul-primario);
}

/* 3. HERO ESTILIZADO */
.hero {
    background: var(--azul-degradado);
    color: white;
    padding: 80px 10% 100px;
    text-align: center;
}
.hero-title { font-size: 3.2rem; font-weight: 800; margin: 20px 0 10px; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.3rem; opacity: 0.9; max-width: 800px; margin: 0 auto; }

.badge-tech { 
    background: rgba(255,255,255,0.2); 
    border: 1px solid rgba(255,255,255,0.4); 
    padding: 6px 20px; 
    border-radius: 20px; 
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    color: white;
}

/* 4. BUSCADOR FLOTANTE */
.search-container {
    background: white; 
    padding: 15px; 
    border-radius: 12px; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); 
    margin: -45px auto 50px; 
    display: flex; 
    gap: 10px;
    max-width: 700px;
    position: relative;
    z-index: 20;
}
.search-input { flex: 1; border: 1px solid #eee; padding: 12px 20px; border-radius: 8px; outline: none; font-size: 1rem; color: #333;}
.btn-search { background: #2563eb; color: white; border: none; padding: 12px 30px; border-radius: 8px; font-weight: bold; cursor: pointer; }

/* 5. CONTENEDORES Y GRID (BASE PARA TODAS LAS PÁGINAS) */
.container { max-width: 1100px; margin: auto; padding: 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.card {
    background: var(--blanco); 
    padding: 25px; 
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }

/* 6. ELEMENTOS ESPECÍFICOS (INICIO Y EQUIPO) */
.divider { width: 50px; height: 3px; background: var(--azul-primario); margin: 10px auto 40px; }
.section-title { color: var(--azul-oscuro); font-size: 2rem; }

.icon-line { font-size: 2rem; margin-bottom: 15px; }
.line-embebidos { border-top: 4px solid #2563eb; text-align: center; }
.line-ia { border-top: 4px solid #10b981; text-align: center; }
.line-iot { border-top: 4px solid #f59e0b; text-align: center; }

.card-member { border-top: 4px solid var(--azul-primario); text-align: center; margin-top: 40px; }
.photo-circle { 
    width: 100px; height: 100px; border-radius: 50%; 
    margin: -60px auto 15px; 
    border: 4px solid var(--blanco); 
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: white;
}
.photo-circle img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: 1.2rem; margin-bottom: 5px; color: var(--azul-oscuro); }
.member-role { color: var(--azul-primario); font-weight: bold; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 5px; }
.member-inst { color: #777; font-size: 0.8rem; line-height: 1.4; }

.recent-production { margin: 80px 0; }
.flex-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.project-tag { font-size: 0.7rem; color: #2563eb; background: #eef4ff; padding: 4px 10px; border-radius: 10px; font-weight: bold; }
.project-title { margin-top: 15px; font-size: 1.15rem; color: var(--azul-oscuro); }
.project-link { margin-top: 20px; color: var(--azul-primario); font-weight: bold; text-decoration: none; display: inline-block; }

/* AJUSTES PARA IMÁGENES Y MÓVILES */
img { max-width: 100%; height: auto; }

@media (max-width: 600px) {
    .hero { padding: 60px 5% 80px; }
    .hero-title { font-size: 2rem; }
    .search-container { margin-top: -30px; flex-direction: column; }
    /* Ajuste para que el menú no se rompa en celulares */
    .navbar { flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
}
