/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Fonts */
@font-face {
  font-family: "AquawaxPro";
  src: url("../fonts/AquawaxPro-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "AquawaxPro-Bold";
  src: url("../fonts/AquawaxPro-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Wigrum";
  src: url("../fonts/wigrum.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Wigrum-bold";
  src: url("../fonts/wigrum-bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Wigrum-light";
  src: url("../fonts/wigrum-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

/* Apply Default Font */
body {
  font-family: "Wigrum-light", Arial, sans-serif;
  font-weight: normal;
  font-style: normal;
  color: #222;
}
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Encabezado */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: #ffffff;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo img {
  width: 70px;
  height: auto;
  margin-bottom: 10px;
}

.logo-text h1 {
  font-family: "AquawaxPro";
  font-size: 24px;
  font-weight: bold;
  color: #202042;
  margin-bottom: 5px;
}

.logo-text p {
  font-family: "AquawaxPro";
  font-size: 14px;
  color: #2a9d45;
}

/* Menú */
.menu {
  font-family: "AquawaxPro";
  display: flex;
  align-items: center;
}

.menu ul {
  display: flex;
  list-style: none;
}

.menu ul li {
  margin: 0 15px;
  position: relative;
}

.menu ul li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  color: #202042;
}

.menu ul li a.active {
  color: #357c3a;
  text-decoration: underline;
}

.menu ul li a:hover {
  text-decoration: underline;
  color: #2a9d45;
}

.menu-toggle {
  display: none; /* Ocultar el menú hamburguesa en pantallas grandes */
  font-size: 24px;
  cursor: pointer;
  margin-top: 10px;
}

/* Submenú */
.submenu .dropdown {
  display: none;
  position: absolute;
  top: 100%; /* Debajo del elemento padre */
  left: 0;
  background-color: #ffffff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
  min-width: 200px;
}

.submenu:hover .dropdown {
  display: block; /* Mostrar el submenú al pasar el mouse */
}

.submenu .dropdown li {
  margin: 0;
}

.submenu .dropdown li a {
  display: block;
  padding: 10px;
  font-size: 14px;
  color: #202042;
  transition: background 0.3s ease, color 0.3s ease;
}

.submenu .dropdown li a:hover {
  background-color: #f0f0f0;
  color: #2a9d45;
}

/* Media Query para dispositivos pequeños */
@media (max-width: 930px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .menu {
    display: none; /* Ocultar el menú normal */
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    position: absolute;
    top: 100%; /* Debajo del logo */
    left: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .menu.active {
    display: flex; /* Mostrar el menú cuando esté activo */
  }

  .menu ul {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .menu ul li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block; /* Mostrar el botón hamburguesa */
  }
}

/* Sección del título */

.section-title {
  background-color: #357c3a; /* Color verde */
  width: 100%; /* Ancho completo */
  padding: 40px 0; /* Espaciado superior e inferior */
  display: flex;
  justify-content: center; /* Centra horizontalmente el contenido */
  align-items: center; /* Centra verticalmente */
}

.section-title-wrapper {
  text-align: center;
}

.section-title h1 {
  font-family: "Wigrum", Arial, sans-serif; /* Fuente personalizada */
  font-size: 3em; /* Tamaño de la fuente */
  color: #ffffff; /* Color blanco */
  font-weight: bold; /* Negrita */
  margin: 0; /* Elimina márgenes */
}

/* Responsividad */
@media (max-width: 768px) {
  .section-title h1 {
    font-family: "Wigrum", Arial, sans-serif; /* Fuente personalizada */
    font-size: 1.8em; /* Tamaño de la fuente */
    color: #ffffff; /* Color blanco */
    font-weight: bold; /* Negrita */
    margin: 0; /* Elimina márgenes */
  }
}

/* Footer */

.footer {
  background-color: #ffffff; /* Color de fondo */
  color: #202042; /* Color del texto */
  font-family: "Wigrum-light", Arial, sans-serif;
  padding: 20px 50px;
  border-top: 2px solid #f0f0f0;
}

.footer-container {
  display: flex;
  margin: auto;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-column p,
.footer-column a {
  font-size: 14px;
  line-height: 1.6;
  color: #202042;
  text-decoration: none;
}

.footer-column a:hover {
  color: #2a9d45; /* Efecto hover para enlaces */
}

.footer .social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer .social-icons img {
  width: 30px;
  height: 30px;
}

.footer-bottom {
  display: flex;
  justify-content: center; /* Centra horizontalmente el contenido */
  padding-top: 10px;
  border-top: 1px solid #ddd;
  margin-top: 20px;
}

.footer-bottom-content {
  display: flex;
  align-items: center; /* Alinea verticalmente el logo y el texto */
  text-align: left; /* Alinea el texto a la izquierda */
}

.footer-logo img {
  width: 30px;
  height: auto;
  margin-right: 10px; /* Espacio entre el logo y el texto */
}

.footer-text p {
  margin: 0;
  font-size: 12px;
}

/* Responsividad */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    min-width: unset;
  }

  .footer .social-icons {
    display: inline;
  }
}

/* Estado inicial */
.lazy-img {
  opacity: 0;
  transform: translateY(50px) scale(0.8); /* Desplazamiento y escalado más pronunciados */
  transition: opacity 0.8s ease, transform 0.8s ease; /* Tiempo más largo para que sea más visible */
}

/* Estado visible */
.lazy-img.visible {
  opacity: 1;
  transform: translateY(0) scale(1); /* Vuelve a su posición normal */
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #000; /* Color más oscuro */
  color: #fff;
  transform: scale(1.1); /* Efecto de zoom al pasar el cursor */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Más sombra */
}
