/* =========================================
   RESETEO BÁSICO Y ESTILOS GENERALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* =========================================
   1. BARRA SUPERIOR (Top Bar)
   ========================================= */
.top-bar {
    background-color: #000000;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    padding: 8px 50px;
    font-size: 12px;
}

.top-bar a { 
    color: #ffffff; 
    text-decoration: none; 
    margin: 0 10px; 
    display: inline-flex;
    align-items: center;
    gap: 6px; 
}

.top-bar a:hover {
    text-decoration: underline;
    text-underline-offset: 4px; 
}

/* =========================================
   2. CABECERA Y MENÚ 
   ========================================= */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 50px;
    position: absolute; 
    top: 35px;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent; 
    transition: background-color 0.4s ease, padding 0.4s ease, top 0.3s ease; 
}

.main-header.sticky {
    position: fixed;
    top: 0; 
    background-color: #000000;
    padding: 10px 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.logo {
    height: 70px;
    border-radius: 50%; 
}

.logo-text p { font-size: 12px; font-weight: 300; }
.logo-text h1 { font-size: 18px; font-weight: bold; }

.menu-toggle {
    display: none; 
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li { margin-left: 20px; }

.main-nav ul li a {
    text-decoration: none;
    color: #ffffff; 
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
    transition: color 0.3s ease;
}

.main-nav ul li a:hover { color: #dddddd; }

/* MENÚS DESPLEGABLES (DROPDOWNS) - PC */
.main-nav ul li.dropdown {
    position: relative;
}

.main-nav ul li.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: block !important; 
    flex-direction: column;
    background-color: #ffffff;
    min-width: 280px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    border-radius: 0 0 4px 4px;
}

.main-nav ul li.dropdown .dropdown-menu li {
    display: block !important;
    width: 100%;
    margin: 0;
}

.main-nav ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul li.dropdown .dropdown-menu li a {
    display: block !important;
    padding: 12px 20px;
    color: #888888; 
    font-size: 14px;
    font-weight: 700;
    text-shadow: none;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.main-nav ul li.dropdown .dropdown-menu li a:hover {
    color: #333333;
    background-color: #f9f9f9;
}

/* =========================================
   3. SECCIÓN PRINCIPAL (Hero & Carrusel)
   ========================================= */
.hero-section {
    position: relative;
    height: 90vh; 
    display: flex;
    align-items: flex-end; 
    justify-content: center; 
    padding-bottom: 40px;
    overflow: hidden; 
}

.slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
}

.slide.active { opacity: 1; }

.slider::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 5;
    padding: 10px;
    user-select: none; 
    transition: color 0.3s;
}

.arrow:hover { color: #aaaaaa; }
.left-arrow { left: 30px; }
.right-arrow { right: 30px; }

.hero-buttons-container {
    display: flex;
    gap: 20px; 
    z-index: 5; 
}

.hero-btn {
    background-color: rgba(20, 25, 25, 0.9);
    color: white;
    text-decoration: none;
    padding: 30px 40px; 
    font-size: 18px; 
    font-weight: 800; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px; 
    border: none;
    border-radius: 0;
    width: 320px; 
    transition: background-color 0.3s ease;
}

.hero-btn:hover { background-color: #000000; }

.hero-btn .icon {
    font-size: 45px; 
    color: #3ea895; 
}

/* =========================================
   4. SECCIÓN CARRERAS
   ========================================= */
.carreras-section { padding: 60px 50px; background-color: #ffffff; }

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

.section-title {
    font-size: 22px; color: #333333; margin-bottom: 40px;
    position: relative; display: inline-block;
}

.section-title::after {
    content: ''; position: absolute; left: 0; bottom: -10px;
    width: 40px; height: 2px; background-color: #000000;
}

.carreras-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card { border: 1px solid #eaeaea; background-color: #ffffff; text-align: center; }

.card-image-container { position: relative; overflow: hidden; }
.card-image-container img {
    width: 100%; height: 180px; object-fit: cover;
    display: block; transition: transform 0.4s ease; 
}
.card-image-container:hover img { transform: scale(1.1); }

.btn-leer-mas {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); 
    background-color: #1e5ec9; color: #ffffff;
    padding: 10px 25px; text-decoration: none;
    font-weight: bold; font-size: 15px; opacity: 0; 
    transition: opacity 0.4s ease; z-index: 2;
}

.card-image-container:hover .btn-leer-mas { opacity: 1; }

.card-content { padding: 25px 20px; }
.card-content h3 {
    font-family: 'Roboto Slab', serif; font-size: 22px; font-weight: 700;
    color: #000000; margin-bottom: 15px; line-height: 1.3;
    transition: color 0.3s ease; cursor: pointer; 
}
.card-content h3:hover { color: #38a394; }

.green-line { width: 25px; height: 2px; background-color: #2b7a78; margin: 0 auto 15px auto; }
.card-content p { font-size: 15px; color: #333333; line-height: 1.8; text-align: left; }

/* =========================================
   5. SECCIÓN FORMULARIO
   ========================================= */
.info-section {
    position: relative; padding: 80px 50px;
    background-image: url('https://images.unsplash.com/photo-1577896851231-70ef18881754?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center; background-attachment: fixed; 
}

.info-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); z-index: 1;
}

.info-container {
    position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; gap: 40px;
}

.info-text { flex: 1; }
.info-subtitle { color: #4aa995; font-size: 14px; font-weight: 700; letter-spacing: 1px; margin-bottom: 15px; }
.info-title {
    font-family: 'Roboto Slab', serif; color: #ffffff;
    font-size: 52px; line-height: 1.1; font-weight: 900; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.info-form-wrapper {
    background-color: #ffffff; width: 100%; max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-header {
    background-color: #4aa995; color: #ffffff; padding: 30px 20px; text-align: center;
    border-bottom-left-radius: 50% 20px; border-bottom-right-radius: 50% 20px;
}
.form-header h3 { font-family: 'Roboto Slab', serif; font-size: 18px; font-weight: 700; line-height: 1.3; }

.contact-form { padding: 30px; display: flex; flex-direction: column; gap: 15px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    width: 100%; padding: 12px 15px; border: 1px solid #cccccc;
    outline: none; font-size: 14px; transition: border-color 0.3s;
}
.contact-form input:focus { border-color: #4aa995; }

.submit-btn {
    background-color: #000000; color: #ffffff; border: none;
    padding: 15px; font-weight: bold; font-size: 14px; cursor: pointer; transition: background-color 0.3s; margin-top: 10px;
}
.submit-btn:hover { background-color: #333333; }
.privacy-policy { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.privacy-policy label { font-size: 12px; color: #555555; }

/* =========================================
   6. SECCIÓN EVENTOS
   ========================================= */
.eventos-section { padding: 60px 50px; background-color: #ffffff; }
.eventos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.evento-card {
    display: flex; align-items: center; background-color: #f9f9f9;
    border-left: 5px solid #4aa995; padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.evento-card:hover { transform: translateY(-5px); }
.evento-fecha {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background-color: #000000; color: #ffffff; min-width: 80px; height: 80px;
    margin-right: 20px; border-radius: 5px;
}
.evento-fecha .dia { font-size: 24px; font-weight: 700; }
.evento-fecha .mes { font-size: 14px; letter-spacing: 1px; }
.evento-info h3 { font-family: 'Roboto Slab', serif; font-size: 18px; color: #333333; margin-bottom: 8px; }
.evento-info p { font-size: 14px; color: #666666; line-height: 1.5; }

/* =========================================
   7. SECCIÓN NOTICIAS
   ========================================= */
.noticias-section {
    padding: 80px 50px; position: relative;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.noticias-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.85); z-index: 1;
}
.noticias-container { position: relative; z-index: 2; }
.title-white { color: #ffffff; }
.title-white::after { background-color: #ffffff; }
.noticias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.noticia-card { background-color: #ffffff; overflow: hidden; border-radius: 5px; }
.noticia-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.noticia-content { padding: 25px; }
.noticia-fecha { font-size: 12px; color: #4aa995; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: block; }
.noticia-content h3 { font-family: 'Roboto Slab', serif; font-size: 16px; color: #000000; margin-bottom: 15px; line-height: 1.4; }
.noticia-content p { font-size: 13px; color: #555555; line-height: 1.6; }

/* =========================================
   8. SECCIÓN ALIANZAS INSTITUCIONALES
   ========================================= */
.alianzas-section { background: linear-gradient(to right, #6d93e5, #4979da); padding: 40px 50px; }
.alianzas-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.alianza-logo { max-height: 120px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.alianza-logo:hover { transform: scale(1.1); }

/* =========================================
   9. PIE DE PÁGINA (FOOTER)
   ========================================= */
.main-footer { background-color: #000000; color: #ffffff; }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; padding: 60px 20px; gap: 30px; }
.footer-col { flex: 1; }
.logo-col { display: flex; justify-content: center; }
.logo-col img { width: 160px; border-radius: 50%; } 
.info-col { flex: 2; text-align: center; }
.info-col h3 { font-size: 14px; font-weight: 400; margin-bottom: 5px; }
.info-col h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.info-col p { font-size: 11px; color: #cccccc; line-height: 1.5; margin-bottom: 20px; }
.social-icons { display: flex; justify-content: center; gap: 15px; }
.social-icons a {
    display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border: 1px solid #ffffff; border-radius: 50%;
    color: #ffffff; text-decoration: none; font-size: 14px; transition: all 0.3s ease;
}
.social-icons a:hover { background-color: #ffffff; color: #000000; }
.links-col h4 { font-size: 18px; font-weight: 700; margin-bottom: 25px; }
.links-col ul { list-style: none; }
.links-col ul li { margin-bottom: 18px; }
.links-col ul li a { color: #aaaaaa; text-decoration: none; font-size: 16px; transition: color 0.3s; }
.links-col ul li a:hover { color: #4aa995; }
.book-col { text-align: center; }
.book-col h4 { font-size: 13px; margin-bottom: 15px; line-height: 1.4; }
.book-col img { width: 120px; transition: transform 0.3s; }
.book-col img:hover { transform: scale(1.05); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.2); display: flex; justify-content: space-between; padding: 20px 50px; font-size: 12px; color: #888888; }
.dev-name { color: #4aa995; }

/* =========================================
   10. BOTONES FLOTANTES
   ========================================= */
.floating-buttons { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 99; }
.whatsapp-btn, .scroll-top-btn {
    width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; color: white; text-decoration: none; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transition: transform 0.3s, opacity 0.3s;
}
.whatsapp-btn { background-color: #25D366; font-size: 30px; border-radius: 50%; }
.scroll-top-btn { background-color: #333333; font-size: 20px; border-radius: 5px; opacity: 0; visibility: hidden; }
.scroll-top-btn.show { opacity: 1; visibility: visible; }
.whatsapp-btn:hover, .scroll-top-btn:hover { transform: scale(1.1); }

/* =========================================
   11. POPUP DE ADMISIÓN
   ========================================= */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); z-index: 1000;
    display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.popup-overlay.show { opacity: 1; visibility: visible; }
.popup-content { position: relative; max-width: 90%; max-height: 90vh; }
.popup-content img { width: 100%; max-width: 450px; height: auto; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); display: block; }
.close-popup {
    position: absolute; top: -15px; right: -15px; background-color: #e74c3c; color: white; font-size: 24px; font-weight: bold; width: 35px; height: 35px;
    display: flex; justify-content: center; align-items: center; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.3); z-index: 1001; transition: background-color 0.3s;
}
.close-popup:hover { background-color: #c0392b; }

/* =========================================
   14. AULA VIRTUAL (Página de Login)
   ========================================= */
.aula-body {
    background-image: url('images/fondo.jpg'); background-size: cover; background-position: center; background-attachment: fixed;
    height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; 
}
.aula-tipografia { position: absolute; top: 40px; left: 50px; height: 160px; z-index: 10; display: block; }
.aula-tipografia img { height: 100%; width: auto; }
.aula-layout { display: flex; width: 90%; max-width: 1200px; align-items: center; justify-content: space-between; gap: 40px; }
.aula-carousel-container { flex: 1; display: flex; justify-content: center; align-items: center; }
.aula-frame {
    position: relative; width: 100%; max-width: 580px; height: 380px; border-radius: 40px; overflow: hidden; 
    background: transparent; border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
}
.aula-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.aula-slide.active { opacity: 1; }
.login-box {
    background-color: rgba(135, 143, 194, 0.9); padding: 40px; border-radius: 10px; width: 100%; max-width: 380px;
    text-align: center; box-shadow: -10px 10px 20px rgba(0,0,0,0.4); border-top: 5px solid #0bd161; 
}
.login-logo { width: 120px; border-radius: 50%; margin-bottom: 30px; }
.input-group { display: flex; align-items: center; border-bottom: 2px solid #333333; margin-bottom: 25px; padding-bottom: 5px; }
.input-group i { color: #1a4a2a; font-size: 18px; margin-right: 15px; }
.input-group input { background: transparent; border: none; outline: none; color: #333333; font-size: 16px; width: 100%; font-weight: 600; }
.input-group input::placeholder { color: #444444; }
.btn-ingresar {
    width: 100%; background-color: #0b1536; color: white; border: none; padding: 12px; border-radius: 5px;
    font-size: 16px; font-weight: bold; cursor: pointer; margin-bottom: 15px; transition: background-color 0.3s;
}
.btn-ingresar:hover { background-color: #1a2b6b; }
.login-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; font-size: 13px; color: #222222; }
.login-links a { color: #111111; text-decoration: none; font-weight: bold; }
.btn-google {
    width: 100%; background-color: #5880f8; color: white; border: none; padding: 10px; border-radius: 3px;
    font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* =========================================
   15. PÁGINA INTERNA: NOSOTROS
   ========================================= */
.section-heading-center { text-align: center; margin-bottom: 40px; }
.section-heading-center h2 { font-family: 'Roboto Slab', serif; font-size: 28px; color: #333333; position: relative; display: inline-block; padding-bottom: 12px; }
.section-heading-center h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 2px; background-color: #333333; }
.nosotros-section { padding: 60px 50px 20px 50px; background-color: #ffffff; }
.nosotros-content { max-width: 1000px; margin: 0 auto 60px auto; }
.nosotros-img { width: 100%; height: auto; object-fit: cover; margin-bottom: 30px; }
.nosotros-content p { font-size: 15px; color: #444444; line-height: 1.8; margin-bottom: 20px; text-align: justify; }
.mision-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1000px; margin: 0 auto; }
.mv-col p { font-size: 14.5px; color: #444444; line-height: 1.8; text-align: justify; }
.valores-section { padding: 20px 50px 80px 50px; background-color: #ffffff; }
.valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto; }
.valor-card { position: relative; overflow: visible; cursor: pointer; }
.valor-card img { width: 100%; height: 230px; object-fit: cover; display: block; }
.valor-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #000000; color: #ffffff; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; text-align: center; padding: 20px; opacity: 0; transform: translate(-15px, -15px); transition: all 0.4s ease-in-out; z-index: 2; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.valor-card:hover .valor-overlay { opacity: 1; transform: translate(15px, 15px); }

/* =========================================
   16. PÁGINA INTERNA: CARRERAS
   ========================================= */
.curso-section { padding: 60px 50px; background-color: #ffffff; }
.curso-layout { display: flex; gap: 50px; align-items: flex-start; }
.curso-main { flex: 1; }
.curso-sidebar { width: 300px; flex-shrink: 0; }
.curso-title { font-family: 'Roboto Slab', serif; font-size: 32px; color: #333333; margin-bottom: 20px; }
.curso-intro { font-size: 15px; color: #666666; line-height: 1.6; margin-bottom: 30px; }
.curso-img { width: 100%; max-height: 400px; object-fit: cover; margin-bottom: 40px; }
.tabs-buttons { display: flex; flex-wrap: wrap; border-bottom: 1px solid #dee2e6; margin-bottom: 25px; }
.tab-btn {
    background-color: #f8f9fa; border: 1px solid #dee2e6; padding: 12px 20px; font-size: 14.5px; color: #222222; cursor: pointer; font-weight: 400; 
    display: flex; align-items: center; gap: 10px; margin-bottom: -1px; margin-right: -1px; margin-top: -1px; transition: background-color 0.2s;
}
.tab-btn i { color: #000000; font-size: 16px; }
.tab-btn:hover { background-color: #e2e6ea; }
.tab-btn.active {
    background-color: #ffffff; border-top: 3px solid #4aa995; border-bottom: 1px solid #ffffff; border-left: 1px solid #dee2e6; border-right: 1px solid #dee2e6; z-index: 2; 
}
.tab-btn.active i { color: #4aa995; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.tab-content p { font-size: 14.5px; color: #444444; line-height: 1.8; margin-bottom: 20px; text-align: justify; }
.tab-content strong { color: #222222; }
.curso-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; padding-top: 40px; border-top: 1px solid #eeeeee; }
.info-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.info-item i { font-size: 40px; color: #4aa995; margin-bottom: 15px; }
.info-label { font-size: 12px; font-weight: 700; color: #888888; margin-bottom: 5px; }
.info-value { font-size: 16px; font-weight: 700; color: #222222; font-family: 'Roboto Slab', serif; }
.sidebar-item { display: flex; align-items: center; gap: 15px; text-decoration: none; margin-bottom: 20px; padding: 10px; transition: background-color 0.3s; }
.sidebar-item:hover { background-color: #f5f5f5; }
.sidebar-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; }
.sidebar-item h4 { font-family: 'Roboto Slab', serif; font-size: 15px; color: #333333; line-height: 1.3; }

/* =========================================
   17. PÁGINA INTERNA: ADMISIÓN
   ========================================= */
.inner-hero {
    height: 45vh; background-image: url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding-bottom: 50px;
}
.inner-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.4); z-index: 1; }
.inner-hero .container { position: relative; z-index: 2; width: 100%; padding: 0 50px; }
.inner-title { font-family: 'Roboto Slab', serif; color: #ffffff; font-size: 40px; border-left: 5px solid #4aa995; padding-left: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.breadcrumb { padding: 20px 50px; border-bottom: 1px solid #eeeeee; font-size: 13px; color: #888888; }
.breadcrumb a { color: #888888; text-decoration: none; }
.admision-section { padding: 60px 50px; }
.admision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.side-title { font-family: 'Roboto Slab', serif; font-size: 24px; color: #000000; border-left: 4px solid #4aa995; padding-left: 15px; margin-bottom: 25px; margin-top: 10px; }
.star-list { list-style: none; margin-bottom: 20px; }
.star-list li { font-size: 15px; color: #444444; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 12px; line-height: 1.6; }
.star-list i { color: #4aa995; font-size: 16px; margin-top: 3px; }
.text-italic { font-style: italic; color: #666666; font-size: 15px; margin-bottom: 40px; }
.text-blue { color: #1e5ec9; text-decoration: none; font-size: 15px; }
.text-blue:hover { text-decoration: underline; }
.text-green { color: #4aa995; text-decoration: none; }
.text-green:hover { text-decoration: underline; }
.btn-container { text-align: center; margin-top: 30px; }
.btn-inscribete { display: inline-block; background-color: #4aa995; color: #ffffff; text-decoration: none; padding: 15px 40px; font-weight: 700; font-size: 16px; transition: background-color 0.3s; }
.btn-inscribete:hover { background-color: #38a394; }

/* =========================================
   18. DASHBOARD (Panel Alumno)
   ========================================= */
.dashboard-body { background-color: #f4f6f9; font-family: 'Montserrat', sans-serif; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh; }
.dashboard-header { background-color: #0b132b; color: #ffffff; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.dash-header-left { display: flex; align-items: center; gap: 15px; }
.dash-logo { height: 55px; width: auto; }
.dash-logo-text h1 { font-family: 'Roboto Slab', serif; font-size: 20px; margin: 0; letter-spacing: 1px; color: #4aa995; }
.dash-logo-text p { font-size: 11px; margin: 0; color: #b3b8c3; }
.dash-header-right { display: flex; align-items: center; gap: 25px; }
.user-welcome { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.user-icon { font-size: 24px; color: #4aa995; }
.logout-btn { background-color: #e63946; color: #ffffff; text-decoration: none; padding: 8px 16px; border-radius: 4px; font-size: 13px; font-weight: 600; transition: background 0.2s; display: flex; align-items: center; gap: 6px; }
.logout-btn:hover { background-color: #c1121f; }
.dashboard-container { max-width: 1300px; width: 100%; margin: 40px auto; padding: 0 20px; flex: 1; }
.dashboard-grid { display: grid; grid-template-columns: 350px 1fr; gap: 30px; align-items: flex-start; }
.profile-card { background-color: #ffffff; border-radius: 8px; padding: 30px 25px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); text-align: center; border-top: 4px solid #4aa995; }
.profile-avatar-container { position: relative; width: 140px; height: 140px; margin: 0 auto 20px auto; }
.profile-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #f0f2f5; }
.status-badge { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; padding: 5px 12px; border-radius: 20px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.status-badge.success { background-color: #4aa995; color: #ffffff; }
.student-name { font-family: 'Roboto Slab', serif; font-size: 24px; color: #1a1a1a; margin: 10px 0 2px 0; }
.student-lastname { font-size: 18px; color: #555555; margin: 0 0 10px 0; font-weight: 400; }
.student-career { font-size: 14px; color: #4aa995; font-weight: 600; margin-bottom: 20px; }
.divider { border: 0; height: 1px; background-color: #e9ecef; margin: 20px 0; }
.student-info-list { text-align: left; }
.info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #e9ecef; font-size: 13.5px; }
.info-row:last-child { border-bottom: none; }
.info-label { color: #777777; font-weight: 600; }
.info-label i { width: 20px; color: #0b132b; }
.info-val { color: #222222; font-weight: 700; }
.grades-card { background-color: #ffffff; border-radius: 8px; padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f0f2f5; padding-bottom: 15px; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.card-header h2 { font-family: 'Roboto Slab', serif; font-size: 22px; color: #0b132b; margin: 0; display: flex; align-items: center; gap: 10px; }
.academic-summary { background-color: #f0f7f4; padding: 8px 16px; border-radius: 6px; font-size: 14px; color: #2d6a4f; border-left: 4px solid #4aa995; }
.table-responsive { overflow-x: auto; }
.grades-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.grades-table th { background-color: #f8f9fa; color: #555555; font-weight: 700; text-align: left; padding: 14px 16px; border-bottom: 2px solid #dee2e6; }
.grades-table td { padding: 12px 16px; border-bottom: 1px solid #eeeeee; color: #444444; }
.semester-row td { background-color: #ebf5f2; color: #2d6a4f; font-weight: 700; font-size: 13px; letter-spacing: 0.5px; padding: 8px 16px; border-bottom: 1px solid #cde7de; }
.text-center { text-align: center !important; }
.grade-high { font-weight: 700; color: #2d6a4f; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.badge.approved { background-color: #d8f3dc; color: #1b4332; }
.dashboard-footer { background-color: #ffffff; text-align: center; padding: 20px; font-size: 12px; color: #777777; border-top: 1px solid #e9ecef; margin-top: auto; }

/* =========================================
   19. DISEÑO RESPONSIVO (MÓVILES Y TABLETS UNIFICADO)
   ========================================= */

@media (max-width: 1024px) {
    .carreras-grid { grid-template-columns: repeat(2, 1fr); }
    .info-title { font-size: 35px; }
}

@media (max-width: 992px) {
    /* 1. Barra Superior Negra */
    .top-bar {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        padding: 10px 5px !important;
        gap: 8px !important;
        height: auto !important;
    }
    .top-left, .top-right { width: 100% !important; justify-content: center !important; }

    /* 2. Cabecera y Logo */
    .main-header {
        position: relative;
        padding: 15px;
        flex-wrap: wrap;
        background-color: #000000; 
    }
    .logo-container { max-width: 80%; }
    .logo-text h1 { font-size: 16px !important; white-space: normal !important; }
    .logo-text p { font-size: 10px !important; }
    .menu-toggle { display: block; order: 2; }

    /* 3. Menú y Dropdown Móvil */
    .main-nav {
        width: 100%;
        order: 3;
        margin-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 15px;
        display: none; 
    }
    .main-nav.active { display: block; }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        background-color: transparent;
        position: static;
        box-shadow: none;
    }
    .main-nav ul li { width: 100%; text-align: left; margin: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .main-nav ul li a { display: block; padding: 15px 20px; color: #ffffff; }

    .main-nav ul li.dropdown .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        background-color: rgba(255,255,255,0.1) !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        min-width: 100% !important;
        padding: 0 !important;
    }
    .main-nav ul li.dropdown .dropdown-menu.show-mobile { display: block !important; }
    .main-nav ul li.dropdown .dropdown-menu li a { padding: 12px 30px !important; font-size: 13px !important; color: #ffffff !important; }

    /* 4. Formulario Verde (#caja-formulario) */
    #caja-formulario, .form-container, .hero-form, .info-panel, .contact-box, .flotante-form {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 90% !important;
        margin: 30px auto !important;
        display: block !important;
        transform: none !important;
        z-index: 10 !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    /* 5. Hero Banner Principal */
    .hero-title, .hero-content h1, .hero-content h2, h1 { font-size: 28px !important; line-height: 1.2; }
    .hero-content, .texto-banner { padding: 30px 20px !important; text-align: center !important; }
    .hero-buttons-container { flex-direction: column; gap: 15px; width: 90%; margin: 0 auto 20px auto; }
    .hero-btn { width: 100%; padding: 20px; font-size: 16px; justify-content: center; }

    /* 6. Secciones Generales */
    .carreras-section { padding: 40px 20px; }
    .carreras-grid { grid-template-columns: 1fr; }
    
    .info-section { padding: 40px 20px; }
    .info-container { flex-direction: column; text-align: center; gap: 30px; }
    .info-form-wrapper { width: 100%; max-width: 100%; margin: 0 auto; }

    .eventos-section, .noticias-section { padding: 40px 20px; }
    .eventos-grid, .noticias-grid { grid-template-columns: 1fr; }
    .evento-card { flex-direction: column; text-align: center; border-left: none; border-top: 5px solid #4aa995; }
    .evento-fecha { margin-right: 0; margin-bottom: 15px; }

    .alianzas-section { padding: 40px 20px; }
    .alianzas-container { grid-template-columns: repeat(2, 1fr); gap: 30px; align-items: center; justify-items: center;}
    .alianza-logo { max-height: 100px; width: 100%; object-fit: contain; }
    .alianza-logo:last-child { grid-column: span 2; max-height: 120px; }

    .footer-container { flex-direction: column; align-items: center; text-align: center; gap: 40px; padding: 40px 20px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; padding: 20px; }
    .footer-col { width: 100%; }

    /* 7. Páginas Internas */
    .inner-hero { height: 35vh; }
    .inner-hero .container { padding: 0 20px; }
    .breadcrumb { padding: 15px 20px; }
    .admision-section { padding: 40px 20px; }
    .admision-grid { grid-template-columns: 1fr; gap: 40px; }

    .curso-layout { flex-direction: column; gap: 40px; }
    .curso-sidebar { width: 100%; }
    .curso-info-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }

    .nosotros-section { padding: 40px 20px 20px 20px; }
    .valores-section { padding: 20px 20px 60px 20px; }
    .mision-vision-grid { grid-template-columns: 1fr; gap: 30px; }
    .valores-grid { grid-template-columns: 1fr; gap: 40px; }

    /* 8. Aula Virtual (Login) */
    .aula-body {
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 40px !important;
        height: auto !important; 
        min-height: 100vh !important;
        overflow-y: auto !important; 
    }
    .aula-tipografia {
        position: relative !important; 
        top: auto !important; left: auto !important;
        height: auto !important; width: 100% !important;
        text-align: center !important; margin-bottom: 20px !important;
        display: flex !important; justify-content: center !important;
    }
    .aula-tipografia img { height: auto !important; max-width: 90% !important; max-height: 100px !important; }
    .aula-layout { width: 100% !important; justify-content: center !important; margin: 0 !important; }
    .aula-carousel-container { display: none !important; }
    .aula-login-container { width: 100% !important; padding: 0 20px !important; margin-bottom: 40px !important; }
    .login-box { margin: 0 auto !important; background-color: rgba(135, 143, 194, 0.98) !important; }

    /* 9. Dashboard (Panel Interno) */
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-header { padding: 15px 20px; flex-direction: column; gap: 15px; text-align: center; }
    .dash-header-right { width: 100%; justify-content: space-between; }
}
/* =========================================
   CORRECCIONES RESPONSIVE: PANEL ALUMNO (ADMIN)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Cabecera del Panel: Apilar todo al centro */
    .dashboard-header {
        flex-direction: column !important;
        padding: 20px 15px !important;
        gap: 15px !important;
    }
    
    .dash-header-left {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .dash-header-left img {
        margin-bottom: 8px !important;
    }
    
    .dash-header-right {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }
    
    .user-welcome {
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Botón de salir ancho para ser "Touch-friendly" */
    .logout-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px !important; 
    }

    /* 2. Pestañas (Tabs) adaptables */
    .tabs-nav {
        flex-direction: column !important;
        gap: 10px !important;
        border-bottom: none !important;
    }
    
    .tab-button {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* 3. Ajuste de textos en las tarjetas para que no desborden */
    .card-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    .card-header h2 {
        font-size: 16px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .academic-summary {
        width: 100% !important;
        text-align: center !important;
    }

    /* Reducir un poco la letra de la tabla para que se lea mejor deslizando */
    .grades-table th, .grades-table td {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
}