:root {
  --formpago-bg: #ffffff;
  --formpago-surface: #f8f9fa;
  --formpago-surface-2: #f1f3f5;
  --formpago-text: #1f2937;
  --formpago-muted: #6b7280;
  --formpago-accent: #3b82f6;
  --formpago-danger: #dc2626;
  --formpago-ok: #16a34a;
  --formpago-border: #e5e7eb;
  --formpago-radius: 16px;
  --formpago-shadow: 0 4px 12px rgba(0,0,0,0.08);
  --formpago-gap: 20px;
  --formpago-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
}

.tienda-ancho-listado {
  max-width: 1100px;
  margin: 2rem auto;
}

.tienda-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  max-width: 100%;
  padding: 2% 1%;
  margin: 10%;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  font-family: "Segoe UI", sans-serif;
}

.tienda-separator {
  width: 1px;
  background: #ddd;
}

.tienda-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  text-align: center;
  margin-top: 0;
}

.tienda-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tienda-form-group {
  display: flex;
  flex-direction: column;
}

.tienda-form-group label {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  color: #34495e;
}

.tienda-form-group input,
.tienda-form-group select {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 2rem;
  transition: border 0.3s, box-shadow 0.3s;
}

.tienda-form-group input:focus,
.tienda-form-group select:focus {
  outline: none;
  border-color: #1E514A;
  box-shadow: 0 0 5px rgba(52,152,219,0.5);
}

.tienda-btn {
  background: #1E514A;
  color: #fff;
  padding: 0 18px;
 /* font-size: 0.95rem;*/
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  width: 50%;
  background-color: #1E514A;
  --btn-h: 42px;
  height: var(--btn-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  outline: none;
  user-select: none;
  white-space: nowrap;
}

.tienda-btn:hover {
  background: #2980b9;
  background-color: #16a085;
}

@media (max-width: 768px) {

  .tienda-container {
    grid-template-columns: 1fr;
  }

  .tienda-separator {
    height: 1px;
    width: 100%;
    margin: 1rem 0;
  }

}

.tienda-carrito {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.tienda-carrito-tabla {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  min-width: 600px;
}

.tienda-carrito-tabla th,
.tienda-carrito-tabla td {
  padding: 0.8rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  /*font-size: 0.95rem;*/
}

.tienda-carrito-tabla th {
  background: #f8f9fa;
  font-weight: bold;
  color: #2c3e50;
}

.tienda-carrito-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.tienda-cantidad {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.tienda-cantidad input {
  width: 50px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 0.4rem;
  padding: 0.3rem;
}

.tienda-cantidad-btn {
  background: #1E514A;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.tienda-cantidad-btn:hover {
  background: #2980b9;
}

.tienda-borrar {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.3s;
}

.tienda-borrar:hover {
  background: #c0392b;
}

.tienda-separator-line {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

.tienda-carrito-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.tienda-cupon {
  flex: 1;
}

.tienda-cupon label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}

.tienda-cupon-box {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tienda-cupon-box input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 2rem;
}

.tienda-total {
  flex: 1;
  text-align: right;
}

.tienda-total p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {

  .tienda-carrito-scroll {
    width: 100%;
    overflow-x: auto;
  }

  .tienda-carrito-tabla {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
  }

  .tienda-carrito-tabla th,
.tienda-carrito-tabla td {
    padding: 0.8rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
  }

}

.tienda-caja {
  flex: 1;
  min-width: 280px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 0.8rem;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tienda-caja h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #2c3e50;
}

.tienda-caja p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.tienda-caja span {
  font-weight: 500;
  color: #34495e;
}

.tienda-total-line {
  font-size: 1.2rem;
  margin-top: 1rem;
  border-top: 1px solid #ddd;
  padding-top: 0.8rem;
}

@media (max-width: 768px) {

  .tienda-carrito-footer {
    flex-direction: column;
  }

  .tienda-caja {
    text-align: center;
  }

  .tienda-caja .tienda-cupon-box {
    flex-direction: column;
  }

  .tienda-caja .tienda-btn {
    width: 100%;
  }

}

.tienda-resumen-line {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.tienda-carrito-scroll {
  width: 100%;
  overflow-x: auto;
}

.tienda-area-usuario {
  max-width: 100%;
  margin: 5% 1%;
  padding: 1.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tienda-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 1rem;
}

.tienda-tab-btn {
  flex: 1;
  padding: 0.8rem;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 500;
  color: #555;
  border-bottom: 3px solid transparent;
  transition: 0.3s;
}

.tienda-tab-btn:hover {
  color: #2c3e50;
}

.tienda-tab-btn.active {
  color: #2c3e50;
  border-bottom: 3px solid #1E514A;
  font-weight: 600;
}

.tienda-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tienda-tab-content.active {
  display: block;
}

.tienda-tabla {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.tienda-tabla th, 
.tienda-tabla td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: center;
}

.tienda-tabla th {
  background: #f4f6f9;
  font-weight: 600;
}

.tienda-form label {
  font-weight: bold;
  margin-bottom: 0.3rem;
  display: block;
  text-align: left;
}

.tienda-form input {
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

@keyframes fadeIn {

  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

.tienda-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.5);
}

.tienda-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 800px;
  position: relative;
}

.tienda-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.tienda-modal-close:hover {
  color: #e74c3c;
}

.tienda-pedido-productos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.tienda-pedido-producto {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  border-bottom: 1px solid #eee;
}

.tienda-pedido-producto:last-child {
  border-bottom: none;
}

.tienda-pedido-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-right: 1rem;
}

.tienda-pedido-info p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.tienda-recuperar-password-container {
  max-width: 400px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

.tienda-recuperar-password-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tienda-recuperar-link {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}

.tienda-recuperar-link p {
  margin: 0 0 0.5rem 0;
}

.tienda-recuperar-link a {
  color: #1E514A;
  font-weight: bold;
  text-decoration: none;
}

.tienda-recuperar-link a:hover {
  text-decoration: underline;
}

.tienda-recuperar-password-box {
  max-width: 400px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  text-align: center;
}

.tienda-recuperar-password-box h2 {
  margin-bottom: 1.5rem;
}

.tienda-cart-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
}

.tienda-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tienda-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 320px;
  max-width: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.tienda-cart-panel.tienda-open {
  transform: translateX(0);
}

.tienda-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.tienda-cart-header h2 {
  font-size: 18px;
  font-weight: bold;
}

.tienda-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #555;
}

.tienda-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.tienda-cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  gap: 12px;
}

.tienda-cart-item-title {
  font-weight: 600;
}

.tienda-cart-item-qty {
  font-size: 14px;
  color: #666;
}

.tienda-cart-item-price {
  font-weight: bold;
}

.tienda-cart-footer {
  border-top: 1px solid #eee;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tienda-btn-checkout {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.tienda-btn-checkout:hover {
  background: #333;
}

@media (max-width: 768px) {

  .tienda-cart-panel {
    width: 100%;
  }

}

.tienda-cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.tienda-cart-info {
  flex: 1;
}

.tienda-cart-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.tienda-cart-details {
  font-size: 14px;
  color: #555;
}

.tienda-cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 16px;
  margin: 12px 0;
}

.tienda-btn-view,
.tienda-btn-checkout {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 8px;
}

.tienda-btn-view {
  background: #f0f0f0;
  color: #333;
  transition: background 0.3s;
}

.tienda-btn-view:hover {
  background: #e0e0e0;
}

.tienda-emptycart {
  --tienda-bg: #f7f8fa;
  --tienda-card-bg: #ffffff;
  --tienda-text: #1f2937;
  --tienda-text-muted: #6b7280;
  --tienda-primary: #2563eb;
  --tienda-primary-contrast: #ffffff;
  --tienda-ring: rgba(37, 99, 235, 0.25);
  --tienda-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  width: 100%;
  padding: 48px 16px;
  background: var(--tienda-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.tienda-emptycart__card {
  width: 100%;
  max-width: 720px;
  background: var(--tienda-card-bg);
  border-radius: 16px;
  box-shadow: var(--tienda-shadow);
  padding: 32px;
  text-align: center;
  box-sizing: border-box;
}

.tienda-emptycart__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--tienda-primary);
  background: rgba(37, 99, 235, 0.08);
}

.tienda-emptycart__title {
  margin: 8px 0 8px;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--tienda-text);
  font-weight: 700;
}

.tienda-emptycart__text {
  margin: 0 auto 20px;
  color: var(--tienda-text-muted);
  max-width: 48ch;
  font-size: 0.975rem;
}

.tienda-emptycart__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tienda-btn:active {
  transform: translateY(1px);
}

.tienda-btn--primary {
  background: #1E514A;
  color: var(--tienda-primary-contrast);
  box-shadow: 0 6px 16px var(--tienda-ring);
}

.tienda-btn--primary:hover {
  filter: brightness(1.05);
}

.tienda-btn--primary:focus-visible {
  box-shadow: 0 0 0 4px var(--tienda-ring);
}

.tienda-btn--ghost {
  background: transparent;
  color: var(--tienda-text);
  border-color: #e5e7eb;
}

.tienda-btn--ghost:hover {
  background: #f3f4f6;
}

.tienda-btn--ghost:focus-visible {
  box-shadow: 0 0 0 4px var(--tienda-ring);
}

.tienda-emptycart__tips {
  margin-top: 12px;
}

.tienda-emptycart__list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--tienda-text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
}

.tienda-dark .tienda-emptycart {
  --tienda-bg: #0b1020;
  --tienda-card-bg: #0f172a;
  --tienda-text: #e5e7eb;
  --tienda-text-muted: #9ca3af;
  --tienda-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --tienda-ring: rgba(59, 130, 246, 0.35);
}

.tienda-checkout-frame {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.tienda-checkout-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.tienda-checkout-table td {
  vertical-align: top;
  padding: 1.6rem;
}

.tienda-col-left {
  width: 58%;
}

.tienda-col-right {
  width: 42%;
  border-left: 1px solid #ddd;
}

.tienda-col-sep {
  width: 1px;
  background: #ddd;
}

@media (max-width: 900px) {

  .tienda-checkout-table,
  .tienda-checkout-table tbody,
  .tienda-checkout-table tr,
  .tienda-checkout-table td {
    display: block;
    width: 100%;
  }

  .tienda-col-sep {
    height: 1px;
    width: 100%;
    margin: 0;
  }

  .tienda-checkout-table td {
    padding: 1.2rem;
  }

}

.tienda-container.tienda-checkout {
  display: block;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 900px) {

  .tienda-col-right {
    border-left: 0;
    border-top: 1px solid #ddd;
  }

}

input[type="radio"] {
  appearance: auto !important;
  -webkit-appearance: radio !important;
  -moz-appearance: radio !important;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  vertical-align: middle;
  cursor: pointer;
}

.tienda-checkout-frame label input[type="radio"],
.tienda-checkout-frame input[type="radio"] {
  all: revert !important;
  appearance: auto !important;
  -webkit-appearance: radio !important;
  -moz-appearance: radio !important;
  display: inline-block !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  overflow: visible !important;
}

.tienda-checkout-frame label input {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.tienda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 1rem;
}

@media (max-width: 1200px) {

  .tienda-grid {
    grid-template-columns: repeat(3,1fr);
    display: grid;
    gap: 16px;
  }

}

@media (max-width: 900px) {

  .tienda-grid {
    grid-template-columns: repeat(2,1fr);
  }

}

@media (max-width: 540px) {

  .tienda-grid {
    grid-template-columns: 1fr;
  }

}

.tienda-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tienda-card-title {
  margin: .5rem 0 0;
  font-size: 2rem;
}

.tienda-card-precio {
  margin: 0 0 .6rem;
}

.tienda-filtros-row {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: repeat(12,minmax(0,1fr));
}

.tienda-filtros-row > .tienda-form-group {
  grid-column: span 3;
}

@media (max-width:900px) {

  .tienda-filtros-row {
    grid-template-columns: repeat(6,1fr);
  }

  .tienda-filtros-row > .tienda-form-group {
    grid-column: span 6;
  }

}

.tienda-listado-filtros-box,
.tienda-listado-box {
  max-width: 1100px;
  margin: 2rem auto;
}

.tienda-listado-filtros {
  margin-top: .5rem;
}

.tienda-filtros-grid {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: repeat(12, minmax(0,1fr));
}

.tienda-filtros-grid .tienda-form-group {
  grid-column: span 3;
}

.tienda-inline {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

.tienda-precio-group {
  grid-column: span 6;
}

.tienda-precio-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .5rem;
  align-items: center;
}

.tienda-precio-sep {
  color: #999;
}

.tienda-filtros-actions {
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
  margin-top: .8rem;
}

.tienda-btn-sec {
  background: #f3f4f6;
  color: #333;
}

.tienda-card-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.tienda-paginador {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 1200px) {

  .tienda-f
}


.tienda-listado-filtros-box,
.tienda-listado-box {
    max-width: 1100px;
    margin: 2rem auto;
  }

  .tienda-paginador {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 8px 0;
  }

  .tienda-paginador-list {
    display: flex;
    align-items: center;
    gap: .4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
  }

  .tienda-paginador .tienda-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tienda-border, #e5e7eb);
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none;
    line-height: 1;
    font-weight: 600;
    font-size: 14px;
    box-shadow: none;
    transition: background .2s ease, box-shadow .2s ease, transform .02s ease, border-color .2s ease;
    flex: 0 0 42px;
  }

  .tienda-paginador .tienda-btn:hover {
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
  }

  .tienda-paginador .tienda-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,.25);
  }

  .tienda-paginador .tienda-btn-activo {
    background: #1E514A;
    border-color: #1E514A;
    color: #ffffff;
    cursor: default;
  }

  .tienda-paginador .tienda-disabled,
.tienda-paginador .tienda-disabled:hover {
    opacity: .45;
    cursor: not-allowed;
    background: #ffffff;
    box-shadow: none;
    transform: none;
  }

  .tienda-paginador .tienda-btn.tienda-btn-sec {
    background: #ffffff;
    color: #1f2937;
  }

  .tienda-paginador-list .tienda-btn {
    min-width: 42px;
  }

  .tienda-btn--wide {
    min-width: 110px;
    padding: 0 16px;
  }

  @media (max-width: 480px) {

    .tienda-btn--wide {
      min-width: 96px;
      padding: 0 12px;
    }

  }

  .tienda-badge-oferta {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .3px;
    color: #fff;
    background: var(--formpago-danger, #dc2626);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(220,38,38,.25);
  }

  .tienda-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .tienda-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 8px 0 12px;
    font-size: 0;
  }

  .tienda-star {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
  }

  .tienda-star-full {
    color: #ffc107;
  }

  .tienda-star-empty {
    color: #ddd;
  }

  .tienda-star-half {
    color: transparent;
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .tienda-stars-count {
    margin-left: 6px;
    font-size: 12px;
    color: #6b7280;
  }

  .tienda-precio {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    justify-content: center;
    margin: .25rem 0 .6rem;
  }

  .tienda-precio-antes {
    font-size: .95rem;
    color: #6b7280;
    text-decoration: line-through;
  }

  .tienda-precio-oferta {
    font-size: 1.6rem;
    color: var(--formpago-danger, #dc2626);
    font-weight: 800;
  }

  .tienda-precio-actual {
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 800;
  }

  .tienda-listado-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  .tienda-title {
    margin: 0;
    text-align: center;
    flex: 1;
  }

  .tienda-listado-info {
    font-size: 2.95rem;
    color: #444;
  }

  .tienda-listado-orden {
    min-width: 160px;
  }

  .tienda-listado-orden select {
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
  }

  @media (max-width: 600px) {

    .tienda-listado-header {
      flex-direction: column;
      align-items: stretch;
      text-align: center;
    }

    .tienda-title {
      order: -1;
    }

    .tienda-listado-info,
  .tienda-listado-orden {
      width: 100%;
      text-align: center;
    }

  }

  .tienda-filtros-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
  }

  .tienda-filtros-grid-v2 > .tienda-form-group:nth-child(4),
.tienda-filtros-grid-v2 > .tienda-form-group:nth-child(5) {
    grid-column: span 1;
  }

  .tienda-filtros-actions {
    grid-column: 3;
    display: flex;
    align-items: end;
    justify-content: flex-end;
  }

  @media (max-width: 768px) {

    .tienda-filtros-grid-v2 {
      grid-template-columns: 1fr;
    }

    .tienda-filtros-actions {
      grid-column: auto;
      justify-content: stretch;
    }

  }

  .tienda-layout-2-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

  .tienda-subcaja {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    min-width: 0;
  }

  .tienda-subcaja-full {
    grid-column: 1 / -1;
  }

  @media (max-width: 900px) {

    .tienda-layout-2-1 {
      grid-template-columns: 1fr;
    }

  }

  .tienda-galeria {
    display: grid;
    gap: 12px;
  }

  .tienda-galeria-principal {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: #f7f7f7;
    border-radius: 12px;
    overflow: hidden;
  }

  .tienda-galeria-principal--wide {
    aspect-ratio: 16/9;
  }

  .tienda-galeria-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .tienda-galeria-thumbs {
    display: flex;
    gap: 12px !important;
    overflow-x: auto;
    padding-bottom: 6px !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .tienda-thumb {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color .2s ease, box-shadow .2s ease, transform .06s ease;
  }

  .tienda-thumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    border-color: #ddd;
  }

  .tienda-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .tienda-thumb:focus-visible {
    outline: 3px solid var(--formpago-accent, #1E514A);
    outline-offset: 2px;
    border-color: tra;
  }

  .tienda-prod-info {
    display: grid;
    gap: 10px;
  }

  .tienda-prod-nombre {
    margin: 0;
    font-size: 1.4rem;
    color: #1f2937;
  }

  .tienda-prod-desc {
    margin: 6px 0 2px;
    color: #555;
    font-size: .98rem;
  }

  .tienda-prod-bloque {
    display: grid;
    gap: 8px;
  }

  .tienda-prod-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: .95rem;
  }

  .tienda-colores {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }

  .tienda-color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .06s ease;
  }

  .tienda-color:hover {
    transform: translateY(-1px);
  }

  .tienda-color--active {
    border-color: var(--formpago-accent, #1E514A);
    box-shadow: 0 0 0 3px rgba(52,152,219,.25);
  }

  .tienda-color:focus-visible {
    outline: 3px solid var(--formpago-accent, #1E514A);
    outline-offset: 2px;
    border-color: transparent;
  }

  .tienda-color--negro {
    background: #111;
  }

  .tienda-color--blanco {
    background: #fff;
    border-color: #ddd;
    box-shadow: inset 0 0 0 1px #eee;
  }

  .tienda-color--rojo {
    background: #dc2626;
  }

  .tienda-color--azul {
    background: var(--formpago-accent, #3b82f6);
  }

  .tienda-tallas {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }

  .tienda-talla {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  .tienda-talla:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
  }

  .tienda-talla--active {
    background: var(--formpago-accent, #1E514A);
    color: #fff;
    border-color: var(--formpago-accent, #1E514A);
  }

  .tienda-talla:focus-visible {
    outline: 3px solid rgba(52,152,219,.3);
    outline-offset: 2px;
  }

  .tienda-prod-compra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }

  .tienda-unidades {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .tienda-input-unidades {
    width: 96px;
    text-align: center;
    height: 42px;
    border: 1px solid #ccc;
    border-radius: .5rem;
  }

  @media (max-width: 720px) {

    .tienda-prod-compra {
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
      gap: 12px 16px;
    }

    .tienda-unidades {
      justify-content: center;
    }

    .tienda-prod-compra .tienda-btn {
      width: 100%;
    }

  }

  .tienda-subcaja--roomy {
    padding: 24px !important;
  }

  .tienda-prod-nombre--xl {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0;
    font-weight: 800;
  }

  .tienda-precio-line {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin-top: .35rem;
  }

  .tienda-prod-cta {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
  }

  @media (max-width: 720px) {

    .tienda-subcaja--roomy {
      padding: 22px;
    }

    .tienda-prod-nombre--xl {
      font-size: 1.6rem;
    }

    .tienda-prod-cta {
      justify-content: stretch;
    }

    .tienda-prod-cta .tienda-btn {
      width: 100%;
    }

  }

  .tienda-prod-cat {
    font-size: .85rem;
    font-weight: 600;
    color: var(--formpago-accent, #3b82f6);
    margin-bottom: 6px;
  }

  .tienda-precio-normal {
    font-size: 1.6rem;

font-weight: 500;
    color: #34495e;	
  }

  .tienda-stock-badge {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--formpago-ok, #16a34a) 12%, #fff 88%);
    color: var(--formpago-ok, #16a34a);
    border: 1px solid color-mix(in srgb, var(--formpago-ok, #16a34a) 25%, transparent);
    font-weight: 700;
    font-size: .85rem;
  }

  .tienda-qtybox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
  }

  .tienda-qty-label {
    font-weight: 700;
    color: #2c3e50;
    font-size: .92rem;
    margin-right: 2px;
  }

  .tienda-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .06s ease;
    user-select: none;
  }

  .tienda-qty-btn:hover {
    background: #e9ecef;
    border-color: #d6d9dd;
  }

  .tienda-qty-btn:active {
    transform: translateY(1px);
  }

  .tienda-qty-btn:focus-visible {
    outline: 3px solid rgba(59,130,246,.35);
    outline-offset: 2px;
  }

  .tienda-qty-input {
    width: 80px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    padding: 0 8px;
    -moz-appearance: textfield;
    max-width: 92px;
  }

  .tienda-qty-input:focus {
    outline: none;
    border-color: var(--formpago-accent, #1E514A);
    box-shadow: 0 0 0 3px rgba(52,152,219,.20);
  }

  .tienda-qty-input::-webkit-outer-spin-button,
.tienda-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .tienda-qtybox,
.tienda-infobox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
  }

  .tienda-infobox {
    margin-bottom: 10px;
  }

  .tienda-bloque--compact {
    gap: 6px;
    margin: 0;
  }

  .tienda-separator-line + .tienda-bloque--compact {
    margin-top: 8px;
  }

  .tienda-bloque--compact + .tienda-separator-line {
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .tienda-bloque--compact .tienda-prod-label {
    margin: 0;
    font-size: .93rem;
  }

  .tienda-ancho-listado {
    max-width: 100%;
    margin: 2rem auto;
    padding: 5% 1%;
    box-sizing: border-box;
  }

  .tienda-layout-2-1 > .tienda-subcaja {
    padding: 24px;
  }

  .tienda-listado-box {
    max-width: 100%;
    margin: 2rem auto;
    padding: 5% 1%;
    box-sizing: border-box;
    overflow-x: clip;
  }

.tienda-listado-box .tienda-grid {
  display: grid;
  gap: 16px;
}

  @media (max-width: 1200px) {

    .tienda-listado-box .tienda-grid {
      grid-template-columns: repeat(3, minmax(0,1fr));
    }

  }

  @media (max-width: 900px) {

    .tienda-listado-box .tienda-grid {
      grid-template-columns: repeat(2, minmax(0,1fr));
    }

  }

  @media (max-width: 560px) {

    .tienda-listado-box .tienda-grid {
      grid-template-columns: 1fr;
    }

  }

  .tienda-listado-box .tienda-card {
    width: 100%;
  }

  .tienda-listado-box .tienda-card-img {
    width: 100%;
    height: auto;
    display: block;
  }

  .tienda-listado-box .tienda-listado-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 6px 0 2px;
  }

  @media (max-width: 600px) {

    .tienda-listado-box .tienda-listado-header {
      flex-direction: column;
      align-items: stretch;
      text-align: center;
    }

    .tienda-listado-box .tienda-title {
      order: -1;
    }

    .tienda-listado-box .tienda-listado-orden select {
      width: 100%;
    }

  }

  .tienda-listado-box img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  @media (max-width: 960px) {

    .tienda-layout-2-1 {
      grid-template-columns: 1fr;
    }

  }

  @media (max-width: 480px) {

    .tienda-thumb {
      width: 56px;
      height: 56px;
    }

  }

  @media (max-width: 960px) {

    .tienda-prod-compra {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .tienda-prod-cta .tienda-btn {
      width: 100%;
    }

  }

  .tienda-qtybox, .tienda-infobox {
    flex-wrap: wrap;
  }

  .tienda-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
  }

  .tienda-tab-content {
    padding-top: .5rem;
  }

  .tienda-ancho-listado .tienda-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
  }

  @media (max-width: 1200px) {

    .tienda-ancho-listado .tienda-grid {
      grid-template-columns: repeat(3, minmax(0,1fr));
    }

  }

  @media (max-width: 900px) {

    .tienda-ancho-listado .tienda-grid {
      grid-template-columns: repeat(2, minmax(0,1fr));
    }

  }

  @media (max-width: 560px) {

    .tienda-ancho-listado .tienda-grid {
      grid-template-columns: 1fr;
    }

  }

  .tienda-ancho-listado img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  @supports not (overflow: clip) {

    .tienda-listado-box {
      overflow-x: hidden;
    }

  }

  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .tienda-listado-box .tienda-card-title,
.tienda-listado-info {
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .tienda-listado-filtros, .tienda-listado-filtros * {
    box-sizing: border-box;
  }

  .tienda-listado-filtros .tienda-form-group label {
    display: block !important;
    margin: 0 0 6px !important;
    color: #374151 !important;
    font-weight: 600 !important;
    line-height: 1.2;
  }

  .tienda-listado-filtros select.tienda-select,
.tienda-listado-filtros input.tienda-input,
.tienda-listado-filtros .tienda-select,
.tienda-listado-filtros .tienda-input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    z-index: auto !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: auto !important;
    width: 100% !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 16px !important;
    line-height: 42px !important;
    box-shadow: none !important;
  }

  .tienda-listado-filtros select.tienda-select option {
    color: #111827 !important;
    background: #ffffff !important;
  }

  .tienda-listado-filtros .tienda-select:focus,
.tienda-listado-filtros .tienda-input:focus {
    outline: none !important;
    border-color: var(--formpago-accent, #3b82f6) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.25) !important;
  }

  .tienda-listado-filtros .tienda-btn {
    height: 42px !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    background: var(--formpago-accent, #1E514A) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
  }

  .tienda-listado-filtros .tienda-btn:hover {
    filter: brightness(1.05);
  }

  .tienda-listado-filtros select::-ms-expand {
    display: block;
  }

  .tienda-listado-filtros select.tienda-select,
.tienda-listado-filtros .tienda-select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .tienda-listado-filtros .nice-select,
.tienda-listado-filtros .select2,
.tienda-listado-filtros .select2-container,
.tienda-listado-filtros .select2-container--default,
.tienda-listado-filtros .choices,
.tienda-listado-filtros .choices__inner,
.tienda-listado-filtros .bootstrap-select,
.tienda-listado-filtros .bootstrap-select > .dropdown-toggle,
.tienda-listado-filtros .custom-select,          
.tienda-listado-filtros .select-styled,          
.tienda-listado-filtros .ss-main,                
.tienda-listado-filtros .ts-wrapper,             
.tienda-listado-filtros .sp-select {
    display: none !important;
  }

  .tienda-listado-box section {
    padding: 0;
  }

  .tienda-caja section {
    padding: 0 !important;
    margin: 0 !important;
  }

  .tienda-caja .tienda-prod-nombre,
.tienda-caja .tienda-prod-nombre--xl {
    margin-top: 0 !important;
  }

  .tienda-caja h1,
.tienda-caja h2,
.tienda-caja h3 {
    margin-top: 0 !important;
  }

  .tienda-caja .tienda-grid {
    margin-top: 0;
  }

  .tienda-galeria-thumbs .tienda-thumb {
    width: 120px !important;
    height: 120px !important;
  }

  .tienda-galeria-thumbs .tienda-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
  }

  @media (max-width: 560px) {

    .tienda-galeria-thumbs .tienda-thumb {
      width: 100px !important;
      height: 100px !important;
    }

  }

  .tienda-listado-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    align-items: start;
  }

  @media (max-width: 960px) {

    .tienda-listado-layout {
      grid-template-columns: 1fr;
    }

  }

  .tienda-filtros-side {
    position: sticky;
    top: 12px;
  }

  .tienda-filtros-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
  }

  .tienda-filtros-title {
    margin: 2px 0 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .tienda-filtro-bloque {
    margin-bottom: 14px;
    margin: 12px 0 16px;
  }

  .tienda-filtro-label {
    display: block;
    margin: 0 0 6px;
    color: #374151;
    font-weight: 700;
    font-size: .95rem;
  }

  .tienda-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-wrap: wrap;
  }

  .tienda-checkitem {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    color: #111827;
  }

  .tienda-checkitem input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .tienda-radioset {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .tienda-radioitem {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    color: #111827;
  }

  .tienda-radioitem input[type="radio"] {
    width: 18px;
    height: 18px;
  }

  .tienda-filtros-actions-side {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  .tienda-listado-box > section.tienda-grid {
    padding: 0 !important;
    margin-top: .25rem;
  }

  .tienda-filtros-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--formpago-accent, #1E514A);
    box-shadow: 0 0 0 6px rgba(52,152,219,.12);
  }

  .tienda-filtro-bloque + .tienda-filtro-bloque {
    border-top: 1px dashed #eef0f2;
    padding-top: 14px;
  }

  .tienda-select, .tienda-input {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    line-height: 42px;
    padding: 0 12px;
    box-shadow: none;
    transition: box-shadow .15s ease, border-color .15s ease;
  }

  .tienda-select:focus, .tienda-input:focus {
    outline: none;
    border-color: var(--formpago-accent, #1E514A);
    box-shadow: 0 0 0 4px rgba(52,152,219,.18);
  }

  .tienda-precio-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .5rem;
    align-items: center;
  }

  .tienda-precio-sep {
    color: #9aa3ad;
    font-weight: 700;
  }

  .tienda-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-weight: 600;
    font-size: .93rem;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .02s ease;
  }

  .tienda-chip:hover {
    background: #f8fafc;
  }

  .tienda-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
  }

  .tienda-chip .tienda-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
  }

  .tienda-chip input:checked + .tienda-dot {
    background: var(--formpago-accent, #1E514A);
    box-shadow: 0 0 0 4px rgba(52,152,219,.18);
  }

  .tienda-chip input:checked ~ .tienda-chip-text {
    color: #111827;
  }

  .tienda-chip:has(input:checked) {
    border-color: var(--formpago-accent, #1E514A);
    box-shadow: 0 6px 16px rgba(52,152,219,.16);
    background: color-mix(in srgb, var(--formpago-accent, #1E514A) 6%, #fff 94%);
  }

  .tienda-segment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 6px;
  }

  .tienda-seg-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 92px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .92rem;
    color: #1f2937;
    background: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .02s ease, background .2s ease;
  }

  .tienda-seg-option:hover {
    background: #f3f4f6;
  }

  .tienda-seg-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
  }

  .tienda-seg-option:has(input:checked) {
    background: var(--formpago-accent, #1E514A);
    color: #fff;
    border-color: var(--formpago-accent, #1E514A);
    box-shadow: 0 6px 16px rgba(52,152,219,.22);
  }

  .tienda-btn--primary {
    background: #1E514A;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    height: 42px;
    padding: 0 18px;
    font-weight: 800;
  }

  .tienda-btn--primary:hover {
    filter: brightness(1.05);
  }

  .tienda-btn--ghost {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    height: 42px;
    padding: 0 16px;
    font-weight: 700;
  }

  .tienda-btn--ghost:hover {
    background: #f8fafc;
  }

  .tienda-slider-precio {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .tienda-slider-range {
    position: relative;
    height: 32px;
  }

  .tienda-slider-range input[type=range] {
    position: absolute;
    width: 100%;
    height: 6px;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
  }

  .tienda-slider-range input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--formpago-accent, #1E514A);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 3;
  }

  .tienda-slider-range input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--formpago-accent, #1E514A);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    pointer-events: all;
  }

  .tienda-slider-range::before {
    content: "";
    position: absolute;
    height: 6px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    background: #e5e7eb;
    border-radius: 999px;
    z-index: 1;
  }

  .tienda-slider-fill {
    position: absolute;
    height: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--formpago-accent, #1E514A);
    border-radius: 999px;
    z-index: 2;
  }

  .tienda-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: .95rem;
    color: #374151;
    font-weight: 600;
  }
.tienda-grid--6 {
  grid-template-columns: repeat(6, 1fr);
}

.tienda-grid--7 {
  grid-template-columns: repeat(7, 1fr);
}
  .tienda-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .tienda-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .tienda-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tienda-grid--1 {
    grid-template-columns: 1fr;
  }

  @media (max-width: 1200px) {

    .tienda-grid--4 {
      grid-template-columns: repeat(3, 1fr);
    }

  }

  @media (max-width: 900px) {

    .tienda-grid--4,
  .tienda-grid--3 {
      grid-template-columns: repeat(2, 1fr);
    }

  }

  @media (max-width: 560px) {

    .tienda-grid--4,
  .tienda-grid--3,
  .tienda-grid--2 {
      grid-template-columns: 1fr;
    }

  }

  .tienda-listado-box .tienda-grid.tienda-grid--4 {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }

  .tienda-listado-box .tienda-grid.tienda-grid--3 {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .tienda-listado-box .tienda-grid.tienda-grid--2 {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .tienda-listado-box .tienda-grid.tienda-grid--1 {
    grid-template-columns: 1fr;
  }

  @media (max-width: 1200px) {

    .tienda-listado-box .tienda-grid.tienda-grid--4 {
      grid-template-columns: repeat(3, minmax(0,1fr));
    }

  }

  @media (max-width: 900px) {

    .tienda-listado-box .tienda-grid.tienda-grid--4,
  .tienda-listado-box .tienda-grid.tienda-grid--3 {
      grid-template-columns: repeat(2, minmax(0,1fr));
    }

  }

  @media (max-width: 560px) {

    .tienda-listado-box .tienda-grid.tienda-grid--4,
  .tienda-listado-box .tienda-grid.tienda-grid--3,
  .tienda-listado-box .tienda-grid.tienda-grid--2 {
      grid-template-columns: 1fr;
    }

  }

  .tienda-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .tienda-card-title {
    margin: 0.5rem 0 0.75rem;
    font-size: 2rem;
    font-weight: 600;
  }

  .tienda-stars,
.tienda-precio {
    margin-bottom: 0.5rem;
  }

  .tienda-btn {
    margin-top: auto;
    align-self: flex-start;
  }

  .tienda-login .tienda-btn.tienda-btn--login {
    margin-top: 0.8rem;
  }

  .tienda-alert {
    padding: .75rem 1rem;
    border-radius: 8px;
    margin-bottom: .75rem;
    font-size: 2rem;
  }

  .tienda-alert--error {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
  }

  .tienda-captcha-error {
    color: #b91c1c;
    font-weight: 600;
    margin-top: 6px;
  }

  .tienda-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }

  .tienda-pass-wrap > input {
    width: 100%;
    padding-right: 42px;
  }

  .tienda-pass-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    min-width: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .tienda-pass-toggle:hover {
    background: #e9ecef;
  }

  .tienda-pass-toggle:focus-visible {
    outline: 3px solid rgba(59,130,246,.35);
    outline-offset: 2px;
  }

  .tienda-form-group textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 2rem;
    resize: vertical;
  }

  .tienda-login-links {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
  }

  .tienda-login-links p {
    margin: 0.4rem 0;
  }

  .tienda-login-links a {
    color: var(--formpago-accent, #1E514A);
    text-decoration: none;
    font-weight: 600;
  }

  .tienda-login-links a:hover {
    text-decoration: underline;
  }

  .tienda-form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    margin-top: 0.6rem;
    line-height: 1.4;
  }

  .tienda-form-check input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--formpago-accent, #1E514A);
    transform: scale(1.1);
  }

  .tienda-form-check label a {
    color: var(--formpago-accent, #1E514A);
    text-decoration: none;
    font-weight: 600;
  }

  .tienda-form-check label a:hover {
    text-decoration: underline;
  }

}

.tienda-dashboard-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: linear-gradient(135deg, #f8fbff, #ffffff);
}
.tienda-hero-text {
	display: grid;
	gap: 8px;
}
.tienda-hero-title {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 800;
	color: #1f2937;
}
.tienda-hero-sub {
	margin: 0;
	color: #475569;
}
.tienda-hero-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 6px;
}
.tienda-hero-illu {
	font-size: 40px;
}

.tienda-dashboard-stats .tienda-subcaja {
	display: flex;
	align-items: center;
	gap: 12px;
}
.tienda-stat-icon {
	font-size: 22px;
	background: #f1f5f9;
	border-radius: 10px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
}
.tienda-stat-label {
	margin: 0;
	color: #64748b;
	font-size: 0.9rem;
}
.tienda-stat-value {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 800;
	color: #111827;
}
.tienda-stat-body {
	display: grid;
	gap: 2px;
}

.tienda-box-title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 800;
	color: #1f2937;
}
.tienda-muted {
	color: #475569;
}
.tienda-actions-row {
	margin-top: 8px;
}

.tienda-quick-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.tienda-quick {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	color: #111827;
	text-decoration: none;
}
.tienda-quick:hover {
	background: #f8fafc;
}
.tienda-quick span {
	font-size: 16px;
}

.tienda-last-orders {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tienda-orderlink {
	text-align: left;
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #fff;
	cursor: pointer;
	font-weight: 600;
	color: #111827;
}
.tienda-orderlink:hover {
	background: #f8fafc;
}

@media (max-width: 900px) {
	.tienda-dashboard-hero {
		flex-direction: column;
		text-align: center;
	}
}
.tienda-input-password{ position:relative; display:flex; align-items:center; }
.tienda-input-password input{ width:100%; padding-right:40px; }
.tienda-eye-btn{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  background:transparent; border:0; cursor:pointer; font-size:16px; line-height:1;
  padding:4px; z-index:2; pointer-events:auto;
}
/* Margen vertical 5% (arriba/abajo) y 0 a los lados */
.tienda-espaciado-vert-5 {
  margin: 8% 0;          /* top/bottom 5%, left/right 0 (fallback) */
  margin-block: 8%;      /* top/bottom 5% (lógico) */
  margin-inline: 0;      /* left/right 0 (lógico) */
}

/* ==== FIX VISUAL CHECKBOXES (Aviso legal / Publicidad) ==== */
.tienda-form-check input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid #ccc;
	border-radius: 4px;
	display: inline-block;
	position: relative;
	cursor: pointer;
	background: #fff;
	transition: all 0.2s ease;
}

/* Hover */
.tienda-form-check input[type="checkbox"]:hover {
	border-color: #1E514A;
}

/* Focus visible */
.tienda-form-check input[type="checkbox"]:focus-visible {
	outline: 2px solid rgba(52,152,219,.35);
	outline-offset: 2px;
}

/* Checked */
.tienda-form-check input[type="checkbox"]:checked {
	background-color: var(--formpago-accent, #1E514A);
	border-color: var(--formpago-accent, #1E514A);
}

/* Checkmark (✓) */
.tienda-form-check input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 0px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Label alineado con el check */
.tienda-form-check label {
	cursor: pointer;
	color: #333;
	user-select: none;
}

/* Espaciado general */
.tienda-form-check {
	align-items: center;
	gap: 8px;
}
.tienda-paginador-info {
	text-align: center;
	font-size: 0.95rem;
	color: #374151;
	font-weight: 600;
	margin-top: 0.5rem;
}
/* ====== MODAL MÁS GRANDE Y MÁS ANCHO ====== */
.tienda-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.5);
}
.tienda-modal-content {
	width: 95vw;
	max-width: 960px; /* ⬅️ ANCHO MAYOR */
	margin: 5vh auto;
	background: #fff;
	border-radius: 18px;
	padding: 24px 24px 18px;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
	font-size: 15px; /* texto un poco más grande */
	line-height: 1.35;
}
.tienda-modal-title {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
}
.tienda-modal-close {
	float: right;
	cursor: pointer;
	font-size: 22px;
}

/* ====== TABLA EN LÍNEA (GRID) ====== */
.tienda-pedido-tabla {
	--tienda-pedido-cols: 80px 1fr 100px 110px 120px;
	display: block;
	overflow-x: auto;
	margin-bottom: 10px;
}
.tienda-pedido-cabecera,
.tienda-pedido-row {
	display: grid;
	grid-template-columns: var(--tienda-pedido-cols);
	align-items: center;
	gap: 10px;
}

.tienda-pedido-cabecera {
	font-weight: 700;
	border-bottom: 2px solid #e5e7eb;
	padding: 6px 0;
	text-transform: none;
	background: #f8fafc;
}

.tienda-pedido-body .tienda-pedido-row {
	padding: 10px 0;
	border-bottom: 1px dashed #ddd;
}

.tienda-col-imagen img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.tienda-col-cantidad { text-align: center; }
.tienda-col-precio,
.tienda-col-subtotal { text-align: right; }

/* ====== RESUMEN ABAJO (menos interlineado) ====== */
.tienda-pedido-resumen {
	margin-top: 12px;
	border-top: 1px solid #e5e7eb;
	padding-top: 8px;
	line-height: 1.1; /* ⬅️ MENOS INTERLINEADO */
}
.tienda-pedido-resumen .tienda-resumen-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 0; /* ⬅️ menos espacio */
	font-size: 14px;
}
.tienda-pedido-resumen .tienda-total-line {
	font-size: 16px;
	font-weight: 800;
}

/* ====== Responsivo ====== */
@media (max-width: 640px) {
	.tienda-modal-content {
		max-width: 95vw;
		padding: 16px;
		font-size: 14px;
	}
	.tienda-pedido-tabla {
		--tienda-pedido-cols: 60px 1fr 80px 90px 100px;
	}
	.tienda-col-imagen img {
		width: 60px;
		height: 60px;
	}
}
/* LISTADO SIN SIDEBAR: que el contenido ocupe todo el ancho */
.tienda-listado-layout {
	display: block;           /* En lugar del grid 2 columnas */
}

.tienda-listado-main {
	width: 100%;
}

/* Opcional: centrar la cabecera del listado */
.tienda-listado-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}


/*CURSOS DE IMF*/
/* =========================================================
   MIS CURSOS (DISEÑO)
   Prefijo tienda-
   ========================================================= */

.tienda-cursos-head
{
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.tienda-cursos-tools
{
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.tienda-cursos-search
{
	min-width: 240px;
	padding: 10px 12px;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 12px;
	outline: none;
}

.tienda-cursos-filter
{
	padding: 10px 12px;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 12px;
	outline: none;
	background: #fff;
}

.tienda-cursos-grid
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.tienda-curso-card
{
	border: 1px solid rgba(0,0,0,.10);
	border-radius: 18px;
	background: #fff;
	overflow: hidden;
}

.tienda-curso-top
{
	padding: 16px;
}

.tienda-curso-badge
{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	background: rgba(22,163,74,.12);
	color: #166534;
	border: 1px solid rgba(22,163,74,.25);
	margin-bottom: 10px;
}

.tienda-badge--off
{
	background: rgba(107,114,128,.12);
	color: #374151;
	border-color: rgba(107,114,128,.25);
}

.tienda-curso-title
{
	margin: 0 0 6px 0;
	font-size: 18px;
	line-height: 1.2;
}

.tienda-curso-sub
{
	margin: 0 0 10px 0;
	color: rgba(0,0,0,.70);
	font-size: 14px;
	line-height: 1.45;
}

.tienda-curso-meta
{
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.tienda-curso-metaitem
{
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(0,0,0,.06);
	color: rgba(0,0,0,.75);
}

.tienda-curso-actions
{
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.tienda-btn--secondary
{
	border: 1px solid rgba(0,0,0,.12);
	background: #fff;
}

.tienda-btn--ghost
{
	border: 1px dashed rgba(0,0,0,.18);
	background: transparent;
}

/* Temario */
.tienda-curso-temario
{
	border-top: 1px solid rgba(0,0,0,.08);
	padding: 8px 12px 14px 12px;
	background: rgba(0,0,0,.02);
}

.tienda-tema
{
	border: 1px solid rgba(0,0,0,.10);
	background: #fff;
	border-radius: 14px;
	margin-top: 10px;
	overflow: hidden;
}

.tienda-tema-sum
{
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 12px;
}

.tienda-tema-sum::-webkit-details-marker
{
	display: none;
}

.tienda-tema-left
{
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tienda-tema-title
{
	font-weight: 700;
	font-size: 14px;
}

.tienda-tema-count
{
	font-size: 12px;
	color: rgba(0,0,0,.60);
}

.tienda-tema-icon
{
	font-size: 16px;
	opacity: .65;
	transition: transform .2s ease;
}

.tienda-tema[open] .tienda-tema-icon
{
	transform: rotate(180deg);
}

/* Subgrupos */
.tienda-subgrupos
{
	padding: 0 12px 12px 12px;
	display: grid;
	gap: 8px;
}

.tienda-subgrupo
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(0,0,0,.10);
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.tienda-subgrupo:hover
{
	background: rgba(52,152,219,.06);
	border-color: rgba(52,152,219,.25);
}

.tienda-subgrupo-title
{
	font-size: 13px;
	line-height: 1.35;
}

.tienda-subgrupo-pill
{
	font-size: 11px;
	padding: 5px 9px;
	border-radius: 999px;
	background: rgba(52,152,219,.12);
	color: rgba(52,152,219,1);
	border: 1px solid rgba(52,152,219,.25);
	white-space: nowrap;
}

.tienda-pill--video
{
	background: rgba(220,38,38,.10);
	color: #b91c1c;
	border-color: rgba(220,38,38,.25);
}

.tienda-pill--audio
{
	background: rgba(22,163,74,.10);
	color: #166534;
	border-color: rgba(22,163,74,.25);
}

.tienda-pill--test
{
	background: rgba(107,114,128,.12);
	color: #374151;
	border-color: rgba(107,114,128,.25);
}

/* Responsive */
@media (max-width: 1024px)
{
	.tienda-cursos-grid
	{
		grid-template-columns: 1fr;
	}

	.tienda-cursos-search
	{
		min-width: 180px;
	}
}



/*AÑADIDO NUEVO SOLO PARA ESTA WEB*/
.tienda-orderlink{
	display:flex;
	align-items:center;
	justify-content:flex-start; /* <-- clave */
	width:100%;
	padding:.7rem .9rem;
	border-radius:12px;
	text-decoration:none;
	border:1px solid rgba(0,0,0,.08);
}

.tienda-orderlink-text{
	display:inline-flex;
	align-items:center;
	gap:10px;
	flex-wrap:wrap;
}

/* Deshabilitado */
.tienda-orderlink--disabled{
	opacity:.55;
	cursor:not-allowed;
}

/* Badge “Pendiente pago” pegado al nombre */
.tienda-orderlink-badge{
	font-size:.85rem;
	padding:.18rem .5rem;
	border-radius:999px;
	border:1px solid rgba(220,38,38,.35);
	color:#dc2626;
	white-space:nowrap;
	margin-left:8px;                  /* pegadito al texto */
}

/* ==============================
   AREA USUARIO - AJUSTE ESPACIOS
   ============================== */
.tienda-area-usuario{
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.tienda-tabs{
	margin-top: 10px !important;
}

.tienda-dashboard{
	margin-top: 0 !important;
}

.tienda-dashboard-hero{
	margin-top: 10px !important;
	margin-bottom: 14px !important;
}

.tienda-btn--ghost{
	display:inline-flex;
	align-items:center;
	gap:6px;
	padding:.45rem .85rem;
	border-radius:999px;
	font-size:.9rem;
	text-decoration:none;
	border:1px solid rgba(0,0,0,.15);
	color:#111;
	background:rgba(255,255,255,.7);
}

.tienda-btn--ghost:hover{
	background:#fff;
}
/* FORZAR que los SELECT se vean como los INPUT (por si la plantilla los pisa) */
.tienda-form-group select
{
	display: block !important;
	width: 100% !important;
	padding: 12px 14px !important;
	border: 1px solid rgba(0,0,0,.15) !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: inherit !important;
	font: inherit !important;
	line-height: 1.2 !important;
	box-sizing: border-box !important;
	outline: none !important;
	appearance: auto !important;
	-webkit-appearance: auto !important;
	-moz-appearance: auto !important;
}
/* ==============================
   AUTH / REGISTRO - SELECTS FIX
   (solo afecta a .tienda-auth)
   ============================== */

.tienda-auth .tienda-form-group input,
.tienda-auth .tienda-form-group select,
.tienda-auth .tienda-form-group textarea
{
	width: 100%;
	box-sizing: border-box;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 0.5rem;
	padding: 0 12px;
	min-height: 42px;
	height: 42px;
	line-height: 42px;
	background: #fff;
	color: #111;
}

/* textarea no debe medir 42px */
.tienda-auth .tienda-form-group textarea
{
	min-height: 120px;
	height: auto;
	line-height: 1.4;
	padding: 12px;
}

/* focus igual para input/select */
.tienda-auth .tienda-form-group input:focus,
.tienda-auth .tienda-form-group select:focus,
.tienda-auth .tienda-form-group textarea:focus
{
	outline: none;
	border-color: #1E514A;
	box-shadow: 0 0 0 3px rgba(52,152,219,0.25);
}

/* MUY IMPORTANTE: evita que el select se vea como "lista" */
.tienda-auth .tienda-form-group select
{
	appearance: menulist;
	-webkit-appearance: menulist;
	-moz-appearance: menulist;
	overflow: hidden;
	white-space: nowrap;
}

/* Opciones normales */
.tienda-auth .tienda-form-group select option
{
	font-size: 16px;
	line-height: 1.2;
	color: #111;
	background: #fff;
}

/* Si algún CSS global pone height raro a option/optgroup */
.tienda-auth .tienda-form-group select option,
.tienda-auth .tienda-form-group select optgroup
{
	height: auto !important;
}

/* Si hay plugins que sustituyen el select (nice-select, select2, etc.) */
.tienda-auth .nice-select,
.tienda-auth .select2,
.tienda-auth .select2-container,
.tienda-auth .select2-container--default,
.tienda-auth .choices,
.tienda-auth .choices__inner,
.tienda-auth .bootstrap-select,
.tienda-auth .custom-select
{
	display: none !important;
}

/* Garantiza que el select real esté visible */
.tienda-auth select
{
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	z-index: auto !important;
}

/* =========================================
   FIX SELECTS AUTH: texto visible + flecha
   ========================================= */

.tienda-auth .tienda-form-group select
{
	/* Texto SIEMPRE visible */
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;

	/* Mantiene look de input */
	background-color: #ffffff !important;
	border: 1px solid #ccc !important;
	border-radius: 0.5rem !important;

	/* Flecha custom (porque la nativa se la carga la plantilla) */
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;

	padding-right: 44px !important; /* hueco para la flecha */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 18px 18px !important;
}

/* Placeholder visual (cuando value="") */
.tienda-auth .tienda-form-group select:required:invalid
{
	color: #6b7280 !important;
	-webkit-text-fill-color: #6b7280 !important;
}

/* Disabled */
.tienda-auth .tienda-form-group select:disabled
{
	opacity: .7;
	cursor: not-allowed;
}

/* Asegura que el option “vacío” sea gris si lo necesitas */
.tienda-auth .tienda-form-group select option[value=""]
{
	color: #6b7280;
}
/* Date input igual que el resto + icono */
.tienda-auth .tienda-form-group input[type="date"]
{
	width: 100%;
	box-sizing: border-box;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 0.5rem;
	padding: 0 12px;
	min-height: 42px;
	height: 42px;
	line-height: 42px;
	background: #fff;
	color: #111;
}

/* En Chrome/Edge: que el icono se vea y sea clickable */
.tienda-auth .tienda-form-group input[type="date"]::-webkit-calendar-picker-indicator
{
	opacity: 0.75;
	cursor: pointer;
}

/* Si tu plantilla hace cosas raras con text-fill */
.tienda-auth .tienda-form-group input[type="date"]
{
	-webkit-text-fill-color: #111827 !important;
}

/* ===== FUENTE GENERAL TIENDA ===== */

.tienda-container,
.tienda-container *,
.tienda-caja,
.tienda-caja *,
.tienda-carrito,
.tienda-carrito *,
.tienda-area-usuario,
.tienda-area-usuario *,
.tienda-modal,
.tienda-modal *,
.tienda-grid,
.tienda-grid *,
.tienda-card,
.tienda-card *,
.tienda-form,
.tienda-form *,
.tienda-checkout-frame,
.tienda-checkout-frame *
{
	font-family: 'DM Sans', sans-serif !important;
}

/* =========================
   TAMAÑO LETRAS TIENDA
   ========================= */

.tienda-caja
{
	font-size: 16px;
}

.tienda-caja table
{
	font-size: 16px;
}

.tienda-caja th
{
	font-size: 15px;
	font-weight: 600;
}

.tienda-caja td
{
	font-size: 16px;
}

.tienda-caja h1,
.tienda-caja h2,
.tienda-caja h3
{
	font-size: 22px;
	font-weight: 600;
}

.tienda-caja .tienda-total
{
	font-size: 18px;
	font-weight: 600;
}


