/* La Granja del Valle — catálogo completo (catalogo.html) y vista previa en la portada.
   Usa las variables y componentes de styles.css. */

.head--row { flex-wrap: wrap; }
.head__btn { flex: none; }
.more { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.more__n { color: var(--muted); font-size: .95rem; }
.more__n b { color: var(--ink); }

/* encabezado */
.chero { position: relative; background: #fff; color: var(--ink); padding: calc(var(--bar-h) + 40px) 0 70px; overflow: hidden; }
.chero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 520px at 88% 40%, rgba(255, 201, 51, .3), transparent 70%), radial-gradient(460px 460px at 0% 100%, rgba(31, 107, 74, .1), transparent 70%); }
.chero__in { position: relative; }
.crumbs { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--red); }
.crumbs b { color: var(--red); font-weight: 700; }
.chero h1 { font-size: clamp(2.8rem, 10vw, 6rem); line-height: .94; color: var(--ink); margin-bottom: 22px; }
.chero h1 mark { background: var(--yellow); color: var(--ink); padding: 0 .12em .04em; border-radius: .16em; display: inline-block; transform: rotate(-2.5deg); }
.chero .lead { max-width: 640px; color: #3d4a43; }
.steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--paper); font-weight: 500; font-size: .92rem; }
.steps b { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: .85rem; }

/* listado */
.clist { padding: 56px 0 90px; }
.ctools { display: grid; gap: 14px; margin-bottom: 18px; }
.ctools #chips { flex-wrap: wrap; overflow: visible; }
.ctools .tools__r { flex-wrap: nowrap; }
.ctools .search { flex: 1 1 auto; }
.ctools .sort { flex: 0 0 auto; }
.ctools .sort select { width: auto; min-width: 190px; }
@media (max-width: 719px) {
  .ctools #chips { flex-wrap: nowrap; overflow-x: auto; }
  .ctools .tools__r { flex-wrap: wrap; }
  .ctools .sort { flex: 1 1 100%; }
  .ctools .sort select { width: 100%; }
}
.empty { flex-direction: column; align-items: center; gap: 10px; padding: 56px 0; text-align: center; }
.empty:not([hidden]) { display: flex; }
.empty b { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.02em; }
.empty span { color: var(--muted); }

.add { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.add span { font-size: 1.15rem; line-height: 1; }
.add:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.qty { display: flex; align-items: center; justify-content: space-between; border: var(--bw) solid var(--ink); border-radius: 999px; background: #fff; padding: 3px; }
.qty button { width: 38px; height: 38px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--brand); color: #fff; font: 800 1.2rem/1 var(--display); display: grid; place-items: center; padding: 0 0 2px; }
.qty button:hover { background: var(--ink); color: #fff; }
.qty b { font-family: var(--display); font-size: 1.1rem; min-width: 2ch; text-align: center; }
.qty--s { display: flex; width: max-content; gap: 6px; margin-top: 8px; }
.qty--s button { width: 30px; height: 30px; font-size: 1rem; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.pager button { min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px; border: var(--bw) solid var(--ink); background: transparent; font: 700 1rem var(--body); transition: background .15s; }
.pager button:hover:not(:disabled) { background: var(--yellow); }
.pager button[aria-current] { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--red); }
.pager button:disabled { opacity: .35; cursor: default; }

.cta { background: var(--yellow); padding: 54px 0; border-top: var(--bw) solid var(--ink); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); margin-bottom: 8px; }
.cta p { max-width: 520px; color: rgba(11, 33, 24, .8); }
.cta .btn--wa { --btn-sh: var(--ink); }

/* barra flotante del pedido */
.cartbar { position: fixed; z-index: 140; bottom: 18px; left: 16px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; max-width: calc(100% - 96px); border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; box-shadow: 4px 4px 0 var(--red); }
.cartbar[hidden] { display: none; }
.cartbar__n { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--display); }
.cartbar b { color: var(--yellow); }
@media (min-width: 720px) { .cartbar { left: 50%; transform: translateX(-50%); } }

/* panel del pedido */
.scrim { position: fixed; inset: 0; z-index: 350; background: rgba(5, 16, 11, .6); }
.scrim[hidden] { display: none; }
.drawer { position: fixed; z-index: 360; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; border-left: var(--bw) solid var(--ink); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer__h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: var(--bw) solid var(--ink); background: var(--logo-red); }
.drawer__h h2 { font-size: 1.7rem; color: #fff; }
.drawer__x, .qv__x { width: 42px; height: 42px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--paper); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; padding: 0 0 3px; }
.drawer__b { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__f { padding: 16px 20px 22px; border-top: var(--bw) solid var(--ink); display: grid; gap: 12px; background: #fff; }
.drawer__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 60px 10px; color: var(--muted); }
.drawer__empty svg { width: 56px; height: 56px; color: var(--ink); }
.drawer__empty b { font-family: var(--display); font-size: 1.4rem; color: var(--ink); }
.ci li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1.5px dashed rgba(11, 33, 24, .25); }
.ci img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; border: var(--bw) solid var(--ink); }
.ci__t b { display: block; font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; }
.ci__t small { color: var(--muted); font-size: .78rem; }
.ci__r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ci__r b { font-family: var(--display); }
.ci__rm { background: none; border: 0; padding: 0; color: var(--red); font-size: .78rem; font-weight: 700; text-decoration: underline; }
.drawer__tot { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.drawer__tot b { font-family: var(--display); font-size: 1.8rem; letter-spacing: -.03em; }
.drawer__f .btn--wa { --btn-sh: var(--ink); }
.drawer__clr { background: none; border: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; padding: 2px; }
.drawer__n { font-size: .78rem; color: var(--muted); text-align: center; }

/* vista rápida */
.qv { position: fixed; inset: 0; z-index: 400; background: rgba(5, 16, 11, .8); display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.qv[hidden] { display: none; }
.qv__box { position: relative; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 28px; overflow: hidden; width: min(900px, 100%); display: grid; box-shadow: 8px 8px 0 var(--yellow); }
.qv__x { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--yellow); }
.qv__img { background: var(--mint); aspect-ratio: 1; border-bottom: var(--bw) solid var(--ink); }
.qv__img img { width: 100%; height: 100%; object-fit: cover; }
.qv__b { padding: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.qv__b h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.qv__d { color: var(--muted); }
.qv__act { width: 100%; max-width: 280px; }
.qv__b .btn--wa { --btn-sh: var(--ink); }
.qv__nav { display: flex; gap: 8px; margin-top: auto; }
.qv__nav button { background: none; border: 0; font-weight: 700; padding: 6px 4px; color: var(--muted); }
.qv__nav button:hover { color: var(--red); }
.tag--s { position: static; display: inline-block; }
.price--xl { font-size: 2.2rem; }
@media (min-width: 720px) {
  .qv__box { grid-template-columns: 1fr 1fr; }
  .qv__img { aspect-ratio: auto; border-bottom: 0; border-right: var(--bw) solid var(--ink); min-height: 440px; }
  .qv__b { padding: 34px 30px; }
  .chero { padding-top: calc(var(--bar-h) + 50px); }
}
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }

/* póster promocional (recortado, sin fondo) en el encabezado del catálogo */
.promo { position: relative; width: min(320px, 78%); margin: 40px auto 0; transform: rotate(2deg); filter: drop-shadow(0 18px 22px rgba(11, 33, 24, .22)); }
.promo img { width: 100%; height: auto; }
@media (min-width: 1000px) {
  .chero { min-height: 730px; }
  .promo { position: absolute; right: max(24px, calc((100vw - 1200px) / 2 + 20px)); top: 130px; width: 360px; margin: 0; }
}

/* botón de agregar al pedido en las tarjetas de la portada */
.fcard .qty { background: #fff; color: var(--ink); }
.fcard .btn svg { width: 20px; height: 20px; }
.cartbar { text-decoration: none; }
.fcard .act { margin-top: auto; }

/* ---------- tarjeta de producto (estilo suave de catálogo) ---------- */
.pcard { background: #fff; border-radius: 28px; padding: 12px; box-shadow: 0 10px 34px -16px rgba(11, 33, 24, .25), 0 0 0 1px rgba(11, 33, 24, .05); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -18px rgba(11, 33, 24, .32), 0 0 0 1px rgba(11, 33, 24, .07); }
.pcard__media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--mint); }
.pcard__img { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard .tag { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--ink); font-size: .68rem; font-weight: 700; letter-spacing: .07em; padding: 6px 13px; border: 2px solid var(--logo-red); border-radius: 999px; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); pointer-events: none; }
.pcard__b { padding: 16px 6px 6px; display: flex; flex-direction: column; flex: 1; }
.pcard__b h3 { font-family: var(--body); font-weight: 500; font-size: 1.05rem; letter-spacing: 0; line-height: 1.3; color: var(--ink); }
.pcard .price { font-family: var(--body); font-weight: 400; font-size: clamp(1.55rem, 2.3vw, 1.95rem); line-height: 1; letter-spacing: -.02em; margin: 14px 0 9px; color: var(--ink); }
.pcard .meta { color: var(--muted); font-size: .88rem; }
.pcard__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.pcard .loc { color: #8a948e; font-size: .9rem; }
.pcard .act { margin-left: auto; }
.pcard .add { width: auto; padding: 9px 18px; font-size: .88rem; border: 0; box-shadow: none; }
.pcard .add:hover { transform: none; box-shadow: none; background: #007a3b; }
.pcard .qty { border: 0; background: #eef1ef; padding: 3px; min-width: 112px; }
.pcard .qty button { width: 32px; height: 32px; border: 0; font-size: 1.05rem; }
.pcard .qty b { font-size: 1rem; }
.pcard__a--cart { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; display: grid; place-items: center; transition: transform .15s, background .15s; }
.pcard__a--cart:hover { transform: scale(1.08); background: #007a3b; }
.pcard__a--cart svg { width: 21px; height: 21px; }
@media (max-width: 559px) {
  .pcard { padding: 8px; border-radius: 22px; }
  .pcard__media { border-radius: 16px; }
  .pcard .tag { left: 8px; top: 8px; padding: 4px 9px; font-size: .6rem; }
  .pcard__b { padding: 12px 4px 4px; }
  .pcard__b h3 { font-size: .95rem; }
  .pcard .price { font-size: 1.4rem; margin: 10px 0 6px; }
  .pcard__foot { padding-top: 12px; }
  .pcard .loc { display: none; }
  .pcard .act { margin-left: 0; width: 100%; }
  .pcard .add, .pcard .qty { width: 100%; justify-content: center; }
}

/* imagen de la vaca en la sección de contacto: sin marco, sin fondo; las tarjetas tapan su borde inferior */
.contact__top { display: grid; gap: 28px; align-items: center; }
.contact__poster { width: min(320px, 78%); margin: 0 auto -70px; position: relative; }
.contact__poster img { width: 100%; height: auto; display: block; }
.contact .cinfo { position: relative; z-index: 1; }
@media (min-width: 1000px) {
  .contact__top { grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
  .contact__copy { text-align: left; }
  .contact__copy .kicker { justify-content: flex-start; }
  .contact__copy .sub { margin: 0 0 34px; }
  .contact__poster { width: 400px; margin: 0 0 -110px auto; }
}
