/* =========================================================
   Trampa Verde · hoja de estilos
   Paleta en OKLCH con neutros teñidos de verde; un solo acento (rojo trampa).
   ========================================================= */

:root {
  --paper:     oklch(97.4% 0.011 105);
  --paper-2:   oklch(94.6% 0.017 115);
  --paper-3:   oklch(91.2% 0.024 125);
  --ink:       oklch(23% 0.03 155);
  --ink-2:     oklch(41% 0.026 152);
  --ink-3:     oklch(55% 0.02 150);
  --line:      oklch(87% 0.018 125);
  --moss:      oklch(37% 0.062 152);
  --moss-deep: oklch(29% 0.048 155);
  --leaf:      oklch(63% 0.1 140);
  --trap:      oklch(53% 0.155 30);
  --trap-soft: oklch(94.5% 0.028 35);
  --amber:     oklch(52% 0.11 65);
  --flag-hl:   oklch(92% 0.09 95);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io:  cubic-bezier(0.77, 0, 0.175, 1);

  --shadow-1: 0 1px 2px oklch(30% 0.04 150 / 0.06), 0 6px 18px oklch(30% 0.04 150 / 0.06);
  --shadow-2: 0 2px 4px oklch(30% 0.04 150 / 0.07), 0 16px 36px oklch(30% 0.04 150 / 0.11);

  --z-header: 10;
  --z-toast: 20;
  --z-skip: 30;

  --gutter: 16px;
  --max: 1240px;
  --header-h: 68px;
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  /* grano sutil para que el papel no se vea plano */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .22 0 0 0 0 .16 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--flag-hl); color: var(--ink); }
:focus-visible { outline: 2px solid var(--trap); outline-offset: 3px; border-radius: var(--r-xs); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); letter-spacing: -0.038em; line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
em, .sci { font-family: var(--serif); font-style: italic; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.measure { max-width: 62ch; }
.muted { color: var(--ink-2); }
.label {
  display: inline-block;
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--trap);
  margin-bottom: 1.1rem;
}
.tnum { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: var(--z-skip);
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: oklch(97.4% 0.011 105 / 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid oklch(87% 0.018 125 / 0.7);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1.3rem/1 var(--serif); letter-spacing: -0.02em;
  color: var(--moss-deep); text-decoration: none;
}
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; }
.nav a {
  position: relative;
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.97rem;
  padding: 10px 14px; border-radius: var(--r-sm);
  transition: color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--trap); border-radius: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); background: var(--paper-2); }
}
.nav-toggle {
  display: none; width: 44px; height: 44px; place-items: center;
  background: none; border: 0; border-radius: var(--r-sm); color: var(--ink); cursor: pointer;
}
.nav-toggle svg line { transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out); transform-origin: center; }
.nav-open .nav-toggle .l1 { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle .l2 { opacity: 0; }
.nav-open .nav-toggle .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 2px;
    padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity 0.2s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { left: 12px; right: auto; width: 18px; bottom: 8px; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
}

/* ---------- Botones y enlaces de acción ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: var(--r-sm);
  background: var(--moss); color: oklch(97% 0.012 110);
  font: 600 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.18s var(--ease-out), transform 0.14s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--moss-deep); box-shadow: var(--shadow-1); }
}
.btn-light { background: var(--paper); color: var(--moss-deep); }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { background: var(--paper-2); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--moss); text-decoration: none;
  min-height: 44px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease-out); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover svg { transform: translateX(4px); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 em { color: var(--moss); }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36ch; margin-top: 1.4rem; }
.hero-actions { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 2rem; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 2.6rem 0 0; padding: 1.3rem 0 0; list-style: none;
  border-top: 1px solid var(--line);
  font-size: 0.93rem; color: var(--ink-2);
}
.hero-facts strong { display: block; font: 500 1.5rem/1.1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }

.plate { position: relative; padding-bottom: 28px; }
.plate-art {
  aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 70% 15%, oklch(93% 0.04 130) 0%, transparent 60%),
    radial-gradient(90% 70% at 10% 100%, oklch(88% 0.05 140) 0%, transparent 65%),
    var(--paper-3);
  display: grid; place-items: center; overflow: hidden;
}
.plate-art svg { width: 76%; height: auto; filter: drop-shadow(0 18px 24px oklch(30% 0.05 150 / 0.18)); }
.plate-tag {
  position: absolute; left: -18px; bottom: 0;
  background: var(--paper); border-radius: var(--r-sm);
  padding: 14px 18px 16px; min-width: 230px;
  box-shadow: var(--shadow-2);
  font-size: 0.85rem; color: var(--ink-2);
}
.plate-tag .sci { display: block; font-size: 1.15rem; color: var(--ink); margin-bottom: 2px; }
.plate-tag .no { position: absolute; top: 12px; right: 14px; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-3); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .plate { max-width: 440px; margin-left: 18px; }
  .plate-art { aspect-ratio: 5 / 4; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section + .section { padding-top: 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}
.section-head h2 { margin-bottom: 0.2em; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.tinted { background: var(--paper-2); }

/* ---------- Tarjetas de producto ---------- */
.grid {
  display: grid; gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 252px), 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.tinted .card { background: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .card:not(.is-out):hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
  .card:not(.is-out):hover .card-media svg { transform: scale(1.04) rotate(-1deg); }
}
.card-media { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; background: var(--paper-3); }
.card-media svg { width: 56%; height: 78%; transition: transform 0.5s var(--ease-out); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.media-dionaea     { background: oklch(92% 0.04 135); }
.media-drosera     { background: oklch(93% 0.03 40); }
.media-sarracenia  { background: oklch(93% 0.045 110); }
.media-nepenthes   { background: oklch(91.5% 0.03 160); }
.media-pinguicula  { background: oklch(93% 0.03 320); }
.media-utricularia { background: oklch(92% 0.03 230); }

.flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.flag {
  font: 600 0.72rem/1 var(--sans); letter-spacing: 0.04em;
  padding: 6px 8px; border-radius: var(--r-xs);
  background: var(--paper); color: var(--ink);
}
.flag-sale { background: var(--trap); color: oklch(98% 0.01 30); }
.flag-new  { background: var(--moss-deep); color: oklch(97% 0.012 110); }
.flag-out  { background: var(--ink-2); color: var(--paper); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.card-type { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 6px; }
.card-title { font-size: 1.25rem; margin: 0 0 2px; }
.card-sci { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 10px; }
.card-desc { font-size: 0.93rem; color: var(--ink-2); margin: 0 0 18px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.price { font: 600 1.25rem/1.1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price s { font-weight: 400; font-size: 0.85rem; color: var(--ink-3); margin-left: 6px; }
.stock { font-size: 0.8rem; color: var(--moss); font-weight: 500; margin-top: 4px; }
.stock-low { color: var(--amber); }
.btn-buy { min-height: 44px; padding: 0 18px; font-size: 0.93rem; }

/* agotado: gris y sin interacción */
.card.is-out { box-shadow: none; background: var(--paper-2); }
.card.is-out .card-media { filter: grayscale(1); opacity: 0.55; }
.card.is-out .card-title, .card.is-out .price { color: var(--ink-3); }
.card.is-out .card-desc, .card.is-out .card-sci { opacity: 0.7; }
.card.is-out .stock { color: var(--ink-3); }
.btn.is-disabled { background: var(--paper-3); color: var(--ink-3); cursor: not-allowed; pointer-events: none; }

.empty { grid-column: 1 / -1; text-align: center; color: var(--ink-2); padding: 56px 0; }
.empty strong { display: block; font: 500 1.4rem/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }

/* fila con desplazamiento horizontal (nuevas incorporaciones) */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px);
  gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin: -4px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.rail > * { scroll-snap-align: start; }

.buy-note { margin-top: 20px; font-size: 0.88rem; color: var(--ink-2); }
.buy-note a { color: var(--ink); }

/* ---------- Índice de tipos ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 3rem 72px 1fr 1.3fr 28px; align-items: center; gap: 20px;
  padding: 18px 12px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background-color 0.2s var(--ease-out);
}
.index .n { font: 400 0.9rem/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.index .ilus { width: 72px; height: 72px; border-radius: var(--r-sm); display: grid; place-items: center; }
.index .ilus svg { width: 58px; height: 58px; }
.index h3 { margin: 0; font-size: 1.55rem; }
.index .comun { display: block; font-size: 0.95rem; color: var(--ink-2); }
.index p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.index .go { width: 22px; height: 22px; color: var(--ink-3); transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .index a:hover { background: var(--paper-2); }
  .index a:hover .go { transform: translateX(4px); color: var(--trap); }
}
@media (max-width: 760px) {
  .index a { grid-template-columns: 56px 1fr 22px; gap: 4px 16px; padding: 16px 4px; }
  .index .n { display: none; }
  .index .ilus { width: 56px; height: 56px; grid-row: span 2; }
  .index .ilus svg { width: 44px; height: 44px; }
  .index h3 { font-size: 1.3rem; }
  .index p { grid-column: 2; font-size: 0.9rem; }
  .index .go { grid-row: 1 / span 2; grid-column: 3; }
}

/* ---------- Cuidados en resumen (inicio) ---------- */
.care-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.care-split .actions { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 1.8rem; }
.rules-list { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rules-list li {
  counter-increment: r;
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 12px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.rules-list li:last-child { border-bottom: 1px solid var(--line); }
.rules-list li::before {
  content: counter(r, decimal-leading-zero);
  font: 400 2rem/1 var(--serif); color: var(--trap); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.rules-list h3 { margin: 2px 0 6px; }
.rules-list p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .care-split { grid-template-columns: 1fr; } }

/* ---------- Encabezado de páginas internas ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.page-head p { color: var(--ink-2); font-size: 1.12rem; max-width: 58ch; margin-top: 1rem; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--ink-2); text-decoration: none; margin-bottom: 1.2rem; min-height: 32px; }
.crumb svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .crumb:hover { color: var(--ink); } }

/* ---------- Tienda ---------- */
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; margin-bottom: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink-2);
  font: 500 0.93rem/1 var(--sans); cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), transform 0.14s var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip .count { color: var(--ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-active .count { color: oklch(80% 0.02 130); }
@media (hover: hover) and (pointer: fine) {
  .chip:not(.is-active):hover { border-color: var(--ink-3); color: var(--ink); }
}
.toolbar-right { display: flex; align-items: center; gap: 20px; font-size: 0.92rem; color: var(--ink-2); flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 40px; }
.switch input { width: 18px; height: 18px; accent-color: var(--moss); margin: 0; }
.store-notes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 0.93rem; color: var(--ink-2);
}
.store-notes strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.store-notes p { margin: 0; }

/* ---------- Cuidados ---------- */
.download {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  background: var(--moss-deep); color: oklch(95% 0.015 120);
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px); border-radius: var(--r-lg);
}
.download h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: oklch(98% 0.01 110); margin: 0 0 6px; }
.download p { margin: 0; color: oklch(84% 0.025 130); }

.timeline { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }
.timeline li { counter-increment: p; position: relative; padding: 22px 0 22px 64px; border-top: 1px solid var(--line); }
.timeline li::before {
  content: counter(p);
  position: absolute; left: 0; top: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--trap-soft); color: var(--trap);
  font: 500 1.15rem/1 var(--serif);
}
.timeline h3 { margin: 0 0 4px; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 8px 40px; }
.col { padding-top: 20px; border-top: 2px solid var(--ink); }
.col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.col h3 svg { width: 22px; height: 22px; color: var(--moss); }
.col ul { margin: 0 0 24px; padding-left: 1.1em; color: var(--ink-2); font-size: 0.97rem; }
.col li { margin-bottom: 6px; }
.col li::marker { color: var(--leaf); }

.species { list-style: none; margin: 0; padding: 0; }
.species li {
  display: grid; grid-template-columns: 112px 1fr; gap: 28px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.species li:last-child { border-bottom: 1px solid var(--line); }
.species .ilus { width: 112px; height: 112px; border-radius: var(--r-md); display: grid; place-items: center; }
.species .ilus svg { width: 88px; height: 88px; }
.species h3 { font-size: 1.6rem; margin: 0; }
.species .comun { color: var(--ink-2); margin: 0 0 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px 28px; margin: 0; }
.facts dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--moss); margin-bottom: 2px; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 600px) {
  .species li { grid-template-columns: 64px 1fr; gap: 16px; }
  .species .ilus { width: 64px; height: 64px; }
  .species .ilus svg { width: 50px; height: 50px; }
  .species .facts { grid-column: 1 / -1; }
}

.warning { background: var(--trap-soft); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.warning h2 { color: var(--trap); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.warning ul { margin: 0; padding-left: 1.1em; columns: 2 260px; column-gap: 40px; }
.warning li { margin-bottom: 8px; break-inside: avoid; }

/* ---------- Páginas legales ---------- */
.legal { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 8vw, 112px); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.92rem; }
.legal-toc p { font-weight: 600; margin-bottom: 10px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 14px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
@media (hover: hover) and (pointer: fine) { .legal-toc a:hover { color: var(--ink); border-left-color: var(--trap); } }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--moss); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.legal-meta { font-size: 0.9rem; color: var(--ink-3); margin-bottom: 2rem; }
.callout { background: var(--paper-2); border-radius: var(--r-md); padding: 18px 20px; margin: 0 0 1.4em; }
.callout p:last-child { margin: 0; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* dato pendiente de completar en config.js */
.pendiente { background: var(--flag-hl); color: var(--ink); padding: 0 4px; border-radius: 3px; }

/* ---------- 404 ---------- */
.notfound { display: grid; place-items: center; text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.notfound svg { width: 160px; height: 160px; margin: 0 auto 24px; }
.notfound p { color: var(--ink-2); max-width: 44ch; margin-inline: auto; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 0.93rem; color: var(--ink-2); }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.foot-brand p { max-width: 34ch; margin: 12px 0 0; }
.foot-links { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-links p { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 4px; }
.foot-links a { text-decoration: none; display: inline-block; padding: 4px 0; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { color: var(--ink); text-decoration: underline; } }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-3); }

/* ---------- Aviso flotante ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast);
  width: max-content; max-width: calc(100% - 2 * var(--gutter));
  padding: 14px 20px; border-radius: var(--r-md);
  background: var(--ink); color: var(--paper); font-size: 0.93rem;
  box-shadow: var(--shadow-2);
  opacity: 0; transform: translate(-50%, 12px) scale(0.98);
  transition: opacity 0.2s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Aparición al hacer scroll ---------- */
.reveal-wait { opacity: 0; transform: translateY(14px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal-wait { opacity: 1; transform: none; }
}
.hero-actions.center { justify-content: center; }
.notfound .ilus { display: block; width: 160px; height: 160px; margin: 0 auto 8px; }
.notfound .ilus svg { width: 100%; height: 100%; }

/* aviso de stock de demostración en la tienda */
.store-demo-note { margin: 0 0 20px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--flag-hl); font-size: 0.88rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-demo-note button { background: none; border: 0; padding: 4px 0; font: 600 0.88rem var(--sans); color: var(--ink); text-decoration: underline; cursor: pointer; }

/* ---------- Formulario de compra ---------- */
.co-abierto { overflow: hidden; }
dialog.checkout {
  width: min(640px, 100% - 24px); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 64px oklch(25% 0.04 150 / 0.28);
  overflow: hidden auto;
}
dialog.checkout[open] { animation: co-entrar 0.32s var(--ease-out); }
dialog.checkout::backdrop { background: oklch(20% 0.03 150 / 0.45); backdrop-filter: blur(2px); }
@keyframes co-entrar { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.co-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 22px 24px 0; }
.co-head .label { margin-bottom: 6px; }
.co-head h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: 0; background: none; border-radius: var(--r-sm); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--paper-2); } }

.co-producto { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 14px; margin: 18px 24px 0; padding: 12px; border-radius: var(--r-md); background: var(--paper-2); }
.co-producto .ilus { width: 56px; height: 56px; border-radius: var(--r-sm); display: grid; place-items: center; overflow: hidden; }
.co-producto .ilus svg { width: 44px; height: 44px; }
.co-producto .ilus img { width: 100%; height: 100%; object-fit: cover; }
.co-producto strong { display: block; font-weight: 600; }
.co-producto .sci { font-size: 0.88rem; color: var(--ink-2); }
.co-q select { height: 36px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); padding: 0 8px; font: 500 0.95rem var(--sans); color: var(--ink); }
.co-precio { font-weight: 600; }
.co-intro { margin: 14px 24px 0; font-size: 0.93rem; color: var(--ink-2); }

.co-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px 24px 8px; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.campo-2 { grid-column: 1 / -1; }
.campo > label, .campo legend { font-size: 0.88rem; font-weight: 600; color: var(--ink); padding: 0; }
.campo .opc { font-weight: 400; color: var(--ink-3); }
.campo input:not([type=radio]):not([type=checkbox]), .campo select, .campo textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.campo textarea { resize: vertical; min-height: 64px; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--ink-3); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px oklch(37% 0.062 152 / 0.15); }
.campo .error { margin: 0; font-size: 0.83rem; color: var(--trap); min-height: 0; }
.campo .error:empty { display: none; }
.campo.invalido input:not([type=radio]):not([type=checkbox]), .campo.invalido select { border-color: var(--trap); }
.co-entrega { gap: 8px; }
.co-entrega legend { margin-bottom: 6px; }
.opcion { display: flex; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out); }
.opcion:has(input:checked) { border-color: var(--moss); background: oklch(95% 0.025 140); }
.campo.invalido .opcion { border-color: oklch(80% 0.06 30); }
.opcion input, .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--moss); flex: none; }
.opcion .sub { display: block; font-size: 0.85rem; color: var(--ink-2); margin-top: 2px; }
.check { display: flex; gap: 10px; align-items: start; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.check a { color: var(--moss); }

.co-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 24px 20px; background: var(--paper); border-top: 1px solid var(--line); }
.co-foot strong { font-size: 1.3rem; margin-left: 6px; }
.co-foot .sub { display: block; font-size: 0.8rem; color: var(--ink-3); }

.co-ok { padding-bottom: 22px; }
.co-pasos { margin: 16px 24px 0; padding-left: 1.2em; color: var(--ink-2); font-size: 0.95rem; }
.co-pasos li { margin-bottom: 6px; }
.co-pasos strong { color: var(--ink); }
.co-noti { margin: 12px 24px 0; padding: 16px; border-radius: var(--r-md); background: oklch(95% 0.03 145); border: 1px solid oklch(85% 0.05 145); font: 400 0.88rem/1.55 var(--sans); white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.co-acciones { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 24px 0; }
.btn-outline { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .btn-outline:hover { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--ink-3); } }

@media (max-width: 560px) {
  dialog.checkout { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .co-campos { grid-template-columns: 1fr; }
  .co-producto { grid-template-columns: 48px 1fr auto; }
  .co-producto .co-precio { grid-column: 2 / -1; justify-self: end; }
}

/* vista previa del correo de aviso al dueño */
.mail { margin: 12px 24px 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); font-size: 0.9rem; }
.drawer .mail { margin: 0; }
.mail-meta { display: grid; gap: 2px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.82rem; }
.mail-meta strong { color: var(--ink); font-weight: 600; }
.mail-body { padding: 14px 16px 16px; }
.mail-h { font: 500 1.15rem/1.2 var(--serif); margin: 0 0 10px; }
.mail-body table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.mail-body td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.mail-body td.num { text-align: right; font-variant-numeric: tabular-nums; }
.mail-body tr.t td { font-weight: 600; border-bottom: 0; }
.mail-body dl { display: grid; grid-template-columns: 88px 1fr; gap: 4px 10px; margin: 0 0 14px; }
.mail-body dt { color: var(--ink-2); }
.mail-body dd { margin: 0; word-break: break-word; }
.mail-btn { display: block; text-align: center; padding: 12px 16px; border-radius: var(--r-sm); background: oklch(52% 0.13 150); color: #fff; font-weight: 600; text-decoration: none; }
.mail-link { display: block; text-align: center; margin-top: 10px; font-size: 0.85rem; color: var(--ink-2); }
.co-solo-persona p { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper-2); font-size: 0.93rem; color: var(--ink-2); }
.co-solo-persona strong { color: var(--ink); }
