* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.slideshow-container {
  max-width: 1300px;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.OfertaAcademica-section {
    position: relative;
    height: 50vh;
    overflow: hidden;
  }
  
  .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    z-index: 0;
  }
  
  .overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px; 
  }
  
  .content {
    text-align: center;
    color: white;
    padding: 32px;
  }
  
  .content h1 {
    font-size: 48px;
    margin-bottom: 16px;
  }
  
  .content p {
    font-size: 20px;
    margin-bottom: 32px;
  }
  
  .button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .buttonOA {
    outline: none;
    cursor: pointer;
    border: 2px solid white;
    padding: 20px 32px; 
    margin: 0;
    font-family: inherit;
    font-size: 17px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.05rem;
    font-weight: 700;
    border-radius: 500px;
    overflow: hidden;
    background: transparent;
    color: white;
    transition: color 0.4s;
  }
  
  .buttonOA span {
    position: relative;
    z-index: 10;
    transition: color 0.4s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .buttonOA:hover span {
    color: white;
  }
  
  .buttonOA::before {
    content: "";
    position: absolute;
    background: #002D72;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    z-index: 0;
    transform: skew(30deg);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
  }
  
  .buttonOA:hover::before {
    transform: translate3d(100%, 0, 0);
  }

  .enlaces-container {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
  }

  h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #002d72;
  }

  .grid-enlaces {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }

  .boton-enlace {
    display: flex;
    flex-direction: column; 
    text-align: center;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }

  .boton-enlace:hover {
    background-color: #f0f8ff;
    box-shadow: 0 4px 12px rgba(0, 45, 114, 0.2);
  }

  .boton-enlace .icono {
    color: #ef3340;
    font-size: 1.3rem;
    min-width: 24px; 
    display: flex;
    justify-content: center;
  }

  .boton-enlace .texto {
    color: #002d72;
    font-weight: bold;
    font-size: 1rem;
    flex-grow: 1;
  }

  @media (max-width: 768px) {
    .grid-enlaces {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {
    .grid-enlaces {
      grid-template-columns: 1fr;
    }
  }