@import url('https://fonts.googleapis.com/css?family=Lato');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Poppins:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

#particles-js {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.todo {
  z-index: 1;
}

body {
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background: linear-gradient(to right, #ddedff, #eff8ff);
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  width: 100%;
  height: 100vh;
  margin: 0;
  flex-wrap: wrap;
  flex-direction: row;

  /* CAMBIO: evitar scroll lateral en celular */
  overflow-x: hidden;
}

#ultimo+div {
  visibility: hidden;
}

.titleedit {
  background: linear-gradient(45deg,
      rgb(53, 69, 140) 12%,
      rgb(0, 34, 255) 84%);
  background-blend-mode: luminosity;
  box-shadow: inset 0px 0px 13px 0px rgba(0, 0, 0, 0.3);
  border-radius: 2em;
  padding: 20px;
  text-align: center;
  font-size: 20px;
  color: white;
  font-family: 'orbitron', sans-serif;
  font-weight: 900;
}

.contenedor {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.minivideo {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 14px inset rgba(0, 149, 255, 1);
  border-radius: 10px;
  background-color: rgba(0, 149, 255, 1);
  padding: 10px;
}

.minivideo video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.textobonito {
  width: 50%;
  padding: 20px;
  background-color: #fff;
  text-align: justify;
  border: 8px outset rgba(0, 136, 255, 1);
  border-radius: 25px 0 25px 0;
  font-family: 'Comic Neue', cursive;
  color: #000000;
  /* Negro fuerte */
  font-weight: 700;
}

/* 🔴 Resaltado Newton en Red */
.resaltado {
  color: #00d0ff;
  /* rojo fuerte */
  font-weight: 900;
  /* negrita extra */
}

@media (max-width: 768px) {
  .contenedor {
    flex-direction: column;
    align-items: center;
  }

  .minivideo {
    width: 88%;
  }

  .textobonito {
    width: 85%;
  }
}

.servi {
  justify-content: center;
}

.content-servis {
  display: flex;
  margin: auto;
  flex-wrap: wrap;
  gap: 10px;
}

.servi h1 {
  text-align: center;
  font-weight: bold;
  font-family: 'orbitron', sans-serif;
  background: linear-gradient(45deg, #0241cb, #00bfff, #0241cb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.servi-content {
  margin: auto;
  position: relative;
  display: inline-block;
  text-align: center;
  font-family: 'orbitron', sans-serif;
  font-size: 18px;
  border-radius: 10px;
  width: 80%;
  height: 190px;
  margin-bottom: 20px;
  padding: 15px;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease-in-out;
}

.servi-content::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(45deg, #0241cb, #4da9ff);
  z-index: -1;
  transition: height 0.4s ease-in-out;
}

.servi-content:hover::before {
  height: 100%;
}

.servi-content:hover {
  color: white;
}

@media (min-width:1025px) {
  .servi-content {
    justify-content: center;
    width: 22%;
  }
}


/* ❌ Comenté código duplicado que hacía lag */

/*
.carta { ... }
.carta2 { ... }
.carta3 { ... }
*/

/* ✅ Eliminé estilos duplicados de "carta" y "bot" que hacían que cargue lento y repetía imágenes gigantes */

.container {
  width: 1250px;
  overflow: hidden;
  margin: auto;
}
.container, .container-fluid {
  background-color: #eeeeee00;
  overflow: hidden;
}
.slider {
  display: flex;
}
.slider-items {
  display: flex;
  gap: 20px;
  margin: 5px 5px;
  align-items: center;
  &:nth-child(even) {
  border-color: darkturquoise;
;
  }

  .slider-item {
    border-radius: 15px;
    padding: 1px;
    width: 250px;
    height: 400px;
  }

  .slider-item img {
    border: 5px solid rgb(0, 128, 255); 
    width: 250px;
    height: 300px;
    border-radius: 15px;
  }
  
}
.slide .slider-items {
  animation-name: slide;
  animation-duration: 25s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
.slide:hover .slider-items {
  animation-play-state: paused;
}
.slider-item:hover{
  transform: scale(1.05);
}

@keyframes slide {
  0% {
    transform: translate(0%, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

.ingresantes {
  width: 100%;
  height: 100vh;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contenedor-profesores {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ingre {
  display: flex;
  width: 80%;
  justify-content: center;
  margin: auto;
  align-items: center;
  text-align: center;
  font-family: 'orbitron', sans-serif;
  gap: 5px;
}

.ingre p {
  font-weight: bolder;
  font-size: 25px;
  background: linear-gradient(45deg, #0051ff, #5cb0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ingre i {
  color: yellowgreen;
  font-size: 35px;
}

.text-prof {
  width: 80%;
  text-align: center;
  justify-content: center;
  justify-items: center;
  margin: auto;
  color: #000000;
  /* Negro fuerte */
  font-weight: 700;
}

.text-prof p {
  font-size: 20px;
  /* antes estaba en 18px */
  font-family: 'Comic Neue', cursive;
}


/* 🔴 Solo para resaltar "Newton en Red" */
.text-prof .resaltado {
  color: #00d0ff;
  /* rojo fuerte */
  font-weight: 900;
  /* negrita extra */
}

/* Card Img */
.carrusel {
  width: 95%;
  overflow: hidden;
  margin: auto;
}

.carrusel-items {
  display: flex;
  overflow-x: hidden;
  overflow-y: hidden;
  gap: 20px;
}

.carrusel-item {
  cursor: pointer;
}

.carrusel-item img {
  margin-top: 15px;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border: 5px inset rgb(255, 225, 128);

  /* CAMBIO: borde luminoso en hover */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.carrusel-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 15px fuchsia, 0 0 25px cyan, 0 0 35px white;
}

.carrusel-item:hover {
  transform: scale(1.05);
}

.preparacion {
  width: 100%;
  margin-top: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
}

.preparacion img {
  width: 260px;
  height: 90px;
  margin: 5px;
}

/* Media Queries Breakpoints */
@media screen and (min-width: 768px) {
  .card-content {
    margin-inline: 3rem;
  } 
  .swiper-button-next,
  .swiper-button-prev {
    display: block;
  }
}

@media screen and (min-width: 1120px) {
  .card-container {
    max-width: 1120px; 
  }
  .swiper-button-next {
    right: -1rem; 
  }
  .swiper-button-prev {
    left: -1rem; 
  }
}

/* Bloques de carreras (A, B, C, D) */
/* Carreras */
.carreras {
  width: 100%;
}

.text-difu {
  font-size: 35px;
  text-align: center;
  font-weight: bolder;
  font-family: 'orbitron', sans-serif;
  background: linear-gradient(90deg, #0051ff, #00bfff, #0084ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.carreras-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}
/* Modificaciones */
.carrera-content {
  background-image: url(../IMG/fndo.png);
  border-radius: 15px;
  border: 2px solid #0288d1;
  font-family: 'Comic Neue', cursive;
  font-weight: 900;
  /* 🔹 Peso máximo */
  padding: 16px;
  width: 44%;
  max-width: 550px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* 🔹 Truco: engrosar texto con sombra */
  text-shadow: 0.3px 0.3px 0 black;
}

/* Títulos de los bloques (A, B, C, D) */
.carrera-content h3 {
  font-size: 1.19rem;                  /* Tamaño ajustado */
  font-family: 'Merriweather', serif;  /* Fuente elegante */
  font-weight: 700;                     /* Negrita */
  text-align: center;                   /* Centrado */
  letter-spacing: 0.5px;                /* Letras un poco más juntas */
  text-transform: uppercase;            /* Mayúsculas */
  color: #002855;                       /* Azul oscuro elegante */
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

/* Efecto hover solo en letras del título */
.carrera-content:hover h3 {
  transform: scale(1.05);
  color: #0047ab; /* un poco más iluminado al pasar el mouse */
}

.carrera-content .acceso-a:hover {
  transform: scale(1.05);
  background-color: #0288d1;
  color: #fff;
}

.acceso-a {
  width: 28%;
  border-radius: 15px;
  padding: 8px;
  background-color: #0051ff;
  text-decoration: none;
  color: white;

  /* CAMBIO: estilo más futurista */
  border: 2px solid cyan;
  text-align: center;
}

.carrera-content:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icono-ingenieria { 
  color: #0051ff;   /* Azul */
  font-size: 24px;
  margin-right: 8px;
}

.icono-salud { 
  color: #e91e63;   /* Rosado/rojo */
  font-size: 24px;
  margin-right: 8px;
}

.icono-sociales { 
  color: #009688;   /* Verde agua */
  font-size: 24px;
  margin-right: 8px;
}

.icono-negocios { 
  color: #ffd500;   /* Naranja */
  font-size: 24px;
  margin-right: 8px;
}

.ubis-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: auto;
  gap: 20px;
}

@media (max-width:765px) {
  .carrera-content {
    width: 95%;      /* Que ocupe casi todo en celular */
    max-width: none; /* Quita límites extra */
    text-align: justify;
    font-size: 15px;
    padding: 15px;
  }
  .preparacion img {
    width: 230px;
    height: 75px; 
  }
  .acceso-a { 
    width: 150px; 
  }
  .ubi-content { 
    margin-bottom: 25px; 
  }
  .carrera-content h3 {
    font-size: 20px;
  }
}

.contenedorrr {
  width: 400px;
  height: 400px;
  position: relative;
  display: inline-block;
  text-align: center;
}

.imagen {
  width: 400px;
  height: 450px;
  border-radius: 15px;
  display: block;

  /* CAMBIO: borde futurista */
  border: 3px solid transparent;
  background-image: linear-gradient(45deg, fuchsia, cyan, white);
  background-clip: padding-box;
}

.texto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: cyan; /* ✅ CAMBIO: color IA */
  font-size: 24px;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efecto al pasar el mouse */
.contenedorrr:hover .imagen {
  filter: brightness(50%);
}
.contenedorrr:hover .texto {
  opacity: 1;
}

.carrera-content p {
  transition: all 0.3s ease;
}

.carrera-content:hover p {
  transform: scale(1.05);       /* sobresale un poco */
  color: #111;                  /* se oscurece */
  text-shadow: 0 0 1px #000;    /* leve resalte */
}


.carrusel { width: 100%; overflow: hidden; }

/* Lightbox */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
  flex-direction: column;
}

#lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 15px;
  background: transparent;
  animation: borderGlow 2.5s infinite alternate;
}

/* ✨ Brillo de bordes */
@keyframes borderGlow {
  0% { box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff; }
  50% { box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff; }
  100% { box-shadow: 0 0 10px #608fff, 0 0 20px #608fff, 0 0 30px #608fff; }
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
}
#lightbox .close:hover { color: red; }

#lightbox .arrow {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transition: 0.3s;
}
#lightbox .arrow:hover { color: cyan; }
#lightbox .arrow.left { left: 20px; }
#lightbox .arrow.right { right: 20px; }

/*Reponsive/*
/* Evitar desplazamiento horizontal en TODAS las pantallas */
html,
body {
  overflow-x: hidden;
  /* no permite scroll lateral */
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Ajustes SOLO para móviles */
@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
    /* ocupa todo el ancho disponible */
    padding: 0 15px;
    /* evita que se pegue a los bordes */
    box-sizing: border-box;
    text-align: center;
    /* asegura que quede centrado */
  }

  .glowing-text {
    font-size: 35px;
    /* texto más pequeño en pantallas chicas */
  }

  .subtext {
    font-size: 20px;
    /* subtítulo ajustado */
  }

  .btnstart {
    font-size: 16px;
    /* botón más compacto */
    padding: 12px 24px;
  }
}

.hero {
  width: 100%;
  /* que ocupe todo el ancho */
  height: 100vh;
  background-size: cover;
  background-position: center;
}

/* === Estilos especiales para universidades === */
.destacado-universidad {
  font-family: 'Orbitron', sans-serif; /* estilo */
  font-size: 1rem;    /* 🔹 más chiquito aún */
  font-weight: 800;   
  background: linear-gradient(90deg, #0044ff, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.3px; /* 🔹 menos separación */
  display: inline;  /* 🔹 sigue en línea sin romper texto */
  margin: 0;
  padding: 0;
}

/* Responsive: aún más pequeño en pantallas chicas */
@media (max-width: 768px) {
  .destacado-universidad {
    font-size: 0.9rem; /* 🔹 más chiquito en celular */
    font-weight: 800;
  }
}

/* Ajuste solo para móviles */
@media (max-width: 768px) {
  .ubis-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* centra horizontalmente */
    gap: 20px;
    /* espacio uniforme entre bloques */
    position: relative;
    left: -3px;
    /* mueve todo un poquito a la izquierda */
  }

  .ubi-content {
    width: 100%;
    max-width: 350px;
    /* ancho máximo para que no se deformen */
    text-align: center;
  }

  .ubi-content h1 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .contenedorrr {
    display: block;
    width: 100%;
  }

  .imagen {
    width: 100%;
    height: auto;
    /* mantiene proporción */
    border-radius: 10px;
    object-fit: cover;
    /* asegura que no se deforme */
  }
}