
/* TIPOGRAFÍA */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

/* RESET GENERAL */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* HTML & BODY */
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 60px 0 0 0;
  background-color: #24394F;
  color: #fff;
}

/* TÍTULOS */
h1{
  color: #A2A23B;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 2em;
  letter-spacing: 1px;
  margin-bottom: 0.5em;
  width: 90%;
  text-align: left;
  /*margin-top: 100px;*/
}

h2 {
  color: #A2A23B;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 2em;
  letter-spacing: 1px;
  margin-bottom: 0.5em;
  width: 100%;
  text-align: right;
  margin-top: 100px;
}
h3{
  color: #A2A23B;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 2em;
  letter-spacing: 1px;
  margin-bottom: 0.5em;
  width: 100%;
  text-align: left;
  margin-top: 100px;

}
h4{
  color: #A2A23B;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.7em;
  letter-spacing: 1px;
  margin-bottom: 0px;
  width: 100%;
  text-align: center;
  margin-top: -50px;
 

}
h5{
  color: #A2A23B;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 2em;
  letter-spacing: 1px;
  margin-bottom: 0.5em;
  width: 100%;
  text-align: left;
  margin: 0px;
  padding: 0px;


}

/* LOGO */
#logo {
  text-align: left;
  padding-left: 100px;
}
#logo img {
  height: 70px;
  max-width: 100%;
}
#logo_interior {
  scroll-margin-top: 70px; /* ajusta este valor a la altura de tu nav fijo */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  display: block;
  
}

#logo_interior img {
  width: 100%;
  max-width: 1300px; /* ajusta a tu diseño */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* NAVEGACIÓN */
nav {
  position: fixed;
  height: 60px;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding-right: 100px;
  align-items: center;
  background-color: #3D4C4B;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;

}
nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav ul li {
  margin: 0 20px;
  position: relative;
}
nav ul li:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 0;
  height: 100%;
  width: 1px;
  background: white;
  transition: background 0.3s ease;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 400;
}
nav ul li a:hover,
nav ul li a:active {
  color: #A2A23B;
}
nav ul li:hover::before {
  background: #A2A23B;
}
.hamburguesa {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  z-index: 1001;
}

/* SECCIONES */
#inicio {
  padding-top: 100px;

}
#como, #descargar {
  width: 100%;
  margin: 0 auto;
}
#como, #descargar {
  background-color: #EBEBEB;
  color: #24394F;
}
section {
  padding: 0px;
}

/* BLOQUES DE CONTENIDO */
.bloque-flotante {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 30px;
  margin: 50px auto;
  width: 80%;
}
.bloque-flotante1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 30px;
  margin: 50px auto;
  width: 80%;
}
.bloque-flotante2{
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 30px;
  margin: 50px auto;
  width: 80%;
}

.bloque-flotante3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
  width: 80%;
}
.bloque-flotante1 .texto{
  width: 40%;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
  display: block;
  list-style: none;
}

.bloque-flotante1 img{
  width: 40%;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
  display: block;
  list-style: none;
}
.bloque-flotante .texto{
  width: 40%;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: right;
  display: block;
  list-style: none;
}
.bloque-flotante2 .texto {
  width: 100%;
  max-width: 400px;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
  display: block;
  
}
.bloque-flotante3 .texto {
  width: 40%;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
  display: block;
}
.bloque-flotante img {
  width: 50%;
  height: auto;
  float: left;
  object-fit: contain;
  display: block;
  margin-top:-50px;
}
.bloque-flotante2 img{
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  float: right !important; /* la imagen flota a la derecha */
  margin-left: 1rem; /* opcional: separa la imagen del contenido */
}

.bloque-flotante3 img{
  width: 180px;
  height: auto;
  object-fit: contain;
  display: block;
  float: center!important; /* la imagen flota a la derecha */
  margin-top: 100px;
  
}


/* GALERÍA */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
  padding: 0 10px;
}
.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid #A2A23B;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.gallery img:hover {
  transform: scale(1.05);
  border-color: #fff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 15, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  float: left;
  box-shadow: 0 0 25px rgba(255,255,255,0.2);
}
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  z-index: 10000;
  user-select: none;
}
.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }
.lightbox .nav:hover { color: #A2A23B; }

/* FORMULARIO */
form input,
form button {
  display: block;
  margin: 10px auto;
  padding: 10px;
  width: 80%;
  max-width: 300px;
}
.boton {
  background: #28a745;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  text-align: center;
}
#descargar-guia-form {
  display: block;
  margin: 0 auto;
  float: left;
  text-align: center;
  width: 50%;
  margin-bottom: 50px;
  
}
.footer {
  background-color: #3D4C4B; /* o el color que tú uses */
  text-align: center;
  margin-top: 20px;
}

.contenedor-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* espacio entre los logos */
  flex-wrap: wrap; /* para que se acomoden en móvil */
}

.logo-footer {
  height: 20%; /* ajusta el tamaño como quieras */
  width: auto; /* Ajusta el tamaño de la imagen */
  max-width: 100%; /* No permite que la imagen sobrepase el ancho del contenedor */
   
  
}

#mensaje {
  margin-top: 20px;
  font-size: 16px;
  padding: 12px 18px;
  border-radius: 8px;
  max-width: 300px;
  max-height: 70px;
  text-align: center;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 50px;
}

.mensaje-exito {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #3c763d;
  margin-bottom: 50px;
}

.mensaje-error {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #a94442;
  margin-bottom: 50px;
}
#reiniciar-formulario {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #3D4C4B;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 50px;
  max-width: 300px;
  max-height: 60px;
  display: inline;
  
}

#reiniciar-formulario:hover {
  background-color: #2e3a3a;
}

.separador {
  border: none;
  height: 2px;
  background-color: #3D4C4B; /* ajusta el color a tu diseño */
  width: 100%;
  
}


/* MOBILE STYLES */
@media (max-width: 768px) {
  body {
    padding-top: 90px;
  }

  #inicio{
    padding: 0px;
    margin: 0px;

  }
  .separador {
    border: none;
    height: 2px;
    background-color: #3D4C4B; /* o el color que tú quieras */
    margin: 40px auto;
    width: 80%; /* ajusta según tu diseño */
  }
  
  
  #logo {
    padding-left: 20px; /* Ajusta según sea necesario */
  }
  
  #logo img {
    max-height: 80px;
    width: auto;
  }
  h1, h2, h3, h4, h5{
    font-size: 1.4em;
    text-align: center;
    margin-left: 0;
    margin-top: 0px;
  }
 
 
  #logo_interior {
    height: 300px; /* o el alto que quieras */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

  }
  #logo_interior img {
  
    width: 100%;
    height: 100%;
    object-fit: cover; /* se agranda y corta elegantemente */
    display: block;
  }
  
/*MENU CELULAR*/
nav {
  position: fixed;
  top: 0;
  left: 0;
  background: #3D4C4B;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: left;
  padding: 10px 20px;

 

}


.hamburguesa {display: inline-block;

}

nav ul {
  display: none;
  flex-direction: column;
  background: #3D4C4B;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 999;
  animation: fadeIn 0.3s ease-in-out;
}

nav ul.activo {
  display: flex;
}

nav ul li {
  text-align: center;
  margin: 10px 0;
}

nav ul li::before {
  content: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  .bloque-flotante2,
  .bloque-flotante3 {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 10px;
  }
  .bloque-flotante .texto,   
  .bloque-flotante1 .texto,
  .bloque-flotante2 .texto,
  .bloque-flotante3 .texto {
    width: 100%;
    font-size: 1rem;
    text-align: center;
  }
  
  .bloque-flotante2 img
  {
    width: auto;
    max-width: 90%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
  }

  .bloque-flotante1 {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 30px;
    
  }
  .bloque-flotante1 img{
    width: 100%;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: left;
    display: block;
    list-style: none;
  }
  .bloque-flotante {
    display: flex;
    flex-direction: column;
    
  }
  
  .bloque-flotante h2 {
    order: 1;
    margin-top: 40px;
  }
  
  .bloque-flotante img {
    order: 2;
    width: auto;
    max-width: 90%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;

  }
  .bloque-flotante .texto ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
  }

  .gallery {
      grid-template-columns: repeat(2, 1fr); /* Dos columnas */
      gap: 10px; /* Menos espacio entre las imágenes */
  }
  
  .gallery img {
      border-radius: 8px; /* Borde más suave */
      transition: transform 0.2s, box-shadow 0.2s; /* Transición más suave */
  }
  
  form input,
  form button {
  width: 90%;
  }
  #formulario {
  padding: 0 10px;
  }
  #descargar-guia-form {
    display: block;
    margin: 0 auto;
    float: left;
    text-align: center;
    width:auto;
    margin-bottom: 50px;

  }

}