/* =========================================================
   datareforest.org — estilos compartidos
   Paleta inspirada en reforestemos.org
   ========================================================= */

:root {
  --green-primary: #6FA744;
  --green-mid: #87B547;
  --green-dark: #2D5A2D;
  --green-darker: #1F3F1F;
  --green-soft: #E8F0DD;
  --green-soft-2: #F4F8EC;
  --beige: #F5F2EB;
  --beige-dark: #E7E2D5;
  --text: #2C2C2C;
  --text-soft: #5C5C5C;
  --text-muted: #8A8A8A;
  --white: #FFFFFF;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius: 6px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-primary); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ECECEC;
}
.site-header .nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--green-darker);
  letter-spacing: -0.3px;
}
.brand-logo {
  width: 38px;
  height: 38px;
  background: var(--green-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
}
.brand-logo svg { width: 22px; height: 22px; fill: white; }
.brand-name b { color: var(--green-primary); }

nav.main-nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
}
nav.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
nav.main-nav a.cta {
  background: var(--green-primary);
  color: white;
  padding: 10px 18px;
  border-radius: 4px;
}
nav.main-nav a.cta:hover { background: var(--green-dark); color: white; }

.flags {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: 8px;
}
.flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
  border: 1px solid #ddd;
}
.flag.cl { background: linear-gradient(to bottom, #fff 50%, #D52B1E 50%); position: relative; }
.flag.cl::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 40%; height: 50%; background: #0039A6;
}
.flag.cl::after {
  content: '★'; position: absolute; left: 4px; top: -2px;
  color: white; font-size: 11px;
}
.flag.pe { background: linear-gradient(to right, #D91023 33%, #fff 33%, #fff 66%, #D91023 66%); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

@media (max-width: 880px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    padding: 16px 24px;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    border-bottom: 1px solid #eee;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a.cta { text-align: center; }
  .menu-toggle { display: block; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 580px;
  /* Capas: 1) gradiente overlay, 2) foto Unsplash, 3) SVG fallback (siempre visible) — la foto cubre el SVG cuando carga */
  background-color: #1f3f1f;
  background-image:
    linear-gradient(to bottom, rgba(0,30,15,0.55), rgba(0,30,15,0.35)),
    url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=2000&q=80'),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 800' preserveAspectRatio='xMidYMid slice'><defs><linearGradient id='sky' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23456c4a'/><stop offset='0.55' stop-color='%23254028'/><stop offset='1' stop-color='%23131e15'/></linearGradient><linearGradient id='leaf' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%237ba35a'/><stop offset='1' stop-color='%231f3f1f'/></linearGradient></defs><rect width='1600' height='800' fill='url(%23sky)'/><g opacity='0.85'><ellipse cx='200' cy='620' rx='140' ry='170' fill='url(%23leaf)'/><rect x='190' y='720' width='20' height='80' fill='%23241a10'/><ellipse cx='420' cy='560' rx='180' ry='220' fill='url(%23leaf)'/><rect x='410' y='720' width='22' height='80' fill='%23241a10'/><ellipse cx='720' cy='520' rx='220' ry='250' fill='url(%23leaf)'/><rect x='708' y='720' width='28' height='80' fill='%23241a10'/><ellipse cx='1050' cy='560' rx='200' ry='240' fill='url(%23leaf)'/><rect x='1038' y='720' width='26' height='80' fill='%23241a10'/><ellipse cx='1340' cy='600' rx='170' ry='200' fill='url(%23leaf)'/><rect x='1328' y='720' width='22' height='80' fill='%23241a10'/></g><g fill='%23A8DC6F' opacity='0.4'><circle cx='1280' cy='150' r='2'/><circle cx='400' cy='90' r='2'/><circle cx='800' cy='60' r='2'/></g></svg>");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--green-primary); color: white; }
.btn-primary:hover { background: var(--green-dark); color: white; }
.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}
.btn-outline:hover { background: white; color: var(--green-darker); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost:hover { background: var(--green-dark); color: white; }

/* ---------- Sections ---------- */
section { padding: 80px 24px; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--green-darker);
  margin: 0 0 14px;
  letter-spacing: -0.3px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 0 40px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 8px;
}

/* ---------- Stats ---------- */
.stats-strip {
  background: var(--green-soft);
  padding: 56px 24px;
}
.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.stats-grid .lead-text {
  font-size: 17px;
  color: var(--green-darker);
  font-weight: 500;
  line-height: 1.5;
}
.stats-grid .lead-text strong { display: block; font-size: 22px; margin-bottom: 6px; font-weight: 800; }
.stat-block { text-align: center; }
.stat-block .num {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-block .lbl {
  font-size: 13px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .lead-text { grid-column: 1 / -1; text-align: center; }
}

/* ---------- Map section ---------- */
.map-section {
  background: var(--green-darker);
  color: white;
  padding: 80px 24px;
}
.map-section .section-title { color: white; }
.map-section .section-sub { color: rgba(255,255,255,0.78); }
.map-wrap {
  position: relative;
  background:
    linear-gradient(to bottom, rgba(0,30,15,0.55), rgba(0,30,15,0.55)),
    url('https://images.unsplash.com/photo-1473773508845-188df298d2d1?auto=format&fit=crop&w=2000&q=80') center/cover;
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  overflow: hidden;
}
.country-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.country-tab {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 18px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.country-tab:hover { background: rgba(255,255,255,0.2); }
.country-tab.active { background: var(--green-primary); border-color: var(--green-primary); }

.country-map {
  width: 100%;
  display: none;
  height: 540px;
  position: relative;
}
.country-map.active { display: block; }
.country-map svg {
  width: 100%;
  height: 100%;
  display: block;
}
.country-map svg path.region {
  fill: rgba(135, 181, 71, 0.55);
  stroke: rgba(255,255,255,0.7);
  stroke-width: 0.6;
  cursor: pointer;
  transition: fill 0.2s, transform 0.2s;
}
.country-map svg path.region:hover {
  fill: var(--green-primary);
}
.country-map svg path.region.has-trees {
  fill: rgba(255, 211, 81, 0.55);
}
.country-map svg path.region.has-trees:hover { fill: #FFCB47; }

.region-tooltip {
  position: absolute;
  background: white;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  pointer-events: none;
  box-shadow: var(--shadow-strong);
  display: none;
  min-width: 180px;
  z-index: 10;
}
.region-tooltip h4 { margin: 0 0 4px; color: var(--green-darker); font-size: 14px; }
.region-tooltip .small { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; }

.big-counter {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(135,181,71,0.95);
  color: white;
  padding: 16px 22px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 5;
}
.big-counter .n {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}
.big-counter .l { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.9; margin-top: 4px; }

/* ---------- Recent activity feed ---------- */
.activity-section {
  background: var(--beige);
  padding: 70px 24px;
}
.activity-feed {
  max-width: 880px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.activity-feed-header {
  background: var(--green-primary);
  color: white;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #FFCB47; margin-right: 6px; animation: pulse 1.4s infinite; display: inline-block; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.3 } }

.activity-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.activity-list li {
  padding: 14px 22px;
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--beige-dark);
  font-size: 14px;
}
.activity-list li:last-child { border-bottom: none; }
.activity-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-darker);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.activity-text strong { color: var(--green-darker); }
.activity-text .when { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Cards / Categorias / Path tiles ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.option-card {
  background: white;
  border: 2px solid var(--beige-dark);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}
.option-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
.option-card .icon {
  width: 64px; height: 64px;
  background: var(--green-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--green-primary);
}
.option-card .icon svg { width: 30px; height: 30px; }
.option-card h3 {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 4px 0 6px;
  color: var(--green-darker);
  letter-spacing: 0.4px;
}
.option-card p { font-size: 14px; color: var(--text-soft); margin: 0; }
.option-card.selected {
  border-color: var(--green-primary);
  background: var(--green-soft-2);
}

/* ---------- Wizard / Steps ---------- */
.wizard-shell {
  background: var(--beige);
  min-height: calc(100vh - 70px);
  padding: 50px 24px 80px;
}
.wizard-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.steps-bar .step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 600;
}
.steps-bar .step .num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: grid; place-items: center;
  font-size: 12px;
  background: white;
}
.steps-bar .step.done .num { background: var(--green-primary); border-color: var(--green-primary); color: white; }
.steps-bar .step.active { color: var(--green-darker); }
.steps-bar .step.active .num { border-color: var(--green-primary); color: var(--green-primary); }
.steps-bar .sep { width: 28px; height: 2px; background: var(--beige-dark); }

.wizard-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 50px 40px;
}
.wizard-card h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 8px;
  color: var(--green-darker);
  text-align: center;
}
.wizard-card .sub {
  text-align: center;
  color: var(--text-soft);
  margin: 0 0 36px;
  font-size: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  font-weight: 600;
}
.back-link:hover { color: var(--green-primary); }

/* ---------- Tree picker ---------- */
.tree-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.tree-card {
  background: white;
  border: 2px solid var(--beige-dark);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.tree-card:hover, .tree-card.selected {
  border-color: var(--green-primary);
  background: var(--green-soft-2);
  transform: translateY(-3px);
}
.tree-card .leaf {
  width: 70px; height: 70px;
  background: var(--green-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--green-primary);
}
.tree-card h4 { margin: 0; color: var(--green-darker); font-size: 17px; }
.tree-card .sci { font-style: italic; color: var(--text-muted); font-size: 12px; }
.tree-card .price { font-weight: 800; font-size: 22px; color: var(--green-primary); margin-top: 4px; }
.tree-card .zone-label {
  display: inline-block;
  font-size: 11px;
  background: var(--beige);
  color: var(--text-soft);
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Quantity / cart ---------- */
.cart-summary {
  background: var(--green-soft-2);
  border: 1px solid var(--green-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cart-summary .qty-control { display: flex; align-items: center; gap: 14px; }
.qty-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--green-primary);
  background: white;
  color: var(--green-primary);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: grid; place-items: center;
}
.qty-btn:hover { background: var(--green-primary); color: white; }
.qty-num { font-size: 26px; font-weight: 800; min-width: 40px; text-align: center; }

.total-amount { font-size: 26px; font-weight: 800; color: var(--green-darker); }
.total-amount small { font-size: 13px; color: var(--text-muted); display: block; font-weight: 500; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-darker);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: white;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-primary);
}
.field textarea { min-height: 100px; resize: vertical; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Forest list ---------- */
.forest-list { display: grid; gap: 12px; max-height: 440px; overflow-y: auto; padding-right: 4px; }
.forest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border: 2px solid var(--beige-dark);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
}
.forest-row:hover, .forest-row.selected {
  border-color: var(--green-primary);
  background: var(--green-soft-2);
}
.forest-row h4 { margin: 0 0 2px; color: var(--green-darker); font-size: 16px; }
.forest-row .meta { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.forest-row .count {
  background: var(--green-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  min-width: 64px;
  text-align: center;
}

/* ---------- Companies & Volunteers ---------- */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-primary);
}
.feature-card h3 { color: var(--green-darker); margin: 6px 0 10px; font-size: 19px; }
.feature-card p { color: var(--text-soft); font-size: 14px; margin: 0; }
.feature-card .icn { width: 46px; height: 46px; background: var(--green-soft); border-radius: 8px; display: grid; place-items: center; color: var(--green-primary); }

.calc-card {
  background: var(--green-darker);
  color: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 40px;
}
.calc-card h3 { margin: 0 0 6px; font-size: 22px; }
.calc-card .calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 600px) { .calc-card .calc-row { grid-template-columns: 1fr; } }
.calc-card label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.8; display: block; margin-bottom: 4px; }
.calc-card input, .calc-card select {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 10px 12px;
  border-radius: var(--radius);
  width: 100%;
  font-family: inherit;
}
/* Las <option> nativas se renderizan en panel del SO con fondo blanco; forzamos texto oscuro para que se lean */
.calc-card select option {
  background: white;
  color: var(--text);
}
.calc-result { background: var(--green-primary); padding: 18px; border-radius: 8px; margin-top: 18px; text-align: center; }
.calc-result .n { font-size: 32px; font-weight: 800; }
.calc-result .l { font-size: 12px; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-darker);
  color: rgba(255,255,255,0.85);
  padding: 60px 24px 30px;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-grid h5 { color: white; font-size: 13px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-grid a { display: block; color: rgba(255,255,255,0.7); padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: white; }
.footer-bottom {
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Misc helpers ---------- */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-12 { margin-bottom: 12px; }
.divider { height: 1px; background: var(--beige-dark); margin: 30px 0; }
.actions-bar { display: flex; gap: 12px; justify-content: flex-end; margin-top: 30px; flex-wrap: wrap; }
.actions-bar .btn { min-width: 160px; }

/* ---------- Tree grid ---------- */
.tree-grid-shell {
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}
.tree-grid-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 6px 14px;
  border-bottom: 1px solid var(--beige-dark);
  margin-bottom: 14px;
}
.tree-grid-header .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 700;
}
.tree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
  gap: 4px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px;
}
.tree-grid svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  cursor: default;
  transition: transform 0.15s;
}
.tree-grid svg.planted { color: var(--green-primary); }
.tree-grid svg.empty   { color: #D7D5CE; }
.tree-grid svg.new     {
  color: var(--green-primary);
  animation: popIn 0.6s ease-out;
}
@keyframes popIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 1px solid var(--beige-dark);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--green-darker);
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--green-primary);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans {
  padding: 0 22px 22px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}
.faq-item:hover { border-color: var(--green-primary); }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.testimonial {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -12px;
  left: 22px;
  font-size: 80px;
  color: var(--green-primary);
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial p {
  margin: 14px 0 18px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
  font-style: italic;
}
.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.testimonial .who .av {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-darker);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.testimonial .who strong { display: block; color: var(--green-darker); }
.testimonial .who span { color: var(--text-muted); font-size: 12px; }

/* ---------- Partners strip ---------- */
.partners-strip {
  background: white;
  padding: 50px 24px;
  border-top: 1px solid var(--beige-dark);
  border-bottom: 1px solid var(--beige-dark);
}
.partners-strip .label {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 24px;
}
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0.65;
}
.partner-logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--green-darker);
  letter-spacing: -0.3px;
  font-family: Georgia, serif;
  font-style: italic;
}

/* ---------- Newsletter ---------- */
.newsletter-band {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: white;
  padding: 60px 24px;
  text-align: center;
}
.newsletter-band h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 8px;
  font-weight: 800;
}
.newsletter-band p { opacity: 0.9; margin: 0 0 26px; max-width: 600px; margin-left: auto; margin-right: auto; }
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  border-radius: 6px;
  border: 0;
  font-size: 15px;
  font-family: inherit;
}
.newsletter-form button {
  background: var(--green-darker);
  color: white;
  border: 0;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.newsletter-form button:hover { background: black; }

/* ---------- Scroll-triggered reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Certificate ---------- */
.cert-canvas-wrap {
  background: white;
  border: 8px double var(--green-primary);
  padding: 40px 36px;
  border-radius: 4px;
  margin-top: 30px;
  text-align: center;
  font-family: Georgia, serif;
  position: relative;
}
.cert-canvas-wrap::before, .cert-canvas-wrap::after {
  content: '';
  position: absolute;
  width: 60px; height: 60px;
  background: var(--green-soft);
  border-radius: 50%;
  z-index: -1;
}
.cert-canvas-wrap::before { top: -20px; left: -20px; }
.cert-canvas-wrap::after { bottom: -20px; right: -20px; }
.cert-canvas-wrap .seal {
  position: absolute;
  bottom: 18px; right: 22px;
  width: 80px; height: 80px;
  border: 3px solid var(--green-primary);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--green-primary);
  font-weight: 800;
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: rotate(-12deg);
  background: white;
}
.cert-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
}
.cert-title {
  font-size: 36px;
  color: var(--green-darker);
  margin: 6px 0 18px;
  letter-spacing: -1px;
}
.cert-name {
  font-size: 30px;
  color: var(--green-darker);
  font-style: italic;
  margin: 18px 0;
  border-bottom: 1px solid var(--beige-dark);
  padding-bottom: 12px;
  display: inline-block;
  min-width: 60%;
}
.cert-text {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}
.cert-text strong { color: var(--green-darker); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green-darker);
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  max-width: 360px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Print / Receipt ---------- */
.receipt {
  background: white;
  border: 2px dashed var(--green-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 580px;
  margin: 30px auto;
  text-align: left;
}
.receipt .check {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green-primary);
  color: white;
  display: grid; place-items: center;
  margin: 0 auto 20px;
  font-size: 38px;
}
.receipt h2 { color: var(--green-darker); margin: 0 0 8px; text-align: center; font-size: 26px; }
.receipt p.lead-r { text-align: center; color: var(--text-soft); margin: 0 0 30px; }
.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--beige-dark);
  font-size: 14px;
}
.receipt-row:last-of-type { border-bottom: none; }
.receipt-row strong { color: var(--green-darker); }

/* ---------- Page heroes ---------- */
.page-hero {
  background: var(--green-darker);
  color: white;
  padding: 70px 24px 50px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 10px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 720px; margin: 0 auto; }

/* ---------- Media queries final ---------- */
@media (max-width: 640px) {
  section { padding: 60px 18px; }
  .wizard-card { padding: 30px 22px; }
  .stats-strip { padding: 40px 20px; }
}
form 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--text-soft); font-size: 14px; line-height: 1.6; }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; gap: 4px; align-items: center; margin-left: 6px; padding: 3px; background: var(--beige); border-radius: 20px; }
.lang-btn { background: transparent; border: none; cursor: pointer; padding: 5px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; border-radius: 16px; color: var(--text-soft); transition: 0.2s; }
.lang-btn.active { background: var(--green-primary); color: white; box-shadow: 0 2px 6px rgba(111,167,68,0.3); }
.lang-btn:hover:not(.active) { background: rgba(255,255,255,0.6); }

/* ---------- News / Blog ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.news-card { background: white; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); color: inherit; }
.news-card .news-img { height: 180px; background-size: cover; background-position: center; background-color: var(--green-soft); position: relative; }
.news-card .news-cat { position: absolute; top: 12px; left: 12px; background: var(--green-primary); color: white; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.news-card .news-cat.incendios { background: #C84B2E; }
.news-card .news-cat.empresas { background: #2D5A2D; }
.news-card .news-cat.comunidad { background: #6FA744; }
.news-card .news-cat.lugares { background: #4d7d3a; }
.news-card .news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--green-darker); line-height: 1.35; }
.news-card .news-meta { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.news-card p { font-size: 13px; color: var(--text-soft); margin: 0 0 14px; flex: 1; }
.news-card .news-link { font-size: 13px; color: var(--green-primary); font-weight: 600; }

.news-detail { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.news-detail .hero-img { height: 360px; border-radius: 14px; background-size: cover; background-position: center; margin-bottom: 30px; }
.news-detail h1 { font-size: 36px; color: var(--green-darker); line-height: 1.15; margin: 0 0 14px; }
.news-detail .news-meta-line { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--beige-dark); }
.news-detail .news-content { font-size: 16px; line-height: 1.7; color: var(--text); }
.news-detail .news-content p { margin: 0 0 18px; }

/* ---------- Landowners ---------- */
.land-hero { background: linear-gradient(135deg, var(--green-darker), var(--green-dark)); color: white; padding: 90px 24px 60px; text-align: center; }
.land-hero h1 { font-size: 42px; line-height: 1.1; margin: 0 0 14px; max-width: 720px; margin-left: auto; margin-right: auto; }
.land-hero p { font-size: 18px; opacity: 0.85; max-width: 640px; margin: 0 auto; }

/* ---------- Logo upload ---------- */
.logo-upload { border: 2px dashed var(--green-primary); padding: 30px; border-radius: 12px; text-align: center; cursor: pointer; transition: 0.2s; background: var(--green-soft-2); }
.logo-upload:hover { background: var(--green-soft); }
.logo-upload input { display: none; }
.logo-preview { max-width: 160px; max-height: 80px; margin: 0 auto 10px; }

/* ---------- Species distribution chart ---------- */
.species-chart { display: flex; flex-direction: column; gap: 10px; }
.species-row { display: flex; align-items: center; gap: 12px; }
.species-row .species-name { flex: 0 0 130px; font-size: 13px; font-weight: 600; color: var(--green-darker); }
.species-row .species-bar { flex: 1; height: 22px; background: var(--beige); border-radius: 11px; overflow: hidden; position: relative; }
.species-row .species-fill { height: 100%; background: linear-gradient(90deg, var(--green-mid), var(--green-primary)); border-radius: 11px; transition: width 1s ease-out; }
.species-row .species-count { flex: 0 0 70px; text-align: right; font-size: 13px; font-weight: 700; color: var(--green-primary); }

/* ---------- New certificate preview ---------- */
.cert-preview-wrap { background: var(--beige); padding: 30px; border-radius: 14px; text-align: center; box-shadow: var(--shadow); }
.cert-preview-wrap canvas { max-width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-strong); }

/* ---------- PayPal ---------- */
.paypal-wrap { margin-top: 20px; padding: 20px; background: var(--beige); border-radius: 12px; }
.paypal-wrap .pp-info { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ---------- Pie chart species ---------- */
.species-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; font-size: 12px; }
.species-legend .lg-item { display: flex; align-items: center; gap: 8px; }
.species-legend .lg-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Tree Catalog Cards ---------- */
.tree-card-rich { background:white; border-radius:14px; overflow:hidden; box-shadow:var(--shadow); transition: transform 0.25s, box-shadow 0.25s; display:flex; flex-direction:column; text-decoration:none; color:inherit; }
.tree-card-rich:hover { transform: translateY(-6px); box-shadow:var(--shadow-strong); color:inherit; }
.tree-card-rich .tree-img {
  height:200px;
  position:relative;
  overflow:hidden;
  background: #2d5a2b url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='xMidYMid slice'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%2386c06b'/><stop offset='1' stop-color='%23295c2a'/></linearGradient></defs><rect width='400' height='200' fill='url(%23g)'/><g fill='%231F3F1F' opacity='0.55'><circle cx='90' cy='130' r='38'/><rect x='86' y='150' width='8' height='30'/><circle cx='200' cy='110' r='52'/><rect x='196' y='140' width='8' height='40'/><circle cx='320' cy='135' r='42'/><rect x='316' y='160' width='8' height='28'/></g></svg>") center/cover no-repeat;
}
.tree-card-rich .tree-img img.tree-photo {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
  transition: opacity 0.3s ease;
}
.tree-card-rich .tree-img img.tree-photo[data-failed="1"] { display:none; }
.tree-zone-tag { position:absolute; top:12px; left:12px; background:rgba(255,255,255,0.95); color:var(--green-darker); padding:5px 12px; border-radius:20px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; }
.tree-zone-tag.zone-norte { background:#FFEFC2; color:#7a5c00; }
.tree-zone-tag.zone-centro { background:#D5EAB1; color:#3a5a14; }
.tree-zone-tag.zone-sur { background:#A8DC9F; color:#1F3F1F; }
.tree-card-body { padding:22px; flex:1; display:flex; flex-direction:column; }
.tree-card-body h3 { margin:0 0 4px; font-size:20px; color:var(--green-darker); }
.tree-card-body .tree-sci { font-style:italic; font-size:13px; color:var(--text-muted); margin-bottom:14px; }
.tree-stats { display:grid; grid-template-columns: repeat(3, 1fr); gap:8px; padding:14px 0; border-top:1px solid var(--beige-dark); border-bottom:1px solid var(--beige-dark); margin-bottom:14px; font-size:11px; color:var(--text-soft); }
.tree-stats > div { display:flex; align-items:center; gap:6px; }
.stat-icon { font-size:14px; }
.tree-card-foot { display:flex; justify-content:space-between; align-items:center; margin-top:auto; }
.tree-price { font-size:22px; font-weight:800; color:var(--green-primary); }
.tree-link { font-size:13px; color:var(--green-darker); font-weight:600; }

/* ---------- Tree Hero (arbol.html) ---------- */
.tree-hero { display:grid; grid-template-columns: 1fr 1fr; min-height:420px; }
.tree-hero-inner { background: linear-gradient(135deg, var(--green-darker), var(--green-dark)); color:white; padding:60px 50px; display:flex; flex-direction:column; justify-content:center; }
.tree-hero-inner .eyebrow { color:#A8DC6F; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; }
.tree-hero-inner h1 { font-size:54px; line-height:1.05; margin:14px 0 8px; }
.tree-hero-sci { font-size:18px; font-style:italic; opacity:0.85; margin-bottom:30px; }
.tree-hero-stats { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.15); }
.tree-hero-stats .stat-num { font-size:24px; font-weight:800; color:#A8DC6F; }
.tree-hero-stats .stat-lbl { font-size:11px; opacity:0.7; text-transform:uppercase; letter-spacing:0.5px; }
.tree-hero-img {
  position:relative; overflow:hidden;
  background: #2d5a2b url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' preserveAspectRatio='xMidYMid slice'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%2386c06b'/><stop offset='1' stop-color='%23295c2a'/></linearGradient></defs><rect width='600' height='400' fill='url(%23g)'/><g fill='%231F3F1F' opacity='0.5'><circle cx='150' cy='280' r='70'/><rect x='144' y='320' width='12' height='60'/><circle cx='320' cy='240' r='90'/><rect x='314' y='300' width='12' height='80'/><circle cx='480' cy='285' r='75'/><rect x='474' y='330' width='12' height='55'/></g></svg>") center/cover no-repeat;
}
.tree-hero-img img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
}
.tree-hero-img img[data-failed="1"] { display:none; }
.back-link { color:#A8DC6F; font-size:13px; font-weight:600; margin-bottom:18px; display:inline-block; }
.back-link:hover { color:white; }
@media (max-width: 880px) { .tree-hero { grid-template-columns: 1fr; } .tree-hero-inner h1 { font-size:38px; } .tree-hero-img { min-height:240px; } }

/* ---------- Info cards (arbol.html, terrenos.html) ---------- */
.info-card { background:white; border-radius:14px; padding:24px; box-shadow:var(--shadow); display:flex; gap:18px; align-items:flex-start; }
.info-card .info-icon { background:var(--green-soft); color:var(--green-primary); width:48px; height:48px; border-radius:12px; display:grid; place-items:center; font-size:22px; flex-shrink:0; }
.info-card h3 { margin:0 0 6px; font-size:16px; color:var(--green-darker); }
.info-card p { margin:0; font-size:14px; color:var(--text-soft); line-height:1.55; }
.tree-detail-grid { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 880px) { .tree-detail-grid { grid-template-columns: 1fr; } }

/* ---------- Forest cover (bosque.html /entel style) ---------- */
.forest-cover { position:relative; min-height:320px; padding:60px 24px; background: linear-gradient(135deg, #2D5A2D, #1F3F1F), url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=2000&q=70') center/cover; color:white; overflow:hidden; }
.forest-cover-overlay { position:absolute; inset:0; background:linear-gradient(180deg, rgba(31,63,31,0.55), rgba(31,63,31,0.85)); }
.forest-cover-inner { position:relative; max-width:1240px; margin:0 auto; }
.forest-brand-block { display:flex; align-items:center; gap:24px; margin-bottom:30px; }
.forest-logo-host { display:flex; align-items:center; }
.forest-cover h1 { font-size:42px; margin:6px 0 4px; line-height:1.1; }
.forest-cover .eyebrow { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; }
.forest-cover p { opacity:0.85; margin:0; }
.forest-stats-row { display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; padding:24px; background:rgba(0,0,0,0.25); border-radius:14px; backdrop-filter: blur(6px); }
.forest-stats-row > div { text-align:center; }
.forest-stats-row .num { font-size:28px; font-weight:800; color:#A8DC6F; line-height:1; }
.forest-stats-row .lbl { font-size:11px; opacity:0.75; text-transform:uppercase; letter-spacing:0.5px; margin-top:4px; }
.forest-detail-grid { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 880px) { .forest-detail-grid, .terreno-grid { grid-template-columns: 1fr; } .forest-stats-row { grid-template-columns: repeat(2, 1fr); } .forest-cover h1 { font-size:30px; } }
@media (max-width: 880px) { .tree-detail-grid > aside { position:static !important; } }

/* Clickable empty trees */
.tree-grid svg.clickable { cursor:pointer; transition: transform 0.15s, color 0.15s; }
.tree-grid svg.clickable:hover { color:var(--green-primary); transform:scale(1.4); }

/* ---------- Form components ---------- */
.form-label { display:block; font-size:12px; font-weight:600; color:var(--text-soft); text-transform:uppercase; letter-spacing:0.4px; margin-bottom:6px; }
.form-input { width:100%; padding:12px 14px; border:1px solid var(--beige-dark); border-radius:8px; font-size:14px; font-family:inherit; color:var(--text); background:white; transition:0.2s; }
.form-input:focus { outline:none; border-color:var(--green-primary); box-shadow:0 0 0 3px rgba(111,167,68,0.12); }
textarea.form-input { resize:vertical; min-height:80px; }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Qty control ---------- */
.qty-control { display:inline-flex; align-items:center; gap:0; border:1px solid var(--beige-dark); border-radius:10px; overflow:hidden; }
.qty-btn { background:var(--beige); border:none; padding:10px 16px; font-size:18px; font-weight:700; cursor:pointer; color:var(--green-darker); transition:0.2s; }
.qty-btn:hover { background:var(--green-soft); }
.qty-num { padding:10px 22px; font-size:18px; font-weight:700; color:var(--green-darker); min-width:50px; text-align:center; }

/* ---------- Buttons fallbacks ---------- */
.btn { display:inline-block; padding:10px 18px; font-size:14px; font-weight:600; border-radius:6px; border:none; cursor:pointer; text-decoration:none; transition:0.2s; }
.btn-primary { background:var(--green-primary); color:white; }
.btn-primary:hover { background:var(--green-dark); color:white; }
.btn-ghost { background:transparent; color:var(--green-darker); border:1px solid var(--beige-dark); }
.btn-ghost:hover { background:var(--green-soft); }
.btn-outline { background:transparent; color:white; border:1px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background:rgba(255,255,255,0.1); color:white; }

/* ---------- Stat block ---------- */
.stat-block { background:white; padding:24px; border-radius:14px; box-shadow:var(--shadow); text-align:center; }
.stat-block .num { font-size:36px; font-weight:800; color:var(--green-primary); line-height:1; }
.stat-block .lbl { font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.5px; margin-top:6px; }

/* ---------- Country tabs ---------- */
.country-tab { background:white; border:1px solid var(--beige-dark); padding:8px 16px; border-radius:20px; font-size:13px; font-weight:600; cursor:pointer; color:var(--text-soft); transition:0.2s; display:inline-flex; align-items:center; gap:6px; }
.country-tab.active { background:var(--green-primary); color:white; border-color:var(--green-primary); }
.country-tab:hover:not(.active) { border-color:var(--green-primary); color:var(--green-primary); }

/* ---------- Toast ---------- */
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(100px); background:var(--green-darker); color:white; padding:14px 22px; border-radius:8px; box-shadow:var(--shadow-strong); font-size:14px; opacity:0; transition: 0.3s; z-index:200; }
.toast.show { transform:translateX(-50%) translateY(0); opacity:1; }

/* ---------- i18n language toggle ---------- */
html[lang="en"] .t-es { display: none !important; }
html[lang="es"] .t-en { display: none !important; }
