:root {
    --primary: #05123e;    /* Azul Institucional */
    --secondary: #c90d24;  /* Rojo Institucional */
    --accent: #d4af37;     
    --white: #ffffff;
    --gray-bg: #f8f9fa;
    --text: #1a1a1a;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--gray-bg);
    overflow-x: hidden;
}

h1, h2, h3, .playfair { font-family: 'Playfair Display', serif; }

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

/* NAVBAR */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 10px 0; background: var(--primary);
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.main-logo { height: 70px; transition: transform 0.3s; }
.main-logo:hover { transform: scale(1.05); }

.nav-menu { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-link { 
    text-decoration: none; color: white; font-weight: 600; font-size: 0.95rem; 
    position: relative; padding: 5px 0;
}

.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px; 
    bottom: 0; left: 0; background: var(--secondary); transition: 0.3s;
}
.nav-link:hover::after { width: 100%; }

.btn-contact { 
    background: var(--secondary); padding: 12px 25px; border-radius: 5px; 
}
.btn-contact:hover { background: #a50a1d; color: white; }

/* HAMBURGUER */
.nav-toggle { 
    display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001;
}
.nav-toggle span { 
    width: 30px; height: 3px; background: white; border-radius: 2px; transition: 0.4s; 
}

/* Animación Hamburguesa */
.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* HERO */
.hero {
    height: 70vh; min-height: 500px;
    background: linear-gradient(rgba(5, 18, 62, 0.7), rgba(5, 18, 62, 0.7)), url('img/campus.webp');
    background-size: cover !important; background-position: center center !important;
    display: flex; align-items: center; justify-content: center;
    color: white; text-align: center; margin-top: 80px;
}
.hero-content h1 { font-size: 4rem; margin-bottom: 15px; }

/* CARDS */
.grid-layout {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; padding: 60px 0;
}
.card {
    background: white; padding: 50px 30px; border-radius: 15px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition);
    border-top: 5px solid var(--primary);
}
.card:hover { transform: translateY(-10px); border-top-color: var(--secondary); }
.card-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; }

/* CONTACT WRAPPER */
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--primary); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px;
}
.submit-btn {
    background: var(--primary); color: white; border: none; padding: 15px;
    width: 100%; border-radius: 8px; cursor: pointer; font-weight: 700; transition: 0.3s;
}
.submit-btn:hover { background: var(--secondary); }

/* SOCIAL ICONS */
.social-icons-container { display: flex; gap: 15px; margin-top: 20px; }
.social-icon {
    width: 45px; height: 45px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: white; text-decoration: none;
    transition: 0.3s;
}
.fb { background: #1877F2; } .ig { background: #E4405F; } .wa { background: #25D366; }
.social-icon:hover { transform: scale(1.1); filter: brightness(1.1); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--primary); flex-direction: column; justify-content: center;
        transition: 0.5s ease-in-out; box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    .nav-menu.active { right: 0; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
}