/* ============================================
   FINDY MX — Sistema de Diseño Principal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================
   1. VARIABLES CSS — TEMA OSCURO (default)
   ============================================ */
:root {
  /* Colores base (Secondary Palette 900/950 - Verde Profundo) */
  --bg-primary:       #252525;
  --bg-secondary:     #33332E;
  --bg-card:          rgba(51, 51, 46, 0.4);
  --bg-card-hover:    rgba(72, 71, 61, 0.6);
  --bg-sidebar:       rgba(37, 37, 37, 0.85);
  --bg-topbar:        rgba(37, 37, 37, 0.85);
  --bg-filters:       rgba(51, 51, 46, 0.75);
  --bg-input:         rgba(255, 255, 255, 0.05);
  --bg-overlay:       rgba(37, 37, 37, 0.8);

  /* Colores de marca */
  --accent-primary:   #B1885E; /* Terracota 500 */
  --accent-hover:     #A47652; /* Terracota 600 */
  --accent-secondary: #AC8C46; /* Dorado Terroso 500 */
  --accent-gold:      #AC8C46;
  --accent-green:     #2dca73; /* Se mantiene para estados de éxito (badges) */

  /* Texto Orgánico (HSLA para Glassmorphism) */
  --text-primary:     rgba(247, 247, 246, 0.95); /* Secondary 50 */
  --text-secondary:   rgba(230, 229, 225, 0.75); /* Secondary 100 */
  --text-muted:       rgba(204, 202, 195, 0.5); /* Secondary 200 */
  --text-accent:      var(--accent-primary);

  /* Bordes */
  --border-color:     rgba(255, 255, 255, 0.08);
  --border-active:    var(--accent-primary);
  --border-subtle:    rgba(255, 255, 255, 0.03);

  /* Sombras y Glows Magnéticos */
  --shadow-card:      0 8px 32px rgba(37, 37, 37, 0.6);
  --shadow-card-hover:0 12px 48px rgba(37, 37, 37, 0.8), 0 0 20px rgba(177, 136, 94, 0.15);
  --shadow-sidebar:   4px 0 24px rgba(0, 0, 0, 0.5);
  --shadow-glow:      0 0 24px rgba(177, 136, 94, 0.3);

  /* Dimensiones del layout */
  --sidebar-width:    220px;
  --sidebar-collapsed:64px;
  --topbar-height:    56px;
  --filter-panel:     200px;
  --border-radius:    10px;
  --border-radius-sm: 6px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Transiciones Premium (Curvas Customizadas) */
  --transition:       all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow:  all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce:all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Tipografía */
  --font-primary:     'Outfit', sans-serif;
  --font-secondary:   'Inter', sans-serif;
  --font-size-xs:     11px;
  --font-size-sm:     13px;
  --font-size-base:   14px;
  --font-size-md:     16px;
  --font-size-lg:     20px;
  --font-size-xl:     28px;
  --font-size-xxl:    40px;
}

/* ============================================
   2. TEMA CLARO
   ============================================ */
body.light-mode {
  /* Modo Claro usando Secondary 50 y 100 */
  --bg-primary:       #F7F7F6;
  --bg-secondary:     #E6E5E1;
  --bg-card:          rgba(255, 255, 255, 0.85);
  --bg-card-hover:    rgba(255, 255, 255, 1);
  --bg-sidebar:       rgba(247, 247, 246, 0.85);
  --bg-topbar:        rgba(247, 247, 246, 0.85);
  --bg-filters:       rgba(230, 229, 225, 0.85);
  --bg-input:         rgba(0, 0, 0, 0.04);
  --bg-overlay:       rgba(204, 202, 195, 0.6);

  --text-primary:     #33332E; /* Secondary 900 */
  --text-secondary:   #57564A; /* Secondary 600 */
  --text-muted:       #898778; /* Secondary 400 */

  --border-color:     rgba(0, 0, 0, 0.06);
  --border-subtle:    rgba(0, 0, 0, 0.03);

  --shadow-card:      0 8px 32px rgba(87, 86, 74, 0.08);
  --shadow-card-hover:0 12px 48px rgba(87, 86, 74, 0.15), 0 0 20px rgba(177, 136, 94, 0.1);
}

/* ============================================
   3. RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip; /* Permite que position: sticky funcione en Chrome/Safari */
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ══════════ AMBIENT GLOW (Premium Feel) ══════════ */
@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.15; }
  33% { transform: translate(5%, 8%) scale(1.05) rotate(5deg); opacity: 0.18; }
  66% { transform: translate(-5%, -4%) scale(0.95) rotate(-5deg); opacity: 0.15; }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.15; }
}

@keyframes ambientFloatReverse {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.12; }
  33% { transform: translate(-6%, -5%) scale(1.05) rotate(-5deg); opacity: 0.15; }
  66% { transform: translate(5%, 8%) scale(0.95) rotate(5deg); opacity: 0.12; }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.12; }
}

/* Base mesh gradient setup */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(140px); /* Máxima suavidad */
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen; /* Equilibrio de color puro */
}

/* Onda Superior (Terracota) */
body::before {
  top: -20vh;
  left: -10vw;
  width: 70vw;
  height: 70vw;
  min-width: 600px;
  min-height: 600px;
  background: radial-gradient(circle, rgba(177,136,94,1) 0%, rgba(177,136,94,0) 70%);
  animation: ambientFloat 20s infinite ease-in-out;
}

/* Onda Inferior (Dorado Terroso) */
body::after {
  bottom: -20vh;
  right: -10vw;
  width: 80vw;
  height: 80vw;
  min-width: 800px;
  min-height: 800px;
  background: radial-gradient(circle, rgba(172,140,70,1) 0%, rgba(172,140,70,0) 70%);
  animation: ambientFloatReverse 25s infinite ease-in-out;
}


/* ══════════ ENTRY ANIMATIONS & PAGE TRANSITIONS ══════════ */
body {
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-transition-exit {
  opacity: 0;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-up-enter {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ══════════ SCROLL SNAP CLASSES ══════════ */
.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  outline: none;
}

input, select, textarea {
  font-family: var(--font-primary);
  outline: none;
}

/* ============================================
   4. LAYOUT PRINCIPAL — 3 COLUMNAS
   ============================================ */
.findy-wrapper {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--filter-panel);
  grid-template-rows: var(--topbar-height) 1fr;
  min-height: 100vh;
  background: transparent;
}

/* Topbar ocupa columnas 2-3 */
.findy-topbar {
  grid-column: 2 / 4;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Sidebar ocupa filas 1-2 */
.findy-wrapper {
  transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.findy-sidebar {
  grid-column: 1;
  grid-row: 1 / 3;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  z-index: 200;
  align-self: start; /* Mantiene el menú perfectamente fijo sin ser afectado por el scroll general */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Área de contenido principal */
.findy-main {
  grid-column: 2;
  grid-row: 2;
  overflow-y: auto;
  min-height: calc(100vh - var(--topbar-height));
}

/* Panel de filtros derecho */
.findy-filters {
  grid-column: 3;
  grid-row: 2;
  background: var(--bg-filters);
  border-left: 1px solid var(--border-color);
  padding: 20px 14px;
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  scrollbar-width: thin;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ============================================
   5. TOPBAR
   ============================================ */
.topbar-location {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.topbar-location:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.topbar-location svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.topbar-search {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.topbar-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: var(--transition);
}

.topbar-search input::placeholder {
  color: var(--text-muted);
}

.topbar-search input:focus {
  border-color: var(--accent-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(232,103,58,0.12);
}

.topbar-search .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-login {
  padding: 7px 16px;
  background: var(--accent-primary);
  color: #fff;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-login:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-register {
  padding: 7px 16px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: var(--transition);
}

.btn-register:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.topbar-avatar:hover {
  border-color: var(--accent-primary);
}

.topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   6. SIDEBAR
   ============================================ */
.sidebar-logo {
  padding: 20px 16px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.sidebar-logo-text {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.sidebar-logo-text span {
  color: var(--accent-primary);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.sidebar-section-label {
  padding: 10px 16px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-bounce);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 2px;
  border: 1px solid transparent;
}

.sidebar-nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  transform: translateY(-2px);
  border-color: var(--border-color);
  box-shadow: 0 4px 12px hsla(0,0%,0%,0.1);
}

.sidebar-nav-item.active {
  color: var(--text-primary);
  background: linear-gradient(135deg, hsla(15, 80%, 57%, 0.12) 0%, transparent 100%);
  border-color: hsla(15, 80%, 57%, 0.1);
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent-primary);
  border-radius: 0 3px 3px 0;
  box-shadow: var(--shadow-glow);
}

.sidebar-nav-item.active .nav-icon {
  color: var(--accent-primary);
  filter: drop-shadow(0 0 4px hsla(15, 80%, 57%, 0.4));
  transform: scale(1.1);
}

.sidebar-nav-item .nav-badge {
  margin-left: auto;
  background: var(--accent-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-glow);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: var(--transition-bounce);
}

.sidebar-nav-item:hover .nav-icon {
  color: var(--accent-primary);
  transform: scale(1.1);
}

/* Sidebar footer */
.sidebar-footer {
  padding: 14px 16px 48px; /* Aumentado para subir las redes y el switch */
  border-top: 1px solid var(--border-subtle);
}

.sidebar-social {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar-social a {
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.sidebar-social a:hover {
  color: var(--accent-primary);
}

.sidebar-toggle-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-color);
  border-radius: 22px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background: #fff;
}

/* ============================================
   7. HERO BANNER
   ============================================ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.3) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
}

.hero-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  max-width: 420px;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.75);
  max-width: 380px;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ============================================
   8. TABS DE CATEGORÍA
   ============================================ */
.section-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  padding: 8px 18px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  bottom: -1px;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.tab-btn.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-color: var(--border-color);
  border-bottom-color: var(--bg-secondary);
}

/* ============================================
   9. CARDS GRID
   ============================================ */
.cards-section {
  padding: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-slow);
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cards-grid .card:nth-child(1) { animation-delay: 0.05s; }
.cards-grid .card:nth-child(2) { animation-delay: 0.1s; }
.cards-grid .card:nth-child(3) { animation-delay: 0.15s; }
.cards-grid .card:nth-child(4) { animation-delay: 0.2s; }
.cards-grid .card:nth-child(5) { animation-delay: 0.25s; }
.cards-grid .card:nth-child(6) { animation-delay: 0.3s; }
.cards-grid .card:nth-child(7) { animation-delay: 0.35s; }
.cards-grid .card:nth-child(8) { animation-delay: 0.4s; }
.cards-grid .card:nth-child(n+9) { animation-delay: 0.45s; }

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

.card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 2;
}

.badge-nuevo {
  background: var(--accent-primary);
  color: #fff;
}

.badge-destacado {
  background: var(--accent-secondary);
  color: #000;
}

.card-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  transition: var(--transition);
  z-index: 2;
  backdrop-filter: blur(4px);
}

.card-wishlist:hover {
  background: var(--accent-primary);
  transform: scale(1.1);
}

.card-body {
  padding: 12px 14px;
}

.card-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.card-desc {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   11.5. SIDEBAR COLAPSADO (DESKTOP)
   ============================================ */
.findy-wrapper.sidebar-collapsed {
  --sidebar-width: var(--sidebar-collapsed);
}
.findy-wrapper.sidebar-collapsed .sidebar-logo-text { display: none; }
.findy-wrapper.sidebar-collapsed .sidebar-nav-item { justify-content: center; padding: 12px 0; }
.findy-wrapper.sidebar-collapsed .sidebar-nav-item span:not(.nav-icon) { display: none; }
.findy-wrapper.sidebar-collapsed .sidebar-footer { padding: 14px 0 24px; display: flex; flex-direction: column; align-items: center; }
.findy-wrapper.sidebar-collapsed .sidebar-social { flex-direction: column; gap: 12px; margin-bottom: 24px; }
.findy-wrapper.sidebar-collapsed .sidebar-toggle-theme span { display: none; }

/* ============================================
   12. RESPONSIVIDAD (MÓVILES Y TABLETS)
   ============================================ */
@media (max-width: 1024px) {
  .findy-wrapper {
    grid-template-columns: var(--sidebar-collapsed) 1fr var(--filter-panel);
  }
  .sidebar-logo-text { display: none; }
  .sidebar-nav-item { justify-content: center; padding: 12px 0; }
  .sidebar-nav-item span:not(.nav-icon) { display: none; }
  .sidebar-footer { padding: 14px 0 24px; display: flex; flex-direction: column; align-items: center; }
  .sidebar-social { flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .sidebar-toggle-theme span { display: none; }
}

@media (max-width: 768px) {
  .findy-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
  }
  
  .findy-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-height);
  }
  
  .findy-main {
    margin-top: var(--topbar-height);
    flex: 1;
    overflow-x: hidden;
  }
  
  .findy-filters {
    display: none; /* Se oculta panel derecho en móvil */
  }
  
  .findy-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 500;
    transition: transform 0.3s ease;
  }
  
  .findy-sidebar.open {
    transform: translateX(280px);
  }
  
  .sidebar-logo-text { display: block; }
  .sidebar-nav-item { justify-content: flex-start; padding: 12px 16px; }
  .sidebar-nav-item span:not(.nav-icon) { display: inline-block; }
  
  .topbar-search { display: none; } /* Ocultar buscador top en móvil para simplificar, o dejar icono */
  
  /* Hero Text */
  .hero-title { font-size: 28px; }
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-color);
}

.card-author-name {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 6px;
}

.card-action-btn {
  width: 26px;
  height: 26px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
}

.card-action-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: scale(1.15) translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   10. PANEL DE FILTROS
   ============================================ */
.filters-title {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.filter-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.filter-item.active {
  background: rgba(232,103,58,0.12);
  color: var(--accent-primary);
  font-weight: 600;
}

.filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.filter-count {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 10px;
}

.filter-share {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
}

.filter-share:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.filter-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.filter-social-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  cursor: pointer;
}

.filter-social-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* ============================================
   11. UTILIDADES
   ============================================ */
.text-accent     { color: var(--accent-primary); }
.text-gold       { color: var(--accent-gold); }
.text-muted      { color: var(--text-muted); }
.text-secondary  { color: var(--text-secondary); }
.fw-bold         { font-weight: 700; }
.fw-semibold     { font-weight: 600; }
.sr-only         { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Scrollbar personalizado */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   12. ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.animate-fadeInUp {
  animation: fadeInUp 0.4s ease both;
}

.card { animation: fadeInUp 0.35s ease both; }
.cards-grid .card:nth-child(1) { animation-delay: 0.05s; }
.cards-grid .card:nth-child(2) { animation-delay: 0.10s; }
.cards-grid .card:nth-child(3) { animation-delay: 0.15s; }
.cards-grid .card:nth-child(4) { animation-delay: 0.20s; }
.cards-grid .card:nth-child(5) { animation-delay: 0.25s; }
.cards-grid .card:nth-child(6) { animation-delay: 0.30s; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--border-radius);
}

/* ============================================
   13. RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  :root { --filter-panel: 0px; }
  .findy-filters { display: none; }
  .findy-wrapper { grid-template-columns: var(--sidebar-width) 1fr; }
  .findy-topbar { grid-column: 2; }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }

  .findy-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-height) 1fr;
  }

  .findy-sidebar {
    position: fixed;
    left: -240px;
    width: 240px;
    transition: left 0.3s ease;
    z-index: 500;
  }

  .findy-sidebar.open {
    left: 0;
    box-shadow: 4px 0 40px rgba(0,0,0,0.6);
  }

  .findy-topbar {
    grid-column: 1;
  }

  .findy-main {
    grid-column: 1;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .hero-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .cards-section { padding: 12px; }
  .topbar-search { max-width: none; }
}
