/* ===== Colores y medidas ===== */
:root {
  /* Verdes de la marca (tomados de la tarjeta) */
  --navy: #0c3a1f;
  --navy-2: #155a2f;
  --amber: #5cc160;
  --amber-dark: #2c8a38;
  --ink: #17251b;
  --muted: #56655a;
  --line: #e1e8e2;
  --soft: #f1f6ef;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 42, 61, 0.10);
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: .75rem; }
h3 { font-size: 1.2rem; margin-bottom: .4rem; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: var(--amber-dark); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-2); }
.btn--small { padding: .55rem 1.1rem; font-size: .92rem; }
.btn--full { width: 100%; }

.eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-dark); margin-bottom: .6rem;
}
.eyebrow--light { color: var(--amber); }

/* ===== Encabezado ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); color: var(--navy); }
.logo__img { height: 46px; width: auto; }
.logo__text { display: grid; font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.logo__text small { font-weight: 600; font-size: .78rem; color: var(--amber-dark); }

.lang {
  font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy);
  border-radius: 999px; padding: .4rem .8rem;
}
.lang:hover { border-color: var(--navy); }

.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { font-weight: 500; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--navy); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ===== Portada ===== */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(92,193,96,.20), transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7rem) 0;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero h1 span { color: var(--amber); }
.hero .eyebrow { color: var(--amber); }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 34rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; color: rgba(255,255,255,.75); font-size: .95rem; }
.hero__trust li::before { content: "✓"; color: var(--amber); font-weight: 700; margin-right: .4rem; }
.hero__trust strong { color: var(--white); }

.hero__card {
  background: var(--white); color: var(--ink); border-radius: 20px; padding: 1.6rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.25); transform: rotate(2deg);
}
.hero__card-logo { height: 90px; width: auto; margin: 0 auto .6rem; }
.hero__card-name {
  text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
  color: var(--navy); line-height: 1.2; margin-bottom: 1.2rem;
}
.hero__card-name span { font-size: .95rem; font-weight: 600; color: var(--amber-dark); }
.hero__card-phone {
  display: block; text-align: center; background: var(--amber); color: var(--navy);
  font-weight: 700; font-size: 1.15rem; padding: .8rem; border-radius: 10px;
}
.hero__card-phone:hover { background: var(--amber-dark); color: var(--white); }
.checklist { list-style: none; display: grid; gap: .75rem; margin-bottom: 1.4rem; }
.checklist li { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; background: var(--soft); border-radius: 10px; font-weight: 500; }
.checklist li::before {
  content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; flex: none;
  border-radius: 50%; background: var(--navy); color: var(--amber); font-size: .8rem; font-weight: 700;
}
.hero__card-badge {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  background: var(--amber); color: var(--navy); font-weight: 700; padding: .8rem; border-radius: 10px;
}

/* ===== Secciones ===== */
.section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  width: 54px; height: 54px; border-radius: 12px; background: var(--soft);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--amber-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); }

/* Por qué elegirnos */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.why__intro p { margin-bottom: 2rem; font-size: 1.08rem; }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.why__item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.6rem; }
.why__num { font-family: var(--font-head); font-weight: 800; color: var(--amber); font-size: 1.1rem; display: block; margin-bottom: .6rem; }
.why__item p { font-size: .95rem; }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: none; }
.step { text-align: center; padding: 1rem; position: relative; }
.step__n {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.2rem;
  border-radius: 50%; background: var(--amber); color: var(--navy);
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem;
}
.step p { color: var(--muted); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); }
.placeholder {
  display: grid; place-items: center; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(45deg, #ece6dc, #ece6dc 12px, #e6dfd3 12px, #e6dfd3 24px);
  color: var(--muted); font-weight: 500; border: 2px dashed #d3c9b8;
}

/* Reseñas */
.reviews {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--soft); border-radius: 20px; padding: clamp(2rem, 5vw, 3rem);
}
.reviews p:last-child { color: var(--muted); max-width: 36rem; }
.stars { color: var(--amber); letter-spacing: 2px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__info > p { color: var(--muted); margin-bottom: 2rem; font-size: 1.08rem; }
.contact__list { list-style: none; display: grid; gap: 1.2rem; }
.contact__list li { display: grid; gap: .1rem; }
.contact__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact__list a, .contact__list span:not(.contact__label) { font-weight: 600; color: var(--navy); font-size: 1.08rem; }
.contact__list a:hover { color: var(--amber-dark); }

.form {
  background: var(--white); padding: 2rem; border-radius: 20px; box-shadow: var(--shadow);
  display: grid; gap: 1.1rem;
}
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(92,193,96,.25);
}
.form textarea { resize: vertical; }
.form__note { font-size: .85rem; color: var(--muted); text-align: center; }

/* Pie de página */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 3rem 0; }
.footer__inner { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.footer__logo { background: var(--white); border-radius: 14px; padding: .6rem 1rem; }
.footer__logo img { height: 56px; width: auto; }
.footer__name { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: 1.15rem; }
.footer a:hover { color: var(--amber); }
.footer__copy { font-size: .88rem; color: rgba(255,255,255,.5); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* ===== Celulares y tablets ===== */
@media (max-width: 960px) {
  .hero__inner, .why, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .hero__card { max-width: 420px; transform: none; }
  .services, .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .header__call { display: none; }
  .lang { margin-left: auto; }
  .menu-toggle { display: block; }
  .logo__text { font-size: .95rem; }
  .logo__img { height: 38px; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 1rem 4%; border-top: 1px solid var(--line); }
  .services, .gallery, .steps, .why__grid { grid-template-columns: 1fr; }
  .reviews { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
}

/* Menú sin cortes en pantallas medianas */
.nav a, .btn, .lang { white-space: nowrap; }
@media (max-width: 1024px) and (min-width: 761px) {
  .header__call { display: none; }
  .nav { gap: 1.1rem; }
}

/* Si sobra un espacio en el último renglón de servicios, la última tarjeta lo llena */
@media (min-width: 961px) {
  .service:last-child:nth-child(3n+2) { grid-column: span 2; }
}

/* ===== Portada con foto real ===== */
.hero {
  background:
    linear-gradient(100deg, rgba(8,40,20,.94) 0%, rgba(12,58,31,.86) 45%, rgba(12,58,31,.55) 100%),
    url("img/landscaping-front-yard.jpg") center / cover no-repeat;
}

/* ===== Antes y después ===== */
.ba {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: 900px; margin: 0 auto 3rem;
}
.ba__item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.ba__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ba__tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(23,37,27,.85); color: var(--white);
  font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px;
}
.ba__tag--after { background: var(--amber); color: var(--navy); }
.ba__caption { grid-column: 1 / -1; text-align: center; font-weight: 600; color: var(--navy); }

/* ===== Filtros ===== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.filter {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: .55rem 1.2rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy);
  transition: background .15s, color .15s, border-color .15s;
}
.filter:hover { border-color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ===== Galería ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--line); cursor: zoom-in;
}
.work--wide { grid-column: span 2; aspect-ratio: auto; min-height: 240px; }
.work--wide img { position: absolute; inset: 0; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work:hover img { transform: scale(1.05); }
.work figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(8,30,16,.85));
  color: var(--white); font-weight: 600; font-size: .95rem;
}
.work.is-hidden { display: none; }

/* ===== Vista ampliada ===== */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5,20,10,.92); }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 10px; object-fit: contain; }
.lightbox__caption { color: var(--white); font-weight: 600; margin-top: .8rem; text-align: center; }
.lightbox__btn {
  position: fixed; background: rgba(255,255,255,.12); color: var(--white); border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1;
  display: grid; place-items: center;
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .ba { gap: .6rem; }
  .gallery { grid-template-columns: 1fr; }
  .work--wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .work--wide img { position: static; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
}

/* Etiqueta "Durante / Después" en fotos de la galería */
.work__tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: rgba(23,37,27,.85); color: var(--white);
  font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 999px;
}
.work__tag--after { background: var(--amber); color: var(--navy); }

/* ===== Zonas de servicio ===== */
.areas { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.areas__intro p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.8rem; }
.areas__list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.areas__list li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--soft); border: 1px solid var(--line);
  font-weight: 600; color: var(--navy);
}
.areas__list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-dark);
}
.areas__list .areas__more { background: var(--navy); color: var(--white); border-color: var(--navy); }
.areas__list .areas__more::before { display: none; }
@media (max-width: 960px) { .areas { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 1100px) and (min-width: 761px) { .nav { gap: 1rem; } }

/* Subir el botón de WhatsApp para que no lo tape la etiqueta de Netlify */
.wa-float { bottom: 72px; }
