/* 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;
}

.tienda-card {
  background: #fff;
  border: 1px solid rgba(48, 59, 66, 0.12);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 8px 24px rgba(48, 59, 66, 0.06);
}

.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-product {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .tienda-product {
    grid-template-columns: 1fr;
  }
}

.tienda-buy {
  background: #fff;
  border: 1px solid rgba(48, 59, 66, 0.12);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(48, 59, 66, 0.08);
  position: sticky;
  top: 1rem;
}

.tienda-price-box {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.45rem;
}

.tienda-price-box > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.tienda-price-box dt {
  color: #6b7780;
}

.tienda-price-box dd {
  margin: 0;
  font-weight: 600;
  color: #303B42;
  text-align: right;
}

.tienda-form {
  display: grid;
  gap: 0.75rem;
}

.tienda-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.tienda-field input,
.tienda-field select {
  border: 1px solid rgba(48, 59, 66, 0.2);
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: #303B42;
}

.tienda-field input:focus,
.tienda-field select:focus {
  outline: 2px solid #60DA50;
  outline-offset: 1px;
}

.tienda-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #4a5560;
}

.tienda-note {
  font-size: 0.82rem;
  color: #6b7780;
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

.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;
}
