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

/* =======================================
   ESTILOS DEL SLIDER (HERO)
======================================= */
.slider-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 2560 / 1300;
  overflow: hidden;
  background-color: #001e3c;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 768px) {
  .slider-container {
    aspect-ratio: auto;
    height: calc(100vh - 100px);
    max-height: none;
  }
}

/* Superposición oscura */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 30, 60, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  max-width: 800px;
  color: #ffffff;
}

.hero-content h1 {
  font-size: clamp(
    1.8rem,
    4vw,
    2.6rem
  ); /* Se adapta dinámicamente según la pantalla */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 25px;
  font-weight: 300;
  line-height: 1.5;
}

/* Botón de la frase */
.btn-hero {
  display: inline-block;
  padding: 14px 32px;
  background-color: #0227ac;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
  background-color: #02316e;
  transform: translateY(-3px);
  cursor: pointer;
}

/* Flechas izquierda / derecha */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 15px 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.6);
  color: #000;
}

.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}

/* Indicadores de puntos */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.dot.active,
.dot:hover {
  background-color: #0631f5;
  transform: scale(1.2);
}

/* =======================================
   SECCIÓN BENEFICIOS
======================================= */
.beneficios {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.beneficios-titulo {
  text-align: center;
  font-size: 2rem;
  color: #003366; /* Azul institucional */
  margin-bottom: 40px;
  position: relative;
}

.beneficios-titulo::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(to right, #0066cc, #ff0000) 1;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Grilla con las 3 imágenes lado a lado */
.beneficios-images {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap; /* Para adaptarse a pantallas pequeñas */
}

.beneficio-card {
  flex: 1;
  min-width: 280px; /* Ancho mínimo antes de acomodarse abajo en móviles */
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: fadeInUp 0.9s ease-out forwards;
  opacity: 0;
}

.beneficio-card:hover {
  transform: translateY(-8px);
  scale: 1.01;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.beneficio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.beneficio-info {
  padding: 25px 20px;
  text-align: center;
}

.beneficio-info i {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 12px;
}

.beneficio-info h3 {
  font-size: 1.25rem;
  color: #222222;
  margin-bottom: 10px;
}

.beneficio-info p {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.5;
}
.beneficio-card:nth-child(1) {
  animation-delay: 0.5s;
}

.beneficio-card:nth-child(2) {
  animation-delay: 0.5s;
}

.beneficio-card:nth-child(3) {
  animation-delay: 0.8s;
}

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

/* =======================================
   CARRUSEL INFINITO DE MARCAS / CONVENIOS
======================================= */
.noticias {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.carousel-titulo {
  text-align: center;
  font-size: 1.6rem;
  color: #003366;
  margin-bottom: 25px;
}

.carousel {
  width: 100%;
  display: flex;
  overflow: hidden; /* Oculta las barras de desplazamiento */
  position: relative;
  padding: 15px 0;
  /* Difuminado sutil en las esquinas izquierda y derecha */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.grupo {
  display: flex;
  align-items: center;
  gap: 1.5em;
  padding-right: 1.5em; /* Asegura espacio constante entre los dos grupos */
  flex-shrink: 0;
  animation: scrollInfinito 18s linear infinite; /* Animación fluida */
}

/* Detiene la animación cuando el usuario pasa el mouse encima */
.carousel:hover .grupo {
  animation-play-state: paused;
}

.carousel .grupo .card {
  width: 140px;
  height: 70px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.carousel .grupo .card img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain; /* útil para el logo de Megacable u otros que no sean cuadrados */
}
.carousel .grupo .card:hover {
  transform: translateY(-3px);
  border-color: #003366;
}

.carousel .grupo .card i {
  font-size: 1.8rem;
  color: #003366; /* Color del icono */
}

.carousel .grupo .card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #444444;
}

/* Clave del movimiento infinito continuo */
@keyframes scrollInfinito {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.universidades {
  background: #fff;
  padding: 48px 0;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.universidades__titulo {
  color: #003366;
  font-size: 1.25rem;
  margin-bottom: 24px;
}
.marquee {
  width: 100%;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee-derecha 40s linear infinite;
}

.marquee__logo {
  flex: 0 0 auto;
  width: 220px;
  height: 120px;
  margin: 0 32px; /* margin en vez de gap: el -50% queda exacto */
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.3s;
}

/* Dirección contraria al carrusel de arriba */
@keyframes marquee-derecha {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* Accesibilidad: sin movimiento si el usuario lo pide 
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}*/
