/* ========== HEADER FIJO (oscuro, logo centrado) ========== */
html {
    scroll-behavior: smooth;
}
#btnNuevoVendedor {
    display: none;
}
@media (max-width: 767px) {
  .card-producto {
    width: 50% !important;           /* Cada tarjeta ocupa la mitad del contenedor */
    flex: 0 0 50%;
    max-width: 50% !important;
  }
}
/* Solo para móviles (hasta 767px) */
@media (max-width: 767px) {
  .row {
    margin-right: calc(-0.99 * var(--bs-gutter-x));
    margin-left: calc(-0.99 * var(--bs-gutter-x));
  }
  .row > * {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}
@media (max-width: 767px) {
  .row > * {
    width: auto;   /* Para que col-6 tenga width:50% */
    padding-right: 0;
    padding-left: 0;
  }
  .row {
    margin-right: calc(-0.99 * var(--bs-gutter-x));
    margin-left: calc(-0.99 * var(--bs-gutter-x));
  }
}
.marketplace-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;   /* centra el logo-container */
    z-index: 1100;
    height: 60px;
}
/* ========== SPINNER (Bootstrap) ========== */
@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.spinner-border.text-light {
    color: #f8f9fa !important;  /* color claro para modo oscuro */
}

/* Opcional: centrado del spinner dentro del contenedor */
.text-center .spinner-border {
    margin: 0 auto;
}
.hamburger-btn {
    position: absolute;
    left: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
}
.header-logo {
    height: 80px;
    width: auto;
    filter: brightness(1.1);
}
.marketplace-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}
body,
html {
  position: relative;
  background-color: #64636d;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding-top: 70px;  
}

body.container.modo-oscuro {
  position: relative !important;
  border-radius: 40px !important;
  padding: 40px !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 1300px !important;
  box-sizing: border-box !important;
}

body.container.modo-oscuro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / 40%) 0, rgb(0 0 0 / 0%) 100%), radial-gradient(circle at 15% 15%, rgb(0 0 0 / 0%) 0, #00000047 30%), radial-gradient(circle at 85% 85%, rgb(0 0 0 / 20%) 0, #00000000 30%);
    border-radius: 40px;
    z-index: -1;
}

body.container.py-5.modo-oscuro {
  box-shadow: 0 50px 120px rgba(0, 0, 0, .8),
              0 0 0 2px rgba(255, 255, 255, .2),
              inset 0 4px 30px rgba(255, 255, 255, .1),
              inset 0 -4px 20px rgba(0, 0, 0, .4) !important;
}

@media (max-width: 768px) {
  #ubicacion,
  .bloque-ubicacion {
    flex-wrap: wrap !important;
    gap: 5px !important;
    padding: 10px !important;
    height: auto !important;
    min-height: 95px !important;
    max-width: 95% !important;
  }

  .descripcion-emprendimiento {
    height: auto !important;
    min-height: 100px !important;
    padding: 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    max-width: 95% !important;
  }
}

.logo-wrapper {
  width: 100%;
  max-width: 230px;
  height: min(80vw, 230px);
  margin: 2rem auto !important;
  align-items: center !important;
  justify-content: center !important;
}

.logo {
  width: 80% !important;
  height: 80% !important;
  max-width: 80% !important;
  max-height: 80% !important;
  object-fit: contain !important;
  filter: brightness(1.2) drop-shadow(0 0 10px black);
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
#productos {
  min-height: 560px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}
@media (min-width: 768px) {
  .skeleton-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skeleton-card {
  height: 560px;
  background: linear-gradient(145deg, #1e1e2f 0, #2a2a3a 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  animation: 1.5s ease-in-out infinite skeleton-pulse;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
  animation: 1.2s infinite skeleton-shimmer;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: .6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes skeleton-shimmer {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(200%);
  }
}
