.logo-link img {
  height: 65px;
}

.logo2 {
  width: 270px;
  height: 51px !important;
  object-fit: contain;
  transform: scale(3.6, 4) !important;
  margin-top: 10px;
}

/* Contenedor para los logos - AÑADE ESTO AL HTML O CSS */
.logos-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav ul li a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--secondary-light);
}

nav ul li a:hover:after {
  width: 100%;
}

/* Ocultar menú mobile */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--gradient-primary);
  color: white;
  padding: 20px;
  position: absolute;
  top: 70px;
  right: 0;
  width: 250px;
  border-radius: 0 0 10px 10px;
  z-index: 999;
  box-shadow: var(--shadow-md);
  margin-top: -2px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: 40px 0;
  height: 500px;
  box-shadow: var(--shadow-lg);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  transform: scale(1.1);
  filter: blur(2px);
}

.logos-slide {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logos-slide .img-container {
  width: 50%;
  height: 100%;
}

.logos-slide .img-container img {
  object-fit: fill;
  filter: none;
  transform: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.7)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  z-index: 3;
}

.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  background: linear-gradient(to right, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-control.prev {
  left: 25px;
}

.carousel-control.next {
  right: 25px;
}

.carousel-control:hover {
  background-color: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.indicator.active {
  background-color: white;
  transform: scale(1.2);
  border-color: var(--secondary);
}

.history {
  background-color: white;
  padding: 40px;
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  position: relative;
  overflow: hidden;
}

.history:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-secondary);
}

.history-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.history-text {
  max-width: 800px;
}

.history-text p {
  margin-bottom: 1.5em;
  line-height: 1.8;
  color: var(--text);
  text-align: left;
  font-size: 1.05rem;
}

.history-image {
  width: 50%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.history-image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.history-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.history-image:hover img {
  transform: scale(1.05);
}

.schools-section {
  padding: 60px 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.schools-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
  font-size: 2.2rem;
}

.schools-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  overflow: hidden;
}

.schools-container {
  display: flex;
  gap: 25px 20px;
  transition: transform 0.5s ease;
  width: max-content;
}

.school-card {
  flex: 0 0 300px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 25px 20px;
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--light-gray);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.school-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-accent);
}

.school-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.school-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
  order: 1;
}

.school-image-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  position: relative;
  order: 2;
  border-radius: 50%;
  padding: 8px;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-md);
}

.school-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
}

.school-info {
  padding: 0 0 15px;
  order: 3;
}

.school-info p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.6;
}

.school-link {
  display: inline-block;
  background: var(--gradient-secondary);
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  font-size: 0.95rem;
  order: 4;
  border-radius: var(--radius-md);
}

.school-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--gradient-secondary);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.card-control {
  background: var(--gradient-secondary);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-control:hover {
  transform: scale(1.1);
  background: var(--gradient-secondary);
  box-shadow: var(--shadow-lg);
}

.carousel-indicators-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicator.active {
  background-color: var(--secondary);
  transform: scale(1.2);
}

.cfp-section {
  padding: 40px 0;
  position: relative;
}

.cfp-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.cfp-cards-container {
  display: flex;
  gap: 25px;
  padding: 15px;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.cfp-card {
  flex: 0 0 300px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 25px 20px;
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--light-gray);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.cfp-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-accent);
}

.cfp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.cfp-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
  order: 1;
}

.cfp-image-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  position: relative;
  order: 2;
  border-radius: 50%;
  padding: 8px;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cfp-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  border: 4px solid white;
  padding: 5px;
  background-color: white;
}

.cfp-info {
  padding: 0 0 15px;
  order: 3;
}

.cfp-info p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.6;
}

.cfp-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.cfp-control {
  background: var(--gradient-secondary);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfp-control:hover {
  transform: scale(1.1);
  background: var(--gradient-secondary);
  box-shadow: var(--shadow-lg);
}

.cfp-indicators-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.cfp-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
}

.cfp-indicator.active {
  background-color: var(--secondary);
  transform: scale(1.2);
}

.announcements {
  margin-bottom: 40px;
  background-color: white;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
}

.announcements:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-secondary);
}

.announcements article {
  background-color: var(--light);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 5px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.announcements article:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
}

.announcements article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.announcements article h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.announcements article p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.announcements article a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.announcements article a:hover {
  color: var(--accent);
  gap: 12px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.modal-contenido {
  background: white;
  padding: 25px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: auto;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: aparecer 0.4s ease;
  resize: both;
  overflow: auto;
  position: relative;
}

.modal-contenido:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-secondary);
}

.cerrar {
  align-self: flex-end;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--secondary);
  margin-bottom: 15px;
  transition: var(--transition);
}

.cerrar:hover {
  color: var(--primary);
  transform: scale(1.1);
}

@keyframes aparecer {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

footer {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: 2.5em 0;
  width: 100%;
  margin-top: 60px;
}

footer p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px) scale(1.1);
}

.social-links img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.section-title {
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  position: relative;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-bottom: 15px;
}

.section-title:after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: var(--gradient-secondary);
  margin: 15px auto 0;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.button {
  display: inline-block;
  background: var(--gradient-secondary);
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--gradient-secondary);
}

.pid-article {
  background-color: var(--light);
  min-height: 180px;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 5px solid var(--accent);
  position: relative;
  overflow: hidden;
  /* max-height: 200px; */
  cursor: pointer;
}
.pid-text {
  max-height: 140px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.pid-text.expanded {
  max-height: 2000px;
}
.pid-article:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
}

.pid-article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pid-article h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.pid-article h4 {
  color: var(--primary-light);
  font-size: 1.1rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.pid-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  position: relative;
  z-index: 1;
}

.pid-list li {
  background: #f5f8fc;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 4px solid var(--primary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.pid-list strong {
  color: var(--primary);
}

.pid-list em {
  color: var(--text-light);
  font-size: 0.8rem;
}

.calif-list {
  margin-top: 5px;
  padding-left: 15px;
  list-style: disc;
  font-size: 0.85rem;
}

.pid-article.expandido {
  max-height: none;
  overflow: visible;
}
.pid-article:not(.expandido)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--light));
  pointer-events: none;
}

.pid-article.expandido {
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 50px;
  cursor: default;
}

.pid-article .leer-mas {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: var(--accent);
  position: relative;
  z-index: 10;
}
.pid-article::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--light));
}
.pid-article:not(.expandido) .leer-mas {
  display: none;
}
.leer-mas {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  margin-top: 10px;
  color: #1a3a5f;
  transition: 0.3s;
}

.leer-mas i {
  margin-left: 6px;
}

.leer-mas:hover {
  color: #13324d;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
.summary-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  padding-right: 30px;
  cursor: pointer;
}

.summary-header .expand-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transition: transform 0.3s;
}

.summary-header .chevron-container {
  color: #1a73e8;
  position: relative;
  font-weight: 780;
}

details[open] .expand-icon {
  transform: rotate(180deg);
}

details .list {
  list-style: none;
  margin-top: 1.5rem;
}

.sub-list {
  list-style-type: circle;
  margin-left: 2.5rem;
}
