/* 1. VARIABLES Y CONFIGURACIÓN BASE */
:root {
    --cian-fondo: #39b4c3;  
    --cian-dark: #2e8e8c;
    --verde-logo: #6eb14c;  
    --naranja-card: #0f7084; 
    --verde-card: #27ae60;   
    --blanco: #ffffff;
    --gris-oscuro: #333333;
    --fuente-principal: 'Montserrat', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body { 
    font-family: var(--fuente-principal); 
    line-height: 1.6; 
    color: var(--gris-oscuro); 
    background-color: #fcfcfc; 
}

.container { 
    width: 95%; 
    max-width: 1200px; 
    margin: auto; 
}

/* 2. NAVEGACIÓN (Ajustada a la izquierda) */
nav {
    background-color: var(--gris-oscuro);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 100%; /* Permite que se extienda a toda la pantalla */
    margin: 0;      /* Elimina el centrado para que el logo toque el borde */
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo-img { 
    height: 50px; 
    width: auto; 
    object-fit: contain;
}

.logo-text { 
    color: white; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    align-items: center;
}

nav a { 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.8rem;
    transition: color 0.3s;
}

nav a:hover { color: var(--verde-logo); }

.btn-inscripcion { 
    background-color: var(--verde-logo); 
    padding: 8px 18px; 
    border-radius: 25px; 
}

/* 3. HERO SECTION */
.hero {
    background: url('unc.jpg') no-repeat center center/cover;
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.hero::before {
    content: ""; 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(46, 142, 140, 0.8); 
    z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero h1 { font-size: 3rem; font-weight: 900; margin-bottom: 10px; }
.hero h1 span { color: var(--verde-logo); }

.lema { 
    font-style: italic; 
    font-size: 1.1rem; 
    max-width: 700px; 
    margin: 0 auto; 
    opacity: 0.9; 
}

/* 4. SECCIÓN UBICACIÓN */
.location-section { padding: 60px 0; background: #fff; }

.title-section {  
    font-size: 2rem; 
    color: var(--cian-dark); 
    margin-bottom: 30px; 
}

.location-grid { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}

.location-info { flex: 1; }
.location-info h3 { color: var(--cian-dark); margin-bottom: 10px; }
.location-info ul { list-style: none; margin: 15px 0; }

.btn-map {
    display: inline-block;
    padding: 10px 20px;
    background: var(--cian-dark);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
}

.map-container { 
    flex: 1.2; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 5. BIENVENIDA*/
.section-welcome { padding: 80px 0; background: #fff; }

.welcome-box { max-width: 1200px; margin: auto; }

.welcome-box h2 { font-size: 2rem; color: var(--cian-dark); }

.subtitle { 
    color: var(--verde-logo); 
    font-size: 1.3rem; 
    margin-bottom: 25px; 
    font-weight: 700;
}

.text-block p { 
    margin-bottom: 15px; 
    text-align: justify; 
    font-size: 1rem;
    color: #444;
}

.signature { 
    margin-top: 30px; 
    border-top: 1px solid #eee; 
    padding-top: 15px; 
    color: var(--cian-dark);
}

/* 6. TARJETAS DE MENÚ */
.cards-section { padding: 80px 0; background: #f4f7f7; }

.section-header { text-align: center; margin-bottom: 40px; }

.card-btn {
    display: block; 
    text-decoration: none; 
    color: white; 
    margin-bottom: 20px;
    border-radius: 50px; 
    transition: transform 0.3s;
}

.card-btn:hover { transform: translateY(-5px); }

.orange { background-color: var(--naranja-card); }
.green { background-color: var(--verde-card); }

.card-body { 
    display: flex; 
    align-items: center; 
    padding: 20px 40px; 
}

.icon { font-size: 2.5rem; margin-right: 30px; }

.card-txt h2 { font-size: 1.3rem; margin-bottom: 5px; }
.card-txt p { font-size: 0.9rem; opacity: 0.9; }

/* 7. FOOTER (Ordenado en 4 columnas) */
.main-footer {
    background-color: var(--cian-dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columnas fijas */
    gap: 20px;
    align-items: start;
}

.footer-col h4 { 
    color: var(--verde-logo); 
    margin-bottom: 20px; 
    font-size: 1rem; 
    font-weight: 800;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a { 
    color: white; 
    text-decoration: none; 
    font-size: 0.85rem; 
    opacity: 0.8; 
}

.contact-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 10px; 
}

.contact-item p { font-size: 0.85rem; }

.social-links { display: flex; gap: 10px; }

.social-btn {
    background: rgba(255,255,255,0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    border: 1px solid var(--verde-logo);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .location-grid { flex-direction: column; }
    .nav-container { flex-direction: column; gap: 15px; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}