/* ══════════════════════════════════════════════════════════════════════
   TECNOWISE LIQUIDACIÓN – Stylesheet
   ══════════════════════════════════════════════════════════════════════ */

/* ─── Variables & Reset ─────────────────────────────────────────────── */
:root {
  --bg-base: #0a0a0f;
  --bg-surface: #12121a;
  --bg-card: #18182a;
  --bg-card-hover: #1e1e32;

  --accent: #7c3aed;
  --accent-light: #9d5bff;
  --accent-glow: rgba(124, 58, 237, 0.35);

  --mp-blue: #009ee3;
  --mp-blue-dark: #0078b4;

  --text-primary: #f0f0ff;
  --text-secondary: #9898b8;
  --text-muted: #5c5c7a;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(124, 58, 237, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --font: 'Inter', system-ui, sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
}

/* ─── Utility ────────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* ─── Header ─────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.logo-icon {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 6px var(--accent));
}

.logo-icon img {
  height: 100%;
  width: auto;
  display: block;
}

.logo-text {
  height: 32px;
  width: auto;
  display: block;
}

.badge-liq {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  align-self: center;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.total-badge {
  display: none;
}

@media (min-width: 769px) {
  .header-inner {
    padding: 14px 24px;
    gap: 16px;
  }

  .logo {
    gap: 10px;
  }

  .header-meta {
    gap: 12px;
  }

  .total-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 99px;
  }
}


.btn-refresh {
  display: none;
}

.btn-refresh:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn-refresh svg {
  transition: transform 0.5s ease;
}

.btn-refresh.spinning svg {
  animation: spin 0.7s linear;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--accent-light) 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* Decorative circles */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
}

.c1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  left: -80px;
}

.c2 {
  width: 300px;
  height: 300px;
  background: #c084fc;
  top: -60px;
  right: -60px;
}

.c3 {
  width: 200px;
  height: 200px;
  background: var(--mp-blue);
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
}

/* ─── Main ───────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 24px 64px;
}

/* ─── State Screens ──────────────────────────────────────────────────── */
.state-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: 16px;
  color: var(--text-secondary);
  text-align: center;
}

.state-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
}

.state-screen h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
}

.state-screen p {
  max-width: 360px;
  line-height: 1.6;
}

/* Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Productos Grid ─────────────────────────────────────────────────── */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* ─── Product Card ───────────────────────────────────────────────────── */
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.4s ease both;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for cards */
.product-card:nth-child(1) {
  animation-delay: 0.05s;
}

.product-card:nth-child(2) {
  animation-delay: 0.10s;
}

.product-card:nth-child(3) {
  animation-delay: 0.15s;
}

.product-card:nth-child(4) {
  animation-delay: 0.20s;
}

.product-card:nth-child(5) {
  animation-delay: 0.25s;
}

.product-card:nth-child(6) {
  animation-delay: 0.30s;
}

.product-card:nth-child(n+7) {
  animation-delay: 0.35s;
}

/* Top accent bar */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), #c084fc);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover::before {
  opacity: 1;
}

.card-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  background: rgba(124, 58, 237, 0.08);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-image-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--transition);
}

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

.card-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.card-gallery-main {
  position: relative;
  flex: 1;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.card-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.card-gallery-counter {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

.card-gallery-thumbs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 2px 0;
  max-height: 50px;
}

.card-gallery-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition), border-color var(--transition);
  object-fit: cover;
}

.card-gallery-thumb:hover,
.card-gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent-light);
}

.image-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.card-image-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
}

.card-image-empty svg {
  opacity: 0.5;
}

.card-image-empty span {
  font-size: 0.85rem;
  font-weight: 500;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
  gap: 8px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-badge-stock {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-badge-descuento {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 99px;
  white-space: nowrap;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.card-badge-descuento.hot {
  background: rgba(239, 68, 68, 0.15);
  color: #ff4757;
  border-color: rgba(239, 68, 68, 0.3);
  animation: pulse-hot 2s ease infinite;
}

@keyframes pulse-hot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.75;
  }
}

.card-marca {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse-dot 2s ease infinite;
}

.stock-dot--revision {
  background: var(--text-muted) !important;
  box-shadow: none !important;
  animation: none !important;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px var(--success);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 12px var(--success);
  }
}

.stock-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stock-text--revision {
  color: var(--text-muted) !important;
  font-style: italic;
  letter-spacing: 0.02em;
}

.card-body {
  padding: 14px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-nombre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card-variante {
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-height: 18px;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.card-precio-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-precio-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-pventa {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.6);
  font-weight: 500;
  line-height: 1;
}

.card-precio {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ─── Botones ────────────────────────────────────────────────────────── */
.btn-comprar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-comprar:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-comprar:active {
  transform: scale(0.98);
}

.btn-comprar.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-comprar.disabled,
.btn-comprar:disabled {
  opacity: 0.38;
  pointer-events: none;
  cursor: not-allowed;
  background: var(--text-muted);
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: scale(1.04);
}

/* ─── Modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 75vw;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border), var(--shadow-glow);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: var(--font);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-image-container {
  margin: -36px -32px 24px;
  max-height: 300px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.gallery-counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.gallery-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition), border-color var(--transition);
  object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent-light);
}

.modal-image-empty {
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  background: rgba(124, 58, 237, 0.08);
  border-radius: 8px;
}

.modal-image-empty svg {
  opacity: 0.5;
}

.modal-image-empty span {
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-icon {
  font-size: 1.8rem;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-product-info {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-product-variant {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-product-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-top: 8px;
  letter-spacing: -0.03em;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-pagar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px var(--accent-glow);
  letter-spacing: -0.01em;
}

.btn-pagar:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-pagar:active {
  transform: translateY(0);
}

.btn-pagar.loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-cancelar {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.9rem;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancelar:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.modal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

.footer strong {
  color: var(--mp-blue);
}

.footer-extra {
  font-size: 0.7rem;
  margin-top: 12px;
  color: var(--text-muted);
}

/* ─── Zoom Modal ─────────────────────────────────────────────────────── */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.zoom-overlay #zoom-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.zoom-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: var(--font);
}

.zoom-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.zoom-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.5);
  padding: 12px 20px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}

.zoom-nav button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: var(--font);
  font-weight: 600;
}

.zoom-nav button:hover {
  background: rgba(255, 255, 255, 0.2);
}

#zoom-counter {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

/* ─── Carrito ────────────────────────────────────────────────────────── */
.btn-carrito {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  gap: 6px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-carrito:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.carrito-count {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.carrito-count.hidden {
  display: none !important;
}

/* Modal quantity selector */
.modal-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
}

.modal-quantity label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 70px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.btn-qty {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-qty:hover {
  background: rgba(124, 58, 237, 0.3);
  border-color: var(--accent-light);
}

#modal-cantidad {
  width: 60px;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 8px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
}

#modal-cantidad:focus {
  outline: none;
  border-color: var(--accent-light);
}

.btn-agregar-carrito {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  letter-spacing: -0.01em;
}

.btn-agregar-carrito:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45);
}

.btn-agregar-carrito:active {
  transform: translateY(0);
}

/* Carrito modal */
.carrito-modal {
  max-width: 560px;
}

.carrito-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 50vh;
  overflow-y: auto;
}

.carrito-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.item-variante {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.item-precio {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
}

.item-cantidad {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-qty-carrito {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-qty-carrito:hover {
  background: rgba(124, 58, 237, 0.3);
  border-color: var(--accent-light);
}

.qty-input {
  width: 50px;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 4px;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
}

.qty-input:focus {
  outline: none;
  border-color: var(--accent-light);
}

.item-subtotal {
  text-align: right;
  font-weight: 600;
  color: var(--accent-light);
  min-width: 70px;
  font-size: 0.95rem;
}

.btn-eliminar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-eliminar:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
}

.carrito-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--text-secondary);
  text-align: center;
}

.carrito-vacio .state-icon {
  font-size: 2.5rem;
}

.carrito-vacio p {
  font-size: 0.95rem;
}

.carrito-resumen {
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  padding-top: 16px;
  margin-bottom: 20px;
}

.resumen-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.resumen-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
  padding-top: 8px;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.resumen-envio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 8px 0;
}

/* ─── Opciones de envío ──────────────────────────────────────────────── */
.carrito-envio-options {
  margin: 16px 0;
  padding: 12px;
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-sm);
}

.envio-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}

.envio-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.envio-option:last-child {
  margin-bottom: 0;
}

.envio-option input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--accent);
}

.envio-option label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.envio-option input[type="radio"]:checked+label {
  color: var(--accent-light);
}

.envio-label {
  flex: 1;
}

.envio-price {
  font-weight: 500;
  text-align: right;
  min-width: 80px;
}

/* ─── Sección de dirección ─────────────────────────────────────────── */
.form-direccion-section {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
}

.form-section-title {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

#btn-pagar-carrito:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Filtros ─────────────────────────────────────────────────────────── */
.filters-section {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 24px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.filters-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.btn-toggle-filters {
  display: flex;
  width: 100%;
  padding: 12px 14px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.btn-toggle-filters:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: var(--accent-light);
}

.btn-toggle-filters svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.btn-toggle-filters[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.filters-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  border-top: 1px solid var(--border);
  padding: 16px 0 0 0;
}

.filters-content.hidden {
  display: none;
  opacity: 0;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}

/* Filtro de precio */
.filter-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-inputs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.price-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.price-input-wrapper label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.price-input-wrapper input {
  padding: 6px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.8rem;
  transition: var(--transition);
}

.price-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-light);
  background: var(--bg-base);
}

.price-separator {
  color: var(--text-muted);
  font-weight: 600;
  align-self: flex-end;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* Filtro de marca - Dropdown */
.filter-marcas-dropdown {
  position: relative;
}

.btn-marcas-dropdown {
  width: 100%;
  padding: 6px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.btn-marcas-dropdown:hover {
  border-color: var(--accent-light);
  background: var(--bg-base);
}

.btn-marcas-dropdown svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.marcas-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 50;
  margin-top: -1px;
}

.marcas-dropdown-menu.hidden {
  display: none;
}

.filter-marcas-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 180px;
  overflow-y: auto;
}

.marca-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 8px;
  transition: var(--transition);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.marca-label:last-child {
  border-bottom: none;
}

.marca-label:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-primary);
}

.marca-label input {
  cursor: pointer;
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

/* Filtro de descuento - Pills */
.filter-discount-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-discount {
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.pill-discount:hover {
  border-color: var(--accent-light);
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.05);
}

.pill-discount.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Botones de acción de filtros */
.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.btn-clear {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-clear:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--accent-light);
  color: var(--accent-light);
}

/* Responsive */
@media (max-width: 768px) {
  .filters-container {
    padding: 14px;
    gap: 0;
  }

  .btn-toggle-filters {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

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

  .filters-content {
    grid-template-columns: 1fr;
    gap: 16px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    padding-top: 16px;
  }

  .filter-group {
    gap: 8px;
  }

  .filter-title {
    font-size: 0.85rem;
    font-weight: 600;
  }

  .price-inputs {
    flex-direction: row;
    gap: 6px;
    align-items: flex-end;
  }

  .price-separator {
    display: flex;
    align-self: center;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 8px;
  }

  .price-input-wrapper {
    flex: 1;
    min-width: 0;
  }

  .price-input-wrapper label {
    font-size: 0.65rem;
    display: block;
    margin-bottom: 2px;
  }

  .price-input-wrapper input {
    width: 100%;
    font-size: 0.75rem;
    padding: 5px 6px;
  }

  .btn-marcas-dropdown {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .filter-marcas-list {
    max-height: 160px;
  }

  .marcas-dropdown-menu {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: auto;
    border-radius: var(--radius-sm);
    z-index: 51;
    max-width: none;
  }

  .marca-label {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .filter-discount-pills {
    gap: 8px;
    flex-wrap: wrap;
  }

  .pill-discount {
    padding: 6px 12px;
    font-size: 0.75rem;
    flex: 0 1 auto;
  }

  .filter-actions {
    grid-column: 1;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
  }

  .btn-clear {
    padding: 8px 12px;
    font-size: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ─── Formulario de contacto ──────────────────────────────────────────── */
.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-light);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Modal del formulario ────────────────────────────────────────────── */
.modal-formulario {
  max-height: 90vh;
  width: 60vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-formulario>form {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.modal-formulario>form::-webkit-scrollbar {
  width: 6px;
}

.modal-formulario>form::-webkit-scrollbar-track {
  background: transparent;
}

.modal-formulario>form::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 3px;
}

.modal-formulario>form::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

.formulario-resumen {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 12px;
}

.formulario-resumen h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.formulario-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.formulario-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.formulario-item-nombre {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formulario-item-cantidad,
.formulario-item-precio {
  flex-shrink: 0;
  margin-left: 8px;
  text-align: right;
  font-weight: 600;
}

.formulario-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-light);
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  padding-top: 8px;
}

.card-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-compartir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  font-size: 0;
}

.btn-compartir:hover {
  background: rgba(124, 58, 237, 0.35);
  border-color: var(--accent);
  transform: scale(1.08);
}

.btn-compartir:active {
  transform: scale(0.95);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: slideInToast 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  white-space: nowrap;
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.3);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutToast {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(400px);
  }
}

.toast.removing {
  animation: slideOutToast 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  width: 100%;
}

.search-container {
  display: flex;
  gap: 12px;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  gap: 10px;
  transition: var(--transition);
}

.search-input-wrapper:focus-within {
  border-color: var(--accent);
  background: rgba(18, 18, 26, 0.8);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.btn-clear-search {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-clear-search:hover {
  color: var(--text-primary);
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero {
    padding: 48px 20px 56px;
  }

  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .card-buttons {
    width: 100%;
  }

  .btn-comprar {
    flex: 1;
    justify-content: center;
  }

  .btn-compartir {
    flex-shrink: 0;
  }

  .modal {
    padding: 28px 22px;
  }

  .modal-formulario {
    padding: 20px 16px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .modal-image-container {
    margin: -28px -22px 24px;
  }

  .form-group {
    gap: 4px;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group input {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .formulario-resumen {
    padding: 10px;
    margin-top: 10px;
  }

  .formulario-resumen h3 {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .formulario-item-row {
    font-size: 0.75rem;
    gap: 4px;
  }

  .formulario-total {
    font-size: 0.9rem;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    white-space: normal;
  }

  .search-section {
    padding: 16px 16px;
  }

  .search-input-wrapper {
    padding: 10px 12px;
  }

  .search-input {
    font-size: 0.9rem;
  }
}

/* ─── FAQ ────────────────────────────────────────────────────────────── */
.faq-section {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.02) 100%);
  border-top: 1px solid var(--border);
  padding: 64px 16px;
  max-width: 1200px;
  margin: 40px auto 0;
  width: 100%;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.faq-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-section-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.faq-header-item {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(124, 58, 237, 0.05);
  transition: var(--transition);
}

.faq-item:hover .faq-header-item {
  background: rgba(124, 58, 237, 0.1);
}

.faq-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--accent-light);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  padding: 16px 20px;
  max-height: 1000px;
}

.faq-answer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.faq-loading,
.faq-error {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.faq-loading .spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
}

.faq-loading.small {
  width: 32px;
  height: 32px;
}

@media (max-width: 600px) {
  .faq-section {
    padding: 40px 16px;
    margin: 24px auto 0;
  }

  .faq-header {
    margin-bottom: 32px;
  }

  .faq-title {
    font-size: 1.6rem;
  }

  .faq-subtitle {
    font-size: 0.9rem;
  }

  .faq-header-item {
    padding: 14px 16px;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-item.open .faq-answer {
    padding: 12px 16px;
  }

  .faq-question {
    font-size: 0.9rem;
  }

  .faq-answer-text {
    font-size: 0.85rem;
  }
}

/* ─── Paginación ─────────────────────────────────────────────────────── */
.pagination-section {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-pagination {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent-light);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1rem;
  font-family: var(--font);
}

.btn-pagination:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.25);
  border-color: var(--accent);
  transform: scale(1.05);
}

.btn-pagination:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-page {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  padding: 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-page:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.btn-page.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.pagination-dots {
  color: var(--text-muted);
  padding: 0 4px;
}

@media (max-width: 640px) {
  .pagination {
    gap: 6px;
  }

  .btn-pagination,
  .btn-page {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .pagination-dots {
    font-size: 0.8rem;
  }
}