:root {
  --green-900: #063a22;
  --green-700: #0a5c36;
  --green-600: #0f7a47;
  --green-500: #12a05e;
  --gold: #eab308;
  --ink: #12211a;
  --muted: #5b6b63;
  --bg: #f5f8f6;
  --card: #ffffff;
  --line: #e3ece7;
  --radius: 18px;
  --shadow: 0 20px 45px -22px rgba(10, 60, 40, 0.45);
  --font: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; font-weight: 700; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; }
p { margin: 0.5rem 0; }
em { font-style: normal; }

.wrap { width: min(1160px, 92%); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--green-700); color: #fff; padding: 0.7rem 1rem;
}
.skip:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.75rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  color: #fff; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: var(--shadow);
}
.brand__name {
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  display: flex; flex-direction: column; line-height: 1.05;
}
.brand__name em { color: var(--green-600); font-weight: 600; font-size: 0.85em; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { font-weight: 500; font-size: 0.95rem; color: var(--ink); position: relative; }
.nav a:hover { color: var(--green-600); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.25rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--phone {
  background: var(--green-700); color: #fff;
  box-shadow: 0 10px 22px -12px var(--green-700);
}
.btn--phone:hover { background: var(--green-600); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-600); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(115deg, rgba(3, 36, 22, 0.92) 15%, rgba(4, 60, 36, 0.55) 55%, rgba(4, 70, 44, 0.25)),
    linear-gradient(180deg, rgba(3, 30, 19, 0.5), rgba(4, 46, 30, 0.25));
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  background-color: var(--green-900);
  animation: ken 22s ease-in-out infinite alternate;
}
@keyframes ken { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__content { position: relative; z-index: 2; padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem); max-width: 700px; }
.hero__card { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.02em; max-width: 16ch; }
.hero h1 em { color: #7fe0ae; }
.hero p { font-size: 1.12rem; max-width: 46ch; color: rgba(255, 255, 255, 0.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.4rem; }
.hero__facts {
  list-style: none; margin: 1.2rem 0 0; padding: 1.2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; flex-wrap: wrap; gap: 2rem;
}
.hero__facts li { display: flex; flex-direction: column; font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.hero__facts strong { font-size: 1.5rem; color: #fff; }

/* ---------- Marquee (logos de confianza) ---------- */
.marquee { overflow: hidden; background: var(--card); border-block: 1px solid var(--line); }
.marquee__track { display: flex; gap: 3rem; align-items: center; padding: 1.1rem 0; width: max-content; animation: scroll 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; color: #9ab3a6; letter-spacing: 0.02em;
  filter: grayscale(1); transition: filter 0.2s, color 0.2s;
  white-space: nowrap;
}
.logo:hover { filter: none; color: var(--green-700); }
.logo svg { width: 30px; height: 30px; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--card); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section__head .eyebrow { justify-content: center; }
.section__head .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section__head p { color: var(--muted); }
.section__head h2 { margin-top: 0.4rem; }

.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards .card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.cards .card:hover { transform: translateY(-6px); background: var(--card); box-shadow: var(--shadow); }
.card__icon {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: #e4f4ec; margin-bottom: 1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Photo grid (equipo) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3.4; background: var(--green-900);
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo:hover img { transform: scale(1.05); }
.photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(3, 30, 19, 0.9));
  color: #fff; font-size: 0.85rem;
}
.photo figcaption strong { display: block; font-size: 1rem; }
.photo__ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  color: rgba(255,255,255,0.6);
}
.spin { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- Nosotros ---------- */
.nosotros { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.nosotros__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--green-900); box-shadow: var(--shadow); background-size: cover; background-position: center; }
.nosotros__body .eyebrow { color: var(--green-600); }
.nosotros__body p { color: var(--muted); }
.ticks { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink); font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.25em;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: #e4f4ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a5c36'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/0.9rem no-repeat;
}

/* ---------- Logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.2rem; }
.logo-cell {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1.3rem 1rem; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
  font-weight: 700; color: #7f9489; transition: transform 0.2s, color 0.2s, box-shadow 0.2s;
}
.logo-cell:hover { transform: translateY(-4px); color: var(--green-700); box-shadow: var(--shadow); }
.logo-cell svg { width: 34px; height: 34px; }

/* ---------- CTA / contacto ---------- */
.cta { background: linear-gradient(135deg, var(--green-900), var(--green-600)); color: #fff; }
.cta__inner { text-align: center; max-width: 720px; }
.cta .eyebrow { justify-content: center; }
.cta .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold); }
.cta p { color: rgba(255,255,255,0.9); }
.cta__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 1.8rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  padding: 0.75rem 1.3rem; border-radius: 999px; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.chip:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.chip svg { width: 20px; height: 20px; fill: currentColor; }
.chip--wa svg { fill: #4ade80; }

/* ---------- Footer ---------- */
.footer { background: #062c1c; color: #cfe6db; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 2.5rem; padding: 3rem 0 2rem; }
.brand--light .brand__name em { color: #7fe0ae; }
.footer p { color: #a9c5b8; font-size: 0.95rem; }
.footer h4 { color: #fff; margin: 0 0 0.8rem; font-size: 1rem; }
.legal { line-height: 2; }
.socials { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.social {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.2s, background 0.2s;
}
.social:hover { transform: translateY(-3px); background: var(--green-500); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.2rem 0; font-size: 0.85rem; color: #8aa99a; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .grid--3, .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid--3, .photo-grid, .footer__grid { grid-template-columns: 1fr; }
  .btn--phone span { display: none; }
  .btn--phone { padding: 0.7rem; }
}
