/* ==========================================================================
   La Huerta en Casa — estilo rústico y artesanal
   Paleta: tierra (marrón de suelo), hoja (verde de marca #9DC13E), pasto (verde
   profundo para texto y botones), rocío (fondo verde muy pálido), madera
   (cartelitos de estaca), zanahoria y tomate (acentos mínimos).
   ========================================================================== */

:root {
  --tierra: #2e2117;
  --tierra-2: #4a3626;
  --tierra-3: #6d523b;
  --hoja: #9dc13e;
  --hoja-2: #7ea32a;
  --hoja-3: #c9de8b;
  --pasto: #46621b;
  --pasto-2: #364d12;
  --rocio: #f1f5e4;
  --rocio-2: #e4ecc9;
  --papel: #fbfcf4;
  --madera: #b5853f;
  --madera-2: #8f6529;
  --madera-3: #e9d6ae;
  --zanahoria: #e4793a;
  --tomate: #bf3b2b;

  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tierra);
  background-color: var(--rocio);
  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 .3 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  position: relative;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--pasto-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--tierra); }
:focus-visible { outline: 3px solid var(--zanahoria); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; max-width: 38em; }
.muted { color: var(--tierra-3); }
small, .small { font-size: .875rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--tierra); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--soil { background: var(--tierra); color: #efe8d6; }
.section--soil h2, .section--soil h3 { color: #fffdf3; }
.section--soil a { color: var(--hoja-3); }
.section--leaf { background: var(--hoja); color: var(--tierra); }
.section--paper { background: var(--papel); }
.prose { max-width: 66ch; }
.prose img, .prose video { border-radius: 4px; margin-block: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--hoja); font-family: var(--font-display); font-size: 1.15em; }
.prose figure { margin: 1.4rem 0; }
.prose figcaption { font-size: .875rem; color: var(--tierra-3); margin-top: .3rem; }
.prose hr { border: 0; height: 12px; margin: 2.2rem 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='12'%3E%3Cpath d='M2 6 q14 -9 28 0 t28 0' fill='none' stroke='%23b5853f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--pasto); border-radius: 999px 999px 999px 8px;
  background: var(--pasto); color: #fff;
  transition: background .2s, color .2s, transform .2s var(--ease), border-color .2s;
}
.btn:hover { background: var(--pasto-2); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--tierra); border-color: var(--tierra); }
.btn--ghost:hover { background: var(--tierra); color: #fff; }
.btn--leaf { background: var(--hoja); color: var(--tierra); border-color: var(--hoja); }
.btn--leaf:hover { background: var(--hoja-3); color: var(--tierra); border-color: var(--hoja-3); }
.btn--danger { background: var(--tomate); border-color: var(--tomate); }
.btn--danger:hover { background: #962d20; }
.btn--small { min-height: 38px; padding: .4rem .95rem; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--pasto-2); text-decoration: underline; cursor: pointer; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--papel); border-bottom: 3px solid var(--tierra); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 6px; background: repeating-linear-gradient(90deg, var(--hoja) 0 14px, transparent 14px 22px); opacity: .9; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 108px; transition: min-height .25s var(--ease); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--tierra); }
.brand img { height: 88px; width: auto; transition: height .25s var(--ease); }
.site-header.is-small .site-header__in { min-height: 70px; }
.site-header.is-small .brand img { height: 58px; }
@media (max-width: 899px) { .site-header__in { min-height: 84px; } .brand img { height: 68px; } .site-header.is-small .site-header__in { min-height: 58px; } .site-header.is-small .brand img { height: 46px; } }
.site-header.is-small { box-shadow: 0 6px 14px -8px rgba(46,33,23,.35); }
html { scroll-padding-top: 80px; }
.heart { color: var(--zanahoria, #e4793a); }
.footer-bottom a { color: inherit; font-weight: 600; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.05; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { padding: .55rem .8rem; text-decoration: none; color: var(--tierra); font-weight: 500; border-radius: 6px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: var(--rocio-2); }
.nav__cart { position: relative; }
.nav__cart span { display: inline-block; min-width: 1.35em; padding: 0 .35em; margin-left: .3em; background: var(--zanahoria); color: #fff; border-radius: 99px; font-size: .78rem; text-align: center; line-height: 1.5; }
.nav-toggle { display: none; background: none; border: 2px solid var(--tierra); border-radius: 8px; width: 48px; height: 44px; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2.5px; background: var(--tierra); border-radius: 2px; position: relative; content: ""; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--papel); border-bottom: 3px solid var(--tierra); padding: .5rem var(--gutter) 1.2rem; display: none; }
  .nav[data-open="true"] { display: flex; }
  .nav a:not(.btn) { padding: .9rem .6rem; font-size: 1.1rem; border-bottom: 1px dashed var(--madera-3); border-radius: 0; }
  .nav .btn { margin-top: .8rem; }
}

main { display: block; min-height: 50vh; }

/* ---------- Mensajes ---------- */
.flashes { width: min(var(--wrap), 100% - var(--gutter) * 2); margin: 1.5rem auto 0; display: grid; gap: .5rem; }
.flash { padding: .8rem 1rem; border-radius: 6px; border-left: 6px solid var(--pasto); background: #fff; box-shadow: 0 1px 0 rgba(46,33,23,.1); }
.flash--error { border-color: var(--tomate); background: #fdf0ed; }
.flash--info { border-color: var(--madera); background: #fbf3e1; }
.flash--ok { border-color: var(--hoja-2); background: #f3f9df; }

/* ---------- Enredadera (crece con el scroll) ---------- */
.vine { display: none; position: absolute; top: 0; left: 0; width: 64px; height: 100%; pointer-events: none; z-index: 1; }
.vine svg { width: 64px; height: 100%; overflow: visible; }
.vine__stem { fill: none; stroke: var(--pasto); stroke-width: 3; stroke-linecap: round; }
.vine__leaf { fill: var(--hoja); stroke: var(--pasto); stroke-width: 1; transform-box: fill-box; transform: scale(0); transition: transform .5s var(--ease); }
.vine__leaf.on { transform: scale(1); }
.vine__bud { fill: var(--zanahoria); transform-box: fill-box; transform-origin: center; }
@media (min-width: 1280px) { .vine { display: block; } }
@media (prefers-reduced-motion: reduce) { .vine__leaf { transition: none; } }

/* ---------- Portada ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem); position: relative; }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.hero h1 { max-width: 12em; }
.hero__art { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.sprout { width: 100%; display: block; }
.sprout .sun { fill: #f2cf62; }
.sprout .soil-a { fill: var(--tierra-2); }
.sprout .soil-b { fill: var(--tierra); }
.sprout .stone { fill: var(--tierra-3); }
.sprout .root { fill: none; stroke: #eadfc3; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sprout .stem { fill: none; stroke: var(--hoja-2); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sprout .leaf { transform-box: fill-box; transform: scale(0); }
.sprout .leaf--a { fill: var(--hoja); transform-origin: 100% 100%; }
.sprout .leaf--b { fill: #b8d65c; transform-origin: 0% 100%; }
.sprout .leaf--c { fill: var(--hoja-2); transform-origin: 50% 100%; }
.sprout .vein { fill: none; stroke: var(--pasto); stroke-width: 1.5; opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .sprout .root { animation: draw 1.7s var(--ease) .15s forwards; }
  .sprout .stem { animation: draw 1.9s var(--ease) .9s forwards; }
  .sprout .leaf { animation: pop .7s var(--ease) forwards; }
  .sprout .leaf--a { animation-delay: 2.3s; }
  .sprout .leaf--b { animation-delay: 2.55s; }
  .sprout .leaf--c { animation-delay: 2.85s; }
}
@media (prefers-reduced-motion: reduce) {
  .sprout .root, .sprout .stem { stroke-dashoffset: 0; }
  .sprout .leaf { transform: scale(1); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0) rotate(-8deg); } 70% { transform: scale(1.07) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }

/* Cartelito de estaca (madera) */
.stake {
  position: relative; display: block; padding: 1rem 1.1rem 2.1rem; color: var(--tierra); text-decoration: none;
  background:
    repeating-linear-gradient(92deg, rgba(143,101,41,.0) 0 7px, rgba(143,101,41,.14) 7px 8px),
    linear-gradient(180deg, #d9b574, #c79b55);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
  transition: transform .25s var(--ease);
}
.stake:hover { transform: translateY(-3px) rotate(-.6deg); color: var(--tierra); }
.stake h3, .stake h4 { margin: 0; font-size: 1.15rem; }
.stake small { display: block; margin-top: .2rem; opacity: .8; }
.hero__stake { position: absolute; right: -2%; bottom: -3%; width: min(62%, 270px); transform: rotate(3deg); filter: drop-shadow(0 6px 0 rgba(46,33,23,.18)); }
.hero__stake .stake { padding-bottom: 2.4rem; }
.hero__stake ul { margin: .35rem 0 0; padding: 0; list-style: none; font-size: .95rem; line-height: 1.4; }
.hero__stake strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; display: block; }
@media (max-width: 899px) { .hero__stake { position: static; width: min(100%, 320px); margin: -1.5rem auto 0; } }

/* ---------- Camino de capítulos ---------- */
.path { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0; max-width: 46rem; counter-reset: cap; }
.path li { position: relative; padding: 0 0 1.5rem 3.2rem; }
.path li::before { content: ""; position: absolute; left: 1.05rem; top: 2.2rem; bottom: -.2rem; border-left: 3px dotted var(--madera); }
.path li:last-child::before { display: none; }
.path__dot { position: absolute; left: 0; top: .1rem; width: 2.25rem; height: 2.25rem; border-radius: 50% 50% 50% 8px; background: var(--hoja); border: 2px solid var(--pasto); display: grid; place-items: center; font-family: var(--font-display); font-size: .95rem; }
.path__dot--done { background: var(--pasto); color: #fff; }
.path__dot--lock { background: var(--madera-3); border-color: var(--madera-2); }
.path a { text-decoration: none; color: var(--tierra); }
.path h3 { margin: 0 0 .15rem; font-size: 1.25rem; }
.path a:hover h3 { text-decoration: underline; text-decoration-color: var(--hoja-2); text-underline-offset: 4px; }
.path p { margin: 0; color: var(--tierra-3); max-width: 52ch; }
.tag { display: inline-block; padding: .1rem .55rem; border-radius: 99px; background: var(--hoja-3); color: var(--pasto-2); font-size: .8rem; font-weight: 600; vertical-align: middle; margin-left: .4rem; }
.tag--wood { background: var(--madera-3); color: var(--tierra); }
.tag--warn { background: #f7d9d3; color: #7a2418; }

/* ---------- Bandas ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split--wide-left { grid-template-columns: 1.2fr .8fr; } }
.photo-frame { position: relative; padding: .6rem .6rem 2.2rem; background: #fffdf3; border-radius: 3px; box-shadow: 0 10px 0 -4px rgba(0,0,0,.18); transform: rotate(-1.6deg); max-width: 380px; margin-inline: auto; }
.photo-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.photo-frame--ph { aspect-ratio: 4/5; display: grid; place-items: center; }
.photo-frame--ph svg { width: 60%; opacity: .8; }
.photo-frame figcaption { position: absolute; left: 0; right: 0; bottom: .55rem; text-align: center; font-family: var(--font-display); font-size: .95rem; color: var(--tierra-2); }

.gallery { columns: 2 180px; column-gap: .8rem; }
@media (min-width: 800px) { .gallery { columns: 3; } }
.gallery a, .gallery figure { display: block; margin: 0 0 .8rem; break-inside: avoid; border-radius: 3px; overflow: hidden; background: var(--tierra-2); }
.gallery img, .gallery video { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(30,20,10,.88); }
.lightbox img { max-height: 90vh; max-width: 94vw; margin: auto; border-radius: 3px; }
.lightbox button { position: absolute; top: .5rem; right: .5rem; }

/* ---------- Fichas (cartelitos) ---------- */
.stakes { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 1.5rem; }
.stakes .stake { padding: .9rem .9rem 2.2rem; min-height: 112px; }
.stake--locked { filter: saturate(.7); }
.stake__lock { position: absolute; top: .55rem; right: .65rem; font-size: .8rem; }
.stake--soon { opacity: .6; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; }
.filters input[type="search"] { flex: 1 1 14rem; min-height: 46px; }
.chip { min-height: 38px; padding: .3rem .9rem; border: 2px solid var(--tierra-2); background: transparent; border-radius: 99px; font: 500 .95rem var(--font-body); cursor: pointer; color: var(--tierra); }
.chip[aria-pressed="true"] { background: var(--tierra); color: #fff; }
.is-hidden { display: none !important; }

/* ---------- Sobres de semillas (productos) ---------- */
.packets { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 1.5rem; }
.packet { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--tierra); background: #fffdf3; padding-top: 22px; box-shadow: 0 8px 0 -3px rgba(46,33,23,.16); transition: transform .25s var(--ease); }
.packet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: linear-gradient(135deg, var(--madera-3) 33%, transparent 33%) 0 0 / 22px 22px, linear-gradient(225deg, var(--madera-3) 33%, transparent 33%) 0 0 / 22px 22px; background-color: transparent; border-top: 8px solid var(--madera-3); }
.packet:hover { transform: translateY(-4px) rotate(.5deg); color: var(--tierra); }
.packet__img { aspect-ratio: 4/3; margin: 0 .7rem; background: var(--rocio-2); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--madera-3); }
.packet__img img { width: 100%; height: 100%; object-fit: cover; }
.packet__img svg { width: 38%; opacity: .55; }
.packet__body { padding: .9rem 1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.packet h3 { margin: 0; font-size: 1.2rem; }
.packet p { margin: 0; font-size: .95rem; color: var(--tierra-3); }
.price { font-family: var(--font-display); font-size: 1.35rem; color: var(--tierra); }
.price s { font-family: var(--font-body); font-size: .9rem; color: var(--tierra-3); margin-right: .35rem; }
.price small { font-family: var(--font-body); color: var(--pasto-2); font-weight: 600; font-size: .8rem; display: block; }
.packet__foot { margin-top: auto; padding-top: .4rem; }

/* ---------- Planes (etiquetas colgantes) ---------- */
.plans { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: start; margin-top: 1.5rem; }
.plan { position: relative; background: #fffdf3; color: var(--tierra); padding: 2.2rem 1.5rem 1.6rem; border-radius: 4px 4px 4px 28px; box-shadow: 0 10px 0 -4px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: .4rem; }
.plan::before { content: ""; position: absolute; top: .8rem; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--rocio); box-shadow: inset 0 2px 0 rgba(0,0,0,.25); }
.plan--hl { background: var(--hoja-3); outline: 3px solid var(--hoja); outline-offset: 4px; }
.plan h3 { margin: 0; }
.plan .price { font-size: 2.2rem; }
.plan .btn { margin-top: auto; }
.plan p { margin: 0 0 .5rem; }
.checklist { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.checklist li { padding-left: 1.9rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .4em; width: 1.15rem; height: .8rem; background: var(--hoja-2); border-radius: 100% 0 100% 0; transform: rotate(-12deg); }

/* ---------- Blog ---------- */
.posts { display: grid; gap: 2.2rem 1.6rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 1.5rem; }
.post { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: var(--tierra); }
.post__img { aspect-ratio: 3/2; background: var(--rocio-2); border-radius: 24px 4px 24px 4px; overflow: hidden; display: grid; place-items: center; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__img svg { width: 28%; opacity: .5; }
.post h3 { margin: 0; font-size: 1.3rem; }
.post:hover h3 { text-decoration: underline; text-decoration-color: var(--hoja-2); text-underline-offset: 4px; }
.post time { font-size: .85rem; color: var(--tierra-3); }
.post p { margin: 0; color: var(--tierra-3); }
.article-head { max-width: 46rem; }
.article-cover { border-radius: 28px 4px 28px 4px; overflow: hidden; margin-block: 1.5rem 2rem; }
.pager { display: flex; gap: .6rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }

/* ---------- Formularios ---------- */
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="tel"], input[type="date"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem; font: inherit; color: var(--tierra);
  background: #fffef8; border: 2px solid var(--tierra-3); border-radius: 6px;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pasto); outline: 3px solid rgba(157,193,62,.45); outline-offset: 0; }
.field { margin-bottom: 1.1rem; }
.field small { display: block; color: var(--tierra-3); margin-top: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; accent-color: var(--pasto); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--papel); border: 2px solid var(--tierra); border-radius: 6px 6px 6px 26px; padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 8px 8px 0 -2px var(--hoja-3); max-width: 30rem; }
.form-card--wide { max-width: 44rem; }
.auth { display: grid; gap: 2rem; padding-block: clamp(2rem, 6vw, 4rem); }
@media (min-width: 860px) { .auth { grid-template-columns: auto 1fr; align-items: start; gap: 4rem; } }
.radio-card { display: flex; gap: .7rem; padding: .85rem 1rem; border: 2px solid var(--tierra-3); border-radius: 6px; margin-bottom: .6rem; font-weight: 500; background: #fffef8; cursor: pointer; }
.radio-card input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--pasto); }
.radio-card:has(input:checked) { border-color: var(--pasto); background: var(--hoja-3); }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 2px solid var(--tierra-2); border-radius: 6px; background: #fffef8; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: .6rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rocio-2); }
thead th { background: var(--tierra); color: #fffdf3; font-weight: 600; position: sticky; top: 0; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.cart-table td, .cart-table th { vertical-align: middle; }
.cart-table input[type="number"] { width: 5rem; min-height: 40px; }
.totals { margin-left: auto; max-width: 22rem; margin-top: 1.2rem; }
.totals div { display: flex; justify-content: space-between; padding: .3rem 0; }
.totals .grand { border-top: 2px solid var(--tierra); font-family: var(--font-display); font-size: 1.4rem; margin-top: .4rem; padding-top: .6rem; }

/* ---------- Detalle de producto ---------- */
.product { display: grid; gap: 2rem; padding-block: 2rem 4rem; }
@media (min-width: 860px) { .product { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.product__main { aspect-ratio: 1; background: #fffdf3; border: 8px solid #fffdf3; box-shadow: 0 10px 0 -4px rgba(46,33,23,.2); overflow: hidden; display: grid; place-items: center; }
.product__main img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { display: flex; gap: .6rem; margin-top: .9rem; }
.product__thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid var(--tierra-3); background: #fffdf3; cursor: pointer; border-radius: 3px; overflow: hidden; }
.product__thumbs button[aria-current="true"] { border-color: var(--pasto); outline: 2px solid var(--hoja); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pie ---------- */
.site-footer { background: var(--tierra); color: #e6dcc3; margin-top: 4rem; padding-block: 3rem 2rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: radial-gradient(circle at 10px 14px, var(--tierra) 9px, transparent 10px) 0 0 / 20px 14px repeat-x; }
.site-footer a { color: var(--hoja-3); }
.site-footer h2 { font-size: 1.1rem; color: #fffdf3; margin-bottom: .6rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px dashed rgba(230,220,195,.3); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Páginas con encabezado simple ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18em; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; color: var(--tierra-3); }
.breadcrumb a { color: var(--tierra-3); }

/* ==========================================================================
   Guía (zona de socios)
   ========================================================================== */
.guide-progress { position: fixed; top: 0; left: 0; height: 5px; width: 0; background: linear-gradient(90deg, var(--hoja), var(--hoja-2)); z-index: 60; transition: width .1s linear; }
.guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 1.5rem 3rem; }
@media (min-width: 980px) { .guide { grid-template-columns: 270px minmax(0, 1fr); gap: 3.5rem; padding-top: 2.5rem; } }
.toc { font-size: .97rem; }
@media (min-width: 980px) { .toc { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow: auto; padding-right: .5rem; } }
@media (max-width: 979px) {
  .toc { position: fixed; inset: 0 auto 0 0; width: min(88vw, 340px); background: var(--papel); z-index: 80; padding: 1rem 1.1rem 6rem; overflow: auto; transform: translateX(-102%); transition: transform .3s var(--ease); border-right: 3px solid var(--tierra); }
  .toc[data-open="true"] { transform: none; box-shadow: 0 0 0 100vmax rgba(30,20,10,.55); }
}
.toc h2 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; }
.toc li a { display: flex; gap: .55rem; padding: .45rem .5rem; text-decoration: none; color: var(--tierra); border-radius: 6px; align-items: baseline; line-height: 1.3; }
.toc li a:hover { background: var(--rocio-2); }
.toc li a[aria-current="page"] { background: var(--hoja-3); font-weight: 600; }
.toc .mark { flex: none; width: 1.1rem; text-align: center; font-size: .85rem; }
.toc .is-locked a { color: var(--tierra-3); }
.toc__links a { font-weight: 600; }
.guide-bar { display: none; }
@media (max-width: 979px) {
  .guide-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; gap: .5rem; padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom)); background: var(--tierra); }
  .guide-bar .btn { flex: 1; min-height: 46px; font-size: .95rem; padding-inline: .6rem; }
  .guide-bar .btn--ghost { color: #fff; border-color: #cbbf9f; }
  body.has-guide-bar { padding-bottom: 70px; }
}
.toc-close { display: none; }
@media (max-width: 979px) { .toc-close { display: inline-flex; float: right; } }

.chapter-head { margin-bottom: 1.6rem; max-width: 40rem; }
.chapter-head h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.chapter-meta { color: var(--tierra-3); font-size: .95rem; margin-bottom: .8rem; }
.chapter-end { margin-top: 3rem; padding-top: 1.8rem; border-top: 3px dotted var(--madera); display: grid; gap: 1.2rem; max-width: 66ch; }
.chapter-nav { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.chapter-nav a { display: block; padding: 1rem 1.1rem; border: 2px solid var(--tierra); border-radius: 6px; text-decoration: none; color: var(--tierra); background: var(--papel); min-height: 72px; }
.chapter-nav a:hover { background: var(--hoja-3); }
.chapter-nav a small { display: block; color: var(--tierra-3); }
.chapter-nav a:last-child:not(:first-child) { text-align: right; }
.chapter-nav a:only-child { grid-column: 1 / -1; }

/* Avisos dentro del contenido */
aside.tip, aside.warn, aside.note { margin: 1.4rem 0; padding: 1rem 1.2rem; border-radius: 4px 18px 4px 18px; border-left: 6px solid var(--hoja-2); background: var(--rocio-2); max-width: 66ch; }
aside.warn { border-color: var(--tomate); background: #fbe7e2; }
aside.note { border-color: var(--madera); background: #f6ebd3; }
aside.tip p:last-child, aside.warn p:last-child, aside.note p:last-child { margin-bottom: 0; }
.embed { position: relative; aspect-ratio: 16/9; margin: 1.4rem 0; border-radius: 4px; overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Calendario */
.guide__main { min-width: 0; }
.cal { overflow: auto; contain: paint; max-width: 100%; border: 2px solid var(--tierra-2); border-radius: 6px; background: #fffef8; margin: 1.2rem 0 .6rem; max-height: 80vh; }
.cal__table { min-width: 720px; font-size: .9rem; }
.cal__table th, .cal__table td { padding: .35rem .3rem; text-align: center; border-bottom: 1px solid var(--rocio-2); }
.cal__table thead th { position: sticky; top: 0; z-index: 2; }
.cal__table tbody th[scope="row"] { text-align: left; position: sticky; left: 0; background: #fffef8; z-index: 1; min-width: 8.5rem; padding-left: .7rem; font-weight: 600; border-right: 2px solid var(--rocio-2); }
.cal__cat th { background: var(--madera-3) !important; text-align: left !important; font-family: var(--font-display); font-weight: 400; padding: .4rem .7rem !important; position: static !important; }
.cal td.s, .key.s { background: var(--hoja); color: var(--tierra); font-weight: 700; }
.cal td.t, .key.t { background: var(--madera); color: #fff; font-weight: 700; }
.cal td.s.t { background: linear-gradient(135deg, var(--hoja) 50%, var(--madera) 50%); color: var(--tierra); font-size: .75rem; }
.cal .is-now { box-shadow: inset 3px 0 0 var(--zanahoria), inset -3px 0 0 var(--zanahoria); }
.cal thead .is-now { background: var(--zanahoria); color: #fff; box-shadow: none; }
.cal td.now:empty { background: rgba(228,121,58,.1); }
.cal__legend { font-size: .9rem; color: var(--tierra-3); }
.key { display: inline-block; width: 1.5rem; text-align: center; border-radius: 4px; margin-right: .2rem; }

.moon-card { display: flex; gap: 1rem; align-items: center; margin: 1.4rem 0; padding: 1rem 1.2rem; background: var(--tierra); color: #efe8d6; border-radius: 4px 22px 4px 22px; max-width: 66ch; }
.moon-card p { margin: .2rem 0; }
.moon-card small { opacity: .75; }
.moon-card__icon { flex: none; }
.moon-card strong { color: #fffdf3; }

/* Fichas: detalle */
.ficha { display: grid; gap: 2rem; }
@media (min-width: 900px) { .ficha { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; } }
.ficha__aside { display: grid; gap: 1rem; }
@media (min-width: 900px) { .ficha__aside { position: sticky; top: 1rem; } }
.ficha__photo { aspect-ratio: 4/3; background: var(--hoja-3); border-radius: 28px 4px 28px 4px; overflow: hidden; display: grid; place-items: center; }
.ficha__photo img { width: 100%; height: 100%; object-fit: cover; }
.ficha__photo svg { width: 34%; opacity: .55; }
.facts { background: var(--papel); border: 2px solid var(--tierra); border-radius: 4px 4px 4px 22px; padding: 1rem 1.1rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: .5rem 0; }
.months span { height: 30px; display: grid; place-items: center; font-size: .72rem; font-weight: 600; border-radius: 3px; background: var(--rocio-2); color: var(--tierra-3); }
.months .s { background: var(--hoja); color: var(--tierra); }
.months .t { background: var(--madera); color: #fff; }
.months .s.t { background: linear-gradient(135deg, var(--hoja) 50%, var(--madera) 50%); color: var(--tierra); }
.months .now { outline: 2px solid var(--zanahoria); outline-offset: 1px; }
.ficha-sections h2 { font-size: 1.4rem; margin: 1.8rem 0 .4rem; }
.ficha-sections h2:first-child { margin-top: 0; }
.ficha-sections p { max-width: 62ch; }
.neighbours { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.neighbours a { padding: .3rem .8rem; border: 2px solid var(--tierra-3); border-radius: 99px; text-decoration: none; font-size: .95rem; }
.neighbours a:hover { background: var(--hoja-3); }

/* Bloqueado */
.locked { text-align: left; padding-block: clamp(2rem, 6vw, 4rem); }
.locked__box { max-width: 40rem; background: var(--papel); border: 2px solid var(--tierra); border-radius: 4px 4px 4px 30px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: 10px 10px 0 -2px var(--madera-3); }

/* Cuenta / pedido */
.status { display: inline-block; padding: .15rem .7rem; border-radius: 99px; font-size: .85rem; font-weight: 600; background: var(--madera-3); }
.status--pagado, .status--entregado { background: var(--hoja-3); color: var(--pasto-2); }
.status--enviado { background: #d9e8f7; color: #1d4670; }
.status--cancelado { background: #f1d4cf; color: #7a2418; }
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.box { background: var(--papel); border: 2px solid var(--tierra-2); border-radius: 4px 4px 4px 22px; padding: 1.2rem 1.4rem; }
.box h2, .box h3 { margin-top: 0; }
.copyable { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #fffef8; border: 1px dashed var(--madera); padding: .2rem .5rem; border-radius: 4px; }
.print-only { display: none; }
@media print { .site-header, .site-footer, .vine, .guide-bar, .toc, .guide-progress, .chapter-end { display: none !important; } body { background: #fff; } .guide { display: block; } }
