:root { --verde: #2e6b2f; --verde-osc: #1d4a1f; --rojo: #c62a1f; --amarillo: #f2c230; --cielo: #e6f1f8; --crema: #f7f5ee; --texto: #1d231e; --suave: #5f6b61; --borde: #e2e0d6; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--texto); background: var(--crema); }
[hidden] { display: none !important; }
.contenedor { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.fila { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cabecera { background: #fff; border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 5; }
.cabecera .fila { height: 64px; }
.marca { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--texto); text-decoration: none; font-size: 1.1rem; }
.carrito-btn { white-space: nowrap; flex-shrink: 0; font: inherit; background: var(--rojo); color: #fff; border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; font-weight: 600; }
.carrito-btn span { background: #fff; color: var(--rojo); border-radius: 999px; padding: 0 .5rem; margin-left: .3rem; }
.portada { position: relative; overflow: hidden; color: #fff; padding: 3rem 0 4.5rem;
  background: linear-gradient(180deg, #1d4a1f 0%, #2e6b2f 100%); }
.portada::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 70px; background: var(--crema);
  clip-path: ellipse(60% 100% at 50% 100%); }
.portada .contenedor { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--amarillo) !important; font-weight: 700; margin: 0 0 .5rem !important; }
.acciones-portada { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.btn-portada { display: inline-block; text-decoration: none; font-weight: 700; padding: .7rem 1.2rem; border-radius: 999px; background: var(--amarillo); color: #1d231e; }
.btn-portada.sec { background: transparent; color: #fff; border: 1.5px solid #ffffff88; }
.btn-portada:hover { filter: brightness(1.05); }
.portada h1 { margin: 0 0 .5rem; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.01em; }
.portada p { margin: .25rem 0; max-width: 640px; color: #dfeadf; }
.portada .datos { font-size: .95rem; }
.filtros { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.5rem 0 1rem; }
.filtros input { font: inherit; padding: .65rem .9rem; border: 1px solid var(--borde); border-radius: 999px; min-width: min(320px, 100%); background: #fff; }
.cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.cats button { font: inherit; border: 1px solid var(--borde); background: #fff; border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.cats button[aria-pressed="true"] { background: var(--verde); color: #fff; border-color: var(--verde); }
.productos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 3rem; }
.producto { background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.producto:hover { box-shadow: 0 6px 20px #1d231e14; transform: translateY(-2px); }
.producto .img { margin: 0 -1rem .35rem; aspect-ratio: 16 / 10; background: var(--cielo); color: var(--verde); display: grid; place-items: center; border-bottom: 1px solid var(--borde); }
.producto .img svg { width: 30%; height: auto; }
.producto:nth-child(3n+2) .img { background: #eef5e6; }
.producto:nth-child(3n) .img { background: #fbf3dc; color: #9a6b00; }
.producto h3 { margin: 0; font-size: 1.05rem; }
.producto .desc { color: var(--suave); font-size: .9rem; margin: 0; flex: 1; }
.producto .cat { font-size: .78rem; color: var(--rojo); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.producto .precio { font-size: 1.2rem; font-weight: 700; }
.producto .precio small { font-weight: 400; color: var(--suave); font-size: .85rem; }
.btn { font: inherit; display: inline-block; text-align: center; text-decoration: none; background: var(--verde); color: #fff; border: 0; border-radius: 10px; padding: .7rem 1rem; cursor: pointer; font-weight: 600; width: 100%; }
.btn:hover { background: var(--verde-osc); }
.btn:disabled { background: #b9c2b9; cursor: default; }
.btn.secundario { background: #fff; color: var(--verde); border: 1px solid var(--verde); margin-top: .5rem; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
.vacio { color: var(--suave); grid-column: 1 / -1; text-align: center; padding: 2rem; }
.carrito { position: fixed; inset: 0; background: #0006; display: flex; justify-content: flex-end; z-index: 10; }
.carrito-caja { background: #fff; width: min(420px, 100%); height: 100%; overflow-y: auto; padding: 1.25rem; }
.carrito-caja h2 { margin: 0; }
.cerrar { font: inherit; background: none; border: 0; font-size: 1.3rem; cursor: pointer; padding: .3rem .5rem; }
.linea { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .75rem 0; border-bottom: 1px solid var(--borde); }
.linea .ctrl { display: flex; align-items: center; gap: .4rem; }
.linea .ctrl button { font: inherit; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--borde); background: #fff; cursor: pointer; }
.total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; margin: 1rem 0; }
form label { display: block; font-size: .9rem; color: var(--suave); margin-bottom: .7rem; }
form input, form textarea { font: inherit; width: 100%; margin-top: .25rem; padding: .6rem .75rem; border: 1px solid var(--borde); border-radius: 8px; }
.error { color: #b3261e; min-height: 1.2em; }
.letra { font-size: .8rem; color: var(--suave); }
.listo { height: auto; margin: auto; border-radius: 14px; text-align: center; }
#listo { justify-content: center; align-items: center; padding: 16px; }
.pie { background: #fff; border-top: 1px solid var(--borde); padding: 1.5rem 0; color: var(--suave); font-size: .9rem; }
.by { text-align: center; font-size: .75rem; color: var(--suave); margin: .75rem 0; }
