/* ============ ESTILOS PARA PÁGINA DE ANUNCIOS ============ */

.anuncios-hero {
  padding: 150px 0 40px;
  position: relative;
  background: radial-gradient(800px 400px at 50% 0%, rgba(255, 140, 20, 0.06), transparent 70%);
}

.anuncios-hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.anuncios-hero-content h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  margin-bottom: 12px;
}

.anuncios-hero-content p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--gray);
  line-height: 1.7;
}

/* ============ CATEGORÍAS ============ */
.categoria-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.categoria-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
  flex: 1 0 auto;
  justify-content: center;
}

.categoria-btn i {
  font-size: 16px;
  color: currentColor;
  transition: color 0.25s ease;
}

.categoria-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.categoria-btn.active {
  color: #1a0e00;
  background: var(--grad);
  box-shadow: 0 4px 20px rgba(255, 140, 20, 0.25);
}

.categoria-btn.active i {
  color: #1a0e00;
}

.categoria-btn.active:hover {
  box-shadow: 0 6px 30px rgba(255, 140, 20, 0.35);
  transform: translateY(-1px);
}

.resultados-header {
  margin-bottom: 24px;
  text-align: right;
}

#resultCount {
  font-size: 14px;
  color: var(--gray-dim);
  font-weight: 500;
}

/* ============ ANUNCIOS GRID - SIN FONDO Y SIN BORDE ============ */
.ann-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ann-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.ann-card:hover {
  transform: translateY(-4px);
}

.ann-card .ann-media {
  height: 220px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: transparent;
  border-radius: 16px;
  margin-bottom: 16px;
}

.ann-card .ann-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.ann-card:hover .ann-media img {
  transform: scale(1.02);
}

.ann-card .ann-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ann-card .ann-date {
  font-size: 12px;
  color: var(--gray-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ann-card .ann-date i {
  font-size: 12px;
  color: var(--gray-dim);
}

.ann-card .ann-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.2s ease;
  line-height: 1.3;
}

.ann-card:hover .ann-body h3 {
  color: var(--orange);
}

.ann-card .ann-body p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ann-card .ann-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
  align-self: flex-start;
}

.ann-card .ann-link i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.ann-card .ann-link:hover {
  gap: 12px;
}

.ann-card .ann-link:hover i {
  transform: translateX(4px);
}

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray);
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 56px;
  color: var(--gray-dim);
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--gray-dim);
}

/* ============ ANIMACIONES ============ */
.ann-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

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

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

/* ============ RESPONSIVE ============ */

@media (max-width: 992px) {
  .ann-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .categoria-btn {
    padding: 10px 16px;
    font-size: 13px;
    flex: 1 1 auto;
  }
  
  .categoria-btn i {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .anuncios-hero {
    padding: 120px 0 30px;
  }
  
  .anuncios-hero-content h1 {
    font-size: 28px;
  }
  
  .categoria-nav {
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
  }
  
  .categoria-btn {
    padding: 8px 14px;
    font-size: 12px;
    gap: 6px;
    flex: 1 1 calc(50% - 4px);
  }
  
  .categoria-btn i {
    font-size: 13px;
  }
  
  .ann-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  
  .ann-card .ann-media {
    height: 160px;
  }
  
  .ann-card .ann-body h3 {
    font-size: 16px;
  }
  
  .resultados-header {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .anuncios-hero {
    padding: 100px 0 24px;
  }
  
  .anuncios-hero-content h1 {
    font-size: 24px;
  }
  
  .anuncios-hero-content p {
    font-size: 14px;
  }
  
  .categoria-btn {
    padding: 8px 12px;
    font-size: 11px;
    gap: 4px;
    flex: 1 1 calc(50% - 4px);
  }
  
  .categoria-btn i {
    font-size: 12px;
  }
  
  .ann-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .ann-card .ann-media {
    height: 180px;
  }
  
  .ann-card .ann-body h3 {
    font-size: 17px;
  }
  
  .ann-card .ann-body p {
    font-size: 14px;
  }
  
  #resultCount {
    font-size: 13px;
  }
  
  .empty-state i {
    font-size: 40px;
  }
  
  .empty-state h3 {
    font-size: 18px;
  }
}