/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Touch targets */
a, button, .filter-chip, .card-btn, .view-tab, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ── CSS Variables ── */
:root {
  --sidebar-w: 220px;
  --bottom-nav-h: 56px;
  --accent: #4cff90;
  --accent-dim: rgba(76, 255, 144, 0.1);
  --accent-border: rgba(76, 255, 144, 0.28);
  --bg: #0f1117;
  --sidebar-bg: #111827;
  --surface: #1a2035;
  --surface2: #1e2640;
  --border: rgba(255, 255, 255, 0.07);
  --border-md: rgba(255, 255, 255, 0.14);
  --text: #f1f5f9;
  --text-secondary: rgba(241, 245, 249, 0.52);
  --text-muted: rgba(241, 245, 249, 0.28);
  --font: 'Inter', 'Arial', system-ui, sans-serif;
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
}

/* ── Base ── */
html {
  height: 100%;
  overflow: hidden;
}
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── App Shell ── */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* ── Shell Content ── */
.shell-content {
  flex: 1 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  scroll-behavior: smooth;
}
.shell-content::-webkit-scrollbar { width: 6px; }
.shell-content::-webkit-scrollbar-track { background: transparent; }
.shell-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }
.shell-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }


/* Catalog page: shell no scrollea, la grilla tiene su propio scroll */
.shell-content:has(.catalog-page) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.catalog-page {
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  overflow: hidden;
}
.catalog-page #filter-bar {
  position: relative;
  top: auto;
  flex-shrink: 0;
}
.catalog-page .catalog {
  flex: 1 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.catalog-page .catalog::-webkit-scrollbar { width: 6px; }
.catalog-page .catalog::-webkit-scrollbar-track { background: transparent; }
.catalog-page .catalog::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }
.catalog-page .catalog::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 50;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}
.logo-mark {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  font-style: italic;
}
.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}
.nav-logo-drawer {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.sidebar-nav {
  flex: 1 1;
  padding: 12px 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding: 10px 18px 5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 14px;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border-left: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.sidebar-link.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}
.sidebar-link-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.65;
}
.sidebar-link.active .sidebar-link-icon { opacity: 1; }
.sidebar-link:hover .sidebar-link-icon { opacity: 0.85; }

.sidebar-admin-link { color: #c8a96e !important; }
.sidebar-admin-link:hover { background: rgba(200, 169, 110, 0.1) !important; }
.sidebar-admin-link.active { background: rgba(200, 169, 110, 0.12) !important; border-left-color: #c8a96e !important; }

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 16px;
}

.sidebar-footer {
  padding: 12px 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-visit {
  margin-bottom: 10px;
  padding: 0 2px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.sidebar-user:hover { background: rgba(255, 255, 255, 0.08); }
.sidebar-user-info { flex: 1 1; min-width: 0; }
.sidebar-user-name {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sidebar-user-email {
  color: var(--text-muted);
  font-size: 10px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-caret { color: var(--text-muted); font-size: 10px; flex-shrink: 0; }

.sidebar-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
  z-index: 10;
}
.sidebar-dropdown-email {
  padding: 9px 12px 7px;
  color: var(--text-muted);
  font-size: 11px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-dropdown button {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-dropdown button:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }

.sidebar-login-btn {
  width: 100%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-login-btn:hover { background: rgba(76, 255, 144, 0.18); }

/* ── Nav avatar (shared) ── */
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-avatar-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(100, 180, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Mobile overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.26s;
}
.nav-overlay.open { display: block; opacity: 1; }

/* ── Mobile drawer ── */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(280px, 86vw);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-drawer-close {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.nav-drawer-close:hover { background: rgba(255, 255, 255, 0.13); color: var(--text); }

.nav-drawer-links {
  flex: 1 1;
  padding: 10px 8px;
  overflow-y: auto;
}
.nav-drawer-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding: 10px 10px 5px;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.nav-drawer-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.nav-drawer-link.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

.nav-drawer-user {
  padding: 14px 12px 22px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-drawer-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.nav-drawer-user-name { color: var(--text); font-size: 14px; font-weight: 600; }
.nav-drawer-user-email { color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.nav-drawer-signout {
  background: rgba(220, 60, 60, 0.1);
  border: 1px solid rgba(220, 60, 60, 0.25);
  color: rgba(255, 110, 110, 0.9);
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.nav-drawer-signout:hover { background: rgba(220, 60, 60, 0.2); }
.nav-drawer-login {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.nav-drawer-login:hover { background: rgba(76, 255, 144, 0.18); }

/* ── Bottom nav (mobile) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: var(--sidebar-bg);
  border-top: 1px solid var(--border);
  z-index: 500;
  justify-content: space-around;
  align-items: stretch;
}
.bottom-nav-item {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 9px;
  font-weight: 600;
  font-family: var(--font);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  padding: 6px 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item:not(.active):hover { color: var(--text-secondary); }

/* ── View tabs ── */
#view-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(17, 24, 39, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 102;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
}
#view-tabs::-webkit-scrollbar { display: none; }

.view-tab {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
  padding: 9px 14px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-weight: 500;
  flex-shrink: 0;
  scroll-snap-align: start;
  min-height: 40px;
}
.view-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.view-tab:active { transform: scale(0.96); }
.view-tab.active {
  color: var(--accent);
  font-weight: 700;
  background: linear-gradient(135deg, rgba(76, 255, 144, 0.16), rgba(76, 255, 144, 0.04));
  box-shadow: inset 0 0 0 1px rgba(76, 255, 144, 0.35);
}

/* ── Filter bar ── */
#filter-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 101;
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  border-bottom: 1px solid var(--border);
}
#view-tabs ~ #filter-bar {
  top: 57px;
  z-index: 100;
}
.page-coleccion #filter-bar { top: 57px; }

#filter-bar label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-weight: 600;
  font-family: var(--font);
}

#filter-bar select {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-md);
  color: var(--text);
  border-radius: 20px;
  padding: 5px 28px 5px 12px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.4)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s, background 0.15s;
}
#filter-bar select option { background: #1a2035; color: var(--text); }
#filter-bar select:hover { border-color: rgba(255, 255, 255, 0.32); background-color: rgba(255, 255, 255, 0.11); }
#filter-bar select:focus { border-color: var(--accent); }

.filter-sep {
  width: 1px;
  height: 22px;
  background: var(--border-md);
  flex-shrink: 0;
}


.filter-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-md);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-chip:hover { background: rgba(255, 255, 255, 0.13); color: var(--text); }
.filter-chip.active {
  background: var(--text);
  color: #0f1117;
  border-color: var(--text);
  font-weight: 700;
}

#filter-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  font-family: var(--font);
}

#btn-reset, #btn-export, #btn-import {
  background: none;
  border: 1px solid var(--border-md);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
#btn-reset:hover, #btn-export:hover, #btn-import:hover {
  border-color: var(--text);
  color: var(--text);
}

#btn-compartir {
  background: rgba(100, 200, 255, 0.1);
  border: 1px solid rgba(100, 200, 255, 0.32);
  color: #90d8ff;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
#btn-compartir:hover:not(:disabled) {
  background: rgba(100, 200, 255, 0.2);
  border-color: #90d8ff;
  color: #fff;
}
#btn-compartir:disabled { opacity: 0.45; cursor: default; }

/* ── Size buttons S/M/L/XL ── */
#size-btns {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.size-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-md);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background 0.15s, color 0.15s;
  min-width: 28px;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.size-btn:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.size-btn.active { background: var(--text); color: #0f1117; border-color: var(--text); }

/* ── Catalog grid ── */
.catalog {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  grid-gap: 62px 20px;
  gap: 62px 20px;
  padding: 40px 24px 80px;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  padding: 80px 0;
}

/* ── Card item ── */
.card-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 36px;
  transition: transform 0.2s ease;
}
.card-item:hover { transform: translateY(-2px); }

/* ── Number badge ── */
.number-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #d8d8d8 0%, #a0a0a0 35%, #6e6e6e 65%, #909090 100%);
  border: 3px solid #2a2a2a;
  box-shadow:
    inset 0 3px 7px rgba(255, 255, 255, 0.45),
    inset 0 -2px 5px rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #111;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.25);
  z-index: 10;
  font-family: 'Arial Black', Arial, sans-serif;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

/* ── Card image wrap ── */
.card-img-wrap {
  width: 100%;
  cursor: pointer;
  position: relative;
}

/* ── Card image & placeholder ── */
.card-img {
  width: 100%;
  aspect-ratio: 1.585 / 1;
  object-fit: contain;
  border-radius: 11px;
  box-shadow: 3px 4px 18px rgba(0, 0, 0, 0.65);
  display: block;
}
.card-placeholder {
  width: 100%;
  aspect-ratio: 1.585 / 1;
  border-radius: 11px;
  box-shadow: 3px 4px 18px rgba(0, 0, 0, 0.65);
  background: linear-gradient(140deg, #1a4585 0%, #2458a0 50%, #1a4585 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-placeholder.vertical { aspect-ratio: 1 / 1.585; }
.placeholder-text {
  color: rgba(255, 255, 255, 0.18);
  font-size: 38px;
  font-weight: 900;
  font-style: italic;
  font-family: 'Arial Black', Arial, sans-serif;
}

/* ── Card description ── */
.card-desc {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  line-height: 1.35;
  padding: 0 4px;
  word-break: break-word;
}

/* ── Date label & tags ── */
.date-label {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  padding: 5px 14px 6px;
  border-radius: 22px;
  font-size: 12px;
  font-family: var(--font);
  text-align: center;
  letter-spacing: 0.1px;
  line-height: 1.4;
  width: 100%;
}
.tag-sinventa   { display: block; color: #ffcc33;  font-size: 10px; margin-top: 2px; font-style: italic; }
.tag-retirada   { display: block; color: #ff6b6b;  font-size: 11px; }
.tag-otras      { display: block; color: #7dd3fc;  font-size: 10px; font-style: italic; }
.tag-merval     { display: block; color: #fcd34d;  font-size: 10px; font-style: italic; }
.tag-trencentral{ display: block; color: #6ee7b7;  font-size: 10px; font-style: italic; }
.tag-tne        { display: block; color: #f9a8d4;  font-size: 10px; font-style: italic; }
.tag-bipay      { display: block; color: #67e8f9;  font-size: 10px; font-style: italic; }
.tag-kupos      { display: block; color: #fdba74;  font-size: 10px; font-style: italic; }
.tag-extranjeras{ display: block; color: #d8b4fe;  font-size: 10px; font-style: italic; }

/* ── Card actions ── */
.card-actions {
  display: flex;
  gap: 5px;
  width: 100%;
  margin-top: 6px;
}
.card-btn {
  flex: 1 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-md);
  color: var(--text-secondary);
  border-radius: 20px;
  font-size: 10px;
  font-family: var(--font);
  padding: 5px 2px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.card-btn:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); border-color: rgba(255,255,255,0.4); }
.card-btn.col.active   { background: rgba(20, 160, 70, 0.88);  color: #fff; border-color: #6fefa0; }
.card-btn.busca.active { background: rgba(210, 120, 0, 0.9);   color: #fff; border-color: #ffc04d; }

/* Repetidas */
.card-rep-wrap {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
}
.card-btn.rep { flex: 1 1; }
.card-btn.rep.active { background: rgba(150, 80, 220, 0.82); color: #fff; border-color: #c49eff; }
.card-btn.rep-minus {
  flex: 0 0 auto;
  padding: 4px 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  background: rgba(150, 80, 220, 0.3);
  border-color: rgba(150, 80, 220, 0.55);
  color: #c49eff;
}
.card-btn.rep-minus:hover { background: rgba(150, 80, 220, 0.6); border-color: #c49eff; color: #fff; }

/* ── Card overlays ── */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 0 11px 11px;
  pointer-events: none;
  z-index: 2;
}
/* Vertical cards rotate their image with z-index:1 (see .card-vert-neon .card-img);
   the overlay needs to sit above that regardless of collected/se-busca state. */
.card-vert-neon .card-overlay { z-index: 2; }
.card-overlay.sinventa { background: rgba(180, 130, 0, 0.82); color: #ffe680; }
.card-overlay.retirada { background: rgba(160, 30, 30, 0.85); color: #ffb3b3; }

/* ── Neon: collected (green) ── */
.card-item.collected .card-img-wrap {
  padding: 3px;
  border-radius: 14px;
  overflow: hidden;
  background: #0a1e4a;
}
.card-item.collected .card-img-wrap::before {
  content: '';
  position: absolute;
  width: 250%;
  height: 250%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    transparent 0deg,
    transparent 320deg,
    rgba(0, 255, 100, 0.15) 340deg,
    rgba(0, 255, 100, 0.9)  355deg,
    rgba(180, 255, 210, 1)  358deg,
    rgba(0, 255, 100, 0.9)  361deg,
    rgba(0, 255, 100, 0.15) 20deg,
    transparent 40deg
  );
  animation: neon-spin 2.5s linear infinite;
  z-index: 0;
  filter: blur(1.5px);
  will-change: transform;
}
.card-item.collected .card-img {
  position: relative;
  z-index: 1;
  border-radius: 9px;
  box-shadow: 0 0 10px 2px rgba(0, 255, 100, 0.35), 3px 4px 18px rgba(0, 0, 0, 0.6);
}
.card-item.collected .card-placeholder {
  position: relative;
  z-index: 1;
  border-radius: 9px;
}
.card-item.collected .card-overlay { z-index: 2; }

/* ── Neon: se-busca (amber) ── */
.card-item.se-busca .card-img-wrap {
  padding: 3px;
  border-radius: 14px;
  overflow: hidden;
  background: #2a1500;
}
.card-item.se-busca .card-img-wrap::before {
  content: '';
  position: absolute;
  width: 250%;
  height: 250%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    transparent 0deg,
    transparent 320deg,
    rgba(255, 160, 0, 0.15) 340deg,
    rgba(255, 160, 0, 0.9)  355deg,
    rgba(255, 220, 130, 1)  358deg,
    rgba(255, 160, 0, 0.9)  361deg,
    rgba(255, 160, 0, 0.15) 20deg,
    transparent 40deg
  );
  animation: neon-spin 2.5s linear infinite;
  z-index: 0;
  filter: blur(1.5px);
  will-change: transform;
}
.card-item.se-busca .card-img {
  position: relative;
  z-index: 1;
  border-radius: 9px;
  box-shadow: 0 0 10px 2px rgba(255, 160, 0, 0.4), 3px 4px 18px rgba(0, 0, 0, 0.6);
}
.card-item.se-busca .card-placeholder { position: relative; z-index: 1; border-radius: 9px; }
.card-item.se-busca .card-overlay { z-index: 2; }

/* Vertical cards: neon via inner portrait wrapper (.card-vert-neon) */

/* Outer container: no neon (neon lives on .card-vert-neon inside) */
.card-item.collected .card-img-wrap.vertical::before,
.card-item.se-busca  .card-img-wrap.vertical::before {
  display: none;
}
.card-item.collected .card-img-wrap.vertical,
.card-item.se-busca  .card-img-wrap.vertical {
  padding: 0;
  background: transparent;
}

/* Inner portrait wrapper: absolute-positioned to match the rotated card boundaries */
.card-vert-neon {
  position: absolute;
  left: 18.45%;
  right: 18.45%;
  top: 0;
  bottom: 0;
  overflow: hidden;
  border-radius: 14px;
}

/* Collected: green spinning neon on inner wrapper */
.card-item.collected .card-vert-neon {
  padding: 3px;
  background: #0a1e4a;
}
.card-item.collected .card-vert-neon::before {
  content: '';
  position: absolute;
  width: 250%;
  height: 250%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    transparent 0deg,
    transparent 320deg,
    rgba(0, 255, 100, 0.15) 340deg,
    rgba(0, 255, 100, 0.9)  355deg,
    rgba(180, 255, 210, 1)  358deg,
    rgba(0, 255, 100, 0.9)  361deg,
    rgba(0, 255, 100, 0.15) 20deg,
    transparent 40deg
  );
  animation: neon-spin 2.5s linear infinite;
  z-index: 0;
  filter: blur(1.5px);
  will-change: transform;
}

/* Se-busca: amber spinning neon on inner wrapper */
.card-item.se-busca .card-vert-neon {
  padding: 3px;
  background: #2a1500;
}
.card-item.se-busca .card-vert-neon::before {
  content: '';
  position: absolute;
  width: 250%;
  height: 250%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    transparent 0deg,
    transparent 320deg,
    rgba(255, 160, 0, 0.15) 340deg,
    rgba(255, 160, 0, 0.9)  355deg,
    rgba(255, 220, 130, 1)  358deg,
    rgba(255, 160, 0, 0.9)  361deg,
    rgba(255, 160, 0, 0.15) 20deg,
    transparent 40deg
  );
  animation: neon-spin 2.5s linear infinite;
  z-index: 0;
  filter: blur(1.5px);
  will-change: transform;
}

/* Image inside inner wrapper: fills the portrait container when rotated -90° */
.card-img-wrap.vertical .card-vert-neon .card-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 158.5%;
  height: auto;
  transform: translate(-50%, -50%) rotate(-90deg);
  z-index: 1;
  border-radius: 9px;
}
/* Neon states: reduce width by the padding (3px each side ÷ card ratio 0.631 ≈ 9.5px)
   so the image fills only the content area, leaving the 3px padding gap for the spinning beam */
.card-item.collected .card-vert-neon .card-img,
.card-item.se-busca  .card-vert-neon .card-img {
  width: calc(158.5% - 9.5px);
}

@media (prefers-reduced-motion: reduce) {
  .card-item.collected .card-vert-neon::before,
  .card-item.se-busca  .card-vert-neon::before {
    animation: none;
  }
}

@keyframes neon-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .card-item.collected .card-img-wrap::before { animation: none; background: rgba(0, 255, 100, 0.25); }
  .card-item.se-busca .card-img-wrap::before  { animation: none; background: rgba(255, 160, 0, 0.25); }
}

/* ── Vertical cards ── */
.card-img-wrap.vertical {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card-img-wrap.vertical .card-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  transform: translate(-50%, -50%) rotate(-90deg);
  z-index: 1;
}

/* ── Flip animation ── */
@keyframes flip-out {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
@keyframes flip-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.card-img.flip-out { animation: flip-out 0.22s ease-in  forwards; }
.card-img.flip-in  { animation: flip-in  0.22s ease-out forwards; }

/* ── Flip button ── */
.flip-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font);
  padding: 3px 9px;
  border-radius: 12px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background 0.15s;
  z-index: 5;
  letter-spacing: 0.3px;
}
.flip-btn:hover { background: rgba(0, 0, 0, 0.9); }

.card-img-wrap.has-variants { cursor: pointer; }
.flip-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font);
  padding: 2px 8px;
  border-radius: 12px;
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* ── Star deco ── */
.star-deco {
  position: fixed;
  bottom: 18px;
  right: 22px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 42px;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.3);
}

/* ── Section title ── */
.section-title {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 28px 24px 0;
  margin-bottom: -20px;
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }
#lb-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}
#lb-close {
  position: fixed;
  top: 16px;
  right: 22px;
  font-size: 38px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 52px;
  color: #fff;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  padding: 0 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  opacity: 0.85;
}
.lb-arrow:hover { opacity: 1; }
#lb-prev { left: 0; }
#lb-next { right: 0; }
#lb-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-family: var(--font);
}

/* ── Tribute modal ── */
#tribute-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 30, 70, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tributeFadeIn 0.7s ease both;
}
#tribute-overlay.tribute-hide { animation: tributeFadeOut 0.5s ease both; }
@keyframes tributeFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes tributeFadeOut { from { opacity: 1; } to { opacity: 0; } }
#tribute-modal {
  position: relative;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
  animation: tributeRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
@keyframes tributeRise {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
#tribute-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  display: block;
}
#tribute-close {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 36px;
  cursor: pointer;
  border-radius: 50px;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.15s;
}
#tribute-close:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }

/* ── Auth modal ── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5, 15, 50, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: 18px;
  padding: 32px 28px 28px;
  width: 360px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}
.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  transition: color 0.15s;
}
.auth-close:hover { color: var(--text); }
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 3px;
}
.auth-tabs button {
  flex: 1 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-tabs button.active { background: rgba(255, 255, 255, 0.12); color: var(--text); font-weight: 700; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-md);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}
.auth-form input:focus { border-color: rgba(255, 255, 255, 0.45); }
.auth-form input::placeholder { color: var(--text-muted); }
.auth-error { color: #ff9090; font-size: 12px; margin: 2px 0; }
.auth-btn-primary {
  margin-top: 4px;
  background: rgba(58, 109, 181, 0.9);
  border: 1px solid rgba(100, 160, 255, 0.45);
  color: #fff;
  border-radius: 10px;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}
.auth-btn-primary:hover:not(:disabled) { background: rgba(70, 130, 210, 0.95); }
.auth-btn-primary:disabled { opacity: 0.5; cursor: default; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1 1;
  height: 1px;
  background: var(--border);
}
.auth-btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: #333;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.auth-btn-google:hover:not(:disabled) { background: #f5f5f5; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.auth-btn-google:disabled { opacity: 0.5; cursor: default; }

/* ── Compartir button ── */
.btn-compartir-colecciones {
  background: rgba(100, 150, 255, 0.12);
  border: 1px solid rgba(100, 150, 255, 0.35);
  color: rgba(180, 210, 255, 0.9);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn-compartir-colecciones:hover { background: rgba(100, 150, 255, 0.24); border-color: rgba(100, 150, 255, 0.6); }

/* ── Compartir modal ── */
.compartir-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.compartir-modal-title { color: var(--text); font-size: 20px; font-weight: 700; }
.compartir-tipo-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-md);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}
.compartir-modal-sub { color: var(--text-muted); font-size: 12px; margin-bottom: 16px; }
.compartir-leyenda {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-md);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  padding: 10px 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
.compartir-leyenda::placeholder { color: var(--text-muted); }
.compartir-leyenda:focus { border-color: rgba(255, 255, 255, 0.38); }

/* ── Shared collections page ── */
.sh-page-header {
  background: rgba(17, 24, 39, 0.7);
  border-bottom: 1px solid var(--border);
  padding: 32px 28px 24px;
}
.sh-page-header-inner { max-width: 1100px; margin: 0 auto; }
.sh-page-title { color: var(--text); font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.sh-page-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.sh-mis-compartidas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sh-mis-label { color: var(--text-muted); font-size: 12px; }
.sh-btn-quitar {
  background: rgba(200, 60, 60, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.3);
  color: #ff9090;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.sh-btn-quitar:hover { background: rgba(200, 60, 60, 0.24); }

.sh-loading { display: flex; gap: 8px; justify-content: center; padding: 80px 20px; }
.sh-loading-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  animation: shDotPulse 1.2s ease-in-out infinite;
}
.sh-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.sh-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes shDotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.28; }
  40%            { transform: scale(1);   opacity: 1; }
}

.sh-empty { text-align: center; padding: 80px 20px 40px; color: var(--text-muted); }
.sh-empty-icon { font-size: 36px; margin-bottom: 14px; opacity: 0.28; }
.sh-empty p { font-size: 15px; margin-bottom: 8px; }
.sh-empty-hint { font-size: 13px; }
.sh-empty-hint strong { color: var(--text-secondary); }

.sh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  padding: 24px 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.sh-card {
  position: relative;
  background: rgba(26, 32, 53, 0.72);
  border: 1px solid var(--border-md);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  display: flex;
  flex-direction: column;
}
.sh-card:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35); border-color: rgba(255, 255, 255, 0.2); }
.sh-card-mia { border-color: rgba(100, 220, 150, 0.3); }
.sh-card-strip { height: 4px; flex-shrink: 0; }
.sh-card-delete {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  background: rgba(200, 50, 50, 0.75);
  border: 1px solid rgba(255, 100, 100, 0.5);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2;
}
.sh-card-delete:hover, .sh-card-delete:active { background: rgba(220, 40, 40, 0.95); }
.sh-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1 1; }
.sh-card-top { display: flex; align-items: center; gap: 12px; }
.sh-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.sh-card-name { color: var(--text); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sh-badge-mia {
  font-size: 9px; font-weight: 400;
  background: rgba(100, 220, 150, 0.15);
  border: 1px solid rgba(100, 220, 150, 0.4);
  color: #7feeaa;
  padding: 1px 7px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sh-card-tipo { font-size: 12px; font-weight: 500; }
.sh-card-leyenda {
  color: var(--text-secondary);
  font-size: 13px;
  font-style: italic;
  line-height: 1.4;
  border-left: 2px solid var(--border-md);
  padding-left: 10px;
}
.sh-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.sh-card-total { color: var(--text-muted); font-size: 12px; }
.sh-card-fecha { color: var(--text-muted); font-size: 11px; }
.sh-card-wa-hint { color: rgba(37, 211, 102, 0.6); font-size: 11px; }
.sh-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.38);
  color: #25d366;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  transition: background 0.15s;
  align-self: flex-start;
}
.sh-wa-btn:hover { background: rgba(37, 211, 102, 0.24); }
.sh-login-hint { text-align: center; color: var(--text-muted); font-size: 13px; padding: 0 20px 32px; }
.sh-login-link {
  background: none;
  border: none;
  color: rgba(180, 210, 255, 0.85);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  text-decoration: underline;
  padding: 0;
}
.sh-login-link:hover { color: var(--text); }

/* ── Colección compartida modal ── */
.comp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 15, 45, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.comp-modal {
  position: relative;
  background: rgba(15, 20, 48, 0.99);
  border: 1px solid var(--border-md);
  border-radius: 16px;
  width: 100%;
  max-width: 920px;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.comp-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
}
.comp-zoom-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 6px 3px 10px;
}
.comp-zoom-label {
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 2px;
}
.comp-zoom-size {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.comp-zoom-size:hover { color: var(--text-secondary); }
.comp-zoom-size.active { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.comp-close {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-md);
  color: var(--text-secondary);
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.comp-close:hover { background: rgba(255, 255, 255, 0.16); color: var(--text); }

.comp-header {
  padding: 18px 24px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tipo-coleccion.comp-header { background: linear-gradient(135deg, rgba(0, 160, 60, 0.1) 0%, transparent 60%); }
.tipo-faltan.comp-header    { background: linear-gradient(135deg, rgba(200, 40, 40, 0.1) 0%, transparent 60%); }
.tipo-busca.comp-header     { background: linear-gradient(135deg, rgba(200, 120, 0, 0.1) 0%, transparent 60%); }
.tipo-repetidas.comp-header { background: linear-gradient(135deg, rgba(120, 60, 200, 0.1) 0%, transparent 60%); }

.comp-tipo-badge {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tipo-coleccion .comp-tipo-badge { background: rgba(0, 200, 80, 0.12);   color: var(--accent);  border: 1px solid rgba(0, 200, 80, 0.28); }
.tipo-faltan    .comp-tipo-badge { background: rgba(220, 60, 60, 0.12);  color: #ff9090; border: 1px solid rgba(220, 60, 60, 0.28); }
.tipo-busca     .comp-tipo-badge { background: rgba(255, 160, 0, 0.12);  color: #ffc04d; border: 1px solid rgba(255, 160, 0, 0.28); }
.tipo-repetidas .comp-tipo-badge { background: rgba(150, 80, 220, 0.12); color: #c49eff; border: 1px solid rgba(150, 80, 220, 0.28); }

.comp-title {
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}
.comp-leyenda {
  color: var(--text-secondary);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 14px;
  line-height: 1.4;
}
.comp-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.comp-total { color: var(--text-muted); font-family: var(--font); font-size: 13px; }
.comp-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
  padding: 8px 20px;
  border-radius: 24px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.1);
}
.comp-wa-btn:hover { background: rgba(37, 211, 102, 0.24); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(37, 211, 102, 0.2); }

.comp-body {
  padding: 22px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-height: 65vh;
  overflow-y: auto;
}
.comp-body::-webkit-scrollbar { width: 5px; }
.comp-body::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
.comp-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 10px; }
.comp-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 48px 0;
  font-size: 16px;
  font-style: italic;
}
.comp-section {}
.comp-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.comp-section-title::before { content: ''; display: block; width: 18px; height: 1px; background: var(--border-md); flex-shrink: 0; }
.comp-section-title::after  { content: ''; display: block; flex: 1 1; height: 1px; background: var(--border); }
.comp-section-title span { color: var(--text-muted); font-weight: 400; }

.comp-grid { display: grid; grid-gap: 8px; gap: 8px; transition: grid-template-columns 0.2s; }
.comp-card { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.comp-card img {
  width: 100%;
  aspect-ratio: 1.585;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.comp-card:hover img { border-color: var(--border-md); transform: scale(1.03); }
.comp-card-num { color: var(--text-muted); font-family: var(--font); font-size: 10px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .catalog { gap: 52px 16px; padding: 36px 16px 70px; }
  #filter-bar { padding: 8px 14px; gap: 6px 8px; }
  .filter-chip, #filter-bar select { font-size: 12px; padding: 4px 10px; }
  .filter-sep { display: none; }
  .number-badge { width: 52px; height: 52px; font-size: 14px; }
  .card-item { padding-top: 30px; }
  .date-label { font-size: 11px; padding: 4px 10px 5px; }
}

@media (max-width: 768px) {
  /* Hide sidebar, show bottom nav */
  .sidebar { display: none; }
  .bottom-nav { display: flex; }

  /* Shell fills available height above bottom nav */
  .shell-content {
    height: calc(100vh - var(--bottom-nav-h));
    padding-bottom: 0;
  }

  /* Filter bar stacks */
  #view-tabs ~ #filter-bar { top: 49px; }
  .page-coleccion #filter-bar { top: 49px; }

  .catalog { gap: 46px 14px; padding: 28px 14px 72px; }
  .catalog:not([data-user-cols]) { grid-template-columns: repeat(3, 1fr); }
  .star-deco { display: none; }
  .card-overlay { font-size: 9.5px; padding: 4px 5px; letter-spacing: 0.2px; line-height: 1.2; }
  .card-vert-neon .card-overlay { font-size: 8px; padding: 3px 3px; letter-spacing: 0.1px; }
}

@media (max-width: 540px) {
  .catalog:not([data-user-cols]) { grid-template-columns: repeat(2, 1fr); }
  .catalog { gap: 44px 10px; padding: 22px 10px 60px; }
  .number-badge { width: 44px; height: 44px; font-size: 12px; border-width: 2.5px; }
  .card-item { padding-top: 26px; }
  .date-label { font-size: 10px; padding: 4px 8px 5px; border-radius: 16px; }
  .tag-sinventa { font-size: 9px; }
  .placeholder-text { font-size: 26px; }
  #filter-count { display: none; }
  .filter-chip, #filter-bar select { font-size: 11px; padding: 4px 8px; }
  .card-overlay { font-size: 8px; padding: 3px 4px; border-radius: 0 0 9px 9px; }
  .card-vert-neon .card-overlay { font-size: 7px; padding: 2px 3px; letter-spacing: 0; }
}

@media (max-width: 320px) {
  .catalog:not([data-user-cols]) { grid-template-columns: 1fr; }
  .catalog { gap: 42px 0; padding: 20px 12px 50px; }
}

/* Mobile lightbox improvements */
@media (max-width: 600px) {
  #view-tabs { padding: 6px 10px; gap: 3px; }
  .view-tab { padding: 8px 11px; font-size: 12px; min-height: 36px; }
  .card-btn { padding: 8px 4px; min-height: 36px; }
  #lb-img { max-width: 100vw; max-height: 72vh; border-radius: 6px; }
  .lb-arrow { font-size: 32px; padding: 14px 10px; background: rgba(0, 0, 0, 0.45); border-radius: 6px; }
  #lb-close {
    top: 10px; right: 10px;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none;
  }
  #lb-counter { bottom: calc(var(--bottom-nav-h) + 10px); font-size: 12px; }
  .sh-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .sh-page-header { padding: 20px 16px 16px; }
  .comp-modal { border-radius: 12px; }
  .comp-header, .comp-body { padding: 14px 16px; }
  .comp-title { font-size: 20px; }
  .comp-body { max-height: 60vh; }
}

/* iOS fix for background-attachment */
@supports (-webkit-touch-callout: none) {
  .shell-content { -webkit-overflow-scrolling: touch; }
}

/* ── Landing / Home page ── */
.home-page {
  padding: 0 0 80px;
  max-width: 960px;
  margin: 0 auto;
}

.home-hero {
  position: relative;
  text-align: center;
  padding: 64px 24px 56px;
  overflow: hidden;
}
.home-hero-marquee {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 10px;
  padding: 0 10px;
  z-index: 0;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
.home-hero-marquee-col {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  will-change: transform;
}
.home-hero-marquee-set {
  display: flex;
  flex-direction: column;
}
.home-hero-marquee-col.down { animation: marquee-down 24s linear infinite; }
.home-hero-marquee-col.up   { animation: marquee-up 24s linear infinite; }
.home-hero-marquee-card {
  flex-shrink: 0;
  aspect-ratio: 1.585 / 1;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.5;
  margin-bottom: 10px;
}
.home-hero-marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
}
@keyframes marquee-down {
  from { transform: translateY(calc(-1 * var(--marquee-h, 50%))); }
  to   { transform: translateY(0); }
}
@keyframes marquee-up {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-1 * var(--marquee-h, 50%))); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-marquee-col.down,
  .home-hero-marquee-col.up { animation: none; }
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.72) 0%, rgba(10, 15, 28, 0.88) 100%);
  z-index: 0;
  pointer-events: none;
}
.home-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(76, 255, 144, 0.12) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.home-hero-content { position: relative; z-index: 1; }

.home-logo-mark {
  display: inline-block;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 32px rgba(76, 255, 144, 0.5), 0 0 64px rgba(76, 255, 144, 0.2);
}

.home-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 16px;
  letter-spacing: -0.5px;
}

.home-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.home-subtitle strong { color: var(--accent); }

.home-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: var(--accent);
  color: #0a1a0f;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.home-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.home-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.home-btn-secondary:hover { background: rgba(255,255,255,0.10); transform: translateY(-1px); }

.home-sections { padding: 0 20px; }

.home-section-heading {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 40px;
}

.home-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.home-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-accent, #4cff90) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.home-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.14); }
.home-card:hover::before { opacity: 0.05; }

.home-card-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.home-card-body {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-card-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-card-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--card-accent, var(--accent));
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 20px;
  min-width: 28px;
  text-align: center;
}

.home-collection-cta {
  margin: 0 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  text-align: center;
}

.home-cta-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .home-hero { padding: 40px 16px 36px; }
  .home-logo-mark { font-size: 40px; }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .home-sections, .home-collection-cta { padding: 0 12px; }
  .home-collection-cta { margin: 0 12px; }
}

