/* ========================================================
   TRUEQUE BOGOTÁ - ESTILOS PREMIUM (NO BOOTSTRAP)
   Diseño de Alta Fidelidad, Microinteracciones y Responsive
   ======================================================== */

:root {
  --primary: #0d9488;          /* Esmeralda colombiano profundo */
  --primary-hover: #0f766e;
  --primary-light: #ccfbf1;
  --primary-glow: rgba(13, 148, 136, 0.25);

  --secondary: #6366f1;        /* Índigo moderno */
  --secondary-hover: #4f46e5;
  --secondary-light: #e0e7ff;

  --accent-wa: #25d366;         /* Verde WhatsApp oficial */
  --accent-wa-hover: #1eb855;
  --accent-wa-glow: rgba(37, 211, 102, 0.35);

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --border: #e2e8f0;
  --border-focus: #0d9488;

  --offer-bg: #ecfdf5;
  --offer-border: #a7f3d0;
  --offer-text: #065f46;

  --seek-bg: #eef2ff;
  --seek-border: #c7d2fe;
  --seek-text: #3730a3;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================
   BANNER DE AVISO LEGAL Y SEGURIDAD OBLIGATORIA
   ======================================================== */
.solidary-warning-banner {
  background: #fff1f2;
  border: 2px solid #e11d48;
  border-left: 8px solid #be123c;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.warning-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffe4e6;
  color: #be123c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid #fecdd3;
}

.warning-content {
  flex: 1;
}

.warning-title-uppercase {
  font-size: 0.95rem;
  font-weight: 900;
  color: #9f1239;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.warning-badge-pill {
  background: #be123c;
  color: #ffffff;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.warning-clauses {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: #4c0519;
}

.warning-clauses li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  line-height: 1.45;
}

.warning-clauses li strong {
  color: #881337;
  font-weight: 800;
}

/* ========================================================
   BOTÓN Y COMPONENTES DE DONACIÓN VOLUNTARIA (NEQUI / BRE-B)
   ======================================================== */
.btn-donate-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
  transition: var(--transition);
}

.btn-donate-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.5);
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  color: #ffffff;
}

.donation-box-footer {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1.5px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 2rem;
  align-items: center;
}

.donation-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.donation-pill-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: var(--transition);
}

.donation-pill-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(244, 63, 94, 0.5);
}

.donation-badge-nequi {
  color: #ff3366;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.donation-badge-breb {
  color: #38bdf8;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.donation-number-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.donation-number-text {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.btn-copy-num {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-num:hover {
  background: #f43f5e;
  color: #ffffff;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================================
   BARRA SUPERIOR Y HEADER
   ======================================================== */
.top-ticker {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-ticker-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ticker-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f8fafc;
}

.badge-bogota {
  background: rgba(13, 148, 136, 0.25);
  color: #2dd4bf;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.ticker-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ticker-links span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Header Principal */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================================
   SISTEMA DE PESTAÑAS (TABS)
   ======================================================== */
.nav-tabs-menu {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  gap: 0.25rem;
  border: 1px solid var(--border);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.6);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-btn .tab-badge {
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.btn-post-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
}

.btn-post-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.4);
  color: #ffffff;
}

/* ========================================================
   HERO BANNER SOLIDARIO
   ======================================================== */
.hero-solidario {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0d9488 150%);
  color: #ffffff;
  padding: 3.5rem 0 3.2rem;
  position: relative;
  overflow: hidden;
}

.hero-solidario::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-solidario::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: #5eead4;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #2dd4bf 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 1.8rem;
  max-width: 580px;
  line-height: 1.6;
}

.hero-stats-row {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.hero-stat-card {
  border-left: 3px solid var(--primary);
  padding-left: 0.85rem;
}

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.hero-stat-lbl {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card-preview {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.35);
}

.preview-badge-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
}

.preview-tag-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #34d399;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.swap-formula-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.swap-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.swap-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.swap-step-icon.offer { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.swap-step-icon.seek { background: rgba(99, 102, 241, 0.25); color: #a5b4fc; }

.swap-step-text strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.swap-step-text p {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
}

.swap-arrow-center {
  text-align: center;
  color: #38bdf8;
  font-size: 1.1rem;
  margin: -0.2rem 0;
}

/* ========================================================
   CONTENEDOR DE PESTAÑAS (TAB CONTENT)
   ======================================================== */
.main-content {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   BARRA DE FILTROS Y BÚSQUEDA EN VIVO
   ======================================================== */
.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.filter-group {
  position: relative;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control.has-icon {
  padding-left: 2.75rem;
}

.btn-filter-reset {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  height: 48px;
}

.btn-filter-reset:hover {
  background: var(--border);
  color: var(--text-dark);
}

/* ========================================================
   GRILLA DE TRUEQUES (CARDS PREMIUM)
   ======================================================== */
.trueques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.8rem;
}

.trueque-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.trueque-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(13, 148, 136, 0.4);
}

.card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.trueque-card:hover .card-media img {
  transform: scale(1.05);
}

.card-badges-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.badge-tipo {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-featured {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-loc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.card-meta-loc svg {
  color: var(--primary);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* El bloque doble: LO QUE OFRECE vs LO QUE BUSCA */
.swap-dual-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.swap-side {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
}

.swap-side.offer {
  background: var(--offer-bg);
  border: 1.5px solid var(--offer-border);
}

.swap-side.seek {
  background: var(--seek-bg);
  border: 1.5px solid var(--seek-border);
}

.swap-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.swap-side-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.swap-side.offer .swap-side-label { color: var(--offer-text); }
.swap-side.seek .swap-side-label { color: var(--seek-text); }

.swap-side-content {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.card-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.user-details {
  flex: 1;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  line-height: 1.2;
}

.user-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Botones de acción del Card */
.card-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.btn-wa-direct {
  background: var(--accent-wa);
  color: #ffffff;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px var(--accent-wa-glow);
}

.btn-wa-direct:hover {
  background: var(--accent-wa-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.btn-card-details {
  background: var(--bg-alt);
  color: var(--text-dark);
  border: 1px solid var(--border);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-details:hover {
  background: var(--border);
}

/* ========================================================
   PESTAÑA DE PUBLICAR TRUEQUE (FORMULARIO)
   ======================================================== */
.publish-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.form-header-box {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.form-header-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.publish-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.form-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.8rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--bg-alt);
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.field-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.field-label .req {
  color: #ef4444;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dual-offer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.btn-submit-publish {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border: none;
  padding: 1.1rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
  margin-top: 1rem;
}

.btn-submit-publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
}

/* ========================================================
   PESTAÑA DE MATCH INTELIGENTE
   ======================================================== */
.match-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.match-selector-box {
  max-width: 600px;
  margin: 1.8rem auto 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.match-select {
  flex: 1;
  background: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-do-match {
  background: #22c55e;
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.btn-do-match:hover {
  background: #16a34a;
}

/* ========================================================
   PESTAÑA CÓMO FUNCIONA & BANCO DE TIEMPO
   ======================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.rules-alert {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: #92400e;
}

/* ========================================================
   MODAL DE DETALLES
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(15px) scale(0.97);
  transition: transform 0.25s ease;
  position: relative;
}

.modal-backdrop.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  border: none;
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(15, 23, 42, 0.16);
}

/* ========================================================
   FOOTER PROFESIONAL
   ======================================================== */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.footer-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: #2dd4bf;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.db-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.db-status-pill.mysql {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.db-status-pill.fallback {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ========================================================
   ALERTAS Y NOTIFICACIONES FLOTANTES
   ======================================================== */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-dark);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  animation: slideUp 0.3s ease;
  border-left: 4px solid var(--accent-wa);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-wrapper { flex-direction: column; align-items: stretch; }
  .nav-tabs-menu { overflow-x: auto; max-width: 100%; }
  .filter-grid { grid-template-columns: 1fr; }
  .trueques-grid { grid-template-columns: 1fr; }
  .form-row-2, .dual-offer-container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.85rem; }
}
