@charset "UTF-8";
/* Public site. Same family as the farm app: deep green, lime accent, cream paper.
   Every color, size and space comes from these tokens. */
:root {
  --c-bg: #eceadf;          /* page background (app --bg) */
  --c-surface: #ffffff;     /* cards (app --papel) */
  --c-surface-2: #f4f1e5;   /* alternate sections (app --crema) */
  --c-ink: #1c1c17;         /* body text (app --tinta) */
  --c-muted: #555043;       /* secondary text, AA on bg and surface */
  --c-line: #d9d3c2;        /* decorative borders and separators */
  --c-control-line: #7d7562; /* edge of form fields, chips and checkboxes: >= 3:1 (WCAG 1.4.11) */
  --c-heading: #0d4f3c;     /* headings and links (app --verde) */
  --c-brand: #0d4f3c;       /* solid green buttons */
  --c-on-brand: #ffffff;
  --c-accent: #dcf47f;      /* the one accent (app --lima) */
  --c-on-accent: #26340a;
  --c-hero-1: #08382a;      /* header gradient (app --verde-osc) */
  --c-hero-2: #0d4f3c;
  --c-hero-ink: #ffffff;
  --c-hero-muted: #cfe5da;
  --c-ok-bg: #dff0e4;  --c-ok-ink: #1a5640;   /* «Disponible» */
  --c-dev-bg: #fbeed2; --c-dev-ink: #6e4306;  /* «En desarrollo» */
  --c-error: #a63f27;       /* only for form errors */
  --c-focus: #1a5fb4;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --step--1: .875rem; --step-0: 1rem; --step-1: 1.125rem; --step-2: 1.375rem; --step-3: 1.75rem; --step-4: clamp(1.9rem, 6vw, 2.9rem);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px;
  --radius: 14px;
  --gutter: 16px;
  --tap: 48px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #0e1713; --c-surface: #15211b; --c-surface-2: #121d18; --c-ink: #e7eee9; --c-muted: #a9bbb1;
    --c-line: #2b3c33; --c-control-line: #6b8576; --c-heading: #bfe6d2; --c-brand: #2f7a5f; --c-on-brand: #ffffff;
    --c-hero-1: #05231a; --c-hero-2: #0a3a2c; --c-hero-muted: #bcd8ca;
    --c-ok-bg: #173a2b; --c-ok-ink: #b5ecd0; --c-dev-bg: #3b2c12; --c-dev-ink: #f6d79b;
    --c-error: #ff9d85; --c-focus: #9ecbff;
  }
}
:root[data-theme="dark"] {
  --c-bg: #0e1713; --c-surface: #15211b; --c-surface-2: #121d18; --c-ink: #e7eee9; --c-muted: #a9bbb1;
  --c-line: #2b3c33; --c-control-line: #6b8576; --c-heading: #bfe6d2; --c-brand: #2f7a5f; --c-on-brand: #ffffff;
  --c-hero-1: #05231a; --c-hero-2: #0a3a2c; --c-hero-muted: #bcd8ca;
  --c-ok-bg: #173a2b; --c-ok-ink: #b5ecd0; --c-dev-bg: #3b2c12; --c-dev-ink: #f6d79b;
  --c-error: #ff9d85; --c-focus: #9ecbff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: var(--step-0)/1.55 var(--font); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--s2); color: var(--c-heading); letter-spacing: -.01em; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
h4 { font-size: var(--step-0); font-weight: 700; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0; padding: 0; }
a { color: var(--c-heading); text-underline-offset: 3px; }
img, video, svg, canvas { display: block; max-width: 100%; }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .section--band :focus-visible { outline-color: var(--c-accent); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 40px; height: 40px; }

.skip { position: absolute; left: var(--s2); top: -100px; min-height: var(--tap); display: inline-flex; align-items: center; z-index: 50; background: var(--c-accent); color: var(--c-on-accent); padding: var(--s1) var(--s2); border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: var(--s1); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: var(--s6); }
.section--alt { background: var(--c-surface-2); }
.muted { color: var(--c-muted); font-size: var(--step--1); }
[hidden] { display: none !important; }

/* ---- buttons --------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); margin: var(--s3) 0 var(--s1); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: var(--tap); padding: 12px var(--s3); border-radius: var(--radius); border: 2px solid transparent;
  font: 700 var(--step-0)/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
}
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn--ghost { background: transparent; color: var(--c-hero-ink); border-color: rgba(255, 255, 255, .55); }
.btn--secondary { background: var(--c-brand); color: var(--c-on-brand); }
.btn--block { width: 100%; }
.btn:hover:not([aria-disabled="true"]):not(:disabled) { filter: brightness(1.06); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.inline-link:not([href]) { color: var(--c-muted); text-decoration: none; }
.pending { font-size: var(--step--1); color: inherit; opacity: .85; margin: 0 0 var(--s1); }

/* ---- status tags: shaped like an ear tag, the farm's own label --------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  padding: 3px 10px 3px 8px; border-radius: 6px 12px 12px 6px; white-space: nowrap; vertical-align: middle;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 2px solid currentColor; }
.tag--ok { background: var(--c-ok-bg); color: var(--c-ok-ink); }
.tag--dev { background: var(--c-dev-bg); color: var(--c-dev-ink); }
.tag--soon { background: var(--c-surface-2); color: var(--c-heading); box-shadow: inset 0 0 0 1px var(--c-control-line); }
.notice { border-left: 4px solid var(--c-accent); padding: var(--s1) var(--s2); margin: 0 0 var(--s2); font-weight: 600; }

/* ---- header -------------------------------------------------------------- */
.hero { background: radial-gradient(900px 420px at 85% -10%, rgba(220, 244, 127, .16), transparent), linear-gradient(160deg, var(--c-hero-1), var(--c-hero-2)); color: var(--c-hero-ink); }
.hero h1 { color: var(--c-hero-ink); font-size: var(--step-4); font-weight: 800; letter-spacing: -.02em; margin-bottom: var(--s2); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s2); padding-block: var(--s2) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--c-hero-ink); text-decoration: none; font-weight: 800; font-size: var(--step-1); }
.brand-mark { width: 36px; height: 36px; padding: 6px; border-radius: 10px; background: var(--c-accent); fill: none; stroke: var(--c-on-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s1); }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: 10px; color: var(--c-hero-muted); text-decoration: none; font-weight: 600; font-size: var(--step--1); border-radius: 10px; }
.nav a:hover { color: var(--c-hero-ink); background: rgba(255, 255, 255, .08); }
.hero-grid { display: grid; gap: var(--s3); padding-block: var(--s4) var(--s6); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--c-accent); margin-bottom: var(--s1); }
.lead { font-size: var(--step-1); color: var(--c-hero-muted); max-width: 46ch; }
.hero .pending { color: var(--c-hero-muted); }

.hero-scene { position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 560px; margin-inline: auto; border-radius: calc(var(--radius) * 1.5); overflow: hidden; }
.hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; z-index: 1; }
.scene-canvas:active { cursor: grabbing; }
.hero-scene.has-3d .hero-fallback, .hero-scene.has-3d .hero-img { visibility: hidden; }
.scene-toggle {
  position: absolute; right: var(--s1); bottom: var(--s1); z-index: 2; min-height: var(--tap); padding: 8px 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(5, 35, 26, .78); color: #fff;
  font: 600 var(--step--1)/1.2 var(--font); cursor: pointer;
}
.f-water { fill: #2f7f9a; opacity: .55; } .f-rock { fill: #5e5446; } .f-dirt { fill: #8a6a43; } .f-grass { fill: #5f9e4b; }
.f-pond { fill: #3b9bb8; } .f-fish { fill: #e0782f; } .f-barn { fill: #a4472f; } .f-roof { fill: #3d3a33; } .f-door { fill: #6b4a2c; }
.f-tree { fill: #2f7a5f; } .f-animal { fill: #f1eee4; }

/* ---- content blocks --------------------------------------------------- */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s3) var(--s2); }
.split { list-style: none; display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.split .card { display: flex; gap: var(--s2); align-items: flex-start; }
.split .card p { margin: 0; }
.split .ico, .features .ico, h2 .ico { color: var(--c-heading); }
h2 .ico { display: inline-block; vertical-align: -8px; }
.kicker { font-weight: 700; font-size: var(--step-1); color: var(--c-heading); }
.lead-dark { font-size: var(--step-1); max-width: 60ch; }

.features { list-style: none; display: grid; gap: var(--s2); margin: var(--s3) 0; }
.features li { display: flex; gap: var(--s2); align-items: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s2); }
.features h3 { margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; }
.features p { margin: 0; }
.features .is-dev { border-style: dashed; }
.disclaimer { font-size: var(--step--1); color: var(--c-muted); border-left: 4px solid var(--c-accent); padding: var(--s1) var(--s2); background: var(--c-surface); border-radius: 0 var(--radius) var(--radius) 0; max-width: 70ch; }

.media-slot { display: none; margin: var(--s3) 0; border-radius: var(--radius); overflow: hidden; }
.media-slot.is-loaded { display: block; }
.media-slot img { width: 100%; height: auto; }

/* ---- species ------------------------------------------------------------- */
.legend { list-style: none; display: grid; gap: var(--s1); margin-bottom: var(--s3); font-size: var(--step--1); }
.legend li { display: flex; gap: var(--s1); align-items: baseline; flex-wrap: wrap; }
.species-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--s2); margin-bottom: var(--s2); }
.species-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s2); }
.species-card[data-state="disponible"] { border: 2px solid var(--c-brand); }
.species-head { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin-bottom: 12px; }
.species-head .ico { grid-row: 1 / 3; color: var(--c-heading); }
.species-head h3 { margin: 0; }
.species-head .tag { justify-self: start; }
.purposes { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.purposes li { font-size: var(--step--1); background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: 999px; padding: 4px 12px; }
.purposes--mixed { display: grid; gap: 6px; }
.purposes--mixed li { display: flex; justify-content: space-between; align-items: center; gap: var(--s1); border-radius: 10px; flex-wrap: wrap; }
.card-note { font-size: var(--step--1); color: var(--c-muted); margin: var(--s1) 0 0; }
.stamp { font-size: .8rem; color: var(--c-muted); }

.picker { margin-top: var(--s4); }
.picker-species { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s1); min-height: var(--tap); padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--c-control-line); background: var(--c-surface-2); color: var(--c-ink); font: 600 var(--step--1)/1.2 var(--font); cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--c-brand); background: var(--c-ok-bg); color: var(--c-ok-ink); }
.chip[aria-pressed="true"]::after { content: "✓"; font-weight: 800; }
.purpose-set { border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s1) var(--s2) var(--s2); margin: 0 0 var(--s2); }
.purpose-set legend { display: flex; align-items: center; gap: var(--s1); font-weight: 700; padding: 0 6px; color: var(--c-heading); }
.picker-result h4 { margin-top: var(--s2); }
.modules { list-style: none; display: grid; gap: 12px; margin-bottom: var(--s2); }
.module { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px var(--s2); background: var(--c-surface-2); }
.module-head { display: flex; align-items: center; gap: var(--s1); margin-bottom: var(--s1); color: var(--c-heading); }
.module-rows { list-style: none; display: grid; gap: 6px; font-size: var(--step--1); }
.module-rows li { display: flex; justify-content: space-between; align-items: center; gap: var(--s1); flex-wrap: wrap; }

/* ---- market band ----------------------------------------------------------- */
.section--band { position: relative; overflow: hidden; color: var(--c-hero-ink); background: linear-gradient(160deg, var(--c-hero-2), var(--c-hero-1)); }
.section--band h2 { color: var(--c-hero-ink); }
.section--band .lead, .section--band .pending { color: var(--c-hero-muted); }
.band-media { position: absolute; inset: 0; }
.band-media video, .band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-media.is-loaded::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(5, 35, 26, .88), rgba(8, 56, 42, .8)); }
.band-content { position: relative; }
.cat-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: var(--s1); margin: var(--s3) 0; }
.cat-list li { display: flex; align-items: center; gap: var(--s1); min-height: var(--tap); padding: 8px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; font-size: var(--step--1); }
.points { list-style: none; display: grid; gap: 12px; margin-bottom: var(--s3); }
.points li { padding-left: 28px; position: relative; }
.points li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 12px; border-radius: 3px; background: var(--c-accent); }
.points--dark li::before { background: var(--c-brand); }
.scene-toggle--band { position: static; margin-top: var(--s2); }

/* ---- provider form -------------------------------------------------------- */
.provider { display: grid; gap: var(--s3); align-items: start; }
.form { display: grid; gap: var(--s2); }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; color: var(--c-ink); }
.field legend { padding: 0; margin-bottom: 6px; }
.field input[type="text"] {
  width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: 12px; border: 2px solid var(--c-control-line);
  background: var(--c-surface); color: var(--c-ink); font: var(--step-0)/1.3 var(--font);
}
.field input[aria-invalid="true"], fieldset[aria-invalid="true"] .checks { border-color: var(--c-error); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); gap: 6px; border: 2px solid transparent; border-radius: 12px; }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 10px; border-radius: 10px; border: 1px solid var(--c-control-line); background: var(--c-surface-2); cursor: pointer; font-size: var(--step--1); }
.field .check { font-weight: 500; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-brand); flex: none; }
.check .ico { width: 20px; height: 20px; color: var(--c-heading); }
.check:has(input:checked) { border-color: var(--c-brand); background: var(--c-ok-bg); }
.error { color: var(--c-error); font-size: var(--step--1); font-weight: 600; margin: 0; min-height: 0; }
.error:empty { display: none; }

/* ---- steps, faq, footer -------------------------------------------------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s2); }
.steps li { counter-increment: step; position: relative; padding: var(--s2) var(--s2) var(--s2) 64px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: var(--s2); top: var(--s2); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-on-accent); font-weight: 800; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; }

.faq { display: grid; gap: var(--s1); }
.faq details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.faq summary { cursor: pointer; min-height: var(--tap); padding: 12px var(--s2); font-weight: 700; color: var(--c-heading); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 var(--s2) var(--s2); margin: 0; }

.footer { background: var(--c-hero-1); color: var(--c-hero-muted); padding-block: var(--s4); font-size: var(--step--1); }
.footer strong { color: var(--c-hero-ink); }
.footer .muted { color: var(--c-hero-muted); }
.footer p { margin-bottom: var(--s1); }

/* ---- wider screens ------------------------------------------------------ */
@media (min-width: 720px) {
  .section { padding-block: var(--s8); }
  .split { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .legend { grid-template-columns: 1fr 1fr; }
  .provider { grid-template-columns: 1fr 1.1fr; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; padding-block: var(--s6) var(--s8); }
  .features { grid-template-columns: repeat(3, 1fr); }
}

@media print {
  .hero, .section--band, .footer { background: none; color: #000; }
  .hero h1, .section--band h2 { color: #000; }
  .hero-scene, .scene-toggle, .actions, .picker, .form { display: none; }
}

/* ===== Legal pages (privacidad.html) ===== */
.hero--slim .topbar { padding-block: var(--s2); }
.legal { max-width: 760px; }
.legal h1 { font-size: var(--step-3); font-weight: 800; margin-bottom: var(--s2); }
.legal h2 { font-size: var(--step-2); margin-top: var(--s4); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: var(--s1); }
.table-wrap { overflow-x: auto; margin: var(--s2) 0; border: 1px solid var(--c-line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: var(--s1) var(--s2); border-bottom: 1px solid var(--c-line); }
.table-wrap th { background: var(--c-surface-2); color: var(--c-heading); }
.table-wrap tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap tr { border-bottom: 1px solid var(--c-line); padding: var(--s1) 0; }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { border: 0; padding: 4px var(--s2); }
  .table-wrap td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--c-heading); font-size: var(--step--1); }
  .table-wrap td.cont { display: none; }
}
