/* ----------- Pantalla de carga y responsivo ----------- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(120deg, #ff2a9c 0%, #ff8c1a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .4s;
}
.loading-screen .glow-effect {
  display: none;
}
.loading-screen .banner {
  width: 90vw;
  max-width: 420px;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  box-shadow: none;
  margin-bottom: 24px;
  z-index: 2;
  background: none;
  display: block;
}
.loading-screen .overlay {
  display: none;
}
.loading-text {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 8px #fff,
    0 0 16px #ff2a9c,
    0 0 24px #ff8c1a;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-align: center;
}
.loading-dots .dot {
  animation: blink 1.2s infinite;
  opacity: .7;
}
.loading-dots .dot:nth-child(2) { animation-delay: .3s; }
.loading-dots .dot:nth-child(3) { animation-delay: .6s; }
@keyframes blink {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}
.progress-bar {
  width: 220px;
  max-width: 80vw;
  height: 14px;
  background: linear-gradient(90deg, #ff2a9c 0%, #ff8c1a 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(255,42,156,.18);
  margin: 0 auto 0 auto;
}
.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fff 0%, #ff2a9c 60%, #ff8c1a 100%);
  box-shadow:
    0 0 8px #fff,
    0 0 16px #ff2a9c,
    0 0 24px #ff8c1a;
  border-radius: 8px;
  transition: width 2.2s cubic-bezier(.4,1.2,.6,1);
}
@media (max-width: 900px) {
  .loading-screen .banner {
    max-width: 98vw;
    margin-bottom: 18px;
  }
  .loading-text { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .loading-screen .banner {
    max-width: 99vw;
    margin-bottom: 10px;
    border-radius: 12px;
  }
  .loading-text { font-size: 1.1rem; }
  .progress-bar { height: 7px; }
}

@media (max-width: 400px) {
  .loading-screen .banner {
    max-width: 100vw;
    border-radius: 8px;
  }
  .loading-text { font-size: 0.95rem; }
  .progress-bar { height: 5px; }
}
/* ----------- Fin pantalla de carga ----------- */
/* -------------- STYLES.CSS COMPLETO -------------- */
:root{
  --sidebar-w:270px;

  /* Base */
  --orange:#FF8C1A;
  --yellow:#FFC21E;
  --red:#D63A2F;
  --ticket:#FF4DA6;
  --ink:#2C190E;
  --cream:#FFF5E8;

  --bg:#E9D9C5;
  --surface: var(--cream);
  --radius:16px;
  --shadow:0 10px 26px rgba(0,0,0,.12);

  /* Header dinámico (por categoría) */
  --head-a: var(--red);
  --head-b: var(--orange);

  /* Acentos por defecto */
  --accent:#D63A2F;
  --accent-contrast:#ffffff;
  --tag-bg:#FFE3F4;
  --tag-border:var(--ticket);
  --tag-ink:#8a1456;
  --outline:#F2E0CF;

  /* Neon */
  --neon:#00E7F7;
  --neon-glow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--neon), 0 0 20px var(--neon), 0 0 25px var(--neon);

  /* Paleta del logo (sin blanco) */
  --logo-red:#F2471F;
  --logo-orange:#FF8C1A;
  --logo-gold:#FFC21E;
  --logo-lime:#8CC63E;
  --logo-teal:#19A39C;
  --logo-cyan:#00E7F7;
  --logo-blue:#1F7AE0;
  --logo-violet:#7A4DFF;

  --brand-grad: linear-gradient(90deg,
    var(--logo-red) 0%,
    var(--logo-orange) 16%,
    var(--logo-gold) 32%,
    var(--logo-lime) 48%,
    var(--logo-teal) 64%,
    var(--logo-blue) 80%,
    var(--logo-violet) 100%
  );
  --brand-grad-soft: linear-gradient(90deg,
    rgba(242,71,31,.12),
    rgba(255,140,26,.12),
    rgba(255,194,30,.12),
    rgba(140,198,62,.12),
    rgba(25,163,156,.12),
    rgba(31,122,224,.12),
    rgba(122,77,255,.12)
  );
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  background:var(--bg); color:var(--ink)
}
body.modal-lock{ overflow:hidden; }

/* ===== THEMES (controlan el header y ahora acentos de menús) ===== */
body.theme-alimentos{ --head-a:#E4572E; --head-b:#FF9B66; }
body.theme-ropa{ --head-a:#7A4DFF; --head-b:#B59CFF; }
body.theme-zapatos{ --head-a:#1F7AE0; --head-b:#7DB3FF; }
body.theme-entretenimiento{ --head-a:#FF9E1E; --head-b:#FFC56B; }
body.theme-lentes{ --head-a:#19A39C; --head-b:#6FD3CD; }
body.theme-deportes{ --head-a:#2E7D32; --head-b:#66BB6A; }
body.theme-libros{ --head-a:#8A9E2A; --head-b:#C7DA72; }
body.theme-all{ --head-a: var(--red); --head-b: var(--orange); }
body.theme-servicios{ --head-a:#009688; --head-b:#4DD0E1; }
body.theme-materiales{ --head-a:#C97A3D; --head-b:#FFD69B; }

/* ===== Topbar ===== */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  padding: 0;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: var(--shadow);
  background: linear-gradient(90deg, var(--head-a), var(--head-b));
  transition: background 220ms ease-in-out;
  position: relative;
  min-height: 140px;
}
header.topbar::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-grad);
  opacity: .95;
  pointer-events: none;
}

.topbar-inner.topbar-leftnav {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 220px 1fr 120px;
  align-items: center;
  gap: 0px;
  margin: 0 auto;
  padding: 0 8px;
}

.left-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hamb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hamb-label {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  opacity: .9;
  line-height: 1;
}
.hamb {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--head-a), var(--head-b));
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10001;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.hamb:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.hamb:active {
  transform: translateY(0) scale(0.98);
}

.topnav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.topnav .nav-link {
  font-size: 1.1rem;
  padding: 8px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  opacity: .95;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.18);
  font-weight: 700;
  transition: transform .12s, background .12s, opacity .12s;
}
.topnav .nav-link.active {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.35);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.08);
}

.title {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  text-align: center;
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: .5px;
  padding-bottom: 10px;
  line-height: 1.1;
  position: relative;
  word-break: break-word;
  max-width: 100%;
  color: #fff;
  text-shadow: 0 0 8px #fff, 0 0 16px #00E7F7, 0 0 24px #ff8c1a;
}
.title.neon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  border-radius: 3px;
  background: var(--brand-grad);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.brand .site-logo {
  height: 72px;
  width: auto;
  border-radius: 10px;
  margin-left: auto;
  margin-right: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  background: none;
}

@media (max-width: 900px) {
  .topbar-inner.topbar-leftnav {
    grid-template-columns: 60px 1fr 60px;
  }
  .title {
    font-size: 1.5rem;
    padding-bottom: 6px;
  }
  .brand .site-logo {
    height: 48px;
  }
}

@media (max-width: 600px) {
  .topbar-inner.topbar-leftnav {
    grid-template-columns: 44px 1fr 44px;
    padding: 0 2px;
  }
  .title {
    font-size: 1.1rem;
    padding-bottom: 4px;
  }
  .brand .site-logo {
    height: 32px;
  }
}
/* ===== Layout ===== */
.wrap{display:flex}
aside.sidebar{
  width:var(--sidebar-w); 
  background: linear-gradient(90deg, rgba(255, 140, 0, 1) 0%, rgba(255, 195, 28, 1) 73%);
  height:calc(100dvh - 80px);
  position:fixed; left:0; top:80px; padding:24px 22px 22px 22px;
  border-right:1.5px solid #F5E9DA; box-shadow:2px 0 18px rgba(0,0,0,.10);
  overflow:auto; transform:translateX(-100%); transition:transform .25s;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 260px;
  max-width: 340px;
  border-radius: 0 18px 18px 0;
}
body.menu-open .sidebar{
  transform:translateX(0);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.32);
}
main.content{
  width:100%; padding:20px clamp(12px, 3vw, 28px);
  max-width:1200px; margin:0 auto; transition:margin-left .25s
}
@media (min-width:820px){
  body.menu-open main.content{margin-left:var(--sidebar-w)}
}

/* ===== ZONAS DE SELECCION ===== */
.section-title{
  font-weight:900; color:var(--ink); font-size:18px; position:relative;
  padding-bottom:10px; margin:6px 0 12px
}
.section-title::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:4px;
  border-radius:999px; background:linear-gradient(90deg,var(--head-a),var(--head-b));
}

.zones{
  background: radial-gradient(circle, rgb(255, 71, 15) 0%, rgb(245, 131, 0) 100%);
  border-radius:12px; padding:12px; margin-bottom:18px;
  border:1px solid #e29756; position:relative;
}
.zones::before{
  content:''; position:absolute; left:8px; right:8px; top:8px; height:4px;
  border-radius:999px; background:linear-gradient(90deg,var(--head-a),var(--head-b));
}
.zones label{font-size:13px; color:#ffffff}
.zones select{
  width:100%; margin-top:10px; padding:10px 12px; border-radius:10px;
  border:2px solid #e26a0d; background:#ffffff; font-size:15px
}
.zones select:focus{outline:3px solid var(--head-a)}

.stack{display:grid; gap:12px; margin-bottom:10px;}
.btn{
  appearance:none; border:2px solid #F0E4D6; width:100%; text-align:left; cursor:pointer;
  padding:12px 14px; border-radius:10px; background:#c78638; color:#3b2f28; font-weight:700;
  transition:transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover{background:#F7ECDC; transform:translateY(-1px)}
.btn.active{
  color:#fff; border-color:transparent;
  background:linear-gradient(90deg,var(--head-a),var(--head-b));
  box-shadow:0 6px 14px rgba(0,0,0,.08);
}

/* ===== Categorías arriba ===== */
.cats-top{
  display:flex; flex-wrap:wrap; gap:10px; max-width:1100px; margin:0 auto 16px; padding:6px 0
}
.pill{
  appearance:none; border:2px solid #F2E0CF; cursor:pointer;
  padding:10px 14px; border-radius:999px; background:#FFF; color:#3b3b3b;
  font-weight:800; box-shadow:0 1px 0 rgba(0,0,0,.05) inset; transition:transform .15s, background .15s, color .15s, border-color .15s;
}
.pill:hover{transform:translateY(-1px)}

/* ====== Colores por categoría (pills/btns) ====== */
/* (los “.active” usan el mismo gradiente del header que pone setBodyTheme) */
.pill[data-cat="alimentos"]{ border-color:#FFB79A; }
.pill[data-cat="ropa"]{ border-color:#C9B8FF; }
.pill[data-cat="zapatos"]{ border-color:#BAD8FF; }
.pill[data-cat="entretenimiento"]{ border-color:#FFD69B; }
.pill[data-cat="lentes"]{ border-color:#B5E7E3; }
.pill[data-cat="deportes"]{ border-color:#C8E6C9; }
.pill[data-cat="libros"]{ border-color:#DDECAF; }
.pill[data-cat="servicios"]{ border-color:#B5E7E3; }
.pill[data-cat="materiales"]{ border-color:#FFD69B; }

.pill.active{
  color:#fff; border-color:transparent;
  background:linear-gradient(90deg,var(--head-a),var(--head-b));
  text-shadow:0 1px 0 rgba(0,0,0,.25);
}

/* Botones del sidebar con color por categoría cuando están activos */
.btn[data-cat="alimentos"].active{ --head-a:#E4572E; --head-b:#FF9B66; }
.btn[data-cat="ropa"].active{ --head-a:#7A4DFF; --head-b:#B59CFF; }
.btn[data-cat="zapatos"].active{ --head-a:#1F7AE0; --head-b:#7DB3FF; }
.btn[data-cat="entretenimiento"].active{ --head-a:#FF9E1E; --head-b:#FFC56B; }
.btn[data-cat="lentes"].active{ --head-a:#19A39C; --head-b:#6FD3CD; }
.btn[data-cat="deportes"].active{ --head-a:#2E7D32; --head-b:#66BB6A; }
.btn[data-cat="libros"].active{ --head-a:#8A9E2A; --head-b:#C7DA72; }
.btn[data-cat="all"].active{ background:var(--brand-grad); }
.btn[data-cat="servicios"].active{ --head-a:#009688; --head-b:#4DD0E1; }
.btn[data-cat="materiales"].active{ --head-a:#C97A3D; --head-b:#FFD69B; }

/* ===== Grid de tarjetas ===== */
.grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:26px; max-width:1100px; margin:0 auto}
@media (max-width:720px){ .grid{grid-template-columns:1fr} }
.card{
  background:var(--surface); border-radius:16px; padding:20px;
  box-shadow:0 8px 22px rgba(0,0,0,.12); outline:3px solid var(--outline);
  position: relative; cursor:default;
}
.card::before{
  content:''; position:absolute; top:-3px; left:-3px; right:-3px; bottom:-3px;
  border-radius:20px; padding:3px;
  background:linear-gradient(45deg,#ff00cc,#00E7F7,#00ff99,#ff9900);
  background-size:400% 400%;
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; transition:opacity .3s ease, box-shadow .3s ease;
  animation:neon-border 2s ease-in-out infinite alternate;
  pointer-events:none;
}
.card:hover::before{ opacity:1; box-shadow:var(--neon-glow); }
.card h3{ margin:6px 0 8px; color:var(--accent); font-size:20px; font-weight:800; letter-spacing:.2px; }
.card p.desc{margin:0 0 10px; color:#3b2f28; font-size:14.5px}
.row{display:flex; align-items:center; gap:10px; margin:6px 0}

/* Logo de la tienda */
.shop-logo{
  width:72px; height:72px; object-fit:cover; border-radius:14px;
  box-shadow:0 4px 10px rgba(0,0,0,.12); border:2px solid #fff;
}

/* 🎟 Ticket */
.tag{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--tag-bg); color:var(--tag-ink); font-weight:900;
  padding:6px 10px; border-radius:12px; margin:6px 0;
  border:2px dashed var(--tag-border); font-size:13px;
}
.tag.ticket-btn{ cursor:pointer; }

/* Enlaces / redes */
.social{ margin-top:8px; display:flex; flex-wrap:wrap; gap:6px }
.md-social{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px }
.soc-btn{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:8px; font-size:13px; font-weight:700;
  text-decoration:none; color:#fff;
}
.soc-btn.wa{ background:#25D366; }
.soc-btn.fb{ background:#1877f2; }
.soc-btn.ig{ background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.soc-btn.web{ background:#555; }
.soc-btn.disabled{opacity:.45; cursor:not-allowed; pointer-events:none; filter:grayscale(100%);}
.soc-btn.tiktok {
  background: linear-gradient(90deg, #000000 0%, #111111 100%);
}

/* Botón inline (Ir al mapa) */
.actions{ margin-top:6px; }
.inline-action{
  appearance:none; border:2px solid #F2E0CF; background:#fff; color:#7a3d00;
  padding:8px 12px; border-radius:10px; font-weight:800; cursor:pointer;
}
.inline-action:hover{ background:#FFF3E5; }

/* Desplegable de horarios */
.hours-toggle{ margin-top:6px; }
.hours-toggle summary{
  list-style:none; cursor:pointer; user-select:none;
  background:#FFF3E5; border:1px solid #F2E0CF; padding:10px 12px; border-radius:10px; font-weight:900;
}
.hours-toggle summary::-webkit-details-marker{ display:none; }
.hours-toggle summary::after{
  content:'›'; margin-left:8px; transition:transform .15s; display:inline-block;
}
.hours-toggle[open] summary::after{ transform:rotate(90deg); }
.hours-toggle ul{ margin:8px 0 0 14px; padding-left:12px; }

/* Compacto al filtrar por categoría */
.card.compact{ padding:16px; transform:scale(.96); }
.card.compact h3{ font-size:18px; }
.card.compact p.desc{ font-size:13.5px; }

.empty{text-align:center; margin:16px auto; font-weight:900; opacity:.9}

/* ===== Mapa / Panel ===== */
.layout{
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 24px auto 32px;
  gap: 24px;
}
@media (max-width:900px){
  .layout{
    gap:16px;
    max-width: 98vw;
  }
  #map{
    min-height:220px;
    height:36vh !important;
    max-width: 98vw;
    border-radius:14px;
    margin-bottom:8px;
  }
  .panel{
    border-radius:14px;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
    max-width: 98vw;
    padding: 12px;
  }
}
@media (max-width:600px){
  .layout{
    gap:10px;
  }
  #map{
    min-height:220px;
    height:32vh !important;
    max-height:260px;
    border-radius:12px;
    margin-bottom:6px;
  }
  .panel{
    border-radius:12px;
    box-shadow:0 1px 6px rgba(0,0,0,.06);
  }
}
@media (max-width:400px){
  .layout{
    gap:6px;
  }
  #map{
    min-height:120px;
    height:24vh !important;
    max-height:160px;
    border-radius:8px;
    margin-bottom:4px;
  }
  .panel{
    border-radius:8px;
    box-shadow:0 1px 3px rgba(0,0,0,.04);
  }
}
@media (max-width:900px){ .layout{grid-template-columns:1fr} }
#map{
  width: 100%;
  max-width: 700px;
  height: 440px;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
  outline: 3px solid #F2E0CF;
  position: relative;
  margin: 0 auto 0 auto;
}
#map::before{
  content:''; position:absolute; top:-3px; left:-3px; right:-3px; bottom:-3px;
  border-radius:19px; padding:3px;
  background:linear-gradient(45deg,#ff00cc,#00E7F7,#00ff99,#ff9900);
  background-size:400% 400%;
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:.7; animation:neon-border 2s ease-in-out infinite alternate;
  z-index:401; pointer-events:none;
}
.panel{
  background:#FFF3E5; border:2px solid #F2E0CF; border-radius:16px; padding:18px;
  box-shadow:0 8px 22px rgba(0,0,0,.10); position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.panel::before{
  content:''; position:absolute; top:-3px; left:-3px; right:-3px; bottom:-3px;
  border-radius:19px; padding:3px;
  background:linear-gradient(45deg,#ff00cc,#00E7F7,#00ff99,#ff9900);
  background-size:400% 400%;
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:.5; animation:neon-border 2s ease-in-out infinite alternate; pointer-events:none;
}

/* Animación para el efecto neon */
@keyframes neon-border{
  0%{ background-position:0% 50%; opacity:.7; }
  50%{ background-position:100% 50%; opacity:1; }
  100%{ background-position:0% 50%; opacity:.7; }
}

/* ===== Modal ===== */
.overlay{position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; place-items:center; z-index:60}
.overlay.open{display:grid}
.modal{
  width:min(92vw, 640px); background:var(--surface); border-radius:22px;
  box-shadow:var(--shadow); padding:22px 22px 18px; position:relative; border:3px solid #F2E0CF;
  max-height:90vh; overflow:auto;
}
.modal h2{
  margin:6px 46px 10px; text-align:center; color:#D63A2F;
  font-size:28px; font-weight:900; padding-bottom:6px; position:relative;
}
.modal h2::after{
  content:''; position:absolute; left:25%; right:25%; bottom:-2px; height:4px;
  border-radius:999px; background:var(--brand-grad);
}
.modal .md-desc{text-align:center; color:#3b2f28; margin:0 0 10px}
.md-chip,.md-row{padding:12px 14px; border-radius:12px; margin:10px 0; display:flex; align-items:center; gap:10px; font-weight:900}
.md-chip{ background:var(--tag-bg); color:var(--tag-ink); border:2px dashed var(--tag-border) }
.md-row{ background:#FFE5D8; color:#5b2b1f; border:1px solid #FFC0B0 }
.close-x{
  position:absolute; right:14px; top:14px; width:42px; height:42px; border-radius:50%;
  border:none; cursor:pointer; color:#fff; font-size:22px; background:var(--accent);
  display:grid; place-items:center; box-shadow:0 8px 14px rgba(0,0,0,.18)
}
/* Botón grande con gradient del logo */
.map-btn{
  display:flex; align-items:center; justify-content:center; gap:10px; width:100%;
  padding:14px; margin-top:8px; border:none; border-radius:14px; cursor:pointer; color:#fff;
  background: var(--brand-grad);
  box-shadow:0 6px 0 rgba(0,0,0,.18) inset, 0 6px 16px rgba(0,0,0,.18); font-weight:900
}

/* QR centrado y nítido */
.qrbox{ display:grid; place-items:center; gap:8px; margin-top:12px; }
.qrbox canvas{ width:256px; height:256px; image-rendering:pixelated; }

/* ===== Paletas por categoría en tarjetas ===== */
.card[data-cat="alimentos"]{ --accent:#E4572E; --outline:#FFD3BF; }
.card[data-cat="ropa"]{ --accent:#7A4DFF; --outline:#E4D9FF; }
.card[data-cat="zapatos"]{ --accent:#1F7AE0; --outline:#D6E8FF; }
.card[data-cat="entretenimiento"]{ --accent:#FF9E1E; --outline:#FFE5BF; }
.card[data-cat="lentes"]{ --accent:#19A39C; --outline:#CFEFEB; }
.card[data-cat="deportes"]{ --accent:#2E7D32; --outline:#C8E6C9; }
.card[data-cat="libros"]{ --accent:#8A9E2A; --outline:#E6F1C8; }
.card[data-cat="servicios"]{ --accent:#009688; --outline:#B5E7E3; }
.card[data-cat="materiales"]{ --accent:#C97A3D; --outline:#FFD69B; }

/* ===== Colores por descuento ===== */
.disc-5  { --tag-bg:#FFE3F4; --tag-border:#FF4DA6; --tag-ink:#8a1456; }
.disc-10 { --tag-bg:#FFE7D8; --tag-border:#FFA36C; --tag-ink:#7a3d00; }
.disc-15 { --tag-bg:#FFEEDB; --tag-border:#FF8C1A; --tag-ink:#7a3d00; }
.disc-20 { --tag-bg:#FFF0CC; --tag-border:#FFC21E; --tag-ink:#7a3d00; }
.disc-25 { --tag-bg:#FFF6CC; --tag-border:#F4C542; --tag-ink:#6a4d00; }
.disc-30 { --tag-bg:#F2FBD8; --tag-border:#C9E265; --tag-ink:#435000; }
.disc-35 { --tag-bg:#E3F8E6; --tag-border:#5BC570; --tag-ink:#0f4a2e; }
.disc-40 { --tag-bg:#E2F8F5; --tag-border:#3BC7B5; --tag-ink:#0f5a56; }
.disc-45 { --tag-bg:#E6F3FF; --tag-border:#74B8FF; --tag-ink:#0f3e73; }
.disc-50 { --tag-bg:#EEE7FF; --tag-border:#9E7BFF; --tag-ink:#361e8a; }

/* ===== Responsivo cabecera ===== */
@media (max-width:860px){
  .topbar-inner.topbar-leftnav{ grid-template-columns:48px 1fr 48px; padding:0 4px; }
  .topnav{ display:none; }
  .title{ grid-column:2; font-size:20px; padding-bottom:6px; }
  .brand .site-logo{height:38px;}
  .hamb { font-size:32px; width:44px; height:44px; }
}
@media (max-width:520px){
  .brand .site-logo {
    height: 100px;
  }
  .title{ font-size:16px; padding-bottom:4px; }
  .topbar-inner.topbar-leftnav{ grid-template-columns:38px 1fr 38px; padding:0 2px; }
  .hamb { font-size:26px; width:38px; height:38px; }
}


/* ====== ESTILOS GENERALES ====== */
body {
  margin: 0;
  font-family: sans-serif;
  background:#E9D9C5;
  color: #333;
}

/* ====== HEADER ====== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #222;
  color: #E9D9C5;
  position: relative;
}

.logo-container {
  position: relative;
}

.logo {
  height: 40px;
  cursor: pointer;
}

.logo-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 6px;
  display: none;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.logo-dropdown a {
  padding: 8px 14px;
  color: #333;
  text-decoration: none;
}
.logo-dropdown a:hover {
  background: #f0f0f0;
}

.menu-btn {
  font-size: 1.4rem;
  background: none;
  border: none;
  color: #E9D9C5;
  cursor: pointer;
}

/* ====== SIDEBAR ====== */
.sidebar {
  position: fixed;
  left: -260px;
  top: 0;
  width: 240px;
  height: 100%;
  background: #333;
  padding: 20px;
  box-shadow: 2px 0 6px rgba(0,0,0,0.4);
  transition: left 0.4s ease;
  display: flex;
  flex-direction: column;
}
.sidebar.active { left: 0; }
.sidebar a {
  color: #fff;
  text-decoration: none;
  margin: 12px 0;
}
.sidebar button {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
/* ====== HERO / CARRUSEL ====== */
.hero {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__frame {
  position: relative;
  width: 96vw;
  max-width: 1200px;
  height: 100%;
  margin: 32px auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  overflow: hidden;
}

.hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(.77,0,.18,1);
}

.hero__slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 28px;
  flex: 0 0 100%;
  position: relative;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;      /* <-- Cambia cover por contain */
    display: block;
    border-radius: 28px;
    background: #fff;   

}

/* Caption con animación */
.hero__caption {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: clamp(1rem, 2.4vw, 1.8rem);
  background: rgba(0,0,0,0.45);
  padding: 10px 20px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}
@keyframes fadeUp {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* Botones prev/next */
.hero__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  color: #c97a3d;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  z-index: 10;
  transition: all 0.3s;
}
.hero__btn:hover {
  background: #c97a3d;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.hero__btn--prev { left: 16px; }
.hero__btn--next { right: 16px; }

/* Dots */
.hero__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.hero__dot:hover { background: #fff; }
.hero__dot[aria-current="true"] {
  background: #c97a3d;
  transform: scale(1.4);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero { height: 50vh; }
  .hero__caption { font-size: 1rem; padding: 6px 12px; }
}
@media (max-width: 480px) {
  .hero { height: 40vh; }
  .hero__btn { font-size: 1.4rem; width: 38px; height: 38px; }
}

/* ✅ Ajustes en tablet */
@media (max-width: 1024px) {
  .container {
    height: 340px;
  }
  .carousel__face {
    width: 200px;
    height: 130px;
  }
  .carousel__face:nth-child(n) {
    transform: rotateY(calc((var(--i) * 40deg))) translateZ(360px);
  }
}

/* ✅ Ajustes en móvil */
@media (max-width: 600px) {
  .container {
    height: 270px;
  }
  .carousel__face {
    width: 160px;
    height: 110px;
  }
  .carousel__face:nth-child(1) { transform: rotateY(  0deg) translateZ(260px); }
  .carousel__face:nth-child(2) { transform: rotateY( 40deg) translateZ(260px); }
  .carousel__face:nth-child(3) { transform: rotateY( 80deg) translateZ(260px); }
  .carousel__face:nth-child(4) { transform: rotateY(120deg) translateZ(260px); }
  .carousel__face:nth-child(5) { transform: rotateY(160deg) translateZ(260px); }
  .carousel__face:nth-child(6) { transform: rotateY(200deg) translateZ(260px); }
  .carousel__face:nth-child(7) { transform: rotateY(240deg) translateZ(260px); }
  .carousel__face:nth-child(8) { transform: rotateY(280deg) translateZ(260px); }
  .carousel__face:nth-child(9) { transform: rotateY(320deg) translateZ(260px); }
}


/* Dropdown del logo */

.logo-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  transform: translateY(-10px) scale(0.98);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  padding: 18px 18px 12px;
  z-index: 10002;
  min-width: 180px;
  text-align: center;
  border: 2px solid #F2E0CF;
  opacity: 0;
  pointer-events: auto;
  transition: opacity .22s cubic-bezier(.4,1.2,.6,1), transform .22s cubic-bezier(.4,1.2,.6,1);
}
.logo-dropdown.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.logo-dropdown .dropdown-img {
  width: 80px;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
/* Enlaces con iconos en el dropdown */
.logo-dropdown .dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-weight: 700;
  color: #D63A2F;
  text-decoration: none;
  font-size: 16px;
  transition: color .15s;
}
.logo-dropdown .dropdown-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-dropdown .dropdown-link:hover {
  color: #FF8C1A;
  text-decoration: underline;
}
.logo-dropdown p {
  font-size: 1.08rem;
  font-weight: 500;
  margin: 0;
  padding: 8px 12px; /* Espaciado para que se note el fondo */
  color: white; /* Letras blancas encima */
  border-radius: 8px; /* Bordes redondeados */
  animation: rgbBackground 5s infinite linear;
}

.logo-dropdown strong {
  font-weight: 900;
}

/* Animación tipo RGB para el fondo */
@keyframes rgbBackground {
  0%   { background-color: #e06f23; }  
  25%  { background-color: #e2ad00; }  
  50%  { background-color: #d6c800; }  
  75%  { background-color: #d66b23; }  
  100% { background-color: #e06f23; }  
}




@media (max-width: 600px) {
  .logo-dropdown {
    top: calc(100% + 6px);
    right: 0;
    min-width: 120px;
    padding: 12px 8px 8px;
    transform: translateY(-12px) scale(0.98);
  }
  .logo-dropdown.show {
    transform: translateY(0) scale(1);
  }
  .logo-dropdown .dropdown-img {
    width: 56px;
  }
  .logo-dropdown .dropdown-link {
    font-size: 14px;
  }
}


/*BOTON DE FACEBOOK*/

/* ===== CONTENEDOR GENERAL ===== */
.social-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 28px 0;
}

/* ===== BOTONES BASE ===== */
.social-btn {
  font-family: inherit;
  font-size: 16px;
  color: white;
  padding: 0.8em 1.2em;
  display: grid;
  grid-template-columns: auto 0fr;
  align-items: center;
  border: none;
  border-radius: 14px;
  box-shadow: 0px 5px 12px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  outline: none;
}

.social-btn:hover {
  cursor: pointer;
  transform: translateY(-3px);
  box-shadow: 0px 8px 18px rgba(0,0,0,0.35);
  grid-template-columns: auto 1fr;
}

.social-btn:active {
  transform: scale(0.95);
  box-shadow: 0px 2px 6px rgba(0,0,0,0.25);
}

.social-btn span {
  display: block;
  margin-left: 0.5em;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
}

/* ===== ICONOS ===== */
.social-btn svg {
  transition: all 0.3s ease;
}

.social-btn .svg-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.social-btn:hover .svg-wrapper {
  background-color: rgba(255, 255, 255, 0.5);
  margin-right: 0.6em;
  animation: bounce 1s ease-in-out;
}

/* ANIMACIÓN */
@keyframes bounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

/* ===== ESTILOS ESPECÍFICOS ===== */
.facebook-btn {
  background: linear-gradient(90deg, #1877f2 0%, #3b5998 100%);
}

.tiktok-btn {
  background: linear-gradient(90deg, #000000 0%, #111111 100%);
}

.official-btn {
  background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
}
  
/*TITULO IMAGEN*/

.titulo-img {
  max-width: 120px;   /* ancho máximo en pantallas pequeñas */
  width: 60vw;
  height: auto;
  display: block;
  margin: 0 auto 8px auto;
}

/* Ajuste en pantallas más grandes */
@media (min-width: 768px) {
  .titulo-img {
    max-width: 180px;
    width: 30vw;
  }
}

@media (min-width: 1200px) {
  .titulo-img {
    max-width: 220px;
    width: 18vw;
  }
}

/* ----------- NUEVAS IMÁGENES EN EL HEADER ----------- */
.header-center-imgs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  width: 100%;
  padding: 8px 0 0 0;
}

.header-sub-img {
    max-width: 500px;   /* igual al logo */
  width: 250px;
  height: auto;
  margin-bottom: 4px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border-radius: 10px;
}
.header-title-img {
  max-width: 250px;   /* igual al logo */
  width: 125px;
  height: auto;
  margin-bottom: 24px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border-radius: 10px;
}

.header-title-img {
  margin-bottom: 0;
  transition: transform .15s;
}

.header-title-img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

/* Responsive: más pequeño en móviles */
@media (max-width: 900px) {
  .header-sub-img{
    max-width: 400px;
    width: 200px;
  }
  .header-title-img {
    max-width: 200px;
    width: 100px;
  }
}

@media (max-width: 600px) {
  .header-center-imgs { padding: 4px 0 0 0; }
  .header-sub-img{
   max-width: 400px;
   width: 200px;

  }
  .header-title-img {
    max-width: 200px;
    width: 100px;
  }
}


.pill[data-cat="materiales"]{ border-color:#FFD69B; }
.btn[data-cat="materiales"].active{ --head-a:#C97A3D; --head-b:#FFD69B; }
.card[data-cat="materiales"]{ --accent:#C97A3D; --outline:#FFD69B; }



/* ===== BOTONES FLOTANTES ===== */
.floating-buttons {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--head-a), var(--head-b));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  animation: floatIn 0.5s ease;
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.float-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.float-btn span:first-child {
  font-size: 24px;
}

.float-text {
  font-size: 15px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive para botones flotantes */
@media (max-width: 768px) {
  .floating-buttons {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }
  
  .float-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .float-btn span:first-child {
    font-size: 20px;
  }
  
  .float-text {
    display: none;
  }
  
  .float-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}


