/* =========================================================
   Carnívoras Rancagua · 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(50% 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;
  --mono:  ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --tape:  oklch(91% 0.035 95 / 0.78);

  --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-flex; align-items: center; gap: 10px;
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--trap);
  margin-bottom: 1.1rem;
}
.label::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.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: var(--paper);
  border-bottom: 1px solid var(--line);
}
.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 .logo-img { width: 40px; height: 40px; flex: none; }
.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); }
}

/* ---------- Portada: texto + collage de fotos reales ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 clamp(18px, 2.6vw, 30px);
  font: 500 0.74rem/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2);
}
.kicker span { color: var(--trap); padding-right: 14px; border-right: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(3rem, 6.6vw, 6.2rem); font-weight: 400;
  line-height: 0.92; letter-spacing: -0.045em; margin: 0; text-wrap: balance;
}
.hero h1 em { color: var(--moss); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36ch; margin: clamp(18px, 2.6vw, 28px) 0 0; }
.hero-actions { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 2rem; }

/* collage: 5 fotos en mosaico, como láminas pegadas en el cuaderno */
.collage {
  position: relative;
  display: grid; gap: clamp(8px, 1vw, 14px);
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  height: clamp(460px, 44vw, 640px);
}
.col { margin: 0; overflow: hidden; border-radius: 4px; background: var(--paper-3); box-shadow: 0 1px 1px oklch(30% 0.04 150 / 0.06), 0 12px 30px oklch(30% 0.04 150 / 0.12); }
.col img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .col:hover img { transform: scale(1.04); } }
.c1 { grid-column: 1 / 5; grid-row: 1 / 5; }
.c2 { grid-column: 5 / 7; grid-row: 1 / 4; }
.c3 { grid-column: 5 / 7; grid-row: 4 / 7; }
.c4 { grid-column: 1 / 3; grid-row: 5 / 7; }
.c5 { grid-column: 3 / 5; grid-row: 5 / 7; }
.c1 img { object-position: 50% 55%; }
.c4 img { object-position: 50% 60%; }
.c5 img { object-position: 50% 35%; }

.hero-etiqueta {
  position: absolute; left: 14px; top: calc(66.6% - 52px); margin: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 3px;
  background: var(--paper); color: var(--ink-2);
  font: 400 0.72rem/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 10px 30px oklch(20% 0.04 150 / 0.25);
  rotate: -1.5deg;
}
.hero-etiqueta span:first-child { color: var(--trap); }
.hero-etiqueta em { font: italic 400 1.05rem/1 var(--serif); text-transform: none; letter-spacing: -0.01em; color: var(--ink); }

.sello {
  position: absolute; left: calc(66.6% - 62px); top: -28px; width: 120px; height: 120px; z-index: 3;
  color: var(--trap); animation: girar 30s linear infinite;
}
.sello text { font: 600 9.4px var(--mono); letter-spacing: 0.21em; fill: currentColor; }
.sello circle { fill: currentColor; }
.sello .fondo { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.sello { filter: drop-shadow(0 6px 14px oklch(20% 0.04 150 / 0.22)); }
@keyframes girar { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .sello { animation: none; } }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0;
  border-top: 1px solid var(--ink);
}
.hero-facts li { padding: 14px 12px 0 0; font: 400 0.7rem/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.hero-facts li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.hero-facts strong { display: block; margin-bottom: 6px; font: 400 clamp(1.3rem, 2.4vw, 1.9rem)/1.05 var(--serif); letter-spacing: -0.02em; text-transform: none; color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .collage { order: -1; height: clamp(340px, 92vw, 520px); }
  .sello { width: 86px; height: 86px; top: -14px; left: auto; right: 8px; }
  .hero-etiqueta { top: auto; bottom: calc(33.3% + 10px); }
}
@media (max-width: 560px) {
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 14px; }
  .hero-etiqueta span:last-child { display: none; }
}

/* ---------- 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: láminas de herbario ---------- */
.grid {
  display: grid; gap: clamp(20px, 2.6vw, 36px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); padding: 10px; border-radius: 4px;
  box-shadow: 0 1px 1px oklch(30% 0.04 150 / 0.05), 0 10px 30px oklch(30% 0.04 150 / 0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:not(.is-out):hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 2px 2px oklch(30% 0.04 150 / 0.05), 0 20px 44px oklch(30% 0.04 150 / 0.13); }
  .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; overflow: hidden; border-radius: 2px; background: var(--paper-3); }
.card-media svg { width: 56%; height: 78%; transition: transform 0.5s var(--ease-out); }
.card-media .no {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  font: 500 0.68rem/1 var(--mono); letter-spacing: 0.06em;
  padding: 5px 7px; border-radius: 2px;
  background: oklch(97.4% 0.011 105 / 0.88); color: var(--ink);
}
.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); }

.card.has-foto .card-media { aspect-ratio: 4 / 5; background: var(--paper-3); }
.card.has-foto .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out); }
.card.has-foto .card-media img.alt { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .card.has-foto:not(.is-out):hover .card-media img { transform: scale(1.03); }
  .card.has-foto:not(.is-out):hover .card-media img.alt[src] { opacity: 1; }
}

.flags { position: absolute; top: 8px; left: 8px; z-index: 1; display: flex; gap: 6px; }
.flag {
  font: 500 0.68rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 8px; border-radius: 2px;
  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: 16px 6px 6px; }
.card-type { font: 500 0.68rem/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.card-title { font-size: 1.55rem; font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.card-sci { font-size: 1rem; color: var(--moss); margin: 3px 0 12px; }
.card-desc {
  font-size: 0.92rem; color: var(--ink-2); margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ficha { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 16px; border-block: 1px solid var(--line); }
.ficha div { padding: 9px 8px 9px 0; min-width: 0; }
.ficha div + div { padding-left: 9px; border-left: 1px solid var(--line); }
.ficha dt { font: 500 0.62rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.ficha dd { margin: 0; font-size: 0.84rem; line-height: 1.3; color: var(--ink); }

.regla { display: flex; align-items: flex-end; gap: 7px; margin: 0 0 16px; }
.regla > span { display: flex; flex-direction: column; align-items: center; gap: 5px; font: 500 0.66rem/1 var(--mono); color: var(--ink-2); }
.regla i { display: block; width: 20px; border-radius: 2px 2px 0 0; background: var(--leaf); }
.regla .r1 i { height: 7px; }
.regla .r2 i { height: 11px; }
.regla .r3 i { height: 16px; }
.regla .r4 i { height: 22px; }
.regla .r5 i { height: 29px; }
.regla .sin { color: var(--ink-3); text-decoration: line-through; }
.regla .sin i { background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--line); }

.card-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.price { font: 600 1.3rem/1.1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price .desde { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.stock { font: 400 0.72rem/1.2 var(--mono); color: var(--moss); margin-top: 5px; }
.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, .card.is-out .ficha { 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: 400 0.74rem/1.5 var(--mono); letter-spacing: 0.03em; color: var(--ink-3); }
/* el nombre gigante queda cortado por el borde inferior, a propósito */
.site-footer { overflow: hidden; padding-bottom: 0; }
.foot-mark {
  margin: clamp(28px, 5vw, 56px) 0 0; white-space: nowrap;
  font: 400 clamp(2.6rem, 10.2vw, 9.6rem)/0.78 var(--serif); letter-spacing: -0.05em;
  color: var(--moss-deep); translate: -0.03em 0.16em;
}
.foot-mark em { color: var(--trap); }

/* ---------- 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-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); }

/* galería y tamaños en el formulario de compra */
.co-galeria { margin: 16px 24px 0; }
.co-foto { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--paper-3); }
.co-foto img { width: 100%; height: 100%; object-fit: cover; }
.co-miniaturas { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.co-miniaturas button { flex: none; width: 48px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: none; cursor: pointer; opacity: 0.7; transition: opacity 0.15s var(--ease-out), border-color 0.15s var(--ease-out); }
.co-miniaturas button[aria-current="true"] { border-color: var(--moss); opacity: 1; }
.co-miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.co-producto:not(:has(.ilus)) { grid-template-columns: 1fr auto auto; }

.co-tallas { margin: 14px 24px 0; padding: 0; border: 0; }
.co-tallas legend { font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.tallas-opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.talla { position: relative; display: grid; gap: 2px; padding: 10px 10px 9px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; text-align: center; transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out), transform 0.14s var(--ease-out); }
.talla:active { transform: scale(0.97); }
.talla input { position: absolute; opacity: 0; pointer-events: none; }
.talla .t { font: 600 1.05rem/1.1 var(--sans); }
.talla .pr { font-size: 0.88rem; color: var(--ink); }
.talla .st { font-size: 0.72rem; color: var(--ink-3); }
.talla:has(input:checked) { border-color: var(--moss); background: oklch(95% 0.025 140); box-shadow: inset 0 0 0 1px var(--moss); }
.talla:has(input:focus-visible) { outline: 2px solid var(--trap); outline-offset: 2px; }
.talla.sin { cursor: not-allowed; opacity: 0.5; }
.talla.sin .t { text-decoration: line-through; }
@media (max-width: 560px) { .co-galeria, .co-tallas { margin-inline: 16px; } }

/* ---------- Encabezado con más carácter ---------- */
.topbar { background: var(--moss-deep); color: oklch(88% 0.025 130); font: 400 0.7rem/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.topbar span { display: inline-flex; align-items: center; gap: 9px; }
.topbar span::before { content: ""; width: 5px; height: 5px; background: var(--trap); rotate: 45deg; }
@media (max-width: 760px) {
  .topbar .wrap { justify-content: center; }
  .topbar span:not(:first-child) { display: none; }
}
.logo { font-weight: 500; font-size: 1.4rem; }
.logo em { color: var(--trap); }
.nav { align-items: center; }
.nav a .n { font: 400 0.66rem/1 var(--mono); color: var(--ink-3); margin-right: 7px; vertical-align: 0.2em; letter-spacing: 0.04em; }
.nav a[aria-current="page"] .n { color: var(--trap); }
.nav .head-cta { margin-left: 14px; min-height: 40px; padding: 0 16px; font-size: 0.9rem; color: oklch(97% 0.012 110); }
.nav .head-cta::after { display: none; }
@media (hover: hover) and (pointer: fine) { .nav .head-cta:hover { background: var(--moss-deep); color: oklch(97% 0.012 110); } }
@media (max-width: 760px) {
  .nav { align-items: stretch; }
  .nav .head-cta { margin: 8px 0 0; min-height: 48px; }
}

/* ---------- Marca real ---------- */
.logo { gap: 10px; }
@media (max-width: 400px) { .logo { font-size: 1.2rem; } .logo .logo-img { width: 34px; height: 34px; } }

/* enlace al manual en cada lámina */
.manual-link {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  margin: -4px 0 16px; min-height: 32px;
  font: 500 0.72rem/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--moss); text-decoration: none; border-bottom: 1px solid currentColor;
}
.manual-link svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .manual-link:hover { color: var(--trap); } }
.co-manual { margin: 12px 24px 0; font-size: 0.9rem; }
.co-manual a { color: var(--moss); }

/* manuales por especie (página de cuidados) */
.manuales { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.manual {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px 20px; border-radius: 4px; text-decoration: none; color: inherit;
  background: var(--paper);
  box-shadow: 0 1px 1px oklch(30% 0.04 150 / 0.05), 0 10px 30px oklch(30% 0.04 150 / 0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.manual::before { content: ""; position: absolute; top: -11px; left: 22px; width: 76px; height: 22px; background: var(--tape); rotate: -4deg; }
.m-no { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--trap); }
.m-titulo { font: 400 1.7rem/1.1 var(--serif); letter-spacing: -0.02em; margin-top: 6px; }
.manual .sci { color: var(--moss); }
.m-temas { color: var(--ink-2); font-size: 0.93rem; margin: 6px 0 14px; }
.m-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; align-self: flex-start; font-weight: 600; color: var(--moss); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.m-btn svg { width: 16px; height: 16px; }
.manual:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .manual:hover { transform: translateY(-3px) rotate(-0.3deg); box-shadow: 0 2px 2px oklch(30% 0.04 150 / 0.05), 0 20px 44px oklch(30% 0.04 150 / 0.13); }
}

/* botón flotante de Instagram */
.ig-flotante {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-toast);
  display: flex; align-items: center; gap: 0; height: 52px; padding: 0 14px;
  border-radius: 999px; background: var(--moss-deep); color: oklch(97% 0.012 110);
  text-decoration: none; box-shadow: 0 8px 24px oklch(25% 0.05 150 / 0.28);
  transition: background-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.ig-flotante svg { width: 24px; height: 24px; flex: none; }
.ig-flotante span {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font: 500 0.78rem/1 var(--mono); letter-spacing: 0.03em;
  transition: max-width 0.35s var(--ease-out), opacity 0.25s var(--ease-out), margin 0.35s var(--ease-out);
}
.ig-flotante:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .ig-flotante:hover { background: var(--trap); }
  .ig-flotante:hover span, .ig-flotante:focus-visible span { max-width: 220px; opacity: 1; margin-left: 10px; }
}
.co-abierto .ig-flotante { display: none; }
@media print { .ig-flotante { display: none; } }

/* ---------- Paso 2: pago con link de Mercado Pago + aviso por WhatsApp ---------- */
.co-resumen { list-style: none; margin: 16px 24px 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--paper-2); font-size: 0.95rem; }
.co-resumen li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.co-resumen li.t { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-weight: 600; }
.pago-pasos { list-style: none; counter-reset: pp; margin: 18px 24px 0; padding: 0; display: grid; gap: 10px; }
.pago-pasos li {
  counter-increment: pp; position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px;
  padding: 14px 16px 14px 58px; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.pago-pasos li::before {
  content: counter(pp); position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--trap-soft); color: var(--trap); font: 500 1rem/1 var(--serif);
}
.pago-pasos li.hecho { border-color: oklch(75% 0.08 145); background: oklch(96% 0.025 145); }
.pago-pasos li.hecho::before { content: "✓"; background: var(--moss); color: oklch(97% 0.012 110); font-family: var(--sans); font-weight: 700; }
.pago-pasos strong { display: block; font-weight: 600; }
.pago-pasos span { display: block; font-size: 0.86rem; color: var(--ink-2); margin-top: 2px; }
.pago-pasos .btn { min-height: 44px; white-space: nowrap; }
.monto { display: flex; align-items: center; gap: 10px; }
.monto > span { font: 600 1.25rem/1 var(--sans); color: var(--ink); margin: 0; }
.monto .btn { min-height: 40px; padding: 0 14px; }
.btn-wsp { background: oklch(52% 0.13 150); }
@media (hover: hover) and (pointer: fine) { .btn-wsp:hover { background: oklch(45% 0.12 150); } }
.co-nota { margin: 14px 24px 0; font-size: 0.85rem; color: var(--ink-2); }
@media (max-width: 560px) {
  .co-resumen, .pago-pasos, .co-nota { margin-inline: 16px; }
  .pago-pasos li { grid-template-columns: 1fr; padding-left: 54px; }
  .pago-pasos .btn { width: 100%; }
}

/* campo trampa (bots) y error general del formulario */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error-general { margin: 0 24px 8px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--trap-soft); color: var(--trap); font-size: 0.9rem; }
.co-foot .btn:disabled { opacity: 0.7; cursor: progress; }

/* logotipo original de la marca (encabezado y pie) */
.logo .logotipo { display: block; height: 62px; width: auto; }
.site-footer .logo .logotipo { height: 56px; }
@media (min-width: 761px) { :root { --header-h: 80px; } }
@media (max-width: 760px) { .logo .logotipo { height: 46px; } }
@media (max-width: 360px) { .logo .logotipo { height: 34px; } }

.co-seguro { margin: 14px 24px 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--paper-2); font-size: 0.85rem; color: var(--ink-2); }
.co-seguro strong { color: var(--ink); }
@media (max-width: 560px) { .co-seguro { margin-inline: 16px; } }

/* ---------- Botones flotantes: WhatsApp (principal) e Instagram ---------- */
.flotantes {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-toast); display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.flotantes .ig-flotante { position: static; height: 44px; padding: 0 10px; }
.flotantes .ig-flotante svg { width: 22px; height: 22px; }
.wsp-flotante {
  display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px 0 14px;
  border-radius: 999px; background: oklch(55% 0.14 150); color: #fff;
  font: 600 0.95rem/1 var(--sans); text-decoration: none;
  box-shadow: 0 8px 24px oklch(30% 0.08 150 / 0.35);
  transition: background-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.wsp-flotante svg { width: 26px; height: 26px; flex: none; }
.wsp-flotante:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .wsp-flotante:hover { background: oklch(48% 0.13 150); } }
@media (max-width: 560px) { .wsp-flotante span { display: none; } .wsp-flotante { width: 54px; padding: 0; justify-content: center; } }
.co-abierto .flotantes { display: none; }
@media print { .flotantes { display: none; } }
.foot-bottom a { color: inherit; }
