/* Tienda — extends recursos-shell visual language */
.tienda-wrap {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.tienda-hero h1,
.tienda-product h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: #303B42;
  margin: 0.25rem 0 0.75rem;
}

.tienda-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #60DA50;
  font-weight: 700;
  margin: 0;
}

.tienda-lead {
  color: #4a5560;
  max-width: 42rem;
  line-height: 1.55;
}

.tienda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: stretch;
}

.tienda-card {
  background: #fff;
  border: 1px solid rgba(48, 59, 66, 0.12);
  border-radius: 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 24px rgba(48, 59, 66, 0.06);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.tienda-card__gallery {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.tienda-card__media {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef2f4;
  cursor: zoom-in;
  position: relative;
}

.tienda-card__media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.tienda-card:hover .tienda-card__media img {
  transform: scale(1.03);
}

.tienda-card__thumbs {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem 0.15rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tienda-card__thumb {
  flex: 0 0 3rem;
  width: 3rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  overflow: hidden;
  cursor: pointer;
  background: #eef2f4;
}

.tienda-card__thumb.is-active,
.tienda-card__thumb:hover {
  border-color: #60DA50;
}

.tienda-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tienda-card__photos {
  margin: 0;
  padding: 0.2rem 0.7rem 0.45rem;
  font-size: 0.72rem;
  color: #6b7780;
}

.tienda-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem 1.25rem 1.25rem;
  min-width: 0;
}

.tienda-card__summary {
  white-space: pre-line;
}

.tienda-gallery {
  margin: 0 0 1.25rem;
  max-width: 100%;
  min-width: 0;
}

.tienda-gallery__main {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #eef2f4;
  border: 1px solid rgba(48, 59, 66, 0.1);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.tienda-gallery__main img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tienda-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.tienda-gallery__thumb {
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  overflow: hidden;
  cursor: pointer;
  background: #eef2f4;
}

.tienda-gallery__thumb.is-active,
.tienda-gallery__thumb:hover {
  border-color: #60DA50;
}

.tienda-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tienda-card__cat {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7780;
}

.tienda-card__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.tienda-card__title a {
  color: #303B42;
  text-decoration: none;
}

.tienda-card__title a:hover {
  color: #1f8f3a;
}

.tienda-card__summary {
  margin: 0;
  color: #5a6570;
  flex: 1;
}

.tienda-card__price {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  color: #303B42;
}

.tienda-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #60DA50;
  color: #303B42;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tienda-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(96, 218, 80, 0.35);
}

.tienda-btn--ghost {
  background: transparent;
  border: 1px solid rgba(48, 59, 66, 0.25);
  color: #303B42;
  box-shadow: none;
}

.tienda-btn--ghost:hover {
  border-color: #60DA50;
  box-shadow: none;
}

.tienda-empty {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
  border: 1px solid rgba(48, 59, 66, 0.1);
  max-width: 40rem;
}

.tienda-empty h1,
.tienda-empty h2 {
  color: #303B42;
  margin-top: 0;
}

.tienda-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tienda-condition {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 0.35rem;
  line-height: 1.2;
}

.tienda-condition--new {
  color: #1f5a28;
  background: rgba(96, 218, 80, 0.18);
  border: 1px solid rgba(96, 218, 80, 0.35);
}

.tienda-condition--used {
  color: #5a4a28;
  background: rgba(210, 170, 70, 0.18);
  border: 1px solid rgba(180, 140, 50, 0.35);
}

.tienda-card__condition {
  margin: 0;
  font-size: 0.84rem;
  color: #5a6670;
  line-height: 1.4;
  white-space: pre-line;
}

.tienda-condition-box {
  margin: 0.85rem 0 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #f7f9fa;
  border: 1px solid rgba(48, 59, 66, 0.1);
}

.tienda-condition-box__label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7780;
}

.tienda-condition-box p:last-child {
  margin: 0;
  color: #3d4750;
  white-space: pre-line;
}

.tienda-commerce {
  margin-top: 0.25rem;
  max-width: 52rem;
}

.tienda-commerce__intro {
  max-width: 40rem;
}

.tienda-commerce__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.tienda-commerce__figure {
  margin: 1.75rem 0 0;
  padding: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(48, 59, 66, 0.12);
  box-shadow: 0 14px 36px rgba(48, 59, 66, 0.1);
}

.tienda-commerce__shot {
  display: block;
  background: #eef2f4;
}

.tienda-commerce__shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  vertical-align: top;
}

.tienda-commerce__caption {
  margin: 0;
  padding: 0.9rem 1.1rem 1.05rem;
  background: #303B42;
  color: rgba(243, 246, 247, 0.9);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tienda-commerce__caption strong {
  color: #fff;
  font-weight: 700;
}

.tienda-commerce__caption a {
  color: #60DA50;
  font-weight: 600;
}

.tienda-commerce__caption a:hover {
  color: #8ae67a;
}

.tienda-commerce__case-label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60DA50;
  font-weight: 700;
}

.tienda-commerce__list {
  margin: 1.5rem 0 0;
  padding-left: 1.1rem;
  color: #3d4750;
  line-height: 1.55;
  max-width: 40rem;
}

.tienda-commerce__list li + li {
  margin-top: 0.4rem;
}

.tienda-commerce__note {
  margin: 1.5rem 0 0;
  font-size: 0.84rem;
  color: #6b7780;
  line-height: 1.45;
  max-width: 42rem;
}

.tienda-product {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.tienda-product__main {
  min-width: 0;
}

@media (max-width: 860px) {
  .tienda-product {
    grid-template-columns: 1fr;
  }
}

.tienda-buy {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fa 100%);
  border: 1px solid rgba(48, 59, 66, 0.12);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 12px 32px rgba(48, 59, 66, 0.09);
  position: sticky;
  top: 1rem;
  align-self: start;
}

.tienda-buy__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.tienda-buy__head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.tienda-buy__badge {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5a45;
  background: rgba(96, 218, 80, 0.18);
  border: 1px solid rgba(96, 218, 80, 0.35);
  border-radius: 0.4rem;
  padding: 0.28rem 0.5rem;
  line-height: 1.2;
}

.tienda-buy__ship {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #5a6670;
}

.tienda-price-card {
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(48, 59, 66, 0.1);
}

.tienda-price-card__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tienda-price-card__label {
  font-size: 0.78rem;
  color: #6b7780;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tienda-price-card__amount {
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #303B42;
  font-weight: 700;
}

.tienda-price-card__tax {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: #4a5560;
}

.tienda-price-card__split {
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(48, 59, 66, 0.08);
  display: grid;
  gap: 0.28rem;
}

.tienda-price-card__split > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.tienda-price-card__split dt {
  color: #6b7780;
}

.tienda-price-card__split dd {
  margin: 0;
  font-weight: 600;
  color: #303B42;
}

.tienda-price-card__charge {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(48, 59, 66, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #303B42;
}

.tienda-price-card__charge strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #1f7a2e;
}

.tienda-price-card__fx {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  color: #6b7780;
}

.tienda-form {
  display: grid;
  gap: 0.55rem;
}

.tienda-form__section {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7780;
}

.tienda-form__section span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #8a959e;
}

.tienda-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.6rem;
}

.tienda-field {
  display: grid;
  gap: 0.22rem;
  font-size: 0.84rem;
  color: #4a5560;
}

.tienda-field--full {
  grid-column: 1 / -1;
}

.tienda-field em {
  font-style: normal;
  color: #8a959e;
  font-weight: 400;
}

.tienda-field input,
.tienda-field select {
  border: 1px solid rgba(48, 59, 66, 0.18);
  border-radius: 0.5rem;
  padding: 0.48rem 0.62rem;
  font: inherit;
  color: #303B42;
  background: #fff;
  min-width: 0;
}

.tienda-field input:focus,
.tienda-field select:focus {
  outline: 2px solid #60DA50;
  outline-offset: 1px;
}

.tienda-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #4a5560;
  margin-top: 0.15rem;
}

.tienda-note {
  font-size: 0.78rem;
  color: #6b7780;
  margin: 0.1rem 0 0;
  line-height: 1.35;
}

.tienda-note--center {
  text-align: center;
}

.tienda-buy .tienda-btn {
  margin-top: 0.15rem;
  width: 100%;
}

@media (max-width: 420px) {
  .tienda-form__grid {
    grid-template-columns: 1fr;
  }
}

.tienda-alert {
  background: #eef9eb;
  border: 1px solid rgba(96, 218, 80, 0.45);
  color: #303B42;
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  margin: 0.75rem 0;
}

.tienda-alert--error {
  background: #fff2f1;
  border-color: rgba(220, 80, 70, 0.4);
}

.tienda-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.tienda-prose {
  color: #3d4750;
  line-height: 1.6;
}

.tienda-status {
  max-width: 36rem;
}

.tienda-status__state {
  font-size: 1.05rem;
}

html.tienda-lightbox-open,
html.tienda-lightbox-open body {
  overflow: hidden;
}

.tienda-lightbox[hidden] {
  display: none !important;
}

.tienda-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.tienda-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 30, 0.72);
  cursor: zoom-out;
}

.tienda-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(960px, 96vw);
  max-height: 92vh;
  background: #0f1720;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.tienda-lightbox__dialog img {
  display: block;
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tienda-lightbox__close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #303B42;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
