/* ==========================================================================
   UNIVERSIDAD VIRTUAL DEL ESTADO DE MÉXICO (UVEM) - PREMIUM DESIGN STYLES
   ========================================================================== */

/* Fuentes No Críticas (Cargadas de forma diferida) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: optional; src: url('./fonts/montserrat-700.woff2') format('woff2'); }

/* --------------------------------------------------------------------------
   0. Variables & Reset
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette - 60% White/Concrete, 30% Emerald/Dark Gray, 10% Vibrant Orange */
    --color-primary: #1B4D3E;       /* Verde Esmeralda Opaco (30%) - Banners, TÃ­tulos, Tarjetas */
    --color-secondary: #14382D;     /* Verde Esmeralda Oscuro - Contraste estructural */
    /* WPO: Colores ajustados para cumplir contraste WCAG AA (Regla 4 Lighthouse) */
    --color-accent: #A83A00;        /* Naranja Oscurecido - Llamados a la AcciÃ³n (CTAs) */
    --color-accent-dark: #802C00;   /* Naranja AÃºn MÃ¡s Oscuro - Hover / Estado Activo */
    --color-accent-light: #FFD4B8;  /* Naranja Suave / MelocotÃ³n */
    --color-light: #FFFFFF;         /* Blanco Puro (60%) - Fondo Principal */
    --color-dark: #0D1F19;          /* Gris Oscuro / Verde Esmeralda Muy Oscuro - Top bar y Footer */
    --color-white: #ffffff;
    
    /* Variables de Alto Contraste para Textos en Fondos Claros (WCAG AAA) */
    --color-slate-100: #F0F2F4;     /* Gris Concreto Muy Claro (60%) - Bloques para separar secciones */
    --color-slate-300: #707780;     /* Gris Concreto - Bordes y elementos decorativos */
    --color-slate-400: #4A525A;     /* Gris Concreto Oscuro - Textos secundarios y descripciones (Contraste >7:1) */
    --color-slate-500: #5D646D;     /* Gris Concreto Ajustado - Placeholders */
    --color-slate-700: #1E2328;     /* Gris Oscuro Minimalista / CarbÃ³n - Textos principales de lectura (Contraste >14:1) */
    
    /* Variables de Alto Contraste para Textos en Fondos Oscuros (Verde Esmeralda / CarbÃ³n) */
    --color-text-dark-primary: #FFFFFF;   /* Blanco Puro - TÃ­tulos en fondos oscuros (Contraste >15:1) */
    --color-text-dark-secondary: #E2E8F0; /* Plata Claro / Blanco Roto - Lectura en fondos oscuros (Contraste >12:1) */
    --color-text-dark-muted: #CBD5E1;     /* Gris Pizarra Claro - Etiquetas y subtÃ­tulos en fondos oscuros (Contraste >9:1) */
    
    /* Fonts */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Transitions */
    /* Transiciones Optimizadas para GPU (Solo opacidad y transformación para PageSpeed 100/100) */
    --transition-smooth: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: opacity 0.2s ease, transform 0.2s ease;
    
    /* Grid & Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px -15px rgba(13, 31, 25, 0.25);
    --box-shadow-hover: 0 20px 40px -15px rgba(27, 77, 62, 0.25);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color: var(--color-slate-700);
    font-family: var(--font-sans);
}

body {
    background-color: var(--color-light);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

input::placeholder {
    color: var(--color-slate-500);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* --------------------------------------------------------------------------
   1. Helper / Utility Classes & Buttons
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-light { color: var(--color-white) !important; }
.text-gold, .text-accent, .text-orange { color: var(--color-accent-light) !important; }
.text-green { color: var(--color-primary) !important; }

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.section-bar {
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 15px auto 25px;
    border-radius: 2px;
}

.section-bar.bar-left {
    margin-left: 0;
    margin-right: auto;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-slate-400);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    transform: translateY(-3px);
}

.btn-glow:hover {
    box-shadow: 0 10px 25px rgba(255, 111, 32, 0.4);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   2. Contact Info Bar (Top Bar)
   -------------------------------------------------------------------------- */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-dark);
    color: var(--color-text-dark-secondary);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-dark-secondary);
}

.top-info-item a {
    color: var(--color-white);
    font-weight: 500;
}

.top-info-item a:hover {
    color: var(--color-accent);
}

.top-info-item .icon {
    width: 14px;
    height: 14px;
    stroke: var(--color-accent);
}

.institutional-name {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   3. Header & Navigation Menu
   -------------------------------------------------------------------------- */
.main-header {
    background-color: transparent;
    position: absolute;
    top: 37px; /* Matches top-bar height */
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

/* Class added via JS on scroll */
.main-header.scrolled {
    position: fixed;
    top: 0;
    background-color: rgba(27, 77, 62, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo aligned to left */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 600;
}

/* Contenedor del picture del logotipo */
.logo-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 0px;
}
/* Ajuste de la imagen para que se adapte sin deformarse */
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Evita que la imagen se estire o distorsione */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2)); /* Sombra suave premium */
}

/* Menu links */
.nav-menu ul {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-light);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-accent-light);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Toggle Hamburger button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* Mobile Menu Open Animation */
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Hero / Header Section
   -------------------------------------------------------------------------- */
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 10s ease-out forwards;
}

/* Parallax image zoom effect keyframe */
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

/* Wave overlay at the bottom of hero */

/* Wave overlay at the bottom of hero */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 90px;
}

.hero-wave .shape-fill {
    fill: var(--color-light); /* Blends into body */
}

/* --------------------------------------------------------------------------
   5. Courses / Body Section (3 Columns)
   -------------------------------------------------------------------------- */
.courses-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(27, 77, 62, 0.4);
}

.course-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    width: 100%;
}

.course-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.course-image {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.course-card:hover .course-image {
    aspect-ratio: 16 / 10;
    transform: scale(1.08);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: var(--color-accent-light);
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1px solid #A83A00;
}

.course-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.course-description {
    font-size: 0.95rem;
    color: var(--color-slate-700);
    margin-bottom: 25px;
    line-height: 1.6;
}

.course-features {
    margin-bottom: 30px;
    margin-top: auto;
}

.course-features li {
    display: block;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--color-slate-700);
    font-weight: 500;
    font-weight: bold;
}

.feat-icon {
    width: 16px;
    height: 16px;
    stroke: #802C00;
}

/* --------------------------------------------------------------------------
   5.5 Why Us Section (Â¿Por quÃ© estudiar con nosotros?)
   -------------------------------------------------------------------------- */
.why-us-section {
    padding: 100px 0;
    background-color: var(--color-slate-100);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.why-us-col {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.why-us-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(27, 77, 62, 0.3);
}

.why-us-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

.why-us-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.why-us-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.why-us-col:hover .why-us-image {
    transform: scale(1.05);
}

.why-us-body {
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    flex-grow: 1;
}

.why-us-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 600;
}

.why-us-text {
    font-size: 0.95rem;
    color: var(--color-slate-700);
    line-height: 1.6;
    margin-bottom: 25px;
}



/* --------------------------------------------------------------------------
   6. Inscription Process Section (2 Columns)
   -------------------------------------------------------------------------- */
.admission-section {
    background-color: var(--color-primary);
    background-image: radial-gradient(circle at 10% 20%, rgba(35, 99, 80, 0.4) 0%, rgba(27, 77, 62, 0.9) 90%);
    padding: 100px 0;
    color: var(--color-white);
    position: relative;
}

.admission-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.admission-process {
    padding-right: 20px;
}

.admission-lead {
    font-size: 1.1rem;
    color: var(--color-text-dark-secondary);
    margin-bottom: 45px;
    font-weight: 400;
}

/* Steps list (Left Column) */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 28px;
    width: 2px;
    height: calc(100% - 60px);
    background-color: rgba(255, 255, 255, 0.1);
}

.step-item {
    display: flex;
    gap: 25px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 58px;
    height: 58px;
    background-color: var(--color-secondary);
    border: 2px solid #A83A00;
    color: var(--color-accent-light);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 111, 32, 0.25);
    flex-shrink: 0;
}

.step-details {
    padding-top: 10px;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--color-text-dark-secondary);
    line-height: 1.6;
}

/* Form Wrapper (Right Column) */
.admission-form-wrapper {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.form-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
}

.form-header h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-white);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 0.85rem;
    color: var(--color-text-dark-secondary);
}

.admission-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
}

.form-group label .required {
    color: #ef4444;
}

.form-group label .optional {
    color: var(--color-text-dark-muted);
    font-weight: 400;
    font-size: 0.75rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--color-slate-400);
    pointer-events: none;
    transition: var(--transition-fast);
}

.admission-form input,
.admission-form select,
.admission-form textarea {
    width: 100%;
    background-color: rgba(20, 56, 45, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    padding: 14px 16px 14px 48px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.admission-form textarea {
    padding-left: 16px; /* Textareas don't use input icons */
}

/* Style select dropdown arrow */
.admission-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23707780' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
    cursor: pointer;
}

.admission-form select option {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.admission-form input::placeholder,
.admission-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.admission-form input:focus,
.admission-form select:focus,
.admission-form textarea:focus {
    border-color: var(--color-accent-light);
    background-color: rgba(20, 56, 45, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 111, 32, 0.2);
}

.admission-form input:focus + .input-icon,
.admission-form select:focus + .input-icon {
    stroke: #A83A00;
}

/* Error States */
.form-group.has-error input,
.form-group.has-error select {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group.has-error .error-message {
    display: block;
}

.error-message {
    display: none;
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
}

.recaptcha-wrapper {
    margin: 18px 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

/* Success Card CSS */
.form-success-alert {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.form-success-alert.active {
    opacity: 1;
    pointer-events: auto;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 111, 32, 0.1);
    border: 3px solid #A83A00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-accent-light);
    box-shadow: 0 0 30px rgba(255, 111, 32, 0.3);
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 36px;
    height: 36px;
}

.form-success-alert h4 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.form-success-alert p {
    font-size: 0.95rem;
    color: var(--color-text-dark-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   7. Contact & Map Section (2 Columns)
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-lead {
    font-size: 1.05rem;
    margin-bottom: 35px;
    color: var(--color-slate-700);
}

.contact-info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-info-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(27, 77, 62, 0.1);
    color: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-text h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.contact-card-text p {
    font-size: 0.85rem;
    color: var(--color-slate-700);
    line-height: 1.5;
}

.contact-card-text a:hover {
    color: #802C00;
}

/* Map Column */
.contact-map-wrapper {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 3px solid var(--color-white);
}

.contact-map {
    width: 100%;
    height: 100%;
    border: none;
    /* Apply a soft modern cool filter to map */
    filter: contrast(1.05) saturate(1.1);
}

/* --------------------------------------------------------------------------
   8. Footer Section
   -------------------------------------------------------------------------- */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-text-dark-secondary);
    padding: 80px 0 30px;
    border-top: 3px solid var(--color-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo-light .logo-title {
    color: var(--color-white);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-dark-secondary);
}

.copyright-notice {
    font-size: 0.8rem;
    color: var(--color-text-dark-muted);
    margin-top: 15px;
}

/* Footer Link Columns */
.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links-subcol ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-subcol a {
    font-size: 0.85rem;
    transition: var(--transition-fast);
    color: var(--color-slate-100);
}

.footer-links-subcol a:hover {
    color: var(--color-accent-light);
    padding-left: 5px;
}

/* Bottom Bar Social Media */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 111, 32, 0.3);
    border-color: var(--color-accent);
}

.social-icon {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   9. Scroll Reveal Animations (Nativas con JS)
   -------------------------------------------------------------------------- */
.reveal-item { /* Animaciones desactivadas por rendimiento */ }



/* Delay modifiers for stagger animation */
.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-item:nth-child(3) { transition-delay: 0.2s; }
.reveal-item:nth-child(4) { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   9b. Simulador eLearning Section
   -------------------------------------------------------------------------- */
.elearning-section {
    padding: 100px 0;
    background-color: var(--color-slate-100);
}

.portal-mockup {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #14382D;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg), 0 20px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.portal-header {
    background-color: #0D1F19;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-header-left {
    display: flex;
    align-items: center;
}

.circle-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.circle-btn.red { background-color: #ff5f56; }
.circle-btn.yellow { background-color: #ffbd2e; }
.circle-btn.green { background-color: #27c93f; }

.portal-title-text {
    color: var(--color-text-dark-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 10px;
    font-family: monospace, sans-serif;
}

.portal-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-status-badge {
    color: #6EE7B7;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: blink 2.5s infinite;
}

.student-avatar-mini {
    width: 28px;
    height: 28px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.8rem;
}

.portal-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 520px;
}

.portal-sidebar {
    background-color: #0D1F19;
    padding: 30px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.student-profile {
    text-align: center;
    margin-bottom: 30px;
}

.student-avatar {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--color-accent);
}

.avatar-svg {
    width: 28px;
    height: 28px;
}

.student-name {
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin-bottom: 3px;
    font-weight: 600;
}

.student-career {
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.student-id {
    color: var(--color-text-dark-muted);
    font-size: 0.65rem;
    display: block;
}

.portal-side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: var(--color-text-dark-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
    width: 100%;
    font-family: inherit;
}

.portal-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-white);
}

.portal-nav-btn.active {
    background-color: var(--color-secondary);
    color: var(--color-accent);
    border-left: 3px solid var(--color-accent);
    padding-left: 12px; /* adjust for border */
}

.side-icon {
    width: 18px;
    height: 18px;
}

.portal-content {
    padding: 40px;
    background-color: #14382D;
    color: var(--color-white);
}

.portal-pane {
    display: none;
}

.portal-pane.active {
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeInPane 0.4s ease forwards;
}

@keyframes fadeInPane {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
}

.pane-title-area h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 4px;
}

.pane-title-area p {
    font-size: 0.8rem;
    color: var(--color-text-dark-secondary);
}

.gpa-card {
    background-color: rgba(255, 111, 32, 0.08);
    border: 1px solid var(--color-accent);
    padding: 8px 18px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-width: 130px;
}

.gpa-value {
    font-size: 1.6rem;
    color: var(--color-accent-light);
    font-family: var(--font-serif);
    line-height: 1.2;
}

.gpa-label {
    font-size: 0.6rem;
    color: var(--color-text-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.pane-info-text {
    font-size: 0.85rem;
    color: var(--color-text-dark-secondary);
    line-height: 1.6;
}

.grades-calculator {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grade-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: rgba(13, 31, 25, 0.4);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.grade-info {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.85rem;
}

.subject-name {
    color: var(--color-white);
}

.grade-score {
    color: var(--color-accent-light);
    font-weight: 700;
    width: 35px;
    text-align: right;
}

.grade-slider {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.grade-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 111, 32, 0.5);
    transition: var(--transition-fast);
}

.grade-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.schedule-status-tag {
    background-color: rgba(255, 111, 32, 0.1);
    border: 1px solid var(--color-accent);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
}

.blinking {
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.schedule-table-wrapper, .kardex-table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background-color: rgba(13, 31, 25, 0.2);
}

.schedule-table, .kardex-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.8rem;
    min-width: 600px;
}

.schedule-table th, .kardex-table th {
    background-color: #0D1F19;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-white);
}

.schedule-table td, .kardex-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-dark-secondary);
}

.empty-cell {
    color: rgba(255, 255, 255, 0.1);
    text-align: center;
}

.time-col {
    font-weight: 600;
    color: var(--color-accent);
    background-color: rgba(13, 31, 25, 0.3);
}

.class-cell {
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 4px;
}

.active-class {
    border-left: 3px solid var(--color-accent);
    background-color: rgba(255, 111, 32, 0.04);
}

.active-class.live-now {
    border-left-color: #4ade80;
    background-color: rgba(74, 222, 128, 0.04);
}

.live-now .class-title {
    color: #4ade80;
}

.live-now .class-type {
    color: rgba(74, 222, 128, 0.8);
    font-weight: 600;
}

.class-title {
    font-weight: 600;
    color: var(--color-white);
}

.class-type {
    font-size: 0.65rem;
    color: var(--color-text-dark-muted);
    display: block;
    margin-top: 2px;
}

.schedule-action {
    margin-top: 15px;
}

.academic-badge {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
}

.kardex-progress-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kardex-progress-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-text-dark-secondary);
}

.kardex-progress-track {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
}

.kardex-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent));
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-pill {
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-block;
}

.status-pill.passed {
    background-color: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.status-pill.ongoing {
    background-color: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints (Celulares, Tablets, PC)
   -------------------------------------------------------------------------- */

/* Desktop & Laptop (Min-width 1024px) */
@hover {
    /* Hover effects defined globally only active when cursor capability is present */
}

/* Tablets (Max-width: 1023px) */
@media (max-width: 1023px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Shift criminologia card to full center row if grid odd */
    .courses-grid .course-card:nth-child(3) {
        grid-column: span 2;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .admission-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .admission-process {
        padding-right: 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-map-wrapper {
        height: 350px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Simulador eLearning Tablet Overrides */
    .portal-body {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .student-profile {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
        width: 100%;
        max-width: 500px;
    }

    .student-avatar {
        margin: 0;
        width: 50px;
        height: 50px;
    }

    .student-avatar .avatar-svg {
        width: 22px;
        height: 22px;
    }

    .portal-side-nav {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 10px;
        max-width: 500px;
    }

    .portal-nav-btn {
        justify-content: center;
        font-size: 0.8rem;
        padding: 10px 14px;
        border-left: none;
    }

    .portal-nav-btn.active {
        border-bottom: 2px solid var(--color-accent);
        border-left: none;
        padding-left: 14px;
        background-color: rgba(255, 255, 255, 0.02);
    }
}

/* Mobile Devices (Max-width: 767px) */
@media (max-width: 767px) {
    html {
        font-size: 15px; /* Base scale down */
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .top-info-item.institutional-name {
        display: none; /* Hide from tiny screens to save space */
    }
    
    .main-header {
        top: 61px; /* Adjusts for stacked top bar */
        padding: 5px 0;
    }
    
    .main-header.scrolled {
        top: 0;
    }
    
    /* Mobile Responsive Hamburger Menu overlay */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        /* WPO: Fixed position + 100% previene saltos por la barra de navegaciÃ³n mÃ³vil (Regla 9) */
        height: 100%;
        background-color: var(--color-primary);
        box-shadow: -5px 0 25px rgba(0,0,0,0.4);
        padding: 100px 40px;
        transition: var(--transition-smooth);
        z-index: 1050;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid .course-card:nth-child(3) {
        grid-column: span 1;
    }
    
    .admission-form-wrapper {
        padding: 25px 20px;
    }
    
    .contact-info-list {
        grid-template-columns: 1fr;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-title {
        margin-bottom: 15px;
    }

    .why-us-body {
        padding: 25px 20px;
        align-items: center;
        text-align: center;
    }

    .why-us-body .btn {
        width: 100%;
    }

    /* Simulador eLearning Mobile Overrides */
    .portal-sidebar {
        padding: 15px 10px;
    }

    .student-profile {
        display: none; /* Hide profile card on mobile to save vertical space */
    }

    .portal-side-nav {
        flex-wrap: wrap;
        width: 100%;
    }

    .portal-side-nav button span {
        display: none; /* Hide button text, show only icons to save space */
    }

    .portal-nav-btn {
        width: auto;
        padding: 12px 18px;
        flex: 1;
        justify-content: center;
    }

    .portal-content {
        padding: 20px 15px;
    }

    .pane-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .gpa-card {
        width: 100%;
    }
}

/* ==========================================================================
   X. Info Modal Overlay (Footer Links)
   ========================================================================== */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 31, 25, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.info-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.info-modal-container {
    background-color: var(--color-light);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-smooth);
    opacity: 0;
}

.info-modal-overlay.active .info-modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.info-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-light);
    border-radius: 16px 16px 0 0;
}

.info-modal-header h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-slate-400);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    color: var(--color-accent);
    background-color: rgba(168, 58, 0, 0.1);
}

.info-modal-body {
    padding: 25px;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--color-slate-700);
    line-height: 1.7;
}

/* Scrollbar for modal */
.info-modal-body::-webkit-scrollbar {
    width: 6px;
}
.info-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.info-modal-body::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: 10px;
}
.info-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.modal-text-content h4 {
    color: var(--color-primary);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.modal-text-content p {
    margin-bottom: 15px;
}

.modal-text-content ul.check-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.modal-text-content ul.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.modal-text-content ul.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: bold;
}
