/* =====================================================
   Catálogo público — diseño centrado
   Vidrio oscuro + color principal (Apariencia en el panel)
===================================================== */
:root {
  --neon: #ff3b3b;
  --neon-soft: #ff6c6c;
  --neon-rgb: 255, 59, 59;
  --overlay: .6;
  --bg: #0b0b0f;
  --glass: rgba(14, 14, 19, .72);
  --glass-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .11);
  --text: #fff;
  --muted: rgba(255, 255, 255, .7);
  --radius: 18px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg) radial-gradient(900px 600px at 50% -10%, rgba(var(--neon-rgb), .25), transparent 70%) fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--neon-soft); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Fondo ---------- */
.bg-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bg-overlay {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,calc(var(--overlay) - .1)) 0%, rgba(0,0,0,var(--overlay)) 35%, rgba(0,0,0,calc(var(--overlay) + .15)) 100%);
}

/* ---------- Cabecera centrada ---------- */
.hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 40px 16px 8px;
  animation: rise .6s ease-out both;
}
.hero-logo {
  width: 120px; height: 120px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--neon);
  box-shadow: 0 0 0 6px rgba(var(--neon-rgb), .14), 0 0 40px rgba(var(--neon-rgb), .55);
  animation: glow 4s ease-in-out infinite;
}
@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(var(--neon-rgb), .08), 0 0 60px rgba(var(--neon-rgb), .7); } }
.hero-title {
  margin: 18px 0 4px;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; letter-spacing: .3px; line-height: 1.15;
  text-shadow: 0 0 18px rgba(var(--neon-rgb), .55);
}
.hero-desc {
  margin: 0;
  color: var(--muted); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  font-size: clamp(.78rem, 2.2vw, .95rem);
}

.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.red {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; text-decoration: none; font-size: 1.2rem;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.red:hover { transform: translateY(-3px); background: rgba(var(--neon-rgb), .25); border-color: rgba(var(--neon-rgb), .6); box-shadow: 0 8px 22px rgba(var(--neon-rgb), .35); }
.red.is-whatsapp:hover { background: #25d366; border-color: #25d366; box-shadow: 0 8px 22px rgba(37, 211, 102, .4); }
.red.is-telegram:hover { background: #229ed9; border-color: #229ed9; box-shadow: 0 8px 22px rgba(34, 158, 217, .4); }
.red.is-instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); border-color: #dd2a7b; }
.red.is-facebook:hover { background: #1877f2; border-color: #1877f2; }

/* ---------- Filtros (centrados) ---------- */
main { flex: 1; padding-top: 26px; padding-bottom: 40px; }
.filtros {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin: 0 -16px 24px; padding: 12px 16px;
  transition: background .25s, box-shadow .25s;
}
.filtros.is-stuck {
  background: rgba(10, 10, 14, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.buscar {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 520px; height: 48px; padding: 0 18px;
  border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s, box-shadow .2s;
}
.buscar:focus-within { border-color: rgba(var(--neon-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--neon-rgb), .16); }
.buscar i { color: var(--muted); }
.buscar input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: .95rem; }
.buscar input::placeholder { color: rgba(255,255,255,.5); }
.buscar input::-webkit-search-cancel-button { filter: invert(1); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
.chip {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-weight: 700; font-size: .88rem; white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.chip span { opacity: .6; margin-left: 4px; font-weight: 600; }
.chip:hover { border-color: rgba(var(--neon-rgb), .6); }
.chip.active { background: var(--neon); border-color: var(--neon); box-shadow: 0 6px 18px rgba(var(--neon-rgb), .4); }
.chip.active span { opacity: .85; }

/* ---------- Productos (centrados) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 270px));
  justify-content: center;
  gap: 20px;
}
.card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  animation: rise .5s ease-out both;
}
.card:hover { transform: translateY(-5px); border-color: rgba(var(--neon-rgb), .5); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 34px rgba(var(--neon-rgb), .22); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.card-media { position: relative; display: block; padding: 0; border: 0; aspect-ratio: 1 / 1; background: #121218; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .4s; }
.card-media img.is-loading { opacity: 0; }
.card:hover .card-media img { transform: scale(1.06); }
.card-count {
  position: absolute; right: 10px; top: 10px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(0,0,0,.65); font-size: .78rem; font-weight: 700;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card-zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); font-size: 1.6rem; opacity: 0; transition: opacity .25s; }
.card-media:hover .card-zoom, .card-media:focus-visible .card-zoom { opacity: 1; }

.card-body { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--neon-soft); }
.card-title { margin: 0; font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.card-desc { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; gap: 8px; width: 100%; margin-top: auto; padding-top: 10px; }
.card-actions .btn { flex: 1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: .88rem; text-decoration: none; color: #fff; white-space: nowrap;
  transition: filter .2s, background .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-ghost { background: var(--glass-2); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.13); }
.btn-wa { background: #25d366; }
.btn-wa:hover { filter: brightness(1.08); }

/* ---------- Vacío ---------- */
.vacio {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin: 30px auto; max-width: 480px; padding: 34px 24px;
  text-align: center; font-weight: 600; color: var(--muted);
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
}
.vacio > i { font-size: 2.2rem; color: var(--neon-soft); }

/* ---------- Pie (centrado) ---------- */
.pie {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  color: var(--muted); font-size: .82rem; text-align: center;
  border-top: 1px solid var(--line);
}
.pie-stats b { color: #fff; font-variant-numeric: tabular-nums; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; margin-right: 2px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.pie-linea { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; }
.pie-link {
  padding: 0; border: 0; background: none; color: var(--muted); font-size: inherit;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.pie-link:hover { color: #fff; text-decoration-color: #00e5ff; }

/* ---------- Términos y condiciones ---------- */
.tyc {
  --tyc-cyan: #00e5ff;
  --tyc-red: #ff4d4d;
  --tyc-yellow: #ffcc00;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  display: none; flex-direction: column;
  background: rgba(10, 12, 16, .96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, .88);
  border: 1px solid rgba(0, 229, 255, .25);
  border-radius: 22px;
  box-shadow: 0 0 40px rgba(0, 229, 255, .12), 0 24px 60px rgba(0, 0, 0, .7);
}
.tyc[open] { display: flex; animation: rise .25s ease-out; }
.tyc::backdrop { background: rgba(0, 0, 0, .85); }
.tyc-head { display: flex; align-items: center; gap: 12px; padding: 22px 26px 8px; }
.tyc-title {
  flex: 1; margin: 0;
  font-size: 1.55rem; font-weight: 800;
  color: var(--tyc-cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, .45);
}
.tyc-title i { margin-right: 6px; }
.tyc-body { padding: 8px 26px; overflow-y: auto; }
.tyc-foot { padding: 14px 26px 24px; }
.tyc-intro { line-height: 1.7; margin: 0 0 20px; }
.tyc-intro strong { color: #fff; }
.tyc-block {
  --c: var(--tyc-cyan);
  padding: 16px 20px; margin-bottom: 18px;
  border-radius: 12px; border-left: 3px solid var(--c);
  background: rgba(255, 255, 255, .04);
}
.tyc-block h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; color: var(--c); margin: 0 0 8px; }
.tyc-block p { line-height: 1.7; margin: 0; }
.tyc-block p + p { margin-top: 12px; }
.tyc-block.is-info    { --c: var(--tyc-cyan); }
.tyc-block.is-danger  { --c: var(--tyc-red); }
.tyc-block.is-warning { --c: var(--tyc-yellow); }
.tyc-mail { font-size: .95rem; word-break: break-word; }
.tyc-mail i { color: var(--tyc-red); margin-right: 6px; }
.tyc-mail a { color: var(--tyc-cyan); font-weight: 700; text-decoration: none; }
.tyc-mail a:hover { text-decoration: underline; }
.tyc-note { font-size: .85rem; color: rgba(255, 255, 255, .55); }
.tyc-accept {
  width: 100%; padding: 13px; border: 0; border-radius: 12px;
  background: linear-gradient(90deg, #0d6efd, var(--tyc-cyan));
  color: #fff; font-weight: 700;
  box-shadow: 0 0 22px rgba(0, 229, 255, .35);
  transition: transform .2s, box-shadow .2s;
}
.tyc-accept:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(0, 229, 255, .55); }
.tyc-accept i { margin-right: 6px; }

/* ---------- Botones flotantes ---------- */
.wa-float, .to-top {
  position: fixed; right: 18px; z-index: 30;
  display: grid; place-items: center; border-radius: 50%;
  color: #fff; text-decoration: none; transition: transform .2s, opacity .2s;
}
.wa-float { bottom: calc(18px + env(safe-area-inset-bottom)); width: 58px; height: 58px; background: #25d366; font-size: 1.8rem; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); }
.wa-float:hover { transform: scale(1.08); }
.to-top { bottom: calc(88px + env(safe-area-inset-bottom)); width: 44px; height: 44px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.to-top:hover { background: rgba(var(--neon-rgb), .3); }

/* ---------- Visor ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: rgba(5, 5, 8, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fade .2s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.lb-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.lb-info { display: flex; flex-direction: column; min-width: 0; flex: 1; text-align: center; padding-left: 56px; }
.lb-info small { color: var(--neon-soft); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.lb-info strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-n { position: absolute; left: 16px; top: 26px; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.lb-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass-2); font-size: 1.1rem; }
.lb-btn:hover { background: rgba(var(--neon-rgb), .35); }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 70px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; user-select: none; -webkit-user-drag: none; animation: fade .25s ease-out; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; }
.lb-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
.lb-thumbs button { flex: none; width: 56px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #111; opacity: .5; transition: opacity .2s, border-color .2s; }
.lb-thumbs button.active { border-color: var(--neon); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-foot .btn-wa { min-width: 220px; height: 46px; font-size: .95rem; }
body.lb-open { overflow: hidden; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 200;
  padding: 10px 18px; border-radius: 999px; background: rgba(20,20,26,.95); border: 1px solid var(--line);
  font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .hero-logo { width: 96px; height: 96px; }
  .red { width: 42px; height: 42px; font-size: 1.05rem; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: .92rem; }
  .card-desc { font-size: .78rem; }
  .card-actions { flex-direction: column; gap: 6px; }
  .btn { height: 36px; font-size: .82rem; padding: 0 10px; }
  .lb-stage { padding: 0 6px; }
  .lb-nav { display: none; }
  .lb-info { padding-left: 44px; }
  .wa-float { width: 52px; height: 52px; font-size: 1.6rem; }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .tyc { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .tyc-head { padding: 18px 18px 6px; }
  .tyc-title { font-size: 1.25rem; }
  .tyc-body { padding: 6px 18px; }
  .tyc-foot { padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
