/* ═══════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green:      #3d7a1f;
  --green-dark: #2e5c17;
  --beige:      #e6ddd1;
  --white:      #ffffff;
  --text:       #2b2b2b;
  --text-muted: #5c5c5c;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container.narrow {
  max-width: 820px;
}


/* ═══════════════════════════════════════════════
   1. HERO
════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 540px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.62) 40%,
    rgba(0, 0, 0, 0.15) 70%,
    transparent 100%
  );
}

.hero-header {
  padding: 1.8rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ── Nav menú ── */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.main-nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 20;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-logo {
  height: 58px;
  width: auto;
}

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem 4rem;
  max-width: 580px;
}

.hero-body h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 2.2rem;
  letter-spacing: -0.01em;
}

.btn-outline {
  display: inline-block;
  padding: 0.65rem 1.7rem;
  border: 2px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
  transition: background 0.25s, color 0.25s;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--text);
}


/* ═══════════════════════════════════════════════
   2. QUIÉNES SOMOS
════════════════════════════════════════════════ */
.quienes-somos {
  background: var(--white);
  padding: 5.5rem 0;
}

.qs-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.qs-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 0.9rem;
}

.title-green {
  font-size: 2.1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--green);
}

.qs-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 1rem;
}

.qs-body p:last-child {
  margin-bottom: 0;
}

.qs-body p:first-child strong {
  color: var(--text);
}

.strong-green {
  color: var(--green);
}


/* ═══════════════════════════════════════════════
   3–4. QUÉ HACEMOS
════════════════════════════════════════════════ */
.que-hacemos {
  background: var(--beige);
  padding: 5.5rem 0 5rem;
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.8rem;
  row-gap: 70px;
  padding-top: 38px;
}

.service-card {
  background: var(--white);
  padding: 2.2rem 1.5rem 2rem;
  text-align: center;
  position: relative;
}

.icon-circle {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid var(--beige);
  flex-shrink: 0;
}

.icon-circle i {
  color: var(--white);
  font-size: 1.35rem;
}

.service-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.service-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════
   5. ELEGIRNOS
════════════════════════════════════════════════ */
.elegirnos {
  background: var(--white);
  padding: 5.5rem 0 0;
  text-align: center;
}

.elegirnos .container {
  padding-bottom: 3.5rem;
}

.elegirnos-quote {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

.green-em {
  color: var(--green);
  font-style: italic;
}

.elegirnos-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
}


/* ═══════════════════════════════════════════════
   6. CONTACTO
════════════════════════════════════════════════ */
.contacto {
  background: var(--beige);
  padding: 5.5rem 0;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contacto-img-col img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.contacto-text-col h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.contact-block {
  margin-bottom: 1.8rem;
}

.contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.contact-link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.9;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--green);
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  /* Hamburger visible */
  .nav-toggle {
    display: flex;
  }

  /* Menú oculto por defecto en móvil */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.88);
    padding: 1.5rem 2rem 2rem;
    z-index: 100;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.4rem;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .hero-body {
    padding: 0 2rem 3rem;
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
    padding-top: 38px;
    row-gap: 65px;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contacto-img-col img {
    max-width: 420px;
    margin: 0 auto;
  }

  .contacto-text-col h2 {
    font-size: 1.7rem;
  }

  .elegirnos-quote {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }

  .quienes-somos,
  .que-hacemos,
  .elegirnos,
  .contacto {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-header {
    padding: 1.2rem 1.5rem;
  }

  .hero-logo {
    height: 44px;
  }
}
