@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;
  font-weight: 600;
}

#menu {
  display: none;
}

.menu-icon {
  width: 50px;
  height: auto;
}

.menu label {
  cursor: pointer;
  display: none;
}

/* Estilo general del menú */
.navbar {
  display: flex;
  gap: 20px;
}


.navbar li {
  position: relative;
}

/* Link principal */
.navbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 15px;
  display: block;
}



/* 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: 700px;
  font-weight: 700;
  color: #6c8d43;
  margin-bottom: 1rem;
}

.header-txt p {
  font-size: 1.1rem;
  font-weight: 300;
  color: #6c8d43;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}


/* Menú responsive */
/* Ocultar menú por defecto en móvil */
.menu label {
  cursor: pointer;
  display: none;
}

#menu {
  display: none;
}

/* Hero */
.hero {
  background: linear-gradient(90deg, #6c8d43, #8fb06a);
  color: #fff;
  padding: 36px 0;
}

.hero .container {
  padding: 6px 0;
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 6px;
}

.hero p {
  margin-bottom: 0;
  opacity: 0.95;
}

/* Main layout */
.main {
  display: grid;
  grid-template-columns: 1fr 420px;
  /* formulario + barra derecha */
  gap: 30px;
  margin-top: 28px;
  margin-bottom: 40px;
  align-items: start;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(33, 33, 33, 0.06);
  padding: 22px;
}

/* Form styles */
.form-card h2 {
  margin-bottom: 16px;
  color: #233;
}

.contact-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: #444;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  margin-top: 6px;
  font-size: 14px;
  background: #fafafa;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  background: #6c8d43;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  color: #666;
  border: 1px solid #e3e3e3;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.note {
  display: block;
  margin-top: 8px;
  color: #999;
  font-size: 12px;
}

/* Right column (contact info + map) */
.info-card h2 {
  margin-bottom: 14px;
  color: #233;
}

.info-row {
  margin-bottom: 14px;
  color: #444;
}

.info-row h3 {
  font-size: 15px;
  color: #6c8d43;
  margin-bottom: 8px;
  display: inline-block;
  padding-left: 8px;
  border-left: 4px solid #6c8d43;
}

.two-cols {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.two-cols>div {
  flex: 1;
}

/* Map card */
.map-card {
  margin-top: 18px;
}

#map {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  border: 1px solid #e9e9e9;
  overflow: hidden;
  margin-top: 12px;
}

.map-note {
  margin-top: 8px;
  color: #777;
  font-size: 13px;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

/* Footer */
footer {
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid #eee;
  background: #fff;
  color: #6c8d43;
}

/* Responsive */
@media (max-width: 991px) {
  .main {
    grid-template-columns: 1fr 360px;
  }
}

@media (max-width: 991px) {
  .menu label {
    display: block;
    /* El ícono del menú aparece */
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    flex-direction: column;
  }

  #menu:checked~.navbar {
    display: flex;
    /* Muestra el menú al hacer click en el ícono */
  }

  .navbar ul {
    width: 100%;
    flex-direction: column;
  }

  .navbar li {
    width: 100%;
  }

  .navbar li a {
    padding: 15px;
    display: block;
    color: #6c8d43;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 10px;
  }

  .main {
    grid-template-columns: 1fr;
    padding: 0 6px;
  }

  .map-card {
    order: 2;
  }

  .left,
  .right {
    width: 100%;
  }

  .hero h1 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  #map {
    height: 260px;
  }

  .hero h1 {
    font-size: 20px;
  }
}