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 {
  position: relative;
  top: 100px;
  margin-bottom: -80px;
  text-align: center;
  color: white;
  padding: 50px 20px;
}

.header h1 {
  margin: 0;
}

/* Párrafo del header */
.header p {
  margin-top: -100px;
  max-width: 600px;
  line-height: 1.5;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff; /* Color específico del párrafo del header */
}

/* Estilo del logo */
.header-logo {
  height: 100px;
  max-width: 100%;
  object-fit: contain;
  margin-left: 100px;
}

.header-container {
  text-align: center;
  position: relative;
  top: -80px;
  padding: 20px;
  background-color: #ffebcd00; /* Color crema */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.mascot-container {
  display: inline-block;
  text-align: center;
  margin-bottom: 10px; /* Reducido para acercar mascota al texto */
  animation: float 3s ease-in-out infinite;
}

.mascot-image {
  width: 200px; /* Mascota más grande */
  height: auto;
  border-radius: 50%;
  border: 1px solid #ffffff60; /* Bordes que combinan con el header */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mascot-greeting {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 5px; /* Más cercano a la mascota */
}

.header-intro {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  color: #ffffff;
}

/* Animación para que Lofito "flote" */
@keyframes float {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}

.history-section {
  position: relative;
  top: -100px;
  display: flex;
  flex-direction: column;
  gap: 40px; /* Espacio entre las filas */
  margin: 40px auto;
  max-width: 900px; /* Ajuste de la anchura máxima */
}

.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.history-text-left, .history-text-right {
  font-size: 1.1em;
  text-align: center;
  line-height: 1.6;
  max-width: 50%; /* Limita el texto al 50% de la fila */
}

.history-image-left {
  width: 50%; /* Las imágenes ocuparán siempre el 50% */
  border-color: #fff;
  border-width: 3px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover; /* Asegura que las imágenes se mantengan bien recortadas */
}

.history-image-right {
  width: 40%; /* Las imágenes ocuparán siempre el 50% */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover; /* Asegura que las imágenes se mantengan bien recortadas */
}

.history-text-left {
  order: 1; /* El texto de la primera fila se coloca a la izquierda */
}

.history-image-right {
  order: 2; /* La imagen de la primera fila se coloca a la derecha */
}

.history-text-right {
  order: 2; /* El texto de la segunda fila se coloca a la derecha */
}

.history-image-left {
  order: 1; /* La imagen de la segunda fila se coloca a la izquierda */
}

.centered-content {
  position: relative;
  top: -170px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra los elementos en el eje horizontal */
  justify-content: center; /* Centra los elementos en el eje vertical */
  text-align: center; /* Asegura que el texto esté centrado */
  height: 100vh; /* Asegura que ocupe toda la altura de la ventana */
}

.centered-title {
  font-size: 2em;
  margin-bottom: 20px;
}

.centered-paragraph {
  font-size: 1.2em;
  margin-bottom: 20px;
  max-width: 600px; /* Limita el ancho del párrafo */
}

.centered-image {
  width: 20%; /* Ajusta el tamaño de la imagen */
  max-width: 500px; /* Limita el ancho máximo de la imagen */
  height: auto;
  border-radius: 10px;
}

.lofito-section {
  position:relative;
  top: -100px;
  margin: -190px auto;
  max-width: 900px;
}

.lofito-row {
  display: flex;
  flex-direction: row; /* Por defecto, el contenido estará en fila */
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.lofito-image {
  width: 40%; /* La imagen ocupa el 50% */
  height: auto;
  border-radius: 10px;
}

.lofito-text {
  text-align: center;
  flex: 1;
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 50%; /* Limita el texto al 50% */
}

.lofito-text h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
}

/* 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;
  top: 170px;
  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(10, 15, 88, 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);
}

.education-section {
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.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: 13rem;
  font-size: 0.9rem;
  color: #ffffff;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
  .header {
    padding: 30px 15px; /* Ajustamos el padding */
  }

  .header-logo {
    margin-left: 0; /* Quitamos margen izquierdo en logo */
    height: 80px; /* Reducimos el tamaño del logo */
  }

  .header p {
    margin-top: 0; /* Quitamos el margen negativo */
    max-width: 100%; /* Hacemos el párrafo más flexible */
  }

  .mascot-image {
    width: 150px; /* Hacemos la mascota más pequeña */
  }

  .header-intro {
    font-size: 1.1em; /* Reducimos el tamaño del texto */
  }

  .history-section {
    margin: 20px auto; /* Reducimos el margen */
  }

  .history-row {
    flex-direction:column;
  }
}

.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: 200px;
  margin-bottom: 200px;
  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;
  }
}
.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 */
}