/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  font-family: Helvetica;
  background-color: #ffffff;
  color: #333;
  overflow-x: hidden;
}


.container-header {
  min-height: 100vh;
  width: 100%;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 1) 100%),
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/backgrounds/mountains-colombian-national-park-mountainous-landforms-mountain-1605811-pxhere.com-_1__11zon.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 120px;
  gap: 30px;
  text-align: center;
}

.subtitle h3{
  color: #ffff;
}

.logo-grande {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.logo-grande img {
  max-width: 100%;
  height: auto;
  width: 100%;
  max-width: 400px;
  object-fit: contain;
  display: block;
}

/* ====== HEADERS ====== */

#main-header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 900;
  background: transparent;
}

#main-header nav ul li a {
  color: #ffffff;
}

#scroll-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 5px 20px;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#scroll-header.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

header a img {
  height: 60px;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

header ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

header ul li {
  list-style: none;
}

header ul li a {
  font-family: Helvetica;
  margin: 0 15px;
  text-decoration: none;
  color: #000000;
  letter-spacing: 2px;
  font-weight: 600;
  transition: 0.7s;
}

header ul li.welcome-message {
    color: #2e7d32;
    font-weight: bold;
    margin: 0 15px;
}

/* ====== BÚSQUEDA ====== */

form {
  background-color: white;
  width: 90%;
  max-width: 600px;
  height: 60px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 22px;
}

form input {
  font-size: 18px;
  flex: 1;
  border: 0;
  outline: 0;
  background-color: transparent;
}

form button {
  background-color: #a3ffb2;
  border: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

button img {
  height: 1em;
  vertical-align: middle;
}

/* ====== TÍTULOS ====== */

h2 {
  margin: 30px auto;
  text-align: center;
  color: #2e7d32;
}

.titulo-naranja {
  font-size: 40px;
  color: #fb8c00;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.titulo-naranja::after {
  content: "";
  display: block;
  width: 300px;
  height: 4px;
  background-color: #2e7d32;
  margin: 5px auto 0;
  border-radius: 2px;
}

.titulo-verde {
  font-size: 40px;
  color: #2e7d32;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.titulo-verde::after {
  content: "";
  display: block;
  width: 300px;
  height: 4px;
  background-color: #fb8c00;
  margin: 5px auto 0;
  border-radius: 2px;
}

/* ====== DESTACADOS ====== */
/* ====== DESTACADOS CON DESCRIPCIÓN REAL ====== */
.destacados-contenedor {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 20px auto 80px;
  max-width: 1200px;
  padding: 0 20px;
  align-items: stretch; /* <-- asegura altura igual entre las tarjetas en la misma fila */
}

.destacado-box {
  border: 1px solid #e0e0e0;
  padding: 0;
  width: 300px;
  background: #fff;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 300px; /* <-- usar flex para que todas las tarjetas tengan la misma altura */
  align-self: stretch;
}

.destacado-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-color: #2e7d32;
}

.destacado-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #e0e0e0;
}

.destacado-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.destacado-box h3 {
  font-size: 18px;
  color: #2e7d32;
  margin-bottom: 10px;
  font-weight: 600;
}

.destacado-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
  flex: 1 1 auto;
  min-height: 0;
}

.destacado-link {
  display: inline-block;
  color: #fb8c00;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s;
  margin-top: auto;
  align-self: flex-start;
}

.destacado-link:hover {
  color: #e65100;
  text-decoration: underline;
}

/* ====== ¿QUIÉNES SOMOS? ====== */
.info-empresa {
  width: 100vw; /* Ocupa todo el ancho del viewport */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: url('../images/backgrounds/bg_login.webp') no-repeat center center fixed;
  background-size: cover; 
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-attachment: fixed;
  min-height: 650px;
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.3); /* Overlay mejorado */
}

.info-overlay {
  background-color: rgba(0, 0, 0, 0.7); /* Mayor opacidad para mejor legibilidad */
  color: white;
  padding: 40px;
  border-radius: 12px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.info-overlay h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.info-overlay h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: #fb8c00; /* Línea decorativa naranja */
}

.info-overlay p {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 15px;
}



.quienes-somos {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 40px auto 0;
}

/* Bloque Flor Parra */
.bloque.flor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 50px 30px;
  margin: 50px auto;
  gap: 40px;
  max-width: 1100px;
}

.bloque.flor .texto {
  flex: 1;
}

.bloque.flor .texto h3 {
  font-size: 26px;
  color: #2e7d32;
  margin-bottom: 15px;
}

.bloque.flor .texto p {
  font-size: 20px;
  line-height: 1.8;
  padding: 20px;
  color: #333;
}

.bloque.flor .imagen {
  flex: 1;
  max-width: 350px;
  display: flex;
  justify-content: center;
}

.bloque.flor .imagen img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

/* Misión y Visión */
.bloque.mision-vision {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin: 60px auto 0;
  max-width: 1000px;
}

.mision, .vision {
  flex: 1 1 45%;
  padding: 10px;
  color: #333;
}

.mision h3, .vision h3 {
  font-size: 26px;
  color: #fb8c00;
  margin-bottom: 10px;
}

.mision p, .vision p {
  font-size: 20px;
  line-height: 1.6;
}

/* Overlay solo para padding, sin fondo ni opacidad */
.overlay-contenido {
  padding: 40px;
  border-radius: 16px;
}

/* ====== MENÚ HAMBURGUESA A LA DERECHA ====== */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1001;
  color: white;
}


#scroll-header .menu-toggle {
  color: #333;
  top: 15px;
  right: 15px;
}


#main-header nav ul, #scroll-header nav ul {
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  #main-header, #scroll-header {
    justify-content: flex-start;
    padding-right: 60px; /* Espacio para el botón */
  }
  
#main-header nav ul,
#scroll-header nav ul {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  padding: 60px 20px 20px;
  z-index: 1000;
  margin: 0;

  /* Oculto por defecto con animación */
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

/* Cuando el menú está activo */
#main-header nav ul.active,
#scroll-header nav ul.active {
  transform: translateX(0);
}

  
  #main-header nav ul li a {
    color: #333 !important;
  }
  
  #scroll-header {
    padding-left: 20px;
  }
  
  /* Asegurar que el logo no se solape con el botón */
  #scroll-header a {
    margin-right: auto;
  }
}

/* ====== RESPONSIVE ====== */

@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    gap: 10px;
  }

  header nav ul li a {
    font-size: 16px;
    margin: 10px 0;
  }

  .destacado-box {
    width: 100%;
    max-width: 350px;
    flex: 1 1 auto;
    align-self: stretch;
  }

  #scroll-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bloque.flor {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .bloque.flor .imagen {
    max-width: 100%;
    margin-top: 20px;
  }

  .bloque.mision-vision {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }

  .mision, .vision {
    flex: 1 1 100%;
  }

  .titulo-naranja {
    font-size: 32px;
  }

  .info-empresa {
    padding: 50px 20px;
    min-height: 300px;
  }
}
