.catalog-page {
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

/* Header */
.catalog-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(10, 1, 24, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.logo-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-test,
.btn-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-test svg,
.btn-cart svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

.btn-test:hover,
.btn-cart:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-tertiary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

/* Main Content */
.catalog-main {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.catalog-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.catalog-intro h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.catalog-intro p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Product Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

/* Product Card */
.product-card {
  position: relative;
  height: 520px;
  perspective: 1000px;
}

.product-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.product-card.flipped .product-card-inner {
  transform: rotateY(180deg);
}

.product-card-front,
.product-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(26, 15, 46, 0.6);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.product-card-back {
  transform: rotateY(180deg);
}

/* Front Card */
.product-card-front {
  display: flex;
  flex-direction: column;
}

.product-image-container {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.flip-icon:hover {
  background: rgba(99, 102, 241, 0.8);
  transform: scale(1.1);
}

.flip-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.product-puffs {
  font-size: 0.9rem;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

.product-prices {
  margin-bottom: 1.5rem;
}

.price-unit {
  font-size: 1.3rem;       
  font-weight: 800;    
  color: #ffffff;          
  margin-bottom: 0.5rem;   
  letter-spacing: 0.02em;   
}

.price-promo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price-promo-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-tertiary);
}

.price-promo-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-savings {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  font-weight: 600;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-buy-promo,
.btn-buy-single {
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-buy-promo {
  background: linear-gradient(135deg, var(--accent-tertiary), #f472b6);
  color: white;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-buy-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

.btn-buy-single {
  /* Fondo blanco sólido para máximo contraste */
  background: #ffffff !important; 
  /* Texto oscuro para que se lea bien sobre el blanco */
  color: #1a0118 !important; 
  /* Un borde fino para definir la forma */
  border: 1px solid #ffffff;
  /* Hacemos el texto un poco más grueso */
  font-weight: 700;
}

.btn-buy-single:hover {
  /* Un gris muy clarito al pasar el mouse */
  background: #f0f0f0 !important;
  transform: translateY(-2px);
}

/* Back Card */
.product-card-back {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.back-header {
  margin-bottom: 1.5rem;
}

.back-name {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px var(--glow-color);
}

.back-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-back {
  margin-top: auto;
  padding: 0.9rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
}

.btn-back svg {
  width: 20px;
  height: 20px;
}

/* Destilados Special Style */
.product-card.destilado .product-image-container {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
}

.product-card.destilado .product-name {
  color: #fbbf24;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: rgba(10, 1, 24, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-close-cart {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-close-cart:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-close-cart svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cart-empty p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cart-empty small {
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(26, 15, 46, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  object-fit: cover;
  background: rgba(99, 102, 241, 0.1);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cart-item-variant {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-quantity {
  width: 28px;
  height: 28px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-quantity:hover {
  background: rgba(99, 102, 241, 0.3);
}

.quantity-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 24px;
  text-align: center;
}

.cart-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.btn-remove-item {
  width: 32px;
  height: 32px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-remove-item:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-remove-item svg {
  width: 16px;
  height: 16px;
  color: #ef4444;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-checkout {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-checkout:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Checkout Modal */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.checkout-modal.active {
  display: flex;
}

.checkout-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.checkout-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-close-checkout {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-close-checkout:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-close-checkout svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

.checkout-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.checkout-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Order Summary */
.checkout-summary {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item-name {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.summary-item-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.summary-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Form */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.delivery-cost {
  font-size: 0.9rem;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-top: 0.25rem;
  min-height: 1.5rem;
}

.btn-gps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gps:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
}

.btn-gps svg {
  width: 18px;
  height: 18px;
}

.gps-display {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-top: 0.5rem;
  word-break: break-all;
}

/* Payment Methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.payment-option {
  cursor: pointer;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .payment-card {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent-primary);
}

.payment-card svg {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
}

.payment-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* Checkout Total */
.checkout-total {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.total-final {
  border-top: 2px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Legal */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.legal-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-text a {
  color: var(--accent-primary);
  text-decoration: none;
}

.legal-text a:hover {
  text-decoration: underline;
}

/* Checkout Footer */
.checkout-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-confirm-order {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-confirm-order:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-confirm-order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Payment Modal */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.payment-modal.active {
  display: flex;
}

.payment-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.payment-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.payment-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.payment-body {
  padding: 2rem 1.5rem;
}

.payment-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.payment-logo h3 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.payment-logo p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.qr-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}

.qr-placeholder svg {
  width: 120px;
  height: 120px;
  color: var(--accent-primary);
}

.qr-placeholder p {
  font-size: 0.85rem;
  color: var(--bg-primary);
  font-weight: 600;
}

.payment-details {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.detail-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.detail-value-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-copy {
  width: 32px;
  height: 32px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-copy:hover {
  background: rgba(99, 102, 241, 0.3);
}

.btn-copy svg {
  width: 16px;
  height: 16px;
  color: var(--text-primary);
}

.total-item {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border-color);
}

.total-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.payment-instructions {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.payment-instructions p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.payment-instructions p:last-child {
  margin-bottom: 0;
}

.loyalty-reminder {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(236, 72, 153, 0.05);
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 0.75rem;
}

.star-icon-payment {
  width: 24px;
  height: 24px;
  color: var(--accent-tertiary);
  flex-shrink: 0;
}

.loyalty-reminder div {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.payment-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-confirm-payment {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-confirm-payment:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-back-checkout {
  width: 100%;
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back-checkout:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 640px) {
  .checkout-content {
    max-height: 100vh;
    border-radius: 0;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .qr-placeholder {
    width: 180px;
    height: 180px;
  }

  .qr-placeholder svg {
    width: 100px;
    height: 100px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cart-sidebar {
    max-width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === NUEVO BLOQUE DE PAGO CON TABS DE QR === */
.qr-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.qr-tab {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qr-tab:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--text-primary);
}

.qr-tab.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.qr-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.qr-item {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  animation: fadeIn 0.4s ease;
}

.qr-item.active {
  display: flex;
}

.qr-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}

.qr-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.qr-holder {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive ajustes para QR */
@media (max-width: 480px) {
  .qr-img {
    width: 180px;
    height: 180px;
  }
  .qr-tab {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

