/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  margin-top: 50px;
  padding: 0;
  background: url('../IMG/Fondos/FONDOGRAL.png') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

/* Barra de navegación principal */
.main-nav {
  position: relative;
  top: -70px;
  padding: 10px;
  width: 90%;
  background: none;
  z-index: 1000;
}

/* Ocultar menú en móviles por defecto */
.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 20px;
  justify-content: right;
}

nav ul,
nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-header {
  display: none; /* Solo visible en móviles */
}

.hamburger {
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* Menú desplegable */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgb(24, 11, 97);
  padding: 10px 0;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-align: left;
}

.dropdown-content li {
  margin: 0;
}

.dropdown-content a {
  padding: 10px 20px;
  display: block;
}

.main-nav li:hover .dropdown-content {
  display: block;
}

/* Submenú anidado */
.nested-dropdown {
  position: relative;
}

.nested-content {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: rgb(24, 11, 97);
  padding: 10px 0;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.nested-dropdown:hover .nested-content {
  display: block;
}

/* Responsividad */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 0;
    display: none; /* Oculto por defecto */
    background-color: #ffffff11;
    width: 100%;
  }

  .nav-menu.active {
    display: block; /* Mostrar menú al hacer clic */
  }

  .nav-menu li {
    text-align: center;
    padding: 10px 0;
  }

  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 20px; /* Lo coloca a la derecha */
    top: 15px; /* Puedes ajustar la distancia del top */
  }
}

/* Header */
.header {
  margin-top: -150px;
  margin-bottom: -70px;
  text-align: center;
  color: white;
  padding: 50px 20px;
}

.header h1 {
  margin: 0;
  font-size: 2.5rem; /* Ajuste para mejor legibilidad */
}

/* Párrafo del header */
.header p {
  margin-top: 10px;
  max-width: 600px;
  line-height: 1.5;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: #f1f1f1; /* Color específico del párrafo del header */
  font-size: 1.2rem; /* Tamaño de fuente ajustado */
}

/* Estilo del logo */
.header-logo {
  height: 100px;
  max-width: 100%;
  object-fit: contain;
  margin-left: 100px;
}

/* Estilo de la imagen encima del título */
.hero-image {
  display: block;
  margin: 0 auto;
  max-width: 15%;
  height: auto;
  border-radius: 10px; /* Para darle un toque más estilizado */
}

/* Responsividad */
@media (max-width: 768px) {
  .header {
    margin-top: -100px;
    margin-bottom: -50px;
    padding: 30px 15px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .header p {
    font-size: 1rem;
    max-width: 90%; /* Reducir el ancho para dispositivos pequeños */
  }

  .hero-image {
    max-width: 30%; /* Imagen más grande en pantallas medianas */
  }

  .header-logo {
    margin-left: 0; /* Centrar el logo en dispositivos pequeños */
  }
}

@media (max-width: 480px) {
  .header {
    margin-top: -80px;
    margin-bottom: -40px;
    padding: 20px 10px;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .header p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .hero-image {
    max-width: 50%; /* Imagen aún más grande para mayor visibilidad */
  }

  .header-logo {
    height: 80px;
    margin-left: 0;
  }
}
/* Contenedor principal */
.main-container {
  display: flex;
  margin-top: -100px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px auto;
  padding: 20px;
}

/* Contenedor de las cards (opcional, por si usas .cards-container en otro lado) */
.cards-container {
  display: flex;
  margin-top: -30px;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px auto;
  padding: 20px;
}

/* Estilo general de cada card */
.card {
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: calc(33.33% - 20px);
  text-align: center;
  padding: 0px;
  transition: transform 0.3s ease; /* Animación suave al hacer hover */
}

.card:hover {
  transform: translateY(-5px); /* Se levanta ligeramente al pasar el cursor */
}

/* Responsive: ajuste en tablets */
@media (max-width: 1024px) {
  .card {
    width: calc(50% - 20px);
  }
}

/* Responsive: ajuste en móviles */
@media (max-width: 768px) {
  .card {
    width: 100%;
  }
}

/* Header de la card con imagen y título */
.card-header {
  background-color: #aa1639;
  color: white;
  text-align: center;
  padding: 0;
  font-weight: bold;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Imagen dentro del header */
.card-header img.card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Título dentro del header */
.card-header h3 {
  margin: 0;
  padding: 10px;
  background-color: #aa1639;
  font-size: 1.2rem;
}

/* Cuerpo de la card */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #1e0d81;
  font-weight: bold;
}

/* Texto dentro del body */
.card-body p {
  margin: 0;
  text-align: center;
  color: #1e0d81;
}

/* Botón estilo enlace */
.card-body .card-btn {
  display: inline-block;
  background-color: #0b1b61;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.card-body .card-btn:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}


/*Título del carrusel*/
.life-title h2 {
  font-size: 2rem;
  color: #ffffff; /* Color que te guste */
  font-weight: bold;
  text-align: center;
}


/* Estilos del carrusel */
.carrusel-container {
  width: 80%; /* Ancho ajustable al 80% del ancho de la ventana */
  max-width: 800px; /* Limita el ancho máximo */
  height: 550px; /* Altura ajustable */
  position: relative;
  overflow: hidden;
  border-radius: 15px; /* Esquinas redondeadas */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra opcional para resaltar el carrusel */
  margin: 0 auto; /* Centra el carrusel en la página */
}

.carrusel {
  display: flex;
  transition: transform 0.5s ease;
}

.carrusel-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
}

.prev {
  left: 10px; /* Ajusta la posición de los botones */
}

.next {
  right: 10px; /* Ajusta la posición de los botones */
}

button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}


/* Contenedor para las 4 secciones horizontales (Información base) */
.horizontal-sections {
  display: flex;
  justify-content: space-between; /* Alineación horizontal con espacio uniforme */
  align-items: center; /* Alineación vertical centrada */
  margin: 50px auto;
  gap: -100px; /* Espacio entre los elementos */
  padding: 0 100px; /* Espaciado lateral */
}

/* Estilo para cada elemento */
.horizontal-section {
  text-align: center;
  flex: 1; /* Asegura que cada elemento ocupe el mismo espacio */
}

.horizontal-section img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.horizontal-section h3 {
  font-size: 1rem;
  margin: 5px 0;
  color: #ffffff;
}

.horizontal-section p {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
  .horizontal-sections {
    flex-direction: column; /* Cambio a disposición vertical */
    gap: 30px; /* Ajustamos el espacio entre las secciones */
    padding: 0 20px; /* Reducimos el espaciado lateral */
  }

  .horizontal-section {
    width: 100%; /* Asegura que cada sección ocupe todo el ancho */
  }

  .horizontal-section img {
    width: 40px; /* Reducimos el tamaño de las imágenes */
    height: 40px;
  }

  .horizontal-section h3 {
    font-size: 0.9rem; /* Reducimos el tamaño de la fuente */
  }

  .horizontal-section p {
    font-size: 0.8rem; /* Reducimos el tamaño de la fuente */
  }
}


/* Estilos generales para el Plan de Estudios */
.study-plan {
  margin: 40px auto; /* Centrado con margen superior e inferior */
  padding: 10px;
  background-color: #ffffff;
  border-radius: 8px;
  width: 50%; /* Ancho del 50% para hacer que el contenido no ocupe todo el ancho */
  max-width: 1000px; /* Limita el ancho máximo */
}

.study-plan h2 {
  text-align: center;
  margin-bottom: 5px; /* Aumento el espacio entre el título y los semestres */
  color: #aa1639;
  font-weight: bold;
}

/* Estilo de cada semestre */
.semester {
  margin-bottom: 10px; /* Más espacio entre los semestres */
}

/* Estilo del título (número de semestre) */
.semester-title {
  background-color: #aa1639;
  color: white;
  padding: 8px 15px; /* Reducimos el tamaño del padding */
  font-size: 1rem; /* Reducimos el tamaño de la fuente */
  border-radius: 20px; /* Esquinas redondeadas más suaves */
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: auto; /* Aseguramos que el rectángulo sea tan largo como el texto */
  margin: 0 auto; /* Centrado del título */
}

/* Cambio de color al pasar el cursor sobre el semestre */
.semester-title:hover {
  background-color: #0c0d74;
}

/* Estilo del contenido (materias) */
.semester-content {
  display: none; /* Inicialmente oculto */
  padding: 8px 15px; /* Reducimos el padding */
  background-color: #0c0d74;
  border-radius: 8px;
  margin-top: 8px; /* Reducimos el espacio entre el título y las materias */
}

/* Mostrar el contenido al pasar el cursor */
.semester-title:hover + .semester-content {
  display: block;
}

.semester-content ul {
  list-style-type: none;
  padding-left: 0;
}

.semester-content li {
  margin: 5px 0;
  font-size: 0.9rem; /* Reducimos el tamaño de las materias */
}



/* Fotografías con texto emergente */
.specialties {
  display: flex;
  justify-content: space-around; /* Espacio uniforme entre las imágenes */
  gap: 20px; /* Espaciado adicional */
  margin: 40px auto;
  padding: 20px;
  max-width: 1200px; /* Ajusta el ancho máximo del contenedor */
}

.specialty {
  text-align: center;
  flex: 1;
  max-width: 30%; /* Limita el ancho de cada especialidad */
}

.specialty h3 {
  margin-bottom: 10px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.image-container img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.image-container:hover img {
  transform: scale(1.1);
}

.hover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 1, 70, 0.8);
  color: white;
  text-align: center;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  max-height: 200px; /* Altura máxima para el contenedor */
  overflow-y: auto; /* Hacer scroll vertical */
}

.image-container:hover .hover-content {
  transform: translateY(0);
}

.hover-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 180px; /* Altura máxima para la lista */
}

.hover-content li {
  margin: 5px 0;
  font-size: 0.9rem;
  white-space: nowrap; /* Asegura que los textos largos no se desborden */
  overflow: hidden;
  text-overflow: ellipsis; /* Si el texto es demasiado largo, lo corta */
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
  .specialties {
    flex-direction: column; /* Cambiar a disposición vertical */
    gap: 30px; /* Ajustar espacio entre las especialidades */
    padding: 10px; /* Reducir el padding lateral */
  }

  .specialty {
    max-width: 100%; /* Asegura que cada especialidad ocupe el 100% del ancho */
  }

  .specialty h3 {
    font-size: 1rem; /* Reducir el tamaño de la fuente del título */
  }

  .image-container {
    max-width: 100%; /* Asegura que las imágenes se adapten al contenedor */
  }

  .hover-content {
    padding: 8px; /* Reducir el padding en el contenido emergente */
  }

  .hover-content ul {
    font-size: 0.8rem; /* Reducir el tamaño de la fuente de la lista */
  }

  .hover-content li {
    margin: 3px 0; /* Reducir margen de cada ítem */
  }
}

/* Preguntas Frecuentes */
.faq-section {
  padding: 20px;
  color: white;
}

.faq-title {
  text-align: center;
  font-size: 2rem; /* Título compacto */
  font-weight: bold;
  margin-bottom: 20px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.1);
  margin: 10px auto; /* Menor margen entre preguntas */
  padding: 15px 25px; /* Más ancho que alto */
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  max-width: 750px; /* Más ancho */
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.faq-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.faq-question {
  font-weight: bold;
  font-size: 1rem; /* Tamaño moderado */
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px; /* Espaciado reducido */
  justify-content: center; /* Centra las preguntas */
}

.faq-answer {
  margin-top: 8px; /* Menos espacio entre pregunta y respuesta */
  font-weight: normal;
  font-size: 1rem; /* Respuesta compacta */
  line-height: 1.4; /* Legibilidad ajustada */
  text-align: center; /* Centra las respuestas */
}

.education-section {
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.education-experience {
  background-color: #f1f8fe2c;
  padding: 30px 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.education-experience h2 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.education-experience p {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.6;
}

.image-section {
  position: relative;
}

.image-section img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-button {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #3015aa, #a81a1c); /* Degradado intenso */
  color: #ffffff; /* Letras completamente blancas */
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
}

.form-button::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
  animation: shimmer 2s linear infinite;
  z-index: 0;
}

.form-button:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.form-button span {
  position: relative;
  z-index: 2;
}

@keyframes shimmer {
  0% { transform: translate(-100%, -100%); }
  100% { transform: translate(100%, 100%); }
}


footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.whatsapp-bubble {
  position: fixed;
  bottom: 130px;         /* Ajusta según el alto del chatbot */
  left: 45px;           /* Mueve al lado izquierdo */
  width: 70px;
  height: 70px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;         /* Asegura que no tape al chatbot */
}

.whatsapp-bubble img {
  width: 50px;
  height: 50px;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Estilos form */
.title-form {
  position: relative;
  top: 10px;
  margin-bottom: 100px;
  text-align: center;
  color: white;
  padding: 50px 20px;
}

/* Wrapper general */
.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: rgba(35, 11, 66, 0.8);
  padding: 40px 20px;
  border-radius: 10px;
  text-align: center;
  width: 80%;
  max-width: 600px;
  margin: auto;
  box-sizing: border-box;
}

/* Contenido del formulario embebido */
.form-wrapper > div {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.form-wrapper h2 {
  color: white;
  margin-bottom: 20px;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .title-form {
    padding: 30px 10px;
    font-size: 1.2rem;
  }

  .form-wrapper {
    width: 95%;
    padding: 20px 10px;
  }

  .form-wrapper > div {
    padding: 20px 15px;
  }
}

.testimonials {
  margin: -50px auto 20px;
  max-width: 85%;
  text-align: center;
  padding: 40px 0;
  border-radius: 10px;
  position: relative;
  overflow: visible;
  background-color: transparent;
}

.testimonials-title {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 30px;
}

.testimonials-container {
  display: flex;
  gap: 20px;
  padding: 10px;
  scroll-behavior: smooth;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Oculta la barra de desplazamiento */
.testimonials-container::-webkit-scrollbar {
  display: none;
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px;
  min-width: 280px;
  max-width: 320px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;
  max-height: 250px;
  position: relative;
}

.testimonial:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 10px;
  color: #f5f5f5;
  font-size: 1rem;
  position: relative;
  padding-top: 40px; /* espacio para la comilla */
}

.testimonial p::before {
  content: "“";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 3.5rem;
  color: #ffffff;
  opacity: 0.5;
  line-height: 1;
  pointer-events: none;
}

.testimonial h4 {
  font-weight: bold;
  color: #f5f5f5;
  font-size: 1.1rem;
}

/* Flechitas */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 1.5rem;
  color: #fff;
  z-index: 20;
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Flecha izquierda */
.left-arrow {
  left: -25px;
}

/* Flecha derecha */
.right-arrow {
  right: -25px;
}

/* Hover en flechas */
.arrow:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

/* RESPONSIVE - para tablets */
@media (max-width: 768px) {
  .testimonials-container {
    justify-content: center;
  }

  .testimonial {
    min-width: 250px;
    max-width: 280px;
    padding: 15px;
    max-height: 230px;
  }

  .testimonials-title {
    font-size: 1.8rem;
  }

  .left-arrow {
    left: -15px;
  }

  .right-arrow {
    right: -15px;
  }
}

/* RESPONSIVE - para celulares */
@media (max-width: 480px) {
  .testimonials-container {
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
  }

  .testimonial {
    width: 90%;
    max-width: none;
    margin-bottom: 20px;
    max-height: none;
  }

  .testimonials-title {
    font-size: 1.5rem;
    padding: 0 20px;
  }

  .arrow {
    display: none;
  }
}

.aviso-privacidad {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9em;
}

.aviso-privacidad a {
  text-decoration: underline;
  color: #ffffff; /* Puedes cambiar el color si quieres */
  cursor: pointer;
}

.aviso-privacidad a:hover {
  color: #007BFF; /* Azul al pasar el cursor, opcional */
}