:root {
    --primary-blue: #0b2545;     
    --accent-yellow: #f4c430;    
    --accent-red: #d90429;       
    --accent-green: #1b4332;     
    --light-bg: #f8f9fa;         
    --card-bg: #ffffff;          
    --text-dark: #2b2d42;        
    --text-light: #ffffff;       
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; color: var(--text-dark); background-color: var(--light-bg); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

.top-bar { background-color: var(--accent-yellow); color: var(--primary-blue); text-align: center; padding: 8px 15px; font-weight: 600; font-size: 0.85rem; }
header { background-color: var(--primary-blue); color: var(--text-light); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
.logo-container { display: flex; align-items: center; gap: 12px; }
.logo-text h1 { font-size: 1.1rem; line-height: 1.2; color: var(--text-light); }
.logo-text p { font-size: 0.8rem; color: var(--accent-yellow); }

.mobile-toggle { display: none; background: none; border: none; color: var(--text-light); font-size: 1.8rem; cursor: pointer; }
nav ul { display: flex; list-style: none; gap: 15px; align-items: center; }
nav li { position: relative; }
nav a, .dropdown-btn { color: var(--text-light); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 10px 12px; display: block; background: none; border: none; cursor: pointer; font-family: inherit; transition: color 0.3s; }
nav a:hover, .dropdown-btn:hover { color: var(--accent-yellow); }

.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: var(--primary-blue); min-width: 220px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); border-radius: 0 0 8px 8px; border-top: 3px solid var(--accent-yellow); z-index: 1001; }
.dropdown-menu a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.dropdown-menu a:hover { background-color: rgba(244, 196, 48, 0.15); }
.dropdown:hover .dropdown-menu { display: block; }

main { flex: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: 30px 20px; animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Aquí reemplazamos con la ruta de tu imagen local */
.hero { background: linear-gradient(rgba(11, 37, 69, 0.8), rgba(11, 37, 69, 0.8)), url('../img/inicio.jpg') center/cover no-repeat; color: var(--text-light); text-align: center; padding: 70px 20px; border-radius: var(--border-radius); margin-bottom: 30px; }
.hero h2 { font-size: 2.2rem; margin-bottom: 15px; color: var(--accent-yellow); }
.hero p { font-size: 1.1rem; max-width: 800px; margin: 0 auto 20px; }

.section-title { text-align: center; font-size: 1.8rem; color: var(--primary-blue); margin-bottom: 25px; margin-top: 15px; position: relative; }
.section-title::after { content: ''; width: 60px; height: 4px; background-color: var(--accent-yellow); display: block; margin: 8px auto 0; border-radius: 2px; }
.sub-section-title { font-size: 1.4rem; color: var(--primary-blue); margin: 25px 0 15px 0; border-bottom: 2px solid var(--accent-yellow); padding-bottom: 5px; display: flex; align-items: center; gap: 10px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.grid-6 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-top: 15px; }

.card { background: var(--card-bg); padding: 25px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); border-left: 5px solid var(--primary-blue); margin-bottom: 20px; overflow: hidden; }
.card h3 { color: var(--primary-blue); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.gallery-item { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); background-color: var(--card-bg); display: flex; flex-direction: column; }
.gallery-item .desc { padding: 12px; text-align: center; font-weight: 600; color: var(--primary-blue); font-size: 0.95rem; background: #fff; }

.btn-primary { background-color: var(--accent-red); color: var(--text-light); padding: 12px 24px; text-decoration: none; border-radius: 5px; font-weight: 600; display: inline-block; cursor: pointer; border: none; transition: background 0.3s; }
.btn-primary:hover { background-color: #b00320; }

.info-box { background: var(--primary-blue); color: var(--text-light); padding: 25px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); margin-bottom: 20px; }
.info-box h3 { color: var(--accent-yellow); margin-bottom: 15px; }

.docentes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.docente-item { background: var(--card-bg); padding: 20px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--box-shadow); border-top: 4px solid var(--accent-green); display: flex; flex-direction: column; align-items: center; }
.docente-item h4 { color: var(--primary-blue); font-size: 1rem; margin-bottom: 5px; }
.docente-item p { font-size: 0.85rem; color: #666; font-weight: 500; }

.img-wrapper { position: relative; display: inline-block; width: 100%; overflow: hidden; background-color: #e9ecef; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

footer { background-color: #051329; color: var(--text-light); text-align: center; padding: 30px 20px; margin-top: auto; }
.social-links { display: flex; justify-content: center; gap: 20px; margin: 15px 0; }
.social-links a { color: var(--text-light); font-size: 1.6rem; }

@media (max-width: 850px) {
    .mobile-toggle { display: block; }
    nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-blue); padding: 15px 0; }
    nav ul.show { display: flex; }
    .dropdown-menu { position: static; background-color: rgba(255, 255, 255, 0.05); width: 100%; }
}