/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --verde-oscuro: #2a5d34;
  --verde-claro: #68B04E;
  --verde-hero: #8FCF67; /* O la opción que elijas */
  --accent: #2D8F18;
  --bg: #f9f9f5;
  --text: #2e2e1f;
  --card: #ffffff;
}


body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden; /* Previene scroll horizontal indeseado */
}

h1, h2, h3 { color: var(--verde-oscuro); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus { text-decoration: underline; outline: none; }

/* --- ANIMACIÓN SCROLL (Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- MENÚ FIJO --- */
.menu-fijo {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(42,93,52,0.98); /* Un poco más opaco */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem; /* Ajuste para dar espacio a botones */
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  height: 70px; /* Altura fija para centrar todo */
}

/* Logo con imagen al lado del texto */
.menu-left .logo {
  display: flex;
  align-items: center;
  gap: 8px; /* espacio entre imagen y texto */
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  color: inherit;
}

.menu-left .logo-img {
  height: 150px; /* ajusta para que no agrande mucho el header */
  width: auto;
  display: block;
}


.menu-left, .menu-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none !important;
}

/* Nav Links */
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-list li a { color: white; font-weight: 500; text-decoration: none; }
.nav-list li a:hover { opacity: 0.8; text-decoration: none; }

/* --- BOTONES HEADER IGUALES --- */
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px; /* Altura fija idéntica */
  width: 200px; /* Ancho fijo idéntico */
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Estilos específicos de cada botón */
.btn-tel {
  background: white;
  color: var(--verde-oscuro);
}
.btn-presu {
  background: linear-gradient(45deg, var(--accent), var(--verde-claro));
  color: white;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Hamburguesa */
.hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburguesa span {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburguesa.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburguesa.open span:nth-child(2) { opacity: 0; }
.hamburguesa.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Responsive Menú */
@media (max-width: 900px) {
  .header-btn { width: auto; padding: 0 1rem; font-size: 0.85rem; } /* Más pequeños en tablet */
}

@media (max-width: 768px) {
  .hamburguesa { display: flex; }
  .menu-right { display: none; } /* Ocultamos botones header en móvil (usamos flotante) */
  .nav-list {
    flex-direction: column;
    background-color: var(--verde-oscuro);
    position: fixed;
    top: 70px; left: 0; width: 100%;
    padding: 2rem 0;
    display: none;
    text-align: center;
  }
  .nav-list.show { display: flex; }
}

/* --- HERO --- */
#hero {
  background: linear-gradient(rgba(143,207,103,0.2), rgba(143,207,103,0.2)), linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('...') center/cover;

  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 70px;
}
.hero-content { max-width: 800px; padding: 1rem; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: white; margin-bottom: 1rem; }
.hero-sub { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; color: white; }

.btn-cta {
  background: var(--verde-claro);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin: 0.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-llamar {
  background: white;
  color: var(--verde-oscuro);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  display: inline-block;
  margin: 0.5rem;
}

/* --- MAIN SECTIONS --- */
main { max-width: 1100px; margin: 3rem auto; padding: 0 1.5rem; }
section { margin-bottom: 4rem; }
h2 { text-align: center; font-size: 2rem; margin-bottom: 2.5rem; }

/* Servicios */
.servicio {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.servicio.zigzag:nth-child(even) { flex-direction: row-reverse; }
.servicio img {
  width: 50%;
  border-radius: 10px;
  height: 250px;
  object-fit: cover;
}
.texto-servicio { width: 50%; }
.texto-servicio h3 { margin-bottom: 0.5rem; font-size: 1.5rem; }

@media (max-width: 700px) {
  .servicio, .servicio.zigzag:nth-child(even) { flex-direction: column; }
  .servicio img, .texto-servicio { width: 100%; }
}

/* FAQs Grid */
.faqs-grid {
  display: flex;          /* Cambiamos Grid por Flex */
  flex-wrap: wrap;        /* Permite que bajen a la siguiente fila */
  justify-content: center;/* ESTA ES LA CLAVE: Centra todo horizontalmente */
  gap: 1.5rem;
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem auto;
  align-items: flex-start; /* Evita que se estiren en altura */
}
.faq-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  overflow: hidden;
  /* Configuración de tamaño flexible */
  flex: 1 1 300px;       /* Crece (1), Encoge (1), Base (300px) */
  max-width: 360px;      /* Tope de ancho para que la solitaria no sea gigante */
  width: 100%;           /* Para asegurar que se ve bien en móviles */
}
.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--verde-oscuro);
  color: white;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}
.faq-answer { padding: 1.5rem; font-size: 0.95rem; color: #555; border-top: 1px solid #eee; }

/* Formulario */
/* Sección de Contacto Estilizada */
#contacto {
  /* 1. Fondo y Borde */
  background-color: #f4f9f4; /* Un verde muy suave (mejor que wheat) */
  border: 2px solid var(--verde-claro); /* El borde verde que querías */
  border-radius: 20px; /* Esquinas redondeadas */

  /* 2. Ajuste al contenido */
  max-width: 700px; /* Ancho máximo para que parezca una tarjeta */
  margin: 3rem auto; /* Centrado horizontalmente */
  padding: 2.5rem 2rem; /* Espacio interior para que respire */

  /* 3. Detalles extra ("Alguna cosa más") */
  box-shadow: 0 15px 30px rgba(42, 93, 52, 0.15); /* Sombra elegante */
  text-align: center; /* Centra el título */
}

/* Ajuste del formulario interno para que ocupe el espacio disponible */
#contacto form {
  max-width: 100%; /* Usa todo el ancho del contenedor padre (#contacto) */
  margin-top: 1.5rem;
  text-align: left; /* Devuelve la alineación del texto a la izquierda para los inputs */
}

/* Mejora visual de los inputs al hacer clic */
#contacto input:focus, 
#contacto textarea:focus {
  background-color: white;
  border-color: var(--verde-oscuro);
  transform: scale(1.01); /* Pequeño efecto de "zoom" al escribir */
}
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
input, textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}
input:focus, textarea:focus { border-color: var(--verde-claro); outline: none; }

/* --- FOOTER NUEVO ORDENADO --- */
footer {
  background-color: #1a1a1a; /* Fondo más oscuro y elegante */
  color: #ccc;
  padding: 4rem 1.5rem 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* Más espacio al centro para ciudades */
  gap: 3rem;
}

.footer-col h3 { color: white; margin-bottom: 1.2rem; font-size: 1.1rem; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 0.3rem;}
.footer-col a { color: #ccc; text-decoration: none; }
.footer-col a:hover { color: var(--verde-claro); }

/* Lista de Ciudades en Grid */
.ciudades-lista {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Columnas limpias */
  gap: 0.8rem;
}
.ciudades-lista li {
  font-size: 0.9rem;
  transition: transform 0.2s;
  cursor: default;
}
.ciudades-lista li:hover { color: white; transform: translateX(5px); }

/* Links de Servicios */
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.copyright { text-align: center; margin-top: 3rem; pt: 2rem; border-top: 1px solid #333; font-size: 0.85rem; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ciudades-lista { grid-template-columns: repeat(2, 1fr); }
}

/* Botón flotante móvil */
.floating-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: none;
  z-index: 2000;
}
@media(max-width: 768px) { .floating-call { display: block; } }
/* --- ICONOS BOXICONS --- */
i.bx {
  vertical-align: middle; /* Alinea el icono con la altura del texto */
  font-size: 1.25em;      /* Un pelín más grandes que el texto */
  margin-right: 6px;      /* Separación con el texto */
  line-height: 1;
}

/* Color específico para los iconos en las FAQs (blanco porque el fondo es verde) */
.faq-question i.bx {
  color: rgba(255,255,255,0.9);
}

/* Color para los iconos del footer y header (heredan el color del texto o acento) */
.footer-col i.bx {
  color: var(--verde-claro); /* Iconos del footer en verde claro para destacar */
}

/* Ajuste específico para el botón del header */
.btn-tel i.bx {
  color: var(--verde-oscuro);
  font-size: 1.1em;
}

/* Ajuste para el botón flotante móvil */
.floating-call i.bx {
  font-size: 1.4em;
  margin-right: 5px;
}