/* EcoHuertos Móstoles — front estático nuevo
   Paleta natural (verdes/tierra), ligero, sin frameworks. */

:root {
  --green-900: #14361b;
  --green-800: #1f5128;
  --green-700: #2f7d32;
  --green-600: #3c8717;
  --green-500: #5a9e3a;
  --green-100: #e4efdc;
  --earth-600: #b9572f;
  --earth-500: #c96a3d;
  --cream: #f7f4ec;
  --sand: #efe9da;
  --ink: #1d2a1f;
  --ink-soft: #41513f;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 54, 27, .12);
  --shadow-sm: 0 4px 14px rgba(20, 54, 27, .10);
  --wrap: 1120px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; color: var(--green-900); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.01em; margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; color: var(--green-800); }

p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--alt { background: var(--sand); }
.section--green { background: var(--green-900); color: #eef4e8; }
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--earth-600);
  margin-bottom: .8rem;
}

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-800); }
.btn--earth { background: var(--earth-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--earth:hover { background: var(--earth-500); }
.btn--ghost { background: transparent; color: var(--green-800); border-color: var(--green-500); }
.btn--ghost:hover { background: var(--green-100); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(20, 54, 27, .10);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green-900); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--font-head); font-size: 1.28rem; line-height: 1; font-weight: 600; }
.brand span { display: block; font-size: .72rem; color: var(--ink-soft); letter-spacing: .02em; font-family: var(--font-body); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-700); border-bottom-color: var(--green-600); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--green-900); border-radius: 3px; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 1.2rem .8rem; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--green-700); line-height: 1; }
.stat span { display: block; margin-top: .35rem; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Features ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(20,54,27,.06); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); margin-bottom: .9rem; }
.card .ic svg { width: 26px; height: 26px; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Content layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.split--text-first .split__text { order: 0; }
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.prose { max-width: 68ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* ---------- Team ---------- */
.person { display: grid; grid-template-columns: 160px 1fr; gap: 1.6rem; align-items: center; background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.person__photo { border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.price-tag { display: inline-flex; align-items: baseline; gap: .4rem; background: var(--earth-600); color: #fff; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 700; }
.price-tag b { font-family: var(--font-head); font-size: 1.6rem; }
.includes li { margin-bottom: .55rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gallery__item { display: block; padding: 0; border: none; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1; background: var(--green-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:focus-visible { outline: 3px solid var(--earth, #c2693a); outline-offset: 2px; }

/* Lightbox de galería (en el propio sitio, sin salir a Drive) */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(10,22,12,.93); padding: 4vmin; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 14px 50px rgba(0,0,0,.55); background: var(--green-900); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: none; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255,255,255,.14); font-size: 1.6rem; line-height: 1; transition: background .2s ease; }
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 3vmin; right: 3vmin; }
.lightbox__prev { left: 3vmin; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 3vmin; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__prev { left: 1.5vmin; } .lightbox__next { right: 1.5vmin; } }

/* ---------- Map ---------- */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 0; }
.map-frame iframe { display: block; width: 100%; height: 440px; border: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); text-align: center; }
.contact-card .ic { margin: 0 auto .8rem; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); }
.contact-card a { color: var(--green-800); font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Brand lockup (logo) ---------- */
.brand .brand__mark { width: 38px; height: 38px; flex: none; color: var(--green-700); }
.brand .brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand__txt b { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--green-900); }
.brand .brand__txt i { font-style: normal; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.brand--footer { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand--footer .brand__mark { color: var(--green-500); }
.brand--footer .brand__txt b { color: #fff; }
.brand--footer .brand__txt i { color: #9cbf8d; }

/* ---------- Person initials avatar ---------- */
.person__photo--initials { display: grid; place-items: center; background: var(--green-100); color: var(--green-700); font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; letter-spacing: .02em; }

/* ---------- Placeholder mark ---------- */
[data-placeholder] { outline: 2px dashed var(--earth-500); outline-offset: -8px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e4cc; max-width: 52ch; margin-inline: auto; }
.cta-band .btn { margin-top: .6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cdddc3; padding: 3rem 0 1.6rem; }
.site-footer a { color: #eef4e8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: #9cbf8d; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand b { font-family: var(--font-head); font-size: 1.3rem; color: #fff; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; font-size: .85rem; color: #8fae80; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .split, .pricing { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid rgba(20,54,27,.1);
    padding: .6rem 1.2rem 1rem; box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid rgba(20,54,27,.06); }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .person { grid-template-columns: 1fr; text-align: center; }
  .person__photo { width: 150px; margin: 0 auto; }
  .media-pair { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
