/* ============================================================
   ETZATRAVEL SHOP (v0.17.0)
   Página /tienda/ (.vce-tienda), franja de la portada (.vce-shop) y la
   tarjeta de producto (.vce-pcard). Hereda tokens, utilidades de home.css
   (eyebrow, h2, script, botones) y la cabecera del catálogo (viaje-archive.css).
   ============================================================ */

/* ---------- Cabecera ---------- */
.vce-tienda__hero .vce-catalogo__title { max-width: 16ch; }
.vce-tienda__script { font-size: 1.15em; }
.vce-tienda__ml-pill { display: inline-flex; align-items: center; gap: .6rem; margin: .5rem 0 0; padding: .55rem .95rem .55rem .6rem; border-radius: 999px; background: rgba(247,247,242,.1); border: 1px solid rgba(247,247,242,.22); color: rgba(247,247,242,.9); font-size: .8125rem; }
.vce-tienda__ruta { position: absolute; left: var(--vce-container-pad, 1.5rem); right: var(--vce-container-pad, 1.5rem); bottom: 1.4rem; border-top: 1px dashed rgba(193,133,54,.55); pointer-events: none; }

/* ---------- Sello Mercado Libre ---------- */
.vce-pcard__ml { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #FFE600; color: #2D3277; font-family: var(--vce-font-display); font-size: .625rem; font-weight: 800; letter-spacing: 0; flex: 0 0 20px; }

/* ---------- Página ---------- */
.vce-tienda { padding: clamp(2rem, 4vw, 3rem) var(--vce-container-pad, 1.5rem) clamp(3.5rem, 7vw, 6rem); }
.vce-tienda__chips { display: flex; gap: .6rem; flex-wrap: wrap; margin: 0 0 1.75rem; }
.vce-tienda__chip { min-height: 44px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--vce-color-border); background: var(--vce-blanco); color: var(--vce-yale); font-family: var(--vce-font-display); font-size: .8125rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.vce-tienda__chip:hover { border-color: var(--vce-picton); }
.vce-tienda__chip.is-active { background: var(--vce-yale); border-color: var(--vce-yale); color: var(--vce-hueso); }
.vce-tienda__chip:focus-visible { outline: 3px solid var(--vce-picton); outline-offset: 2px; }
.vce-tienda__grid, .vce-shop__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.vce-tienda__empty { margin: 1.5rem 0 0; color: var(--vce-color-text-muted); }
.vce-tienda__legal { margin: 2.25rem 0 0; max-width: 48rem; font-size: .8125rem; line-height: 1.6; color: var(--vce-color-text-muted); }
.vce-tienda__vacio { padding: clamp(2rem, 5vw, 4rem) 0; max-width: 40rem; }
.vce-tienda__vacio h2 { font-family: var(--vce-font-display); font-size: var(--vce-fs-xl); color: var(--vce-yale); margin: .5rem 0 .75rem; letter-spacing: -.02em; }
.vce-tienda__vacio p { margin: 0; color: var(--vce-color-text-muted); }

/* ---------- Tarjeta de producto ---------- */
.vce-pcard { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 24px; background: var(--vce-blanco); overflow: hidden; box-shadow: 0 1px 0 rgba(0,48,117,.06); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.vce-pcard:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,48,117,.14); }
.vce-pcard:focus-within { outline: 3px solid var(--vce-picton); outline-offset: 3px; }
.vce-pcard__media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(160deg, var(--vce-columbia) 0%, #8FB3C6 100%); color: var(--vce-hueso); }
.vce-pcard--sin-foto:nth-child(3n+2) .vce-pcard__media { background: linear-gradient(160deg, var(--vce-yale) 0%, var(--vce-indigo) 100%); }
.vce-pcard--sin-foto:nth-child(3n) .vce-pcard__media { background: linear-gradient(120deg, var(--vce-columbia), var(--vce-hueso) 60%, #E9D9B8); color: var(--vce-yale); }
.vce-pcard__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.vce-pcard:hover .vce-pcard__img { transform: scale(1.05); }
.vce-pcard__ph { width: 42%; height: 42%; opacity: .9; }
.vce-pcard__chip { position: absolute; top: .9rem; left: .9rem; z-index: 1; display: inline-flex; align-items: center; min-height: 30px; padding: 0 .8rem; border-radius: 999px; background: rgba(247,247,242,.92); color: var(--vce-yale); font-size: .625rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(8px); }
.vce-pcard__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.vce-pcard__meta { margin: 0; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vce-bronce-tinta); font-weight: 600; }
.vce-pcard__title { margin: 0; font-family: var(--vce-font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.15; letter-spacing: -.015em; color: var(--vce-yale); text-wrap: balance; }
.vce-pcard__desc { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--vce-color-text-muted); }
.vce-pcard__frase { margin: .1rem 0 0; font-size: .8125rem; line-height: 1.45; color: var(--vce-indigo); font-style: italic; }
.vce-pcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--vce-color-border); }
.vce-pcard__price { margin: 0; display: flex; flex-direction: column; line-height: 1.1; }
.vce-pcard__price-label { font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--vce-gris-medio); }
.vce-pcard__price-value { font-family: var(--vce-font-display); font-size: 1.15rem; font-weight: 600; color: var(--vce-yale); white-space: nowrap; }
.vce-pcard__price--consultar .vce-pcard__price-value { font-size: .875rem; font-weight: 500; color: var(--vce-bronce-tinta); }
.vce-pcard__go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem 0 .6rem; border-radius: 999px; background: var(--vce-indigo); color: var(--vce-hueso); font-family: var(--vce-font-display); font-size: .75rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; text-decoration: none; transition: background .2s, transform .2s; }
.vce-pcard__go:hover { background: var(--vce-yale); color: var(--vce-hueso); }
.vce-pcard__go:active { transform: scale(.97); }
.vce-pcard__go:focus-visible { outline: 3px solid var(--vce-picton); outline-offset: 2px; }
.vce-pcard__go .vce-pcard__ml { width: 18px; height: 18px; flex-basis: 18px; }
.vce-pcard__go--wa { background: #25D366; color: #062B14; }
.vce-pcard__go--wa:hover { background: #1EBE5A; color: #062B14; }
.vce-pcard__wa { flex: 0 0 18px; }
.vce-pcard__go-s { display: none; }

/* ---------- Bloque "Hola, soy Dulce" ---------- */
.vce-tienda__dulce { display: grid; grid-template-columns: 120px 1fr auto; gap: 1.75rem; align-items: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.75rem 2rem; border-radius: 24px; background: var(--vce-blanco); border: 1px solid var(--vce-color-border); }
.vce-tienda__dulce-foto { width: 120px; height: 120px; border-radius: 60px 60px 22px 22px; overflow: hidden; background: linear-gradient(160deg, var(--vce-columbia), var(--vce-indigo)); }
.vce-tienda__dulce-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.vce-tienda__dulce-txt h2 { margin: 0 0 .4rem; font-family: var(--vce-font-display); font-size: var(--vce-fs-lg); font-weight: 600; color: var(--vce-yale); letter-spacing: -.02em; line-height: 1.15; }
.vce-tienda__dulce-txt h2 .vce-script { font-size: 1.5em; margin-right: .25rem; }
.vce-tienda__dulce-txt p { margin: 0; color: var(--vce-color-text-muted); line-height: 1.55; max-width: 40rem; }
.vce-c .vce-btn--wa { background: #25D366; border-color: #25D366; color: #fff; }
.vce-c .vce-btn--wa:hover { background: #1EBE5A; border-color: #1EBE5A; color: #fff; }

/* ---------- Franja en la portada ---------- */
.vce-shop { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.vce-shop__head { display: grid; grid-template-columns: 1fr auto; gap: 1.75rem; align-items: end; margin-bottom: 2rem; }
.vce-shop__head .vce-h2 { max-width: 14ch; }
.vce-shop__linea { display: block; width: var(--vce-linea-w, 56px); height: 1px; background: var(--vce-bronce); margin: 1rem 0 .9rem; }
.vce-shop__sub { margin: 0; max-width: 34rem; color: var(--vce-color-text-muted); line-height: 1.55; }
.vce-c .vce-shop__all { white-space: nowrap; }

/* ---------- Responsivo ---------- */
@media (max-width: 1023px) {
  .vce-tienda__grid, .vce-shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
}
@media (max-width: 719px) {
  .vce-tienda__grid, .vce-shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .vce-tienda__chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--vce-container-pad, 1.5rem)); margin-right: calc(-1 * var(--vce-container-pad, 1.5rem)); padding: 0 var(--vce-container-pad, 1.5rem) .35rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .vce-tienda__chips::-webkit-scrollbar { display: none; }
  .vce-tienda__chip { white-space: nowrap; flex: 0 0 auto; }
  .vce-pcard { border-radius: 18px; }
  .vce-pcard__body { padding: .85rem .85rem .95rem; gap: .3rem; }
  .vce-pcard__title { font-size: .95rem; }
  .vce-pcard__desc, .vce-pcard__frase { display: none; }
  .vce-pcard__chip { top: .6rem; left: .6rem; min-height: 26px; padding: 0 .6rem; font-size: .5625rem; }
  .vce-pcard__foot { flex-direction: column; align-items: stretch; gap: .5rem; padding-top: .65rem; }
  .vce-pcard__price { flex-direction: row; align-items: baseline; gap: .4rem; }
  .vce-pcard__price-value { font-size: 1rem; }
  .vce-pcard__go { justify-content: center; min-height: 48px; font-size: .75rem; padding: 0 .5rem; white-space: normal; text-align: center; line-height: 1.15; }
  .vce-pcard__go .vce-pcard__go-l { display: none; }
  .vce-pcard__go .vce-pcard__go-s { display: inline; }
  .vce-pcard__meta { font-size: .5625rem; letter-spacing: .1em; white-space: nowrap; }
  .vce-pcard__price-label { font-size: .5625rem; }
  .vce-tienda__dulce { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.4rem 1.25rem; text-align: left; }
  .vce-tienda__dulce-foto { width: 88px; height: 88px; border-radius: 44px 44px 16px 16px; }
  .vce-c .vce-tienda__dulce-btn { width: 100%; }
  .vce-shop__head { grid-template-columns: 1fr; gap: 1rem; }
  .vce-c .vce-shop__all { width: 100%; }
  .vce-tienda__ruta { display: none; }
}
@media (max-width: 379px) {
  .vce-tienda__grid, .vce-shop__grid { gap: .6rem; }
  .vce-pcard__go { font-size: .6875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vce-pcard, .vce-pcard__img, .vce-pcard__go { transition: none; }
  .vce-pcard:hover { transform: none; }
  .vce-pcard:hover .vce-pcard__img { transform: none; }
}
@media print { .vce-pcard__go { color: var(--vce-yale); background: none; } }
