/* 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 de las cards */
.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);
}


/* Contenedor de las barras de información */
.info-bars-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* Centra todas las barras */
  margin: 40px auto;
  padding: 0 20px;
  max-width: 1200px;
  box-sizing: border-box;
}

.info-bar {
  background-color: #aa1639;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  width: 250px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-bar:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.info-icon-container {
  margin-bottom: 15px;
}

.info-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.info-header h4 {
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.info-content {
  display: none;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.4;
}

.info-bar:hover .info-content {
  display: block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .info-bar {
    width: 100%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.info-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
}


/* Estilo para el título centrado */
.life-title {
  text-align: center;
  margin-top: 50px;
}

.life-title h2 {
  font-size: 2rem;
  color: #ffffff; /* Color que te guste */
  font-weight: bold;
}

/* 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);
}

.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 */
}
