
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  text-rendering: optimizeLegibility;
  font-family: 'Poppins', sans-serif;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
html {
  height: 100%;
}

body {
  height: 100vh; /* Cambiado a vh en lugar de % */
  color: #1a1919;
  background-color: #b5a9b2;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.bloque_texto {
  line-height: 150%;
}

.bloque_texto_line {
  font-style: italic;
}

a {
  color: #044824;
  text-decoration: none;
}

a:hover {
  color: #5faee3;
  text-decoration: none;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 0;
}

@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
    min-height: 0; /* Eliminamos min-height en pantallas grandes */
    height: auto; /* Dejamos que se ajuste al contenido */
  }
  
  body {
    overflow-y: hidden; /* Prevenimos scroll en pantallas grandes */
  }
}

#hero h1, #hero h2 {
  margin: 0;
  padding: 0;
}

#hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: black;
}

#hero h2 {
  color: #484848;
  margin-bottom: 50px;
  font-size: 24px;
}

#hero .animated {
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@media (max-width: 991px) {
  #hero {
    min-height: auto;
  }

  #hero .animated {
    -webkit-animation: none;
    animation: none;
  }

  #hero .hero-img {
    text-align: center;
  }

  #hero .hero-img img {
    width: 100%;
  }
  
  body {
    overflow-y: auto; /* Permitimos scroll en pantallas pequeñas */
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  width: 100%;
  background-color: rgb(43, 40, 63);
  padding: 20px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Nuevo contenedor para el logo */
.footer__logo {
  order: 3; /* Mueve el logo al final */
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer__logo img {
  max-width: 150px; /* Ajusta según el tamaño de tu logo */
  height: auto;
}

.footer__addr {
  order: 1;
  margin-right: 1.25em;
  margin-bottom: 1em;
  flex: 1;
}

.footer__nav {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex: 2;
}

.footer__nav > * {
  flex: 1;
  min-width: 200px;
}

.nav__title {
  font-weight: 800;
  font-size: 16px;
  color: azure;
  text-transform: uppercase;
}

.nav__ul {
  list-style: none;
  padding: 0;
}

.nav__ul li a {
  color: azure;
  font-weight: lighter;
  line-height: 2;
}

.legal {
  color: rgb(213, 212, 212);
  text-align: right;
  margin-top: 1em;
  width: 100%;
  order: 4; /* Asegura que el texto legal esté al final */
}

@media screen and (max-width: 768px) {
  footer {
    flex-direction: column;
  }
  
  .footer__logo {
    order: 1; /* En móvil, ponemos el logo primero */
    justify-content: center;
    margin-bottom: 1em;
  }
  
  .footer__addr {
    order: 2;
  }
  
  .footer__nav {
    order: 3;
  }
}