@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #e6f7e6;
  background-image: url('../assets/img/ProyectoColibrilogo.png');
  background-size: 40%;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: white;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-container {
  /* position: absolute; */
  object-fit: cover;
  right: 55%;
  transform: translateX(20%);
}

.logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease-in-out;
}

.logo:hover {
  transform: scale(1.1);
}

.login-btn {
  background-color: #6aa16a;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.login-btn:hover {
  background-color: #559955;
}

.login-btn a {
  color: inherit;
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 10px;
  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #6aa16a;
}

nav ul li a.active {
  border-bottom: 3px solid #6aa16a;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-top: 100px;
  padding: 20px;
}

.titulo-seccion {
  text-align: center;
  padding: 30px 0;
  background: linear-gradient(454deg, #408053, #034626);
  color: white;
  border-radius: 10px;
  margin-bottom: 40px;
}

.titulo-seccion h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.titulo-seccion p {
  font-size: 1.2rem;
}

/* Estilos para el grid de contacto */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.contacto-info,
.contacto-form {
  background: rgb(255, 255, 255);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.contacto-info h2,
.contacto-form h2,
.mapa-container h2,
.faq-section h2 {
  font-size: 1.8rem;
  color: #2a7a2a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #6aa16a;
}

/* Estilos para los items de información */
.info-item {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.info-item .icon {
  font-size: 1.8rem;
  margin-right: 15px;
  color: #2a7a2a;
}

.info-item .text h3 {
  color: #2a7a2a;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-item .text p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Estilos para las redes sociales en contacto */
.redes-sociales-contacto {
  margin-top: 30px;
}

.redes-sociales-contacto h3 {
  color: #2a7a2a;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.redes-icons {
  display: flex;
  gap: 15px;
}

/* Estilos para el formulario */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2a7a2a;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6aa16a;
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
}

.checkbox-group label {
  margin-bottom: 0;
}

.submit-btn {
  background-color: #6aa16a;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  font-size: 1rem;
  width: 100%;
}

.submit-btn:hover {
  background-color: #559955;
}

/* Mensajes de respuesta */
.mensaje-respuesta {
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  display: none;
}

.mensaje-respuesta.exito {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.mensaje-respuesta.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Estilos para el mapa */
.mapa-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 50px;
}

.mapa {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

/* Placeholder para el mapa (eliminar cuando se implemente un mapa real) */
.mapa-placeholder {
  height: 100%;
  background-color: #e9e9e9;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #777;
  font-style: italic;
}

/* Estilos para las preguntas frecuentes */
.faq-section {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.accordion-item {
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-header {
  background-color: #f9f9f9;
  padding: 15px;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

.accordion-header:hover {
  background-color: #f0f0f0;
}

.accordion-header::after {
  content: "+";
  position: absolute;
  right: 15px;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 15px;
  max-height: 200px;
}

/* Estilos para el footer */
footer {
  width: 100%;
  background-color: #034626;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

.redes-sociales {
  margin-top: 10px;
}

.social-icon {
  color: rgb(110, 107, 107);
  margin: 0 10px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.social-icon:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .line {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Clase para prevenir scroll cuando el menú está abierto */
body.no-scroll {
  overflow: hidden;
}

/* Hamburger animations */
.hamburger.active .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2a7a2a;
  border-radius: 5px;
}

/* Responsive design */
@media (max-width: 992px) {
  .titulo-seccion h1 {
    font-size: 2rem;
  }

  .titulo-seccion p {
    font-size: 1rem;
  }

  .contacto-info h2,
  .contacto-form h2,
  .mapa-container h2,
  .faq-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
  }

  nav ul li {
    margin: 15px 0;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .mapa {
    height: 300px;
  }
}

@media (max-width: 576px) {
  header {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  .logo-container {
    position: static;
    transform: none;
    margin: 0 auto;
    order: 1;
  }

  .login-btn {
    order: 0;
    padding: 8px 12px;
    font-size: 14px;
  }

  .hamburger {
    order: 2;
  }

  .logo {
    height: 40px;
  }

  .container {
    margin-top: 80px;
  }

  .titulo-seccion {
    padding: 20px 0;
  }

  .titulo-seccion h1 {
    font-size: 1.5rem;
  }

  .titulo-seccion p {
    font-size: 0.9rem;
  }
}