/* Construyendo un Ambiente Saludable E.I.R.L. — estilo medioambiental */
:root {
  --forest: #17402f;
  --forest-2: #1f5a41;
  --leaf: #3f9a5b;
  --lime: #a9d65c;
  --sun: #f0b43a;
  --water: #2b86a6;
  --mist: #e7f3ee;
  --sand: #f7f4ea;
  --earth: #8b6b47;
  --ink: #15271f;
  --ink-soft: #46594f;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(23, 64, 47, .35);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--water); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--forest); margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 234, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 64, 47, .1);
}
.nav { display: flex; position: relative; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--forest); }
.brand img { width: 46px; height: 46px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.1; }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .7rem; letter-spacing: .12em; color: var(--leaf); }
.menu { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  text-decoration: none; color: var(--forest); font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: background .2s, color .2s;
}
.menu a:hover { background: var(--mist); }
.menu a[aria-current="page"] { background: var(--forest); color: var(--white); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--mist); }
.lang a {
  padding: .28rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  text-decoration: none; color: var(--forest);
}
.lang a:hover { background: rgba(63, 154, 91, .2); }
.lang a[aria-current="true"] { background: var(--leaf); color: var(--white); }
.nav-toggle {
  display: none; background: var(--forest); color: var(--white); border: 0;
  border-radius: 12px; padding: .55rem .8rem; font: inherit; font-weight: 700; cursor: pointer;
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { gap: .5rem; }
  .brand { margin-right: auto; }
  .brand span { font-size: .92rem; }
  .brand img { width: 38px; height: 38px; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--sand); padding: .6rem 1rem 1rem;
    border-bottom: 1px solid rgba(23, 64, 47, .12); display: none;
  }
  .menu.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(240, 180, 58, .35), transparent 38%),
    linear-gradient(150deg, var(--forest) 0%, var(--forest-2) 55%, #2a7a56 100%);
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(6rem, 11vw, 9rem);
}
.hero h1, .hero h2 { color: var(--white); }
.hero .eyebrow { color: var(--lime); }
.hero p.lead { font-size: 1.25rem; max-width: 34em; color: #e3f2ea; }
.hero-inner { position: relative; z-index: 2; display: grid; gap: 2.5rem; grid-template-columns: 1.3fr 1fr; align-items: center; }
.hero-art { justify-self: center; width: min(340px, 80%); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); animation: float 7s ease-in-out infinite; }
.hero .leaf {
  position: absolute; background: url("../img/leaf.svg") center/contain no-repeat; pointer-events: none;
}
.hero .leaf.l1 { width: 320px; height: 320px; left: -80px; bottom: -60px; transform: rotate(-20deg); }
.hero .leaf.l2 { width: 220px; height: 220px; right: 28%; top: -40px; transform: rotate(60deg); animation: sway 9s ease-in-out infinite; }
.hero .leaf.l3 { width: 160px; height: 160px; right: 4%; bottom: 14%; transform: rotate(160deg); animation: sway 11s ease-in-out infinite reverse; }
.hero-page { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(5rem, 9vw, 7rem); }
.hero-page .hero-inner { grid-template-columns: 1fr; }
.hero-page p.lead { margin-bottom: 0; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.wave svg { width: 100%; height: clamp(40px, 7vw, 90px); }

@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes sway { 50% { transform: rotate(75deg) translateY(10px); } }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

.eyebrow {
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--leaf); margin-bottom: .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--forest); box-shadow: 0 8px 20px -8px rgba(240, 180, 58, .8); }
.btn-sun:hover { background: #f6c55d; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-forest { background: var(--forest); color: var(--white); }
.btn-forest:hover { background: var(--forest-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 40em; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.band-mist { background: var(--mist); }
.band-forest { background: var(--forest); color: #e3f2ea; }
.band-forest h2, .band-forest h3 { color: var(--white); }
.band-forest .eyebrow { color: var(--lime); }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); border: 1px solid rgba(23, 64, 47, .06);
  transition: transform .25s, box-shadow .25s;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px -14px rgba(23, 64, 47, .45); }
.card .more { color: var(--water); font-weight: 800; font-size: .95rem; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--leaf), var(--lime)); color: var(--white); margin-bottom: 1.1rem;
}
.icon-badge svg { width: 30px; height: 30px; }
.icon-badge.water { background: linear-gradient(135deg, var(--water), #5fc0d6); }
.icon-badge.sun { background: linear-gradient(135deg, var(--sun), #f7d27a); color: var(--forest); }
.icon-badge.earth { background: linear-gradient(135deg, var(--earth), #c19a68); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50% 0 50% 0;
  background: var(--leaf); transform: rotate(-12deg);
}

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.art-panel {
  position: relative; border-radius: 28px; min-height: 340px; overflow: hidden;
  background: linear-gradient(160deg, var(--mist), #cfe8dc);
  box-shadow: var(--shadow);
}
.art-panel svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* quote / mission */
.mission {
  border-left: 6px solid var(--sun); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem 1.8rem; box-shadow: var(--shadow);
}
.mission h3 { margin-bottom: .4rem; }
.mission p { margin: 0; font-size: 1.15rem; }

/* numbered */
.num {
  font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 700;
  color: var(--lime); display: block; margin-bottom: .4rem;
}

/* service cards */
.service ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.service li::marker { color: var(--leaf); }

/* entity strip */
.entities { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.pill {
  background: var(--white); border: 1px solid rgba(23, 64, 47, .12); color: var(--forest);
  border-radius: 999px; padding: .5rem 1.2rem; font-weight: 800; letter-spacing: .04em;
}

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center; color: var(--white);
  background: linear-gradient(135deg, var(--water), var(--forest-2));
  border-radius: 28px; padding: clamp(2.2rem, 6vw, 4rem) 1.5rem;
}
.cta h2 { color: var(--white); max-width: 22em; margin-inline: auto; }
.cta .btn-row { justify-content: center; }
.cta::before { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -60px; background: url("../img/leaf.svg") center/contain no-repeat; transform: rotate(40deg); }

/* contact */
.contact-list { display: grid; gap: 1.2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .icon-badge { flex: none; margin: 0; width: 50px; height: 50px; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-item a { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-item a:hover { color: var(--water); text-decoration: underline; }
.contact-item p { margin: 0; }

form label { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--forest); }
form .field { margin-bottom: 1.1rem; }
form input, form textarea, form select {
  width: 100%; padding: .75rem 1rem; font: inherit; color: var(--ink);
  border: 2px solid #d3e3da; border-radius: 12px; background: #fbfdfc;
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(63, 154, 91, .2); }
form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #cfe3d8; padding: 3rem 0 1.5rem; font-size: .97rem; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.site-footer a { color: #cfe3d8; text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1.2fr; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.footer-brand img { width: 48px; }
.footer-brand strong { font-family: var(--font-display); color: var(--white); font-size: 1.1rem; }
.copy { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1.2rem; font-size: .88rem; text-align: center; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
