/* ======================================================
   SPIKE INVESTMENTS
   SPIKE BUSINESS COMMERCE
   ESTILOS GENERALES
====================================================== */

:root {
  --spike-primary: #6d28d9;
  --spike-primary-dark: #4c1d95;
  --spike-primary-light: #8b5cf6;
  --spike-primary-soft: #f3e8ff;

  --spike-bg: #f7f8fc;
  --spike-surface: #ffffff;
  --spike-border: #e7e9f0;

  --spike-text: #171721;
  --spike-text-secondary: #6b7280;

  --spike-success: #16a34a;
  --spike-warning: #f59e0b;
  --spike-danger: #dc2626;
  --spike-info: #2563eb;

  --sidebar-width: 250px;
  --topbar-height: 72px;

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

  --shadow-sm: 0 4px 14px rgba(30, 20, 50, 0.05);
  --shadow-md: 0 10px 30px rgba(30, 20, 50, 0.08);

  --transition: 0.2s ease;
}

/* ======================================================
   RESET
====================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--spike-bg);
  color: var(--spike-text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ======================================================
   UTILIDADES
====================================================== */

.hidden,
[hidden] {
  display: none !important;
}

.text-muted {
  color: var(--spike-text-secondary);
}

.text-success {
  color: var(--spike-success);
}

.text-danger {
  color: var(--spike-danger);
}

.text-warning {
  color: var(--spike-warning);
}

/* ======================================================
   ESTRUCTURA PRINCIPAL
====================================================== */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background:
    linear-gradient(
      180deg,
      #24104f 0%,
      #32106c 48%,
      #16082f 100%
    );

  color: #ffffff;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;

  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.app-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
}

.topbar {
  min-height: var(--topbar-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--spike-border);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 28px;

  position: sticky;
  top: 0;
  z-index: 90;

  backdrop-filter: blur(12px);
}

.page-content {
  width: 100%;
  padding: 28px;
}

/* ======================================================
   MARCA
====================================================== */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 4px 8px 24px;
}

.brand-logo {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      var(--spike-primary-light),
      var(--spike-primary)
    );

  font-weight: 800;
}

.brand-text strong {
  display: block;
  font-size: 18px;
}

.brand-text span {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ======================================================
   NAVBAR / SIDEBAR
====================================================== */

#navbar {
  width: 100%;
}

.navbar-marca {
  display: none;
}

.navbar-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-link {
  width: 100%;
  border: 0;
  background: transparent;

  color: rgba(255, 255, 255, 0.82);

  padding: 11px 14px;
  border-radius: 10px;

  text-align: left;

  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  transform: translateX(2px);
}

.nav-link.activo {
  color: #ffffff;
  background:
    linear-gradient(
      90deg,
      var(--spike-primary),
      var(--spike-primary-light)
    );
}

.navbar-usuario {
  margin-top: 24px;
  padding-top: 18px;

  border-top:
    1px solid rgba(255, 255, 255, 0.12);

  display: flex;
  flex-direction: column;
  gap: 10px;

  font-size: 13px;
}

/* ======================================================
   ENCABEZADOS DE MÓDULO
====================================================== */

.modulo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
  margin-bottom: 24px;
}

.modulo-header h1 {
  margin: 0 0 5px;
  font-size: 28px;
  line-height: 1.15;
}

.modulo-header p {
  margin: 0;
  color: var(--spike-text-secondary);
}

/* ======================================================
   BOTONES
====================================================== */

.btn,
.btn-primary {
  border: 0;

  background:
    linear-gradient(
      135deg,
      var(--spike-primary),
      var(--spike-primary-light)
    );

  color: #ffffff;

  padding: 10px 16px;
  border-radius: 10px;

  font-weight: 700;

  box-shadow:
    0 6px 18px rgba(109, 40, 217, 0.18);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.btn:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(109, 40, 217, 0.24);
}

.btn-secundario {
  border:
    1px solid var(--spike-border);

  background: #ffffff;
  color: var(--spike-text);

  padding: 10px 16px;
  border-radius: 10px;

  font-weight: 600;
}

.btn-secundario:hover {
  background: #f8f7fc;
}

.btn-danger {
  border: 0;
  color: #ffffff;
  background: var(--spike-danger);

  padding: 9px 13px;
  border-radius: 9px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* ======================================================
   CARDS
====================================================== */

.card {
  background: var(--spike-surface);

  border:
    1px solid var(--spike-border);

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  padding: 20px;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ======================================================
   DASHBOARD
====================================================== */

.dashboard-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 18px;
}

.kpi-card {
  background: var(--spike-surface);

  border:
    1px solid var(--spike-border);

  border-radius: var(--radius-md);

  padding: 20px;

  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 13px;
  color: var(--spike-text-secondary);
}

.kpi-value {
  margin-top: 8px;

  font-size: 28px;
  font-weight: 800;
}

.kpi-change {
  margin-top: 8px;

  font-size: 12px;
  font-weight: 600;
}

.dashboard-section {
  margin-top: 22px;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* ======================================================
   IA / AUTOMATIZACIÓN
====================================================== */

.ai-card {
  border: 0;

  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      #34106d,
      #6d28d9 58%,
      #8b5cf6
    );

  border-radius: var(--radius-lg);
  padding: 22px;

  box-shadow:
    0 18px 40px rgba(76, 29, 149, 0.24);
}

.ai-card h2 {
  margin-top: 0;
}

.ai-action {
  margin-top: 10px;

  background:
    rgba(255, 255, 255, 0.95);

  color: var(--spike-primary-dark);

  border-radius: 10px;
  padding: 12px;

  font-weight: 700;
}

/* ======================================================
   TABLAS
====================================================== */

.tabla-responsive {
  width: 100%;
  overflow-x: auto;

  background: #ffffff;

  border:
    1px solid var(--spike-border);

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);
}

.tabla-datos {
  width: 100%;
  border-collapse: collapse;
}

.tabla-datos th,
.tabla-datos td {
  padding: 14px 16px;
  text-align: left;

  border-bottom:
    1px solid var(--spike-border);

  white-space: nowrap;
}

.tabla-datos th {
  background: #faf9fd;

  color: var(--spike-text-secondary);

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.tabla-datos tbody tr {
  transition:
    background var(--transition);
}

.tabla-datos tbody tr:hover {
  background: #faf8ff;
}

.tabla-datos tbody tr:last-child td {
  border-bottom: 0;
}

.acciones-tabla {
  display: flex;
  gap: 7px;
}

.btn-editar-producto,
.btn-editar,
.btn-ver {
  border: 0;

  background: var(--spike-primary-soft);
  color: var(--spike-primary-dark);

  padding: 7px 10px;
  border-radius: 8px;

  font-size: 12px;
  font-weight: 700;
}

.btn-eliminar-producto,
.btn-eliminar {
  border: 0;

  background: #fee2e2;
  color: #b91c1c;

  padding: 7px 10px;
  border-radius: 8px;

  font-size: 12px;
  font-weight: 700;
}

/* ======================================================
   FORMULARIOS
====================================================== */

.campo-formulario {
  margin-bottom: 15px;
}

.campo-formulario label {
  display: block;

  margin-bottom: 6px;

  font-size: 13px;
  font-weight: 700;
}

.campo-formulario input,
.campo-formulario select,
.campo-formulario textarea {
  width: 100%;

  border:
    1px solid #d9dce5;

  background: #ffffff;

  border-radius: 10px;

  padding: 11px 12px;

  color: var(--spike-text);

  outline: none;

  transition:
    border var(--transition),
    box-shadow var(--transition);
}

.campo-formulario textarea {
  resize: vertical;
  min-height: 100px;
}

.campo-formulario input:focus,
.campo-formulario select:focus,
.campo-formulario textarea:focus {
  border-color: var(--spike-primary-light);

  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.12);
}

.acciones-formulario {
  display: flex;
  justify-content: flex-end;

  gap: 10px;
  margin-top: 20px;
}

/* ======================================================
   MODAL
====================================================== */

.modal-abierto {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;

  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background:
    rgba(20, 10, 40, 0.56);

  backdrop-filter: blur(4px);
}

.modal-contenido {
  width: 100%;

  max-height: 90vh;
  overflow-y: auto;

  background: #ffffff;

  border-radius: var(--radius-lg);

  box-shadow:
    0 25px 70px rgba(20, 10, 40, 0.28);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 22px;

  border-bottom:
    1px solid var(--spike-border);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.modal-cerrar {
  width: 36px;
  height: 36px;

  border: 0;
  border-radius: 9px;

  background: #f3f4f6;

  font-size: 22px;
}

.modal-body {
  padding: 22px;
}

/* ======================================================
   MENSAJES
====================================================== */

#messages {
  position: fixed;

  top: 90px;
  right: 24px;

  z-index: 1200;

  max-width: 400px;
}

.mensaje {
  padding: 13px 16px;

  border-radius: 11px;

  box-shadow: var(--shadow-md);

  font-weight: 600;
}

.mensaje-exito {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.mensaje-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.mensaje-info {
  color: #1e40af;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

/* ======================================================
   LOGIN
====================================================== */

.login-page {
  min-height: 100vh;

  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(380px, 0.8fr);

  background: #ffffff;
}

.login-hero {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 70px;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 75% 25%,
      rgba(139, 92, 246, 0.72),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      #17062f,
      #3b0f78 52%,
      #6d28d9
    );
}

.login-hero h1 {
  max-width: 650px;

  margin: 0 0 18px;

  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
}

.login-hero p {
  max-width: 560px;

  color:
    rgba(255, 255, 255, 0.78);

  font-size: 17px;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-card h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

/* ======================================================
   CATÁLOGO / COMERCIO
====================================================== */

.catalogo-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 18px;
}

.producto-card {
  overflow: hidden;

  background: #ffffff;

  border:
    1px solid var(--spike-border);

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.producto-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.producto-imagen {
  aspect-ratio: 4 / 3;
  overflow: hidden;

  background: #f5f5f8;
}

.producto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.producto-info {
  padding: 16px;
}

.producto-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.producto-precio {
  margin-top: 10px;

  color: var(--spike-primary-dark);

  font-size: 20px;
  font-weight: 800;
}

/* ======================================================
   HERO COMERCIAL
====================================================== */

.commerce-hero {
  min-height: 280px;

  display: flex;
  align-items: center;

  padding: 42px;

  overflow: hidden;

  color: #ffffff;

  border-radius: var(--radius-lg);

  background:
    radial-gradient(
      circle at 78% 32%,
      rgba(173, 126, 255, 0.82),
      transparent 28%
    ),
    linear-gradient(
      120deg,
      #38106d,
      #6d28d9 60%,
      #8b5cf6
    );

  box-shadow:
    0 18px 45px rgba(76, 29, 149, 0.2);
}

.commerce-hero-content {
  max-width: 550px;
}

.commerce-hero h1 {
  margin: 0 0 12px;

  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
}

.commerce-hero p {
  color:
    rgba(255, 255, 255, 0.82);

  font-size: 16px;
}

/* ======================================================
   BADGES / ESTADOS
====================================================== */

.badge {
  display: inline-flex;

  align-items: center;

  padding: 5px 9px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
}

.badge-success {
  color: #166534;
  background: #dcfce7;
}

.badge-warning {
  color: #92400e;
  background: #fef3c7;
}

.badge-danger {
  color: #991b1b;
  background: #fee2e2;
}

.badge-info {
  color: #1e40af;
  background: #dbeafe;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .catalogo-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    display: none;
  }

  .app-main {
    margin-left: 0;
  }

  .dashboard-columns {
    grid-template-columns: 1fr;
  }

  .catalogo-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-hero {
    display: none;
  }
}

@media (max-width: 600px) {
  .page-content {
    padding: 18px;
  }

  .topbar {
    padding: 12px 18px;
  }

  .modulo-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid,
  .catalogo-grid {
    grid-template-columns: 1fr;
  }

  .commerce-hero {
    padding: 28px 22px;
  }

  .acciones-formulario {
    flex-direction: column;
  }

  .acciones-formulario button {
    width: 100%;
  }

  #messages {
    left: 16px;
    right: 16px;
    top: 76px;

    max-width: none;
  }
}

/* ======================================================
   SPIKE INVESTMENTS
   MARKETPLACE PÚBLICO - OPCIÓN A
====================================================== */

.marketplace-page {
  min-height: 100vh;
  background: #f7f7fb;
  color: #171521;
}

.marketplace-page svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marketplace-page button {
  font: inherit;
}

body.marketplace-cart-open {
  overflow: hidden;
}

/* ======================================================
   HEADER
====================================================== */

.marketplace-header {
  position: sticky;
  top: 0;
  z-index: 80;

  display: grid;
  grid-template-columns:
    minmax(170px, 220px)
    minmax(170px, 210px)
    minmax(320px, 1fr)
    auto;
  align-items: center;
  gap: 14px;

  min-height: 76px;
  padding: 12px 28px;

  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #ebe8f2;
  box-shadow: 0 5px 20px rgba(33, 20, 67, 0.05);
  backdrop-filter: blur(16px);
}

.marketplace-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.marketplace-logo-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.marketplace-logo-mark span {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 17px;
  border-radius: 4px 12px 4px 12px;
  transform: skewY(-22deg);
}

.marketplace-logo-mark span:first-child {
  left: 3px;
  background: linear-gradient(160deg, #26104f, #6d28d9);
}

.marketplace-logo-mark span:last-child {
  right: 3px;
  background: linear-gradient(160deg, #8b5cf6, #b794f6);
  transform: skewY(22deg);
}

.marketplace-logo-text {
  min-width: 0;
  line-height: 1;
}

.marketplace-logo-text strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.marketplace-logo-text span {
  display: block;
  margin-top: 4px;
  color: #6e6879;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.marketplace-category-selector {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;

  border: 1px solid #e3dfea;
  border-radius: 12px;
  background: #faf9fc;
  color: #403a4c;
  font-size: 13px;
  font-weight: 700;
}

.marketplace-category-selector svg {
  width: 18px;
  height: 18px;
  color: #6d28d9;
}

.marketplace-category-selector:hover {
  border-color: #c9b8ef;
  background: #f6f1ff;
}

.marketplace-top-search {
  position: relative;
  display: flex;
  min-width: 0;
}

.marketplace-top-search input {
  width: 100%;
  height: 46px;
  padding: 0 56px 0 16px;

  border: 1px solid #ded9e7;
  border-radius: 12px;
  outline: none;
  background: #ffffff;
  color: #231f2d;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.marketplace-top-search input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.09);
}

.marketplace-search-button {
  position: absolute;
  inset: 0 0 0 auto;
  width: 48px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(145deg, #5b21b6, #7c3aed);
  color: #ffffff;
}

.marketplace-search-button svg {
  width: 20px;
  height: 20px;
}

.marketplace-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.marketplace-link-button {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #514a5c;
  font-size: 13px;
  font-weight: 700;
}

.marketplace-link-button:hover {
  background: #f5f1fb;
  color: #5b21b6;
}

.marketplace-account-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;

  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #251f30;
  text-align: left;
}

.marketplace-account-button:hover {
  background: #f7f4fb;
}

.marketplace-account-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #f1e9ff;
  color: #6d28d9;
}

.marketplace-account-icon svg {
  width: 17px;
  height: 17px;
}

.marketplace-account-button small,
.marketplace-account-button strong {
  display: block;
  white-space: nowrap;
}

.marketplace-account-button small {
  color: #81798b;
  font-size: 9px;
  font-weight: 600;
}

.marketplace-account-button strong {
  margin-top: 2px;
  font-size: 12px;
}

.marketplace-cart-button {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;

  border: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, #5b21b6, #7c3aed);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.18);
}

.marketplace-cart-button svg {
  width: 19px;
  height: 19px;
}

.marketplace-cart-button strong {
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;

  border-radius: 999px;
  background: #ffffff;
  color: #5b21b6;
  font-size: 11px;
}

/* ======================================================
   LAYOUT
====================================================== */

.marketplace-layout {
  display: grid;
  grid-template-columns:
    210px
    minmax(0, 1fr)
    310px;
  gap: 20px;

  max-width: 1680px;
  margin: 0 auto;
  padding: 18px 22px 40px;
}

.marketplace-sidebar,
.marketplace-right-column {
  align-self: start;
}

.marketplace-sidebar {
  position: sticky;
  top: 94px;

  padding: 8px 10px 14px;
}

.marketplace-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.marketplace-sidebar-link,
.marketplace-sidebar-category {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;

  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4e4858;
  text-align: left;
}

.marketplace-sidebar-link {
  min-height: 42px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.marketplace-sidebar-link svg {
  width: 18px;
  height: 18px;
  color: #6b6477;
}

.marketplace-sidebar-link:hover,
.marketplace-sidebar-link.active {
  background: linear-gradient(90deg, #f2ebff, #faf7ff);
  color: #6525c8;
}

.marketplace-sidebar-link.active svg {
  color: #6d28d9;
}

.marketplace-sidebar-title {
  margin: 24px 10px 8px;
  color: #8a8294;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.marketplace-sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.marketplace-sidebar-category {
  min-height: 39px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 650;
}

.marketplace-sidebar-category:hover,
.marketplace-sidebar-category.active {
  background: #f6f1ff;
  color: #5b21b6;
}

.marketplace-category-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;

  border-radius: 8px;
  background: #f2eef8;
  color: #6b6477;
}

.marketplace-sidebar-category.active .marketplace-category-icon {
  background: #e9ddff;
  color: #6d28d9;
}

.marketplace-category-icon svg {
  width: 15px;
  height: 15px;
}

.marketplace-sidebar-note {
  margin-top: 22px;
  padding: 14px;

  border: 1px solid #e8e1f1;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f8f4ff);
}

.marketplace-sidebar-note strong {
  font-size: 12px;
}

.marketplace-sidebar-note p {
  margin: 6px 0 0;
  color: #7a7283;
  font-size: 11px;
  line-height: 1.5;
}

.marketplace-main {
  min-width: 0;
}

/* ======================================================
   HERO
====================================================== */

.marketplace-hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;

  padding: 38px 42px;
  border-radius: 20px;
  color: #ffffff;

  background:
    radial-gradient(circle at 82% 20%, rgba(174, 139, 255, 0.42), transparent 27%),
    linear-gradient(120deg, #331073 0%, #5420b1 52%, #7136d8 100%);
  box-shadow: 0 18px 40px rgba(57, 23, 117, 0.18);
}

.marketplace-hero::before {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  top: -160px;
  right: 40px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, 0.045);
}

.marketplace-hero-content {
  position: relative;
  z-index: 3;
  max-width: 570px;
}

.marketplace-kicker,
.marketplace-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.marketplace-kicker {
  margin-bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.marketplace-hero h1 {
  max-width: 600px;
  margin: 0 0 14px;
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.marketplace-hero p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.79);
  font-size: 15px;
  line-height: 1.55;
}

.marketplace-hero-button {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;

  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #4d1b9c;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(31, 10, 70, 0.16);
}

.marketplace-hero-button:hover {
  transform: translateY(-1px);
}

.marketplace-hero-button svg {
  width: 17px;
  height: 17px;
}

.marketplace-hero-visual {
  position: relative;
  min-height: 220px;
  z-index: 2;
}

.hero-laptop {
  position: absolute;
  left: 6%;
  bottom: 22px;
  width: 65%;
  max-width: 300px;
}

.hero-laptop-screen {
  position: relative;
  height: 132px;
  overflow: hidden;
  border: 7px solid #191527;
  border-bottom-width: 9px;
  border-radius: 11px 11px 5px 5px;
  background: linear-gradient(135deg, #100c27, #5d25cc 58%, #b590ff);
  box-shadow: 0 16px 30px rgba(13, 6, 33, 0.38);
}

.hero-screen-glow {
  position: absolute;
  inset: 16px 26px;
  border-radius: 50%;
  transform: rotate(-18deg);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(155,103,255,0.55));
  filter: blur(4px);
}

.hero-laptop-base {
  width: 112%;
  height: 13px;
  margin-left: -6%;
  border-radius: 3px 3px 11px 11px;
  background: linear-gradient(#d8d8e0, #8f8d98);
  box-shadow: 0 8px 12px rgba(20, 11, 39, 0.28);
}

.hero-phone {
  position: absolute;
  bottom: 20px;
  width: 64px;
  height: 135px;
  border: 5px solid #1f1b27;
  border-radius: 15px;
  box-shadow: 0 13px 28px rgba(13, 7, 32, 0.3);
}

.hero-phone::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 9px;
  background: linear-gradient(150deg, #201143, #783ee0 57%, #cab6ff);
}

.hero-phone-back {
  right: 21%;
  transform: rotate(-9deg);
  background: #4e45a8;
}

.hero-phone-front {
  right: 9%;
  transform: rotate(6deg);
  background: #17131f;
}

.hero-headphones {
  position: absolute;
  right: 0;
  top: 22px;
  width: 118px;
  height: 142px;
}

.hero-headband {
  position: absolute;
  left: 14px;
  top: 5px;
  width: 90px;
  height: 102px;
  border: 15px solid #19151f;
  border-bottom: 0;
  border-radius: 52px 52px 0 0;
  box-shadow: inset 0 0 0 4px #3c3543;
}

.hero-ear {
  position: absolute;
  bottom: 4px;
  width: 36px;
  height: 61px;
  border-radius: 16px;
  background: linear-gradient(90deg, #16131b, #38323d);
  box-shadow: 0 9px 18px rgba(17, 9, 30, 0.3);
}

.hero-ear-left { left: 6px; }
.hero-ear-right { right: 6px; }

/* ======================================================
   CATEGORÍAS DESTACADAS
====================================================== */

.marketplace-category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 12px;

  border: 1px solid #ebe7f1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(30, 18, 57, 0.04);
}

.marketplace-category-tile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;

  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}

.marketplace-category-tile:hover,
.marketplace-category-tile.active {
  border-color: #e3d6fa;
  background: #faf7ff;
}

.marketplace-category-tile-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;

  border-radius: 12px;
  background: linear-gradient(145deg, #f0e8ff, #f8f5ff);
  color: #6d28d9;
}

.marketplace-category-tile-icon svg {
  width: 25px;
  height: 25px;
}

.marketplace-category-tile-text {
  min-width: 0;
}

.marketplace-category-tile-text strong,
.marketplace-category-tile-text small {
  display: block;
}

.marketplace-category-tile-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2d2735;
  font-size: 11px;
}

.marketplace-category-tile-text small {
  margin-top: 3px;
  color: #8b8393;
  font-size: 9px;
}

/* ======================================================
   PRODUCTOS
====================================================== */

.marketplace-products-section {
  padding-top: 22px;
  scroll-margin-top: 92px;
}

.marketplace-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.marketplace-section-kicker {
  color: #7c3aed;
}

.marketplace-section-header h2 {
  margin: 4px 0 4px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.marketplace-section-header p {
  margin: 0;
  font-size: 12px;
}

.marketplace-result-count {
  padding: 7px 10px;
  border: 1px solid #e7e1ed;
  border-radius: 999px;
  background: #ffffff;
  color: #776f80;
  font-size: 10px;
  font-weight: 700;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.marketplace-product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  border: 1px solid #e8e4ed;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(30, 18, 57, 0.045);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.marketplace-product-card:hover {
  transform: translateY(-3px);
  border-color: #d8cbef;
  box-shadow: 0 14px 28px rgba(57, 23, 117, 0.1);
}

.marketplace-product-visual {
  position: relative;
  min-height: 145px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #fbfaff, #f0ecf8);
}

.marketplace-product-visual::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  top: -47px;
  right: -34px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.06);
}

.visual-tech {
  background: linear-gradient(145deg, #f8f6ff, #eae4f8);
}

.visual-drink {
  background: linear-gradient(145deg, #fff9f2, #f5e7d4);
}

.visual-home {
  background: linear-gradient(145deg, #f3fbff, #e4f2f8);
}

.marketplace-product-stock-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;

  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.marketplace-product-stock-badge.available {
  background: #e1f8e8;
  color: #23713b;
}

.marketplace-product-stock-badge.sold-out {
  background: #fde4e4;
  color: #a82a2a;
}

.marketplace-product-art {
  width: 86%;
  max-width: 170px;
  color: #4e376f;
}

.marketplace-product-art > svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.marketplace-product-art .product-stroke {
  fill: none;
  stroke: #3f3154;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marketplace-product-art .product-fill-soft {
  fill: #e6def5;
}

.marketplace-product-art .product-accent {
  fill: #7b4bc0;
  stroke: none;
}

.marketplace-product-art .product-accent-soft {
  fill: #d9c7f5;
  stroke: none;
}

.marketplace-product-art .product-keys {
  fill: #9c88b9;
  stroke: none;
}

.marketplace-product-art .product-steam {
  stroke: #9a78c8;
}

.marketplace-product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.marketplace-product-category {
  width: fit-content;
  margin-bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f1e9ff;
  color: #6b29cc;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.marketplace-product-body h3 {
  min-height: 34px;
  margin: 0 0 5px;
  color: #25202d;
  font-size: 12px;
  line-height: 1.3;
}

.marketplace-product-description {
  min-height: 32px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  margin: 0 0 11px;
  color: #817985;
  font-size: 9px;
  line-height: 1.45;
}

.marketplace-product-bottom {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
}

.marketplace-product-price {
  color: #2a1648;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.marketplace-product-stock {
  margin-top: 3px;
  color: #8e8795;
  font-size: 8px;
}

.marketplace-add-button {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;

  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #5b21b6, #7c3aed);
  color: #ffffff;
  box-shadow: 0 7px 16px rgba(109, 40, 217, 0.18);
}

.marketplace-add-button svg {
  width: 16px;
  height: 16px;
}

.marketplace-add-button:disabled {
  background: #d7d2df;
  color: #8e8798;
  box-shadow: none;
}

.marketplace-catalog-empty {
  grid-column: 1 / -1;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;

  border: 1px dashed #d9d0e5;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.marketplace-catalog-empty h3 {
  margin: 12px 0 4px;
}

.marketplace-catalog-empty p {
  max-width: 420px;
  margin: 0 0 15px;
  color: #817985;
  font-size: 12px;
}

/* ======================================================
   COLUMNA DERECHA
====================================================== */

.marketplace-right-column {
  position: sticky;
  top: 94px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.marketplace-side-card {
  overflow: hidden;
  padding: 15px;

  border: 1px solid #e8e4ed;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(30, 18, 57, 0.045);
}

.marketplace-side-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.marketplace-side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #302a39;
  font-size: 12px;
}

.marketplace-side-title svg {
  width: 18px;
  height: 18px;
  color: #6d28d9;
}

.marketplace-small-link {
  border: 0;
  background: transparent;
  color: #6d28d9;
  font-size: 9px;
  font-weight: 800;
}

.marketplace-small-link:hover {
  text-decoration: underline;
}

.marketplace-cart-summary {
  min-height: 102px;
}

.marketplace-empty-state,
.marketplace-cart-empty {
  text-align: center;
  color: #7c7584;
}

.marketplace-empty-state {
  padding: 10px 4px;
}

.marketplace-empty-state strong,
.marketplace-empty-state p {
  display: block;
}

.marketplace-empty-state strong {
  margin-top: 7px;
  color: #443d4d;
  font-size: 10px;
}

.marketplace-empty-state p {
  margin: 4px auto 0;
  max-width: 210px;
  font-size: 9px;
  line-height: 1.45;
}

.marketplace-empty-icon {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: #f1e9ff;
  color: #6d28d9;
}

.marketplace-empty-icon svg {
  width: 17px;
  height: 17px;
}

.marketplace-empty-icon.large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.marketplace-empty-icon.large svg {
  width: 27px;
  height: 27px;
}

.marketplace-summary-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0edf3;
}

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

.marketplace-summary-thumb {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f4effb;
  color: #6d28d9;
}

.marketplace-summary-thumb svg {
  width: 20px;
  height: 20px;
}

.marketplace-summary-info {
  min-width: 0;
}

.marketplace-summary-info strong,
.marketplace-summary-info span {
  display: block;
}

.marketplace-summary-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.marketplace-summary-info span {
  margin-top: 2px;
  color: #817985;
  font-size: 8px;
}

.marketplace-summary-price {
  white-space: nowrap;
  color: #332445;
  font-size: 9px;
}

.marketplace-more-items {
  display: block;
  margin: 8px auto 0;
}

.marketplace-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 10px;
  padding-top: 10px;
  border-top: 1px solid #eeeaf2;
}

.marketplace-summary-total span {
  color: #6e6677;
  font-size: 10px;
  font-weight: 700;
}

.marketplace-summary-total strong {
  color: #5b21b6;
  font-size: 16px;
}

.marketplace-full-button {
  width: 100%;
}

.marketplace-order-tracking strong {
  font-size: 10px;
}

.marketplace-order-tracking p {
  margin: 5px 0 12px;
  color: #817985;
  font-size: 9px;
  line-height: 1.5;
}

.tracking-line {
  display: flex;
  align-items: center;
  margin: 13px 2px 15px;
}

.tracking-step {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 3px solid #ded7e8;
  border-radius: 50%;
  background: #ffffff;
}

.tracking-step.active {
  border-color: #7c3aed;
  background: #7c3aed;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.tracking-connector {
  flex: 1;
  height: 2px;
  background: #e8e1ef;
}

.marketplace-secondary-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #ded4ed;
  border-radius: 9px;
  background: #ffffff;
  color: #5b21b6;
  font-size: 10px;
  font-weight: 800;
}

.marketplace-secondary-action:hover {
  background: #f8f4ff;
}

.marketplace-ai-card {
  padding: 16px;
  border: 1px solid #dfd1fa;
  border-radius: 15px;
  background:
    radial-gradient(circle at 86% 12%, rgba(139, 92, 246, 0.2), transparent 28%),
    linear-gradient(145deg, #f8f3ff, #eee5ff);
  color: #40246b;
}

.marketplace-ai-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.marketplace-ai-orb {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #5b21b6, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 8px 17px rgba(109, 40, 217, 0.18);
}

.marketplace-ai-orb svg {
  width: 20px;
  height: 20px;
}

.marketplace-ai-label {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.marketplace-ai-card h3 {
  margin: 4px 0 0;
  font-size: 12px;
}

.marketplace-ai-card p {
  margin: 10px 0 0;
  color: #68567f;
  font-size: 9px;
  line-height: 1.5;
}

/* ======================================================
   CARRITO LATERAL
====================================================== */

.marketplace-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(24, 15, 37, 0.32);
  backdrop-filter: blur(2px);
}

.marketplace-cart-backdrop[hidden] {
  display: none !important;
}

.marketplace-cart {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1200;

  width: min(470px, 100%);
  height: 100vh;
  overflow-y: auto;
  padding: 22px;

  border-left: 1px solid #e6e0ec;
  background: #ffffff;
  box-shadow: -25px 0 60px rgba(29, 18, 48, 0.2);
}

.marketplace-cart[hidden] {
  display: none !important;
}

.marketplace-cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ece8f0;
}

.marketplace-cart-header h2 {
  margin: 4px 0;
  font-size: 22px;
}

.marketplace-cart-header p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.marketplace-cart-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;

  border: 0;
  border-radius: 10px;
  background: #f3f0f6;
  color: #4f4759;
}

.marketplace-cart-close svg {
  width: 18px;
  height: 18px;
}

.marketplace-cart-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #eeeaf2;
}

.marketplace-cart-thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f2ecfa;
  color: #6d28d9;
}

.marketplace-cart-thumb svg {
  width: 28px;
  height: 28px;
}

.marketplace-cart-item-info strong,
.marketplace-cart-item-info span {
  display: block;
}

.marketplace-cart-item-info strong {
  font-size: 11px;
}

.marketplace-cart-item-info span {
  margin-top: 3px;
  color: #817985;
  font-size: 9px;
}

.marketplace-cart-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

.marketplace-quantity-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #e2dbe9;
  border-radius: 8px;
  background: #ffffff;
  color: #4c4357;
  font-weight: 800;
}

.marketplace-cart-controls strong {
  min-width: 22px;
  text-align: center;
  font-size: 10px;
}

.marketplace-cart-item-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.marketplace-cart-item-end > strong {
  white-space: nowrap;
  color: #3c2b4c;
  font-size: 11px;
}

.marketplace-remove-button {
  border: 0;
  background: transparent;
  color: #b43b4d;
  font-size: 9px;
  font-weight: 700;
}

.marketplace-cart-empty {
  padding: 54px 20px;
}

.marketplace-cart-empty h3 {
  margin: 13px 0 5px;
  color: #36303e;
  font-size: 16px;
}

.marketplace-cart-empty p {
  margin: 0;
  font-size: 11px;
}

.marketplace-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f7f2ff, #efe6ff);
}

.marketplace-cart-total span {
  color: #6d6675;
  font-size: 12px;
  font-weight: 700;
}

.marketplace-cart-total strong {
  color: #5b21b6;
  font-size: 20px;
}

/* ======================================================
   ACCESIBILIDAD
====================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ======================================================
   RESPONSIVE MARKETPLACE
====================================================== */

@media (max-width: 1360px) {
  .marketplace-header {
    grid-template-columns:
      190px
      minmax(280px, 1fr)
      auto;
  }

  .marketplace-category-selector {
    display: none;
  }

  .marketplace-layout {
    grid-template-columns:
      190px
      minmax(0, 1fr)
      280px;
  }

  .marketplace-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketplace-category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .marketplace-header {
    grid-template-columns: 180px minmax(0, 1fr) auto;
    padding-inline: 18px;
  }

  .marketplace-account-button span:last-child,
  .marketplace-link-button {
    display: none;
  }

  .marketplace-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .marketplace-right-column {
    position: static;
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  .marketplace-cart-summary-card {
    grid-column: span 1;
  }

  .marketplace-hero {
    grid-template-columns: 1fr 0.82fr;
  }

  .hero-headphones {
    display: none;
  }
}

@media (max-width: 860px) {
  .marketplace-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .marketplace-top-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .marketplace-layout {
    grid-template-columns: 1fr;
    padding: 14px 14px 32px;
  }

  .marketplace-sidebar {
    position: static;
    padding: 0;
  }

  .marketplace-sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .marketplace-sidebar-link {
    width: auto;
    min-width: max-content;
  }

  .marketplace-sidebar-title,
  .marketplace-sidebar-categories,
  .marketplace-sidebar-note {
    display: none;
  }

  .marketplace-right-column {
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
  }

  .marketplace-ai-card {
    grid-column: 1 / -1;
  }

  .marketplace-hero {
    min-height: 270px;
    padding: 30px;
  }

  .marketplace-hero h1 {
    font-size: 38px;
  }

  .marketplace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .marketplace-header {
    position: static;
    padding: 10px 12px;
  }

  .marketplace-logo-text strong {
    font-size: 16px;
  }

  .marketplace-account-button {
    display: none;
  }

  .marketplace-cart-button span:not(#carritoCantidad) {
    display: none;
  }

  .marketplace-main {
    min-width: 0;
  }

  .marketplace-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 26px 22px;
  }

  .marketplace-hero h1 {
    font-size: 34px;
  }

  .marketplace-hero p {
    font-size: 13px;
  }

  .marketplace-hero-visual {
    min-height: 160px;
    margin-top: 10px;
  }

  .hero-laptop {
    left: 4%;
    width: 72%;
  }

  .hero-phone-back {
    right: 14%;
  }

  .hero-phone-front {
    right: 1%;
  }

  .marketplace-category-strip,
  .marketplace-grid,
  .marketplace-right-column {
    grid-template-columns: 1fr;
  }

  .marketplace-ai-card {
    grid-column: auto;
  }

  .marketplace-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketplace-product-visual {
    min-height: 180px;
  }

  .marketplace-product-body h3 {
    min-height: auto;
    font-size: 14px;
  }

  .marketplace-product-description {
    min-height: auto;
    font-size: 10px;
  }

  .marketplace-product-price {
    font-size: 18px;
  }

  .marketplace-cart {
    width: 100%;
    padding: 18px;
  }

  .marketplace-cart-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .marketplace-cart-item-end {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }
}
