/* ===================================
   Centro Universitario - Custom Styles
   =================================== */

/* ===== Variables CSS ===== */
:root {
    --primary-color: #022A3E;
    --primary-dark: #056B8E;
    --primary-light: #0BBFCF;
    --secondary-color: #CAA050;
    --accent-color: #DBB86A;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #E9E9E9;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Justificar todos los textos de contenido */
p,
.text-muted,
.lead,
.value-card p,
.news-content p,
.career-content p {
    text-align: justify;
}

/* Excepciones: textos centrados deben mantenerse centrados */
.text-center p,
.text-center .text-muted,
.text-center .lead {
    text-align: center;
}

/* Tipografías institucionales */
h1, h2, h3, .section-title, .navbar-brand, .featured-news-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

h4, h5, .footer-title, .footer-subtitle, .career-content h3 {
    font-family: "Century Gothic", "CenturyGothic", "URW Gothic L", Arial, sans-serif;
    font-weight: 400;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
}
/* ===== Boton flotante whatsapp ===== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    font-size: 1.8rem;
    padding: 0.2rem 0.7rem;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.2s ease;
    text-align: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1ebe5d;
    color: white;
}

/* ===== Navigation ===== */
#mainNav {
    background: rgba(2, 42, 62, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--secondary-color);
    display: flex;
    align-items: center;
}

#mainNav .navbar-nav {
    display: flex;
    align-items: center;
}

#mainNav .container {
    padding-left: 0 !important;
    margin-left: 0 !important;
    max-width: 100% !important;
}

#mainNav .container > .navbar-brand {
    margin-left: 1rem !important;
}

#mainNav.scrolled {
    background: rgba(2, 42, 62, 1);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--white) !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    display: flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1.2;
}

.navbar-brand img {
    vertical-align: middle;
    align-self: center;
    flex-shrink: 0;
}

.navbar-brand::after {
    content: '';
    display: inline-block;
}

.navbar-brand i {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 1.15rem;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown styles */
.dropdown-menu {
    background: var(--white);
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.navbar .btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 0.375rem;
}

.navbar .btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}


/* boton para mandar al area de contacto desde el encaberzado*/
.boton-inicio-contacto a {
  color: #fff !important;
  text-decoration: none; /* quita el subrayado */
}

.quick-access-card-link {
  text-decoration: none; /* quita el subrayado */
  display: block;        /* permite que el enlace ocupe todo el espacio */
  height: 100%;
}

.quick-access-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  color: #fff;
  backdrop-filter: blur(10px);
}

.quick-access-card i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.quick-access-card span {
  font-weight: 600;
  color: #fff;
  font-size: 1.5rem;
}

.quick-access-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}




/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    background-image: 
        linear-gradient(135deg, rgba(2, 42, 62, 0.9) 0%, rgba(5, 107, 142, 0.85) 50%, rgba(11, 191, 207, 0.8) 100%),
        url('../Imagenes/principal.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    border-bottom: 5px solid var(--secondary-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

.hero-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.hero-section .btn-primary {
    background: var(--secondary-color);
    border: none;
}

.hero-section .btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-section .btn-outline-light:hover {
    background: var(--white);
    color: blue;
    transform: translateY(-3px);
}

/*Boton animado "Conoces Nuestras Carreras"*/

/* From Uiverse.io by dpaulos6 */ 
.c-button {
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 0.9em 1.6em;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  z-index: 1;
}

.c-button--gooey {
  color: var(--secondary-color);
  background-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 4px solid var(--secondary-color);
  position: relative;
  transition: all 700ms ease;
  border-radius: 999px;
}

.c-button--gooey .c-button__blobs {
  height: 100%;
  filter: url(#goo);
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  bottom: -3px;
  right: -1px;
  z-index: -1;
  border-radius: 20px;
}

.c-button--gooey .c-button__blobs div {
  background-color: var(--accent-color);
  width: 34%;
  height: 100%;
  border-radius: 100%;
  position: absolute;
  transform: scale(1.4) translateY(125%) translateZ(0);
  transition: all 700ms ease;
}

.c-button--gooey .c-button__blobs div:nth-child(1) {
  left: -5%;
}

.c-button--gooey .c-button__blobs div:nth-child(2) {
  left: 30%;
  transition-delay: 60ms;
}

.c-button--gooey .c-button__blobs div:nth-child(3) {
  left: 66%;
  transition-delay: 25ms;
}

.c-button--gooey:hover {
  color: #fff;
}

.c-button--gooey:hover .c-button__blobs div {
  transform: scale(1.4) translateY(0) translateZ(0);
}

.boton-principal {
  color: white;
}


/* Quick Access Cards */
.quick-access-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quick-access-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.quick-access-card i {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.quick-access-card span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.stat-box {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); 
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px; 
  height: 100%;
}

.stat-boxes {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-box .stat-box {
  flex: 1 1 30%; /* permite que se adapten en responsive */
}




.stat-box {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.boton-animado {
    color: white;
}


/* ===== Section Styles ===== */
.section-bg {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* ===== Nosotros Section ===== */
#nosotros .text-muted {
    text-align: justify;
}

.about-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%; /* Ajusta el tamaño general del contenedor */
    width: 100%;
    aspect-ratio: 4 / 4.4; /* Estirado vertical un 10% (4:4.4 en lugar de 4:4) */
    overflow: visible; /* Permite que el marco decorativo sea visible */
}

.about-image-wrapper img {
    width: 100%; /* La imagen se adapta al contenedor */
    height: 100%; /* Ocupa toda la altura del contenedor */
    object-fit: cover; /* Evita deformación excesiva */
    object-position: center; /* Centra la imagen */
    border-radius: 1rem;
    display: block; /* Evita espacios en blanco debajo de la imagen */
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    border: 3px solid var(--primary-color);
    border-radius: 1rem;
    z-index: -1;
    pointer-events: none;
}

/* ==== FEATURE BOX ==== */
.feature-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
}

.feature-box i {
    font-size: 1.5rem;
}

/* Color rojo al pasar el cursor */
.feature-box:hover {
    background: var(--secondary-color); /* Rojo institucional */
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    transform: translateY(-5px);
    color: white; /* Cambia el texto a blanco para mejor contraste */
}

.feature-box:hover i {
    color: white; /* Icono también en blanco al resaltar */
}

/* ==== VALUE CARD ==== */


.value-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform: perspective(1000px) translateZ(0);
  height: 100%;
  will-change: transform;
}

.value-card:hover {
  transform: scale(1.08) perspective(1000px) translateZ(20px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  z-index: 2;
}


/* ==== ICON BOX ==== */
.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    color: var(--white);
    position: relative;
    flex-shrink: 0;
}

.icon-box i {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* ==== TEXT ==== */
.value-card h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}


/* ===== Carreras Section ===== */
.career-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.career-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.career-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.career-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.career-card:hover .career-image img {
    transform: scale(1.1);
}

.career-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 42, 62, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.career-card:hover .career-overlay {
    opacity: 1;
}

.career-content {
    padding: 2rem;
    position: relative;
}

.career-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: -3rem auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.career-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.career-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.career-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.career-features i {
    color: var(--primary-color);
}

/* ===== Noticias Section ===== */
.featured-news-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 1rem;
    padding: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.news-badge-featured {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-news-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--white);
}

.featured-news-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.featured-news-image img {
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.news-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--primary-dark);
    gap: 1rem;
}

/* ===== Contacto Section ===== */
.contact-info-wrapper {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.social-links {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    color: var(--white);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.1);
}

.form-floating > label {
    color: var(--text-muted);
}

.map-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===== Footer ===== */

 p.text-muted-mb-3{
    color: white;
}

.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    border-top: 5px solid var(--secondary-color);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-title i {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.25rem;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-link-bottom {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-link-bottom:hover {
    color: var(--white);
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* ===== Modal Customization ===== */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 1rem 1rem 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ===== Responsive Design ===== */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-collapse {
        background: rgba(2, 42, 62, 0.98);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .stat-box {
        padding: 1rem;
    }
    
    .stat-box h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        width: 2rem !important;
        height: 2rem !important;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Utility Classes ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}



.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* CSS para el modal de pensum*/




/* Asegura que el modal esté por encima del fondo */
.modal {
  z-index: 1050;
}

/* Corrige el fondo opaco para que no bloquee clics */
.modal-backdrop {
  z-index: 1040;
}

/* Estilo para los botones dentro del modal */
.modal-content .btn-light {
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.btn-light {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  color: #ffffff;
  border-radius: 0.5rem;
  transition:  0.3s ease;
  background-color: var(--secondary-color);
}

/* Botón de cerrar */
.modal-footer .btn-secondary {
  background-color: #ffffff;
  color: var(--primary-color);
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
}

.modal-footer .btn-secondary:hover {
  background-color: #f0f0f0;
}

/* Botón de descargar reglamento */
.reglamento-btn {
  transition: all 0.3s ease;
}

.reglamento-btn:hover {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
}

/* Título del modal */
.modal-title {
  font-weight: bold;
  font-size: 1.25rem;
}

.modal {
  z-index: 2000 !important;
}

.modal-backdrop {
  z-index: 1900 !important;
}

/* --- FIX para modal que no se puede cerrar o tiene fondo oscuro bloqueando --- */
.modal-backdrop.show {
  opacity: 0.5 !important; /* visibilidad normal */
  pointer-events: none !important; /* evita que bloquee clics */
}

.modal.show {
  display: block !important;
  opacity: 1 !important;
  pointer-events: all !important;
  z-index: 2000 !important;
}

body.modal-open {
  overflow: hidden !important; /* evita scroll de fondo */
}

.modal-dialog {
  z-index: 2100 !important;
  pointer-events: auto !important;
}

.modal-content {
  pointer-events: auto !important;
}

.modal-backdrop.show {
  background-color: transparent !important;
  opacity: 0 !important;
}

.modal-content {
  max-width: 100%;
  overflow-x: hidden;
}
.btn {
  white-space: nowrap;
}

body.no-scroll {
  overflow: hidden;
}

.modal {
  max-height: 100vh;
  overflow-y: auto;
}

.menu-button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin: 8px 0;
  background: linear-gradient(135deg, #3a8dde, #276bba); /* Degradado azul */
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
}

.menu-button:hover {
  background: linear-gradient(135deg, #276bba, #1a4e89);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: white;
}

.menu-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.1); /* Glass effect */
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-button i {
  font-size: 18px;
  min-width: 20px;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  color: #fff;
  text-decoration: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.menu-square {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 20px 10px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  transition: all 0.3s ease-in-out;
}

.menu-square i {
  font-size: 22px;
  margin-bottom: 8px;
}

.menu-square:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.shiny-text {
  color: #ffffff; /* Rojo coral, puedes cambiarlo por otro */
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.footer {
  background-color: var(--primary-color);
  color: #ffffff;
  width: 100%;
  margin: 0;
  padding: 0;
}

.footer-inner {
  width: 100%;
  margin: 0;
  padding: 0;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.text-footer {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
a
.footer-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #ffc107;
}

.footer-contact i {
  margin-right: 0.5rem;
}

.footer-social a {
  color: #ffffff;
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.footer-social a:hover {
  color: #ffc107;
}

.footer-bottom {
  background-color: #001f3f;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  margin: 0;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* ===== RESET GENERAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
}

/* ===== FOOTER GENERAL ===== */
.footer {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: #ffffff;
  border-top: 5px solid var(--secondary-color);
}

.footer-inner {
  width: 100%;
  margin: 0;
  padding: 3rem 1rem 1rem;
}

/* Títulos */
.footer-title {
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.footer-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

/* Texto institucional */
.text-footer {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Redes Sociales */
.footer-social a {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 0.75rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #ffffff;
}

/* Enlaces y listas */
.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.footer-contact i {
  margin-right: 0.5rem;
  color: #ffffff;
}

/* Parte inferior del footer */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* === Responsive Grid Fix === */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.col-lg-4, .col-lg-3, .col-lg-2,
.col-md-6 {
  padding: 0 0.5rem;
  margin-bottom: 2rem;
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-lg-2 {
    flex: 0 0 16.6667%;
    max-width: 16.6667%;
  }
}

/* ===== Mapa Integrado ===== */

.map-section {
  margin-top: 2rem;
  padding: 1rem 0;
}

.map-section h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.map-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 0.5rem;
}

.map-link {
  margin-top: 0.5rem;
  text-align: right;
}

.map-link a {
  color: #ffc107;
  text-decoration: none;
  font-size: 0.9rem;
}

.map-link a:hover {
  text-decoration: underline;
}

/* Elimina márgenes y asegura ancho completo */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.footer {
  background-color: var(--primary-color); /* azul institucional */
  color: #ffffff;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Línea inferior del footer */
.footer-bottom {
  background-color: #001f3f; /* azul más oscuro */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  margin: 0;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.footer {
  background-color: var(--primary-color);
  color: #ffffff;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.footer-inner {
  width: 100%;
  margin: 0;
  padding: 0;
}

.footer .row {
  margin-left: 0;
  margin-right: 0;
}

.footer .col-lg-4,
.footer .col-lg-2,
.footer .col-lg-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.text-footer {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #ffc107;
}

.footer-contact i {
  margin-right: 0.5rem;
}

.footer-social a {
  color: #ffffff;
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.footer-bottom {
  background-color: #001f3f;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  margin: 0;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer {
  background-color: var(--primary-color);
  color: #ffffff;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.footer-bottom {
  background-color: #001f3f;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  margin: 0;
  padding: 1rem 0;
  text-align: center;
}

