/* --- VARIABLES GLOBALES (PALETA VERDE) --- */
:root {
    --color-primary: #1b5e20;   /* Verde Bosque Oscuro (Institucional) */
    --color-secondary: #4caf50; /* Verde Hoja (Acciones) */
    --color-accent: #fdd835;    /* Amarillo (Destacados/Botones) */
    --color-text: #333333;
    --color-bg-light: #f1f8e9;  /* Verde muy pálido para fondos */
    --color-white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* --- RESET BÁSICO --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--color-text); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILIDADES --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--color-bg-light); }
.bg-primary { background-color: var(--color-primary); }
.text-white { color: var(--color-white); }

.section { padding: 60px 0; }
.section-header { margin-bottom: 40px; }
.section-header h2 { color: var(--color-primary); font-size: 2.5rem; margin-bottom: 10px; }

/* Botones Reutilizables */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
}
.btn-primary { background-color: var(--color-secondary); color: var(--color-white); border: none; }
.btn-primary:hover { background-color: var(--color-primary); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; border: 2px solid var(--color-white); color: var(--color-white); }
.btn-secondary:hover { background-color: var(--color-white); color: var(--color-primary); }
.btn-accent { background-color: var(--color-accent); color: #333; }
.btn-accent:hover { background-color: #fbc02d; }

/* --- TOP BAR --- */
.top-bar { background-color: #e8f5e9; font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid #c8e6c9; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.contact-info span { margin-right: 15px; color: var(--color-primary); font-weight: 600; }
.btn-login-small { background: var(--color-primary); color: white; padding: 4px 10px; border-radius: 3px; margin-left: 10px; }

/* --- HEADER & NAV --- */
.main-header {
    background-color: var(--color-white);
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo-placeholder {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-list { display: flex; gap: 20px; }
.nav-list a { font-weight: 600; color: var(--color-primary); padding: 10px 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a.active { border-bottom: 2px solid var(--color-secondary); color: var(--color-secondary); }

/* Hamburguesa (Móvil) */
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--color-primary); transition: 0.3s; }

/* --- HERO SECTION --- */
.hero {
    /* Fondo verde oscuro con superposición para que el texto resalte */
    background: linear-gradient(rgba(27, 94, 32, 0.85), rgba(76, 175, 80, 0.7)), url('../img/hero-agro.jpg'); 
    background-size: cover;
    background-position: center;
    height: 550px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}
.hero-content { width: 100%; }
.hero-title { font-size: 3rem; margin-bottom: 20px; text-transform: uppercase; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; font-weight: 300; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* --- PLATAFORMA ACADÉMICA (NUEVA SECCIÓN) --- */
.platform-section {
    background-color: var(--color-white);
    margin-top: -50px; /* Efecto flotante sobre el hero */
    position: relative;
    z-index: 10;
    padding: 0 20px 40px;
}
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}
.platform-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-align: center;
    border-top: 5px solid var(--color-secondary);
    transition: transform 0.3s;
}
.platform-card:hover { transform: translateY(-5px); }
.platform-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}
.platform-card h3 { color: var(--color-primary); margin-bottom: 10px; }
.platform-card p { color: #666; margin-bottom: 20px; font-size: 0.9rem; }

/* --- GRID SYSTEMS --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* --- CARDS --- */
.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #eee;
}
.card:hover { transform: translateY(-5px); border-color: var(--color-secondary); }
.card-icon { font-size: 2.5rem; color: var(--color-secondary); margin-bottom: 20px; }

/* --- RECTOR MESSAGE --- */
.img-placeholder {
    width: 100%;
    height: 350px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 8px;
  /* Pon aquí la foto real   background-image: url('../img/rector.jpg'); */
    background-size: cover;
    background-position: center;
}
.link-arrow { color: var(--color-primary); font-weight: bold; margin-top: 15px; display: inline-block; }

/* --- ACADEMIC OFFER --- */
.levels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.level-item { background: var(--color-bg-light); padding: 20px; text-align: center; border-radius: 8px; border: 1px solid #c8e6c9; }
.level-item i { font-size: 2rem; color: var(--color-primary); margin-bottom: 10px; }
.sedes-list { background: white; padding: 30px; border-left: 5px solid var(--color-primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.sedes-list ul li { margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 10px; }

/* --- QUICK LINKS --- */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.quick-link-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}
.quick-link-item:hover { background: rgba(255,255,255,0.2); }
.quick-link-item i { font-size: 1.5rem; display: block; margin-bottom: 10px; color: var(--color-accent); }

/* --- FOOTER --- */
.main-footer { background-color: #1b5e20; color: #c8e6c9; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; border-bottom: 2px solid var(--color-secondary); display: inline-block; padding-bottom: 5px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; text-align: center; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-list {
        position: fixed; left: -100%; top: var(--header-height);
        flex-direction: column; background-color: var(--color-white);
        width: 100%; text-align: center; transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1); padding: 20px 0;
    }
    .nav-list.active { left: 0; }
    .grid-2 { grid-template-columns: 1fr; }
    .levels-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 2rem; }
    .top-bar-content { flex-direction: column; gap: 10px; text-align: center; }
    .platform-section { margin-top: 0; padding: 40px 20px; }
}