
:root{
  --green-deep:#2f4a2b; --green:#3a5a3a; --green-mid:#5b7d44;
  --sage:#8ba066; --earth:#8b6f3f; --earth-light:#b89968;
  --bg:#f5f2e8; --bg-card:#fffdf7; --ink:#26311f; --ink-soft:#4a5240;
  --line:#d8d0bb; --white:#fffdf7; --accent:#6b4423;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; font-family:"Segoe UI",system-ui,-apple-system,"Noto Sans",Roboto,Arial,sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.7; font-size:17px;
}
h1,h2,h3,h4{font-family:"Georgia","Noto Serif",serif;color:var(--green-deep);line-height:1.25;margin:0 0 .4em}
p{margin:0 0 1em}
a{color:var(--green);text-decoration:none}
a:hover{color:var(--accent);text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.container{max-width:1080px;margin:0 auto;padding:0 1.2rem}
.wrap{max-width:1080px;margin:0 auto;padding:0 1.2rem}

/* ---------- Header ---------- */
header.site{
  background:linear-gradient(135deg,var(--green-deep),var(--green) 60%,var(--green-mid));
  color:#fff; box-shadow:0 2px 12px rgba(0,0,0,.18);
  position:sticky;top:0;z-index:50;
}
header.site .bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;
  max-width:1140px;margin:0 auto;padding:.55rem 1.2rem;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.7rem;font-family:Georgia,serif;font-size:1.35rem;font-weight:700;color:#fff}
.brand:hover{text-decoration:none}
.brand .badge{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  background:#fffdf7;color:var(--green-deep);font-size:1.4rem;
  box-shadow:inset 0 0 0 2px var(--sage);
}
.brand small{display:block;font-size:.72rem;font-weight:400;opacity:.85;font-family:inherit}
.lang-switch{display:flex;gap:.25rem}
.lang-switch a{
  font-size:.78rem;font-weight:600;padding:.28rem .6rem;border-radius:999px;
  border:1px solid rgba(255,255,255,.4);color:#fff;letter-spacing:.04em;
}
.lang-switch a.active{background:#fffdf7;color:var(--green-deep);border-color:#fffdf7}
.lang-switch a:hover{background:rgba(255,255,255,.18);text-decoration:none}
nav.primary{background:rgba(0,0,0,.18)}
nav.primary ul{list-style:none;display:flex;flex-wrap:wrap;gap:.2rem;margin:0;padding:.15rem;max-width:1140px;margin:0 auto}
nav.primary a{display:block;padding:.55rem .9rem;color:#fff;font-size:.92rem;border-radius:6px;font-weight:500}
nav.primary a:hover{background:rgba(255,255,255,.16);text-decoration:none}
nav.primary a.active{background:var(--earth);color:#fff}

/* ---------- Hero ---------- */
.hero{position:relative;color:#fff;overflow:hidden}
.hero .bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:saturate(.9) brightness(.62)}
.hero .bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(47,74,43,.55),rgba(47,74,43,.78))}
.hero .inner{position:relative;padding:clamp(2.2rem,7vw,4.8rem) 1.2rem;text-align:center;max-width:900px;margin:0 auto}
.hero h1{color:#fff;font-size:clamp(2rem,6vw,3.4rem);margin-bottom:.3em;text-shadow:0 2px 10px rgba(0,0,0,.5)}
.hero p{font-size:clamp(1.05rem,2.4vw,1.3rem);opacity:.95;max-width:640px;margin:0 auto 1.4em;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.hero .lead-cta{display:inline-block;background:var(--earth);color:#fff;padding:.7rem 1.6rem;border-radius:999px;font-weight:600;border:1px solid var(--earth-light)}
.hero .lead-cta:hover{background:var(--accent);text-decoration:none;color:#fff}

/* ---------- Layout ---------- */
.page{padding:clamp(1.6rem,4vw,3rem) 1.2rem;max-width:1080px;margin:0 auto}
.page h1{font-size:clamp(1.8rem,4.5vw,2.6rem);border-bottom:3px solid var(--sage);padding-bottom:.35em;margin-bottom:.9em}
.lead{font-size:1.12rem;color:var(--ink-soft);max-width:760px}
section.block{margin:0 0 2.2rem}
section.block h2{font-size:1.5rem;margin-top:.2em;border-left:5px solid var(--green);padding-left:.7em}

/* ---------- Cards / grid ---------- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.2rem}
.card{background:var(--bg-card);border:1px solid var(--line);border-radius:12px;overflow:hidden;
  box-shadow:0 2px 8px rgba(60,60,30,.06);transition:transform .15s,box-shadow .15s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-3px);box-shadow:0 6px 18px rgba(60,60,30,.14)}
.card .pic{aspect-ratio:16/10;background-size:cover;background-position:center}
.card .body{padding:1rem 1.1rem 1.3rem;flex:1;display:flex;flex-direction:column}
.card .body h3{font-size:1.18rem;margin-bottom:.3em}
.card .body p{color:var(--ink-soft);font-size:.95rem;flex:1}
.card .more{color:var(--green);font-weight:600;font-size:.92rem;margin-top:.6rem}
.card .more:hover{color:var(--accent)}

/* ---------- Species profile ---------- */
.profile{display:grid;grid-template-columns:1fr;gap:1.4rem;margin:1.4rem 0 2.4rem;
  background:var(--bg-card);border:1px solid var(--line);border-left:5px solid var(--sage);border-radius:10px;padding:1.3rem}
@media(min-width:720px){.profile{grid-template-columns:340px 1fr;align-items:start}}
.profile .photo{border-radius:8px;overflow:hidden;border:1px solid var(--line)}
.profile .photo img{width:100%;aspect-ratio:4/3;object-fit:cover}
.profile h2{margin-top:0;font-size:1.4rem}
.profile .latin{font-style:italic;color:var(--earth);font-family:Georgia,serif;display:block;margin-bottom:.6em}
.profile dl{display:grid;grid-template-columns:auto 1fr;gap:.2rem .9rem;margin:.6rem 0 0;font-size:.95rem}
.profile dt{font-weight:600;color:var(--green-deep)}
.profile dd{margin:0;color:var(--ink-soft)}

/* ---------- Facts list ---------- */
.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;counter-reset:f}
.fact{background:var(--bg-card);border:1px solid var(--line);border-radius:10px;padding:1.1rem 1.2rem;position:relative;padding-left:3.4rem}
.fact::before{counter-increment:f;content:counter(f);position:absolute;left:.9rem;top:1rem;
  width:2rem;height:2rem;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:700;font-family:Georgia,serif}
.fact h3{font-size:1.08rem;margin:0 0 .3em}
.fact p{margin:0;font-size:.94rem;color:var(--ink-soft)}

/* ---------- Gallery ---------- */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.8rem}
.gallery figure{margin:0;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--bg-card)}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .3s}
.gallery figure:hover img{transform:scale(1.04)}
.gallery figcaption{padding:.55rem .8rem;font-size:.84rem;color:var(--ink-soft);text-align:center}

/* ---------- Tables ---------- */
.tbl{width:100%;border-collapse:collapse;margin:1rem 0 1.6rem;background:var(--bg-card);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.tbl th,.tbl td{padding:.7rem .8rem;text-align:left;border-bottom:1px solid var(--line);font-size:.94rem}
.tbl th{background:var(--green);color:#fff;font-weight:600}
.tbl tr:last-child td{border-bottom:none}
.tbl tr:nth-child(even) td{background:#f9f6ec}
.table-scroll{overflow-x:auto}

/* ---------- Two-col text ---------- */
.two{display:grid;grid-template-columns:1fr;gap:1.4rem}
@media(min-width:760px){.two{grid-template-columns:1fr 1fr}}
.feature-img{border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.feature-img img{width:100%;aspect-ratio:3/2;object-fit:cover}

/* ---------- Callout ---------- */
.callout{background:#eef3e2;border:1px solid var(--sage);border-left:5px solid var(--green);
  border-radius:10px;padding:1rem 1.2rem;margin:1.4rem 0}
.callout h3{margin-top:0;color:var(--green-deep)}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:1fr;gap:1.6rem}
@media(min-width:760px){.contact-grid{grid-template-columns:1fr 1fr}}
.contact-card{background:var(--bg-card);border:1px solid var(--line);border-radius:12px;padding:1.4rem}
.contact-card h2{margin-top:0}
.email-big{font-size:1.25rem;font-family:Georgia,serif;color:var(--green);word-break:break-all}
.form-field{margin-bottom:1rem}
.form-field label{display:block;font-weight:600;margin-bottom:.3rem;color:var(--green-deep)}
.form-field input,.form-field textarea{width:100%;padding:.6rem .7rem;border:1px solid var(--line);border-radius:8px;font:inherit;background:#fff}
.form-field input:focus,.form-field textarea:focus{outline:2px solid var(--sage);border-color:var(--sage)}
button.send{background:var(--green);color:#fff;border:none;padding:.7rem 1.5rem;border-radius:999px;font:inherit;font-weight:600;cursor:pointer}
button.send:hover{background:var(--green-deep)}

/* ---------- Footer ---------- */
footer.site{background:var(--green-deep);color:#e8e0c8;padding:2rem 1.2rem 1.4rem;margin-top:2.5rem}
footer.site .inner{max-width:1080px;margin:0 auto;display:grid;grid-template-columns:1fr;gap:1.4rem}
@media(min-width:720px){footer.site .inner{grid-template-columns:2fr 1fr 1fr}}
footer.site h4{color:#fff;font-family:Georgia,serif;margin:0 0 .6em;font-size:1.05rem}
footer.site a{color:#d8cfb6}
footer.site ul{list-style:none;padding:0;margin:0}
footer.site li{margin-bottom:.35rem;font-size:.9rem}
footer.site .copy{border-top:1px solid rgba(255,255,255,.15);margin-top:1.4rem;padding-top:.9rem;text-align:center;font-size:.82rem;max-width:1080px;margin-left:auto;margin-right:auto}
.badge-foot{font-family:Georgia,serif;font-size:1.2rem;color:#fff;font-weight:700}

/* ---------- Breadcrumb ---------- */
.crumbs{font-size:.88rem;color:var(--ink-soft);margin-bottom:.6rem}
.crumbs a{color:var(--green)}

@media(max-width:640px){
  header.site .bar{padding:.5rem .9rem}
  .brand{font-size:1.15rem}
  nav.primary a{padding:.5rem .65rem;font-size:.86rem}
  body{font-size:16px}
}

/* ---------- Gallery lightbox ---------- */
.gallery figure{cursor:zoom-in;position:relative}
.gallery figure::after{
  content:"🔍";position:absolute;right:.5rem;bottom:.4rem;
  width:2rem;height:2rem;display:grid;place-items:center;
  background:rgba(47,74,43,.78);color:#fff;border-radius:50%;
  font-size:.9rem;opacity:0;transition:opacity .15s;pointer-events:none;
}
.gallery figure:hover::after{opacity:1}
.lightbox{
  position:fixed;inset:0;z-index:100;display:none;
  background:rgba(15,22,12,.94);
  flex-direction:column;align-items:center;justify-content:center;
  padding:clamp(.6rem,2vw,1.5rem);
  backdrop-filter:blur(2px);
}
.lightbox.open{display:flex}
.lightbox .stage{position:relative;max-width:min(1100px,94vw);max-height:82vh;display:flex;align-items:center;justify-content:center}
.lightbox img{max-width:min(1100px,94vw);max-height:82vh;width:auto;height:auto;border-radius:6px;
  box-shadow:0 10px 40px rgba(0,0,0,.6);object-fit:contain}
.lightbox .nav-btn{
  position:absolute;top:50%;transform:translateY(-50%);
  width:clamp(2.4rem,7vw,3.6rem);height:clamp(2.4rem,7vw,3.6rem);
  display:grid;place-items:center;border-radius:50%;
  background:rgba(255,253,247,.12);border:1px solid rgba(255,253,247,.35);
  color:#fff;font-size:1.4rem;cursor:pointer;user-select:none;
  transition:background .15s,transform .1s;z-index:2;
}
.lightbox .nav-btn:hover{background:rgba(255,253,247,.22)}
.lightbox .nav-btn:active{transform:translateY(-50%) scale(.94)}
.lightbox .nav-btn.prev{left:max(.4rem,calc(50% - 44vw - 2rem))}
.lightbox .nav-btn.next{right:max(.4rem,calc(50% - 44vw - 2rem))}
.lightbox .close{
  position:absolute;top:clamp(.6rem,2vw,1.2rem);right:clamp(.6rem,2vw,1.2rem);
  width:clamp(2.4rem,7vw,3.4rem);height:clamp(2.4rem,7vw,3.4rem);
  display:grid;place-items:center;border-radius:50%;
  background:rgba(255,253,247,.12);border:1px solid rgba(255,253,247,.35);
  color:#fff;font-size:1.6rem;cursor:pointer;line-height:1;z-index:3;
}
.lightbox .close:hover{background:rgba(255,253,247,.22)}
.lightbox .caption{
  color:#f0ead6;text-align:center;margin-top:.9rem;
  max-width:min(900px,94vw);font-size:clamp(.9rem,2.2vw,1.05rem);
  line-height:1.5;text-shadow:0 1px 4px rgba(0,0,0,.6);
}
.lightbox .counter{
  color:#cdd6bd;font-size:.82rem;letter-spacing:.08em;margin-top:.4rem;
}
@media(max-width:640px){
  .lightbox .nav-btn.prev{left:.4rem}
  .lightbox .nav-btn.next{right:.4rem}
}
