@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---------------- PANTALLA DE CARGA ---------------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 1.5s forwards;
}

.preloader-logo {
  width: 150px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------------- RESETEO ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}


body {
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------------- HEADER ---------------- */
.header {
  min-height: 10vh;
  display: flex;
  align-items: center;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  backdrop-filter: blur(2px);
  /* opcional efecto difuminado */
  ;
}

.logo img {
  height: 60px;
  transition: transform 0.3s ease;
}

.menu .navbar ul li {
  position: relative;
  float: left;
}

.menu .navbar ul li a {
  font-size: 18px;
  padding: 20px;
  color: #6c8d43;
  display: block;
  font-weight: 600;
}

#menu {
  display: none;
}

.menu-icon {
  width: 50px;
  height: auto;
}

.menu label {
  cursor: pointer;
  display: none;
}

.navbar {
  display: flex;
}



.navbar a {
  color: #fff;
  font-weight: 600;
  padding: 10px 15px;
}

/* Estilo general del menú */

.navbar li {
  position: relative;
}

/* Link principal */


/* Estilo del desplegable oculto */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  /* justo debajo del botón */
  left: 0;
  background: #ffffff;
  /* color de fondo */
  border: 1px solid #6c8d43;
  z-index: 1000;
  max-height: 250px;
  /* puedes ajustar según tu diseño */
  overflow-y: auto;
}


/* Poner las opciones en columna */
.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 10px 15px;
  color: #fff;
  display: block;
  text-align: left;
}

.dropdown-menu li a:hover {
  background: #d7e2c9;
  color: #333;
}

/* Mostrar el menú al pasar mouse */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.header-txt {
  text-align: center;
}

.header-txt h1 {
  font-size: 70px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.header-txt p {
  font-size: 1.1rem;
  font-weight: 300;
  color: #f2f5ed;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}


/* ---------------- HERO ---------------- */
.hero {

  padding: 80px 20px;
  background: linear-gradient(to right, #6c8d43, #799a4f);
  color: #fff;
  text-align: justify;
  max-width: 991px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 20px;
}

.hero h1 {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 800px;
  margin: auto;
  line-height: 1.8;
}

/* ---------------- CONTENIDO ---------------- */
.contenido {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-align: justify;
}

.card:hover {
  transform: translateY(-8px);
}

.card h2 {
  font-size: 1.8rem;
  color: #6c8d43;
  margin-bottom: 15px;
  border-left: 5px solid #6c8d43;
  padding-left: 10px;
}

/* Valores con <details> */
details {
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 15px;
  background: #f5f5f5;
  transition: 0.3s;
}

details[open] {
  background: #eef5e8;
  border-left: 4px solid #6c8d43;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #6c8d43;
  outline: none;
}

details p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #333;
}

.card p,
.card li {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.card ul {
  margin-top: 10px;
  padding-left: 20px;
}

/* ---------------- FOOTER ---------------- */
.footer-txt {
  border-top: 1px solid #b4b4b47e;
  padding: 20px 0;
  text-align: center;
}

.footer-txt p {
  color: #6c8d43;
  font-size: 16px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 991px) {
  .navbar {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    border-top: 2px solid #6c8d43;
  }

  #menu:checked~.navbar {
    display: flex;
  }

  .menu label {
    display: block;
  }

  .menu .navbar ul li {
    width: 100%;
    flex-direction: column;
  }

  .menu .navbar ul li a {
    padding: 15px;
    display: block;
    color: #6c8d43;
  }

  .hero {
    margin: 120px 20px 20px;
    padding: 30px 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {


  .menu {
    padding: 10px;
  }

  .hero {
    margin-top: 140px;
    padding: 20px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .card {
    padding: 20px;
  }

  .card h2 {
    font-size: 1.3rem;
  }
}