/* Sección Cover */
.cover-section {
  background: url("../img/home/cover.webp") no-repeat center center;
  background-attachment: fixed;
  /* Efecto parallax */
  background-size: cover;
  background-position: center;
  height: 500px;
  /* Altura de la sección */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.cover-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  /* Capa oscura semi-transparente */
  z-index: 1;
}

.cover-content {
  position: relative;
  z-index: 2;
  /* Sobre la capa oscura */
  color: #ffffff;
  /* Texto blanco */
  padding: 0 20px;
}

.cover-content h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
}

.cover-content a {
  vertical-align: middle;
}

.cover-content a span svg {
  height: 40px;
}

.btn-cover {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: #ffffff;
  /* Texto blanco */
  background-color: #e80000;
  /* Color rojo del botón */
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-cover:hover {
  background-color: #bf0000;
  /* Oscurecer ligeramente el rojo al pasar el mouse */
}

/* Responsividad */
@media (max-width: 768px) {
  .cover-section {
    height: 400px;
    /* Ajustar altura */
    background-attachment: scroll;
    /* Desactiva el parallax en móviles para mejor rendimiento */
  }

  .cover-content h1 {
    font-size: 28px;
    /* Reducir tamaño de fuente */
  }

  .btn-cover {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/*Welcome Section*/

.welcome-section {
  background-color: #f9fbff;
  /* Fondo claro */
  color: #357c3a;
  /* Color verde para el texto */
  text-align: center;
  padding: 60px 20px;
}

.welcome-content h2 {
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 10px;
  color: #357c3a;
  /* Verde principal */
}

.welcome-content strong {
  font-family: "AquawaxPro";
  font-weight: bold;
}

.welcome-content p {
  font-size: 18px;
  color: #202042;
  /* Color de texto oscuro */
  margin-top: 10px;
  line-height: 1.6;
}

/* Responsividad */
@media (max-width: 768px) {
  .welcome-content h2 {
    font-size: 24px;
  }

  .welcome-content p {
    font-size: 16px;
  }
}

/*Acerca de*/

.about-section {
  background-color: #357c3a;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 20px;
}

.about-wrapper {
  background-color: #ffffff;
  max-width: 1200px;
  width: 100%;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
}

.about-text {
  flex: 1;
  padding: 40px;
}

.about-text h2 {
  font-family: "Wigrum";
  font-size: 28px;
  font-weight: bold;
  color: #202042;
  text-align: center;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

.about-image {
  flex: 1;
  height: 500px;
  background: url("../img/home/about.webp") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

/* Responsividad */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }

  .about-image {
    height: 300px;
    background-attachment: scroll;
  }

  .about-text h2 {
    font-size: 24px;
  }

  .about-text {
    text-align: center;
  }
}

/*Mision Vision*/

.vision-mission-section {
  background-color: #0b0e3c;
  /* Fondo azul oscuro */
  color: #ffffff;
  /* Color del texto */
  padding: 60px 20px;
}

.vision-mission-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  /* Espacio entre columnas */
}

.vision,
.mission {
  flex: 1;
  /* Columnas iguales */
}

.vision h2,
.mission h2 {
  font-family: "Wigrum";
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  /* Títulos centrados */
  margin-bottom: 50px;
  color: #ffffff;
  /* Color blanco */
}

.vision p,
.mission p {
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  /* Alineación del texto a la izquierda */
  color: #e0e0e0;
  /* Gris claro para el texto */
}

/* Responsividad */
@media (max-width: 768px) {
  .vision-mission-container {
    flex-direction: column;
    /* Apila las columnas verticalmente */
    text-align: center;
  }

  .vision h2,
  .mission h2 {
    font-size: 1.2em;
    margin-bottom: 25px;
  }

  .vision p,
  .mission p {
    font-size: 1em;
    text-align: center;
    /* Texto centrado en móviles */
  }
}

/*Valores*/

.values-section {
  background-color: #f9f9f9;
  text-align: center;
  padding: 40px 20px;
}

.values-section h2 {
  font-family: "Wigrum";
  font-size: 28px;
  font-weight: bold;
  color: #202042;
  margin-bottom: 20px;
}

/* Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-item {
  position: relative;
  background-color: #4e7fbf;
  color: #ffffff;
  padding: 70px 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.value-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.value-title {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0 0;
}

.value-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.value-item:hover .value-description {
  opacity: 1;
  transform: translateY(0);
}

.icon {
  width: 39px;
  /* Tamaño de los íconos */
  fill: #ffffff;
  /* Íconos en blanco */
  margin-bottom: 10px;
}

/* Responsividad */
@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-item {
    padding: 25px 20px;
  }
}

/* Slider */

.slider-section {
  position: relative;
  width: 100vw;
  /* Ancho completo de la pantalla */
  height: 350px;
  /* Altura completa de la pantalla */
  margin: 0;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  /* Inicialmente invisible */
  transform: scale(1.1);
  /* Inicia ligeramente más grande */
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  /* Slide visible */
  transform: scale(1);
  /* Se ajusta a tamaño normal */
  z-index: 2;
}

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

.slide-text {
  position: absolute;
  top: 0;
  /* Inicia desde arriba */
  left: 0;
  /* Abarca desde el borde izquierdo */
  width: 100%;
  /* Ocupa todo el ancho */
  height: 100%;
  /* Ocupa toda la altura */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centrado vertical */
  align-items: center;
  /* Centrado horizontal */
  text-align: center;
  /* Centra el texto */
  color: #ffffff;
  /* Color del texto */
  background-color: rgba(0, 0, 0, 0.4);
  /* Fondo oscuro semi-transparente */
  padding: 20px;
}

.slide.active .slide-text {
  opacity: 1;
  transform: translateY(0);
}

.slide-text h2 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: bold;
}

.slide-text p {
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  padding: 0 20%;
}

/* Botones de navegación */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* Responsividad */
@media (max-width: 768px) {
  .slide-text h2 {
    font-size: 28px;
  }

  .slide-text p {
    font-size: 16px;
  }

  .slide-text {
    padding: 10px;
  }
}