/* =========================================================
   PREMIUM SUPERMARKET — CUSTOM.CSS OPTIMIZADO
   - Menos reglas globales agresivas
   - Mejor rendimiento móvil
   - Mantiene estética premium verde
   ========================================================= */

/* ===== FIX GLOBAL DEL HERO EN MÓVIL ===== */
@media (max-width: 768px) {
  .component.hero-premium {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    margin-inline: auto;
    overflow-x: clip;
  }

  .component.hero-premium .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
    margin-inline: auto;
  }

  .component.hero-premium > div,
  .component.hero-premium .hero-features-wrapper,
  .component.hero-premium .hero-features-mask {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  .component.hero-premium img,
  .component.hero-premium video,
  .component.hero-premium svg,
  .component.hero-premium iframe {
    max-width: 100%;
  }
}

/* ===== FIX MOBILE PARA EL BLOQUE DE PRODUCTS ===== */
@media (max-width: 768px) {
  .products-block,
  .products-block h2,
  .products-block .title,
  .products-block .subtitle,
  .products-block p {
    text-align: center;
  }

  .products-block .icon-wrapper {
    display: flex;
    justify-content: center;
    margin: 0 auto 1rem;
  }

  .products-block h2,
  .products-block .title,
  .products-block .subtitle,
  .products-block p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== FIX ANCHO SOCIALS SOLO EN MÓVIL ===== */
@media (max-width: 768px) {
  #socials-support-hub {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    margin-inline: auto;
    overflow-x: clip;
  }

  #socials-support-hub .ps-socials-shell,
  #socials-support-hub .ps-socials-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  #socials-support-hub img,
  #socials-support-hub video,
  #socials-support-hub svg,
  #socials-support-hub iframe {
    max-width: 100%;
  }
}

/* ================================
   AJUSTES MOBILE – STATS + LIVE MAP
   ================================ */
@media (max-width: 768px) {
  .ps-stats-section .ps-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .ps-stats-section .ps-stat-item {
    padding: 1.4rem 0 1.1rem;
    border-inline: none;
  }

  .ps-stats-section .ps-stat-value {
    font-size: 2.1rem;
  }

  .ps-stats-section .ps-stats-header {
    margin-bottom: 1.5rem;
    gap: .5rem;
  }

  .ps-stats-section .container {
    margin-bottom: 3.5rem;
  }

  .ps-live-map-section {
    margin-top: 1.5rem;
  }

  .ps-live-map-section .ps-live-map-wrapper {
    min-height: 360px;
  }

  .ps-live-map-section .ps-live-map-bg::before,
  .ps-live-map-section .ps-live-dots {
    inset: 13% 9% 22% 9%;
  }

  .ps-live-map-section .ps-live-card {
    border-radius: 1.6rem;
  }

  .ps-live-map-section .ps-live-overlay-top-left {
    top: 1.1rem;
  }

  .ps-live-map-section .ps-live-overlay-bottom-left {
    bottom: 1.3rem;
  }
}

/* =========================
   Control cantidad cristal
   ========================= */
.ps-qty-control {
  background:
    radial-gradient(circle at 0 0, rgba(0,255,133,.10), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56,189,148,.12), transparent 55%),
    rgba(3,24,15,.90);
  border-radius: 9999px;
  border: 1px solid rgba(148,163,184,.32);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  overflow: hidden;
}

.ps-qty-btn {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(15,23,42,.94), rgba(15,23,42,.86));
  transition: background .16s ease, color .16s ease;
}

.ps-qty-btn:hover {
  background: rgba(0,255,133,.08);
}

.ps-qty-btn + .ps-qty-input,
.ps-qty-input + .ps-qty-btn {
  border-left: 1px solid rgba(15,23,42,.86);
}

.ps-qty-input {
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* =========================
   Barra de volumen minimal
   ========================= */
.ps-volume-bar-wrapper {
  padding: .5rem .25rem 0;
  border-radius: .9rem;
}

.ps-volume-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, rgba(0,255,133,.20), rgba(0,0,0,.68));
  border: 1px solid rgba(0,255,133,.32);
  color: rgba(148,163,184,.72);
}

.ps-volume-icon-active {
  background: radial-gradient(circle at 30% 0, rgba(0,255,133,.34), rgba(0,0,0,.68));
  color: #e5fff5;
  box-shadow: 0 0 12px rgba(0,255,133,.42);
}

.ps-volume-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(15,23,42,.9);
  overflow: hidden;
}

.ps-volume-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00ff85, #4ade80);
  box-shadow: 0 0 8px rgba(0,255,133,.45);
}

@media (max-width: 768px) {
  .ps-qty-control {
    box-shadow: 0 8px 18px rgba(0,0,0,.32);
  }

  .ps-volume-icon-active,
  .ps-volume-fill {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-qty-btn {
    transition: none;
  }
}
.psmk-fb-wrap {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.psmk-fb-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid rgba(255,255,255,0.085);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.014)),
    linear-gradient(135deg, rgba(7,14,24,0.96), rgba(5,11,20,0.99));
  box-shadow:
    0 18px 44px rgba(0,0,0,0.24),
    0 0 0 1px rgba(255,255,255,0.018) inset;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.psmk-fb-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,255,133,0.13);
  box-shadow:
    0 20px 48px rgba(0,0,0,0.28),
    0 0 14px rgba(0,255,133,0.025),
    0 0 0 1px rgba(0,255,133,0.015) inset;
}

.psmk-fb-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(0,255,133,0.055), transparent 42%),
    radial-gradient(circle at 95% 100%, rgba(0,255,133,0.035), transparent 38%);
  transition: opacity 0.2s ease;
}

.psmk-fb-card:hover .psmk-fb-glow {
  opacity: 1;
}

.psmk-fb-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  min-height: 0;
}

.psmk-fb-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.psmk-fb-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.14rem;
  line-height: 1;
}

.psmk-fb-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
}

.psmk-fb-star-on {
  color: #00ff85;
  text-shadow: 0 0 7px rgba(0,255,133,0.20);
}

.psmk-fb-star-off {
  color: rgba(255,255,255,0.16);
}

.psmk-fb-time {
  flex-shrink: 0;
  padding: 0.34rem 0.54rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.065);
  background: rgba(255,255,255,0.032);
  color: rgba(236,255,244,0.46);
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 750;
  white-space: nowrap;
}

.psmk-fb-text {
  color: rgba(245,255,249,0.84);
  font-size: 1rem;
  line-height: 1.58;
  font-weight: 520;
  word-break: break-word;
}

.psmk-fb-text-short {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.psmk-fb-hint {
  margin-top: auto;
  padding-top: 0.9rem;
  color: rgba(0,255,133,0.72);
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.psmk-fb-card:hover .psmk-fb-hint {
  opacity: 1;
  transform: translateY(0);
}

.psmk-fb-answer {
  position: relative;
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)),
    rgba(255,255,255,0.024);
}

.psmk-fb-answer::before {
  content: "";
  position: absolute;
  top: 0.95rem;
  bottom: 0.95rem;
  left: 0.78rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #00ff85, rgba(0,255,133,0.14));
}

.psmk-fb-answer-top,
.psmk-fb-answer-text,
.psmk-fb-answer-from {
  position: relative;
  z-index: 1;
  margin-left: 0.75rem;
}

.psmk-fb-answer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.psmk-fb-answer-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  color: #9affce;
  background: rgba(0,255,133,0.08);
  border: 1px solid rgba(0,255,133,0.13);
  font-size: 0.64rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.psmk-fb-answer-time {
  color: rgba(236,255,244,0.40);
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}

.psmk-fb-answer-text {
  color: rgba(245,255,249,0.72);
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: break-word;
}

.psmk-fb-answer-from {
  margin-top: 0.7rem;
  color: rgba(236,255,244,0.46);
  font-size: 0.7rem;
  line-height: 1.4;
  font-weight: 750;
}

.psmk-fb-answer-from span {
  color: #00ff85;
}

.psmk-fb-itembar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.6rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.065);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008)),
    rgba(0,0,0,0.10);
}

.psmk-fb-imgs {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.psmk-fb-img,
.psmk-fb-img-fallback {
  width: 2.3rem;
  height: 2.3rem;
  min-width: 2.3rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.psmk-fb-img {
  object-fit: cover;
  object-position: center;
  display: block;
  margin-left: -0.45rem;
}

.psmk-fb-img:first-child {
  margin-left: 0;
}

.psmk-fb-img-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,255,133,0.82);
  font-size: 0.95rem;
  font-weight: 900;
}

.psmk-fb-info {
  min-width: 0;
  flex: 1;
}

.psmk-fb-label {
  display: block;
  margin-bottom: 0.23rem;
  color: rgba(236,255,244,0.38);
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.psmk-fb-name {
  color: rgba(245,255,249,0.84);
  font-size: 0.84rem;
  line-height: 1.32;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psmk-fb-name span {
  color: rgba(0,255,133,0.76);
  font-weight: 850;
}

@media (max-width: 640px) {
  .psmk-fb-card {
    min-height: 190px;
    border-radius: 1.25rem;
  }

  .psmk-fb-main {
    padding: 1rem;
  }

  .psmk-fb-top {
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }

  .psmk-fb-star {
    font-size: 1.16rem;
  }

  .psmk-fb-time {
    font-size: 0.62rem;
    padding: 0.3rem 0.46rem;
  }

  .psmk-fb-text {
    font-size: 0.92rem;
    line-height: 1.52;
  }

  .psmk-fb-answer {
    border-radius: 1rem;
    padding: 0.82rem;
  }

  .psmk-fb-answer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .psmk-fb-itembar {
    min-height: 4.2rem;
    padding: 0.76rem 0.85rem;
  }

  .psmk-fb-img,
  .psmk-fb-img-fallback {
    width: 2.05rem;
    height: 2.05rem;
    min-width: 2.05rem;
    border-radius: 0.68rem;
  }

  .psmk-fb-label {
    font-size: 0.58rem;
  }

  .psmk-fb-name {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .psmk-fb-card,
  .psmk-fb-card *,
  .psmk-fb-card *::before,
  .psmk-fb-card *::after {
    transition: none !important;
    animation: none !important;
  }
}