/* ═══════════════════════════════════════════════════
   TIENDATKDSV — site.css
   Paleta: azul taekwondo #0A3D91 | rojo taekwondo #C8102E | azul oscuro #072A63
   ═══════════════════════════════════════════════════ */

/* ── Variables de marca ──────────────────────────── */
:root {
  --lb-azul: #0A3D91;
  --lb-azul-med: #1565c0;
  --lb-dorado: #C8102E;
  --lb-verde: #072A63;
  --lb-verde-wa: #25d366;
  --lb-gris: #f5f5f5;
  --lb-gris-borde: #e0e0e0;
  --lb-texto: #212121;
  --lb-texto-sec: #555;
  --lb-radio: 10px;
  --lb-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  --lb-transition: 0.22s ease;
}

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

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--lb-texto);
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
}

/* ── Utilidad: spinner de carga ──────────────────── */
.lb-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-anim 1.4s infinite;
  border-radius: var(--lb-radio);
}
@keyframes skeleton-anim {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* ════════════════════════════════════════════════════
   PAGE LOADER
════════════════════════════════════════════════════ */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(150deg, rgba(26, 46, 90, 0.5) 0%, rgba(15, 29, 58, 0.5) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
#page-loader.loader-out {
  display: none;
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: loader-enter 0.45s ease both;
}
@keyframes loader-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.loader-logo-wrap {
  background: #fff;
  border-radius: 18px;
  padding: 20px 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  animation: loader-logo-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.1s;
}
@keyframes loader-logo-pop {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.loader-logo-img {
  height: 72px;
  width: auto;
  display: block;
}
.loader-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lb-dorado);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.9;
}
.loader-bar-wrap {
  position: relative;
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}
.loader-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lb-dorado),
    #f0c840,
    transparent
  );
  animation: loader-bar 1.5s ease-in-out infinite;
}
@keyframes loader-bar {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

/* ════════════════════════════════════════════════════
   CONSULTA MÉDICA (consulta-medica.php)
════════════════════════════════════════════════════ */
.consulta-banner-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.consulta-banner-color {
  height: 280px;
}
.consulta-hero-default {
  background: linear-gradient(135deg, var(--lb-azul) 0%, #0f1d3a 100%);
  color: #fff;
  padding: 36px 0 28px;
}
.consulta-hero-default h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  margin: 0;
}
.consulta-wa-card {
  background: #fff;
  border: 2px solid var(--lb-verde);
  border-radius: 1rem;
  padding: 28px 24px;
  text-align: center;
  position: sticky;
  top: 84px;
}
.consulta-wa-icon {
  width: 64px;
  height: 64px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.consulta-wa-icon i {
  color: #fff;
  font-size: 2rem;
}
.consulta-wa-card h5 {
  font-weight: 800;
  color: var(--lb-azul);
  margin-bottom: 8px;
}
.btn-consulta-wa {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: .75rem;
  font-weight: 700;
  padding: 12px;
  font-size: 1rem;
  transition: background var(--lb-transition);
}
.btn-consulta-wa:hover {
  background: #1da851;
  color: #fff;
}

/* ════════════════════════════════════════════════════
   PÁGINAS INFORMATIVAS (info.php)
════════════════════════════════════════════════════ */
.info-page-hero {
  background: linear-gradient(135deg, var(--lb-azul) 0%, #0f1d3a 100%);
  color: #fff;
  padding: 36px 0 28px;
}
.info-page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
}
.info-breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--lb-transition);
}
.info-breadcrumb a:hover {
  color: #fff;
}
.info-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 16px 64px;
}
.info-content > p:first-child {
  font-size: 1.05rem;
  color: var(--lb-texto);
  margin-bottom: 28px;
}
.info-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--lb-azul);
  margin: 32px 0 10px;
  padding-left: 14px;
  border-left: 4px solid var(--lb-dorado);
  line-height: 1.3;
}
.info-content p {
  color: var(--lb-texto-sec);
  line-height: 1.8;
  margin-bottom: 14px;
}
.info-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.info-content ul li {
  color: var(--lb-texto-sec);
  line-height: 1.8;
  margin-bottom: 6px;
}
.info-content a {
  color: var(--lb-azul-med);
}
.info-content a:hover {
  color: var(--lb-azul);
}
.btn-info-cta {
  display: inline-block;
  background: var(--lb-verde);
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(59, 179, 70, 0.35);
  transition:
    background var(--lb-transition),
    transform var(--lb-transition),
    box-shadow var(--lb-transition);
}
.btn-info-cta:hover {
  background: #2d9438;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 179, 70, 0.45);
}

/* ════════════════════════════════════════════════════
   § 1  TOP BAR
════════════════════════════════════════════════════ */
.topbar {
  --tb-size-pc: 2rem;
  --tb-size-movil: 1.1rem;
  background: var(--lb-azul);
  color: #fff;
  text-align: center;
  font-size: var(--tb-size-pc);
  font-weight: 600;
  padding: 7px 16px;
  letter-spacing: 0.02em;
}
@media (max-width: 767.98px) {
  .topbar { font-size: var(--tb-size-movil); }
}

/* ════════════════════════════════════════════════════
   § 2  NAVBAR
════════════════════════════════════════════════════ */
.site-header {
  background: #fff;
  z-index: 1030;
}
.navbar {
  padding: 10px 0;
}

.navbar-brand img {
  height: 52px;
  width: auto;
}

/* Logo centrado PC (≥768px) — grid 3 columnas: espacio | logo | acciones */
@media (min-width: 768px) {
  .logo-center-pc .container-xl {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0 !important;
  }
  .logo-center-pc .navbar-brand  { grid-column: 2; justify-self: center; margin: 0 !important; }
  .logo-center-pc .search-form   { grid-column: 1; justify-self: stretch; max-width: 100% !important; }
  .logo-center-pc .container-xl > div:last-child {
    grid-column: 3;
    justify-self: end;
    margin-left: 0 !important;
  }
}

/* Logo centrado móvil (<768px) — 2 filas: logo arriba centrado, acciones abajo centradas */
@media (max-width: 767.98px) {
  .logo-center-movil .navbar { padding: 6px 0; }

  .logo-center-movil .container-xl {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 6px;
    column-gap: 0 !important;
    padding: 2px 0;
  }

  /* Fila 1: logo ocupa todo el ancho, centrado */
  .logo-center-movil .navbar-brand {
    order: 1;
    width: 100%;
    display: flex !important;
    justify-content: center;
    margin: 0 !important;
  }

  /* Fila 2: acciones (cuenta, club, carrito, menú) centradas */
  .logo-center-movil .container-xl > div:last-child {
    order: 2;
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 1rem !important;
    margin-left: 0 !important;
  }

  /* Fila 3: buscador (si está visible) */
  .logo-center-movil .search-form {
    order: 3;
    width: 100%;
    max-width: 100% !important;
    padding-bottom: 4px;
  }
}

/* Buscador */
.search-form {
  max-width: 460px;
}
.search-input {
  border: 2px solid var(--lb-gris-borde);
  border-right: none;
  border-radius: var(--lb-radio) 0 0 var(--lb-radio) !important;
  font-size: 0.9rem;
  padding: 8px 14px;
  transition: border-color var(--lb-transition);
}
.search-input:focus {
  border-color: var(--lb-azul);
  outline: none;
  box-shadow: none;
}
.btn-search {
  background: var(--lb-azul);
  color: #fff;
  border: 2px solid var(--lb-azul);
  border-radius: 0 var(--lb-radio) var(--lb-radio) 0 !important;
  padding: 0 14px;
  transition: background var(--lb-transition);
}
.btn-search:hover {
  background: var(--lb-azul-med);
}

/* Acciones del header — estáticas (carrito permanente) */
.header-action {
  color: var(--lb-azul);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: color var(--lb-transition);
}
.header-action:hover {
  color: var(--lb-dorado);
}
.action-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Acciones dinámicas del navbar */
.nav-acc-item {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  background: var(--acc-bg, transparent);
  color: var(--acc-color, var(--lb-azul));
  transition:
    color var(--lb-transition),
    background var(--lb-transition);
}
.nav-acc-item:hover {
  background: var(--acc-bg-hover, transparent);
  color: var(--acc-color-hover, var(--lb-dorado));
}

/* Estilo simple: icono + etiqueta vertical, como Carrito */
.nav-acc-simple {
  flex-direction: column;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-acc-simple .nav-acc-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.nav-acc-simple .nav-acc-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Estilo redondo: pill con padding */
.nav-acc-redondo {
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Estilo club: pill + sub-label debajo */
.nav-acc-club,
.nav-acc-club:hover {
  flex-direction: column;
  align-items: center;
  background: transparent;
  color: inherit;
  gap: 2px;
}
.nav-acc-club-pill {
  background: var(--acc-bg, var(--lb-dorado));
  color: var(--acc-color, #fff);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  transition:
    background var(--lb-transition),
    color var(--lb-transition);
}
.nav-acc-club:hover .nav-acc-club-pill {
  background: var(--acc-bg-hover, #a8832a);
  color: var(--acc-color-hover, #fff);
}
.nav-acc-sub {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lb-azul);
  line-height: 1;
  transition: color var(--lb-transition);
}
.nav-acc-club:hover .nav-acc-sub {
  color: var(--lb-dorado);
}

/* ════════════════════════════════════════════════════
   § 3  HERO SLIDER
════════════════════════════════════════════════════ */
.hero-section #heroCarousel {
  background: transparent;
  overflow: hidden;
  border-radius: var(--lb-radio);
}
.hero-section .carousel-item,
.hero-section .carousel-inner {
  background: transparent;
  line-height: 0;
}
.hero-slide-link {
  display: block;
  line-height: 0;
  background: transparent;
}
.hero-full-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-title {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
}
.hero-cta {
  background: var(--lb-verde);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    background var(--lb-transition),
    transform var(--lb-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.hero-cta:hover {
  background: #2d9438;
  transform: translateY(-2px);
  color: #fff;
}

/* Flechas del carrusel */
.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: var(--lb-azul);
  font-size: 1.1rem;
  box-shadow: var(--lb-shadow);
  transition: background var(--lb-transition);
}
.carousel-arrow:hover {
  background: #fff;
}
.carousel-arrow.sm {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}
.carousel-control-prev {
  left: 12px;
}
.carousel-control-next {
  right: 12px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: none;
}

/* Indicadores */
#hero-indicators {
  bottom: 12px;
}
#hero-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  margin: 0 4px;
  transition:
    background var(--lb-transition),
    transform var(--lb-transition);
}
#hero-indicators .active {
  background: #fff;
  transform: scale(1.2);
}

/* ════════════════════════════════════════════════════
   § 4  DÍAS DE PROMOCIÓN
════════════════════════════════════════════════════ */
.dias-promo-section {
  background: #fff;
}
.dia-card {
  border-radius: var(--lb-radio);
  padding: 14px 12px;
  text-align: center;
  cursor: default;
  transition:
    transform var(--lb-transition),
    box-shadow var(--lb-transition);
  box-shadow: var(--lb-shadow);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dia-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.dia-nombre {
  font-size: var(--dia-nombre-size-pc, 1.5rem);
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
}
.dia-pct {
  font-size: var(--dia-pct-size-pc, 1.6rem);
  font-weight: 900;
  line-height: 1;
}
.dia-desc {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.3;
  margin-top: 20px;
}
@media (max-width: 767.98px) {
  .dia-nombre { font-size: var(--dia-nombre-size-movil, 1.5rem); }
  .dia-pct    { font-size: var(--dia-pct-size-movil, 1.6rem); }
}

/* ════════════════════════════════════════════════════
   § 5  ACCESOS RÁPIDOS
════════════════════════════════════════════════════ */
.accesos-section {
  background: var(--lb-gris);
}
.acceso-card {
  background: #fff;
  border: 2px solid var(--lb-gris-borde);
  border-radius: var(--lb-radio);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--lb-azul);
  font-size: 1.2rem;
  transition:
    border-color var(--lb-transition),
    box-shadow var(--lb-transition),
    transform var(--lb-transition);
  text-decoration: none;
}
.text-start {
  font-size: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.acceso-card:hover {
  border-color: var(--lb-verde);
  box-shadow: 0 4px 16px rgba(59, 179, 70, 0.15);
  transform: translateY(-2px);
  color: var(--lb-azul);
}
.acceso-icon {
  width: 44px;
  height: 44px;
  /*
  background: var(--lb-gris);
  border-radius: 50%;
  */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--lb-verde);
  flex-shrink: 0;
  overflow: hidden;
}
.acceso-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Columna para 5 productos por fila */
@media (min-width:992px) { .col-lg-2-4 { flex:0 0 auto; width:20%; } }

/* ════════════════════════════════════════════════════
   § 6 & § 8  TARJETAS DE PRODUCTO (Más Vendidos / Populares)
════════════════════════════════════════════════════ */
.productos-section {
  background: #fff;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--lb-dorado);
  position: relative;
  display: inline-block;
}
.section-title span {
  position: relative;
}
.section-title span::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lb-dorado);
  border-radius: 2px;
}

.producto-card {
  background: #fff;
  border: 2px solid var(--lb-gris-borde);
  border-radius: var(--lb-radio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--lb-transition),
    border-color var(--lb-transition),
    transform var(--lb-transition);
  height: 100%;
}
.producto-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--lb-azul-med);
  transform: translateY(-4px);
}

.producto-img-wrap {
  position: relative;
  padding: 12px;
  background: #fafafa;
  text-align: center;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.producto-img-wrap img {
  max-height: 130px;
  object-fit: contain;
  transition: transform var(--lb-transition);
}
.producto-card:hover .producto-img-wrap img {
  transform: scale(1.04);
}

.badge-descuento {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--lb-dorado);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
}

.producto-body {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.producto-nombre {
  font-size: 0.82rem;
  color: var(--lb-texto-sec);
  line-height: 1.3;
}
.producto-desc-tarjeta {
  font-size: 0.75rem;
  color: var(--lb-texto-sec);
  line-height: 1.35;
  margin: 2px 0 0;
}
.precio-oferta {
  font-size: 0.75rem;
  color: #999;
  text-decoration: line-through;
}
.precio-actual {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lb-azul);
}
.text-muted {
  color: white !important;
}
.btn-wa {
  background: var(--lb-verde-wa);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 0;
  font-size: 0.8rem;
  font-weight: 700;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--lb-transition);
  cursor: pointer;
  margin-top: auto;
}

.btn-wa:hover {
  background: #1aa34a;
  color: #fff;
}

.btn-elegir-talla {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 6px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border: 2px solid var(--lb-azul);
  border-radius: 20px;
  background: #fff;
  color: var(--lb-azul);
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
  transition: background var(--lb-transition), color var(--lb-transition);
}
.btn-elegir-talla:hover {
  background: var(--lb-azul);
  color: #fff;
}

/* Contador de cantidad en el primer producto mas vendido */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lb-azul);
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--lb-transition);
}

.qty-btn:hover {
  background: var(--lb-azul-med);
}

.qty-val {
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

/* ════════════════════════════════════════════════════
   § 7  CATEGORÍAS
════════════════════════════════════════════════════ */
.categorias-section {
  background: var(--lb-gris);
}
.categoria-card {
  background: #fff;
  border: 2px solid var(--lb-gris-borde);
  border-radius: var(--lb-radio);
  padding: 14px 8px;
  text-align: center;
  color: var(--lb-azul);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition:
    border-color var(--lb-transition),
    box-shadow var(--lb-transition),
    transform var(--lb-transition);
  height: 100%;
  text-decoration: none;
}
.categoria-card:hover {
  border-color: var(--lb-verde);
  box-shadow: 0 4px 16px rgba(59, 179, 70, 0.15);
  transform: translateY(-3px);
  color: var(--lb-azul);
}
.categoria-icono {
  width: 66px;
  height: 66px;
  /*
  background: var(--lb-gris);
  border-radius: 50%;
  */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--lb-azul);
}
.categoria-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* ════════════════════════════════════════════════════
   § 9  BANNER INTERMEDIO
════════════════════════════════════════════════════ */
.banner-mid-section #bannerMidCarousel {
  background: transparent;
  overflow: hidden;
  border-radius: var(--lb-radio);
}
.banner-mid-section .carousel-item,
.banner-mid-section .carousel-inner {
  background: transparent;
  line-height: 0;
}

/* ════════════════════════════════════════════════════
   § 10  FOOTER
════════════════════════════════════════════════════ */
.site-footer {
  background: var(--lb-azul);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
}
.footer-logo img {
  height: 55px;
  filter: brightness(0) invert(1);
}
.footer-phone {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.footer-lema {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lb-dorado);
  margin-bottom: 10px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 6px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
  transition: color var(--lb-transition);
}
.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-color: rgba(255, 255, 255, 0.15) !important;
}
.footer-redes a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  margin-left: 12px;
  transition:
    color var(--lb-transition),
    transform var(--lb-transition);
  display: inline-block;
}
.footer-redes a:hover {
  color: #fff;
  transform: scale(1.15);
}

/* ════════════════════════════════════════════════════
   BOTÓN FLOTANTE WHATSAPP
════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--lb-verde-wa);
  color: #fff;
  border-radius: 50px;
  padding: 12px 18px 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  font-size: 1.5rem;
  transition:
    background var(--lb-transition),
    transform var(--lb-transition),
    box-shadow var(--lb-transition);
  text-decoration: none;
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-fab:hover {
  background: #1aa34a;
  color: #fff;
  transform: scale(1.05);
  animation: none;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-fab.fab-izquierda { right: auto; left: 24px; }
.fab-label {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}
@keyframes pulse-wa {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
  }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .producto-img-wrap {
    height: 130px;
  }
  .whatsapp-fab {
    padding: 14px;
    border-radius: 50%;
  }
  .fab-label {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════
   SLIDER DE PRODUCTOS EN MÓVIL (iniciado por JS)
════════════════════════════════════════════════════ */

/* Wrapper que contiene el track + flechas */
.prod-slider-wrap {
  position: relative;
}

/* Track del slider (clase añadida por JS en móvil) */
.prod-slider {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -12px !important;
  padding: 4px 12px 24px !important;
  gap: 12px !important;
}
.prod-slider::-webkit-scrollbar { display: none; }

/* Cada tarjeta: 63vw → la siguiente asoma ~49% */
.prod-slider > div {
  flex: 0 0 63vw !important;
  max-width: 63vw !important;
  min-width: 0;
  padding: 0 !important;
  scroll-snap-align: start;
}
.prod-slider .producto-card { height: 100%; }
.prod-slider .producto-img-wrap { height: 160px; }
.prod-slider .producto-card:hover {
  transform: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.07) !important;
  border-color: var(--lb-gris-borde) !important;
}

/* Flechas de navegación */
.prod-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lb-azul);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  box-shadow: 0 3px 14px rgba(0,0,0,.35);
  cursor: pointer;
  padding: 0;
  transition: background .2s, opacity .25s, transform .15s;
}
.prod-arrow:active { transform: translateY(-50%) scale(.88); }
.prod-arrow-prev { left:  2px; }
.prod-arrow-next { right: 2px; }
.prod-arrow-oculta {
  opacity: 0;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════
   SWEETALERT2 — ESTILOS DE MARCA
════════════════════════════════════════════════════ */

/* Modal de confirmación WhatsApp */
.swal-wa-popup {
  border-radius: 20px !important;
  padding: 0 !important;
  overflow: hidden;
  max-width: 360px !important;
}
.swal-wa-wrap {
  padding: 28px 24px 4px;
  text-align: center;
}
.swal-wa-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  animation: wa-icon-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes wa-icon-pop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.swal-wa-badge {
  display: inline-block;
  background: rgba(37, 211, 102, 0.1);
  color: var(--lb-verde-wa);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.swal-wa-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--lb-azul);
  margin: 0 0 10px;
  line-height: 1.3;
}
.swal-wa-nombre {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lb-texto);
  margin: 0 0 6px;
  line-height: 1.4;
}
.swal-wa-precio {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--lb-verde);
  margin: 0 0 10px;
}
.swal-wa-qty {
  background: var(--lb-gris);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.88rem;
  color: var(--lb-texto-sec);
  margin-bottom: 12px;
  display: inline-block;
}
.swal-wa-note {
  font-size: 0.8rem;
  color: var(--lb-texto-sec);
  margin: 0;
  line-height: 1.5;
}

/* Acciones del modal WhatsApp */
.swal-wa-popup .swal2-actions {
  padding: 16px 24px 24px;
  gap: 10px;
  flex-wrap: nowrap;
}
.swal-wa-popup .swal2-confirm {
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 10px 18px !important;
  flex: 1;
}
.swal-wa-popup .swal2-cancel {
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  padding: 10px 18px !important;
  flex: 1;
}

/* Toast carrito (agregar cantidad) */
.swal2-popup.swal2-toast.swal-toast-carrito {
  border-radius: 10px !important;
  padding: 10px 16px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.12) !important;
  background: #fff !important;
  border-left: 4px solid var(--lb-verde) !important;
  min-width: 0 !important;
}

/* Toast de marca (site público) */
.swal2-popup.swal2-toast.swal-toast-lb {
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  padding: 12px 16px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15) !important;
}

/* ════════════════════════════════════════════════════
   CARRITO BADGE
════════════════════════════════════════════════════ */
.carrito-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--lb-dorado);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: badgePop .25s ease;
}
@keyframes badgePop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ════════════════════════════════════════════════════
   CARRITO DRAWER
════════════════════════════════════════════════════ */
.carrito-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1050;
  animation: fadeIn .2s ease;
}
.carrito-overlay.open { display: block; }

.carrito-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100dvh;
  background: #fff;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 30px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.carrito-drawer.open { transform: translateX(0); }

.carrito-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--lb-gris-borde);
  background: var(--lb-azul);
  color: #fff;
}
.carrito-titulo { margin: 0; font-size: 1rem; font-weight: 800; }
.carrito-cerrar {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
}
.carrito-cerrar:hover { opacity: 1; }

.carrito-lista {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}
.carrito-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--lb-texto-sec);
  gap: 10px;
  font-size: .9rem;
  padding-bottom: 60px;
}
.carrito-vacio i { font-size: 3rem; opacity: .25; }

/* Item del carrito */
.carrito-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.carrito-item:hover { background: #fafafa; }
.carrito-item-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f5;
  flex-shrink: 0;
}
.carrito-item-img-ph {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 8px;
  color: #bbb;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.carrito-item-info { flex: 1; min-width: 0; }
.carrito-item-nombre {
  font-size: .8rem;
  font-weight: 700;
  color: var(--lb-azul);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carrito-item-codigo {
  font-size: .7rem;
  color: var(--lb-texto-sec);
  font-family: monospace;
  margin-top: 2px;
}
.carrito-item-precio {
  font-size: .82rem;
  color: var(--lb-verde);
  font-weight: 700;
  margin-top: 4px;
}
.carrito-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid var(--lb-gris-borde);
  border-radius: 20px;
  padding: 2px 4px;
}
.carrito-item-qty button {
  background: none;
  border: none;
  width: 26px;
  height: 26px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lb-azul);
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carrito-item-qty button:hover { background: var(--lb-gris); }
.carrito-item-qty span {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: .85rem;
}

/* Footer carrito */
.carrito-footer {
  padding: 16px 20px;
  border-top: 2px solid var(--lb-gris-borde);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.carrito-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
}
.carrito-total-row strong {
  font-size: 1.3rem;
  color: var(--lb-verde);
}
.carrito-aviso {
  font-size: .72rem;
  color: var(--lb-texto-sec);
  margin: 0;
}
.carrito-btn-pedido {
  background: var(--lb-verde-wa);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: filter .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.carrito-btn-pedido:hover { filter: brightness(1.08); }
.carrito-btn-wompi {
  background: var(--lb-azul);
  margin-bottom: 8px;
}
.carrito-btn-vaciar {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 8px;
  font-size: .8rem;
  color: var(--lb-texto-sec);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.carrito-btn-vaciar:hover { border-color: #e53935; color: #e53935; }

/* Hint de cuenta en el carrito */
.carrito-cuenta-hint {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #f0f4ff;
  border: 1px solid #d4e0ff;
  border-radius: 10px;
  padding: .6rem .85rem;
  font-size: .78rem;
  color: #555;
  margin-bottom: .25rem;
}
.carrito-cuenta-hint i {
  font-size: 1.3rem;
  color: var(--lb-azul);
  flex-shrink: 0;
}
.carrito-cuenta-hint div { display: flex; flex-direction: column; gap: .15rem; }
.carrito-cuenta-hint span { color: #555; font-size: .77rem; }
.carrito-cuenta-hint a {
  color: var(--lb-azul);
  font-weight: 700;
  font-size: .77rem;
  text-decoration: none;
}
.carrito-cuenta-hint a:hover { text-decoration: underline; }

/* ── Buscador en vivo ────────────────────────────────── */
.search-form { position: relative; }

.search-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(26,46,90,.18);
  border: 1px solid #e8eef7;
  z-index: 9500;
  overflow: hidden;
  animation: sdIn .18s ease;
}
@keyframes sdIn {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}
.sd-skel-item {
  height: 56px; border-radius: 8px; margin: .5rem .75rem;
}
.sd-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .75rem;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid #f4f6fb;
}
.sd-item:last-of-type { border-bottom: none; }
.sd-item:hover { background: #f5f8ff; }
.sd-item-img {
  width: 44px; height: 44px; border-radius: 8px;
  background: #f5f5f5; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sd-item-img img { width: 100%; height: 100%; object-fit: contain; }
.sd-item-img .bi { font-size: 1.4rem; color: #ccc; }
.sd-item-body { flex: 1; min-width: 0; }
.sd-item-nombre {
  display: block; font-size: .86rem; font-weight: 600;
  color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sd-item-meta { display: flex; align-items: center; gap: .5rem; margin-top: .15rem; }
.sd-item-cat {
  font-size: .72rem; font-weight: 700; padding: .1rem .45rem;
  border-radius: 20px; background: rgba(26,46,90,.08); color: var(--lb-azul);
}
mark.sd-mark {
  background: #fff176; color: inherit; border-radius: 2px;
  padding: 0 1px;
}
.sd-item-add {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  border: 1.5px solid var(--lb-azul); background: transparent;
  color: var(--lb-azul); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; transition: all .18s;
}
.sd-item-add:hover { background: var(--lb-azul); color: #fff; }
.sd-empty {
  text-align: center; padding: 1.6rem 1rem;
  color: #bbb;
}
.sd-empty .bi { font-size: 2.2rem; display: block; margin-bottom: .5rem; }
.sd-empty p  { font-size: .85rem; margin: 0; color: #888; }
.sd-ver-todos {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1rem;
  background: #f7f9ff;
  color: var(--lb-azul);
  font-size: .82rem; font-weight: 700;
  text-decoration: none;
  border-top: 1px solid #eef0f7;
  transition: background .18s;
}
.sd-ver-todos:hover { background: #eef2ff; color: var(--lb-azul); }
.sd-ver-todos .bi   { font-size: .9rem; }

/* ── Página de resultados (buscar.php) ───────────────── */
.buscar-hero {
  background: linear-gradient(135deg, var(--lb-azul) 0%, #1565c0 100%);
  color: #fff; padding: 2rem 0 1.8rem;
}
.buscar-query {
  font-size: 1.3rem; font-weight: 800; margin: 0;
}
.buscar-query span { color: #a8d4ff; }
.buscar-subtxt { font-size: .85rem; opacity: .75; margin: .3rem 0 0; }
.buscar-filtros {
  display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1rem;
}
.filtro-cat {
  padding: .3rem .85rem; border-radius: 20px; font-size: .8rem; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.35); color: rgba(255,255,255,.85);
  background: transparent; cursor: pointer; transition: all .18s; white-space: nowrap;
}
.filtro-cat:hover, .filtro-cat.active {
  background: #fff; color: var(--lb-azul); border-color: #fff;
}
.buscar-content { padding: 2rem 0 4rem; }
.buscar-empty {
  text-align: center; padding: 4rem 1.5rem; color: #bbb;
}
.buscar-empty .bi { font-size: 4rem; display: block; margin-bottom: 1rem; }
.buscar-empty h3  { font-size: 1.1rem; color: #888; font-weight: 600; }
.buscar-empty p   { font-size: .88rem; }

/* ── Selector de dirección en pedido (SweetAlert) ───── */
.swal-dir-sel-popup  { max-width: 480px !important; }
.swal-dir-sel-body   { text-align: left !important; padding: 0 .25rem !important; }
.dir-selector-wrap   { display: flex; flex-direction: column; gap: .45rem; max-height: 340px; overflow-y: auto; padding: .1rem .1rem .2rem; }
.dir-opt {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  border: 1.5px solid #dde3ee;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.dir-opt:has(input:checked) { border-color: var(--lb-azul); background: #f0f4ff; }
.dir-opt-main             { border-color: #d4c070; }
.dir-opt input[type=radio] { accent-color: var(--lb-azul); width: 16px; height: 16px; flex-shrink: 0; margin-top: .15rem; }
.dir-opt-info   { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.dir-opt-alias  { font-weight: 700; font-size: .88rem; color: var(--lb-azul); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.dir-opt-badge  { background: var(--lb-dorado); color: #fff; font-size: .65rem; font-weight: 700; padding: .1rem .4rem; border-radius: 8px; }
.dir-opt-txt    { font-size: .79rem; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-opt-coords { font-size: .72rem; color: #aaa; font-family: monospace; display: flex; align-items: center; gap: .25rem; margin-top: .1rem; }
.dir-opt-skip   { border-style: dashed; border-color: #ccc; }
.dir-opt-skip .dir-opt-alias { color: #888; font-weight: 600; }

/* Formulario rápido de nueva dirección (checkout) */
.swal-dir-rapida-popup { max-width: 480px !important; }
.dir-rapida-wrap  { text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.dir-rapida-field label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700; color: var(--lb-azul);
  margin-bottom: .35rem;
}
.dir-rapida-field label .req { color: #e53935; font-weight: 600; font-size: .74rem; }
.dir-rapida-field input[type=text] {
  width: 100%; border: 1.5px solid #dde3ee; border-radius: 10px;
  padding: .55rem .8rem; font-size: .88rem; color: #222;
  transition: border-color .15s;
}
.dir-rapida-field input[type=text]:focus {
  outline: none; border-color: var(--lb-azul);
}
.dir-rapida-mapa-wrap { position: relative; border-radius: 10px; overflow: hidden; border: 1.5px solid #dde3ee; }
#ndMapa { height: 220px; width: 100%; background: #eef1f5; }
.dir-rapida-mapa-tip {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  background: rgba(26,46,90,.88); color: #fff; font-size: .74rem;
  padding: .3rem .7rem; border-radius: 20px; pointer-events: none;
  white-space: nowrap; transition: opacity .2s; z-index: 400;
}
.dir-rapida-mapa-tip.hidden { opacity: 0; }
.dir-rapida-coords {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: #888; margin-top: .5rem;
}
.dir-rapida-coords.ok { color: #1e7a3d; font-weight: 600; }
.dir-rapida-coords .bi-check-circle-fill { color: #1e7a3d; }
.dir-rapida-btn-gps {
  width: 100%; margin-top: .5rem; border: none; border-radius: 10px;
  background: var(--lb-azul); color: #fff; font-weight: 700; font-size: .85rem;
  padding: .6rem; display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: filter .15s;
}
.dir-rapida-btn-gps:hover { filter: brightness(1.08); }
.dir-rapida-btn-gps:disabled { opacity: .7; }
.dir-rapida-hint { font-size: .74rem; color: #999; margin-top: .35rem; }

/* Contador en cero (no agregado) */
.qty-control.qty-cero { border-color: #d0d0d0; opacity: .7; }
.qty-control.qty-cero .qty-val { color: #aaa; }
.qty-control.qty-cero .qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.qty-btn-add { color: var(--lb-verde) !important; font-size: 1.3rem !important; }

/* Botón agregar en tarjeta (legacy, puede mantenerse) */
.btn-agregar-carrito {
  width: 100%;
  background: var(--lb-azul);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s;
}
.btn-agregar-carrito:hover { background: var(--lb-azul-med); }

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* Modal de error mejorado */
.swal-error-popup {
  border-radius: 18px !important;
}
.swal-error-popup .swal2-title {
  color: var(--lb-azul) !important;
  font-size: 1.15rem !important;
}
.swal-error-popup .swal2-confirm {
  background: var(--lb-azul) !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
}

/* ════════════════════════════════════════════════════
   MODAL DETALLE DE PRODUCTO
════════════════════════════════════════════════════ */
#modalProducto .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

/* Columna imagen */
.pm-img-col {
  background: #f7f8fc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  min-height: 280px;
  position: relative;
}
.pm-img-col img {
  max-height: 260px;
  max-width: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.pm-img-col img:hover { transform: scale(1.05); }
.pm-img-col .pm-sin-img {
  font-size: 5rem;
  color: var(--lb-gris-borde);
}

/* Slider de imágenes del producto (principal + hasta 4 extra) */
.pm-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.pm-slider-track {
  display: flex;
  width: 100%;
  transition: transform .35s ease;
}
.pm-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--lb-azul);
  font-size: 1rem;
  z-index: 3;
  transition: background .2s, transform .15s;
}
.pm-slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.pm-slider-prev { left: 10px; }
.pm-slider-next { right: 10px; }
.pm-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.pm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.pm-dot.active { background: var(--lb-azul); transform: scale(1.35); }
.pm-slide img { cursor: zoom-in; }
.pm-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--lb-azul);
  font-size: 1rem;
  z-index: 4;
  transition: background .2s, transform .15s;
}
.pm-zoom-btn:hover { background: #fff; transform: scale(1.08); }

/* Lightbox: imagen del producto en grande, por encima del modal de detalle */
.pm-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}
.pm-lightbox.d-none { display: none; }
.pm-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.pm-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background .2s;
}
.pm-lightbox-close:hover { background: rgba(255, 255, 255, .28); }
.pm-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background .2s;
}
.pm-lightbox-arrow:hover { background: rgba(255, 255, 255, .28); }
.pm-lightbox-prev { left: 16px; }
.pm-lightbox-next { right: 16px; }
.pm-lightbox-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.pm-lightbox-dots .pm-dot { background: rgba(255, 255, 255, .35); }
.pm-lightbox-dots .pm-dot.active { background: #fff; transform: scale(1.35); }
@media (max-width: 576px) {
  .pm-lightbox { padding: 70px 12px; }
  .pm-lightbox-arrow { width: 38px; height: 38px; font-size: 1.1rem; }
}
.pm-badge-desc {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--lb-dorado);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .03em;
}

/* Columna info */
.pm-info-col {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-categoria {
  display: inline-block;
  background: #e8f0fe;
  color: var(--lb-azul-med);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  width: fit-content;
}
.pm-nombre {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--lb-azul);
  line-height: 1.3;
  margin: 0;
}
.pm-precio-oferta {
  font-size: .82rem;
  color: var(--lb-texto-sec);
  text-decoration: line-through;
  margin: 0;
}
.pm-precio-actual {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--lb-verde);
  margin: 0;
  line-height: 1;
}
.pm-precio-actual span {
  font-size: 1rem;
  vertical-align: super;
}

/* Selector de talla */
.pm-talla-row {
  margin: 8px 0;
}
.pm-talla-row label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--lb-texto-sec);
  margin-bottom: 6px;
}
.pm-talla-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pm-talla-btn {
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  border: 2px solid var(--lb-gris-borde);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  font-size: .85rem;
  color: var(--lb-texto);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.pm-talla-btn:hover { border-color: var(--lb-azul); }
.pm-talla-btn.pm-talla-sel {
  border-color: var(--lb-azul);
  background: var(--lb-azul);
  color: #fff;
}
.pm-talla-btn.pm-talla-agotada {
  color: var(--lb-texto-sec);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: .55;
}
.pm-talla-btn.pm-talla-agotada:hover { border-color: var(--lb-gris-borde); }

/* Control cantidad */
.pm-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  flex-wrap: wrap;
}
.pm-qty-hint {
  width: 100%;
  font-size: .72rem;
  color: var(--lb-texto-sec);
  margin-top: 2px;
}
.pm-qty-row label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--lb-texto-sec);
}
.pm-qty-ctrl {
  display: flex;
  align-items: center;
  border: 2px solid var(--lb-gris-borde);
  border-radius: 30px;
  overflow: hidden;
}
.pm-qty-ctrl button {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lb-azul);
  cursor: pointer;
  transition: background .2s;
}
.pm-qty-ctrl button:hover { background: var(--lb-gris); }
.pm-qty-ctrl span {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
}

/* Botón WhatsApp */
.pm-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lb-verde-wa);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  padding: 13px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: filter .2s, transform .15s;
  border: none;
  cursor: pointer;
}
.pm-btn-wa:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.pm-btn-wa i { font-size: 1.2rem; }

/* Sección "Ver más" */
.pm-mas {
  border-top: 1px solid var(--lb-gris-borde);
  padding-top: 10px;
  margin-top: 2px;
}
.pm-mas-content {
  margin-top: 6px;
  background: #f7f8fc;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .82rem;
  color: var(--lb-texto-sec);
  line-height: 1.6;
}
.pm-mas-content table { width: 100%; }
.pm-mas-content td:first-child {
  font-weight: 700;
  color: var(--lb-azul);
  width: 110px;
  padding: 2px 8px 2px 0;
}
.pm-desc-label {
  font-weight: 700;
  color: var(--lb-azul);
  font-size: .82rem;
  margin: 10px 0 4px;
}
.pm-desc-html {
  font-size: .82rem;
  color: var(--lb-texto);
  line-height: 1.65;
}

/* Botón cerrar modal */
#modalProducto .pm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,.06);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  color: var(--lb-texto);
  font-size: 1rem;
}
#modalProducto .pm-close:hover { background: rgba(0,0,0,.14); }

@media (max-width: 575px) {
  .pm-info-col { padding: 20px 18px; }
  .pm-nombre { font-size: 1rem; }
  .pm-precio-actual { font-size: 1.5rem; }
}
