/* ═══ ARCHIVE TEMAS ═══ */

.at-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.at-desc {
  max-width: 600px;
}

/* Grid */
.at-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .at-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
  .at-grid { grid-template-columns: 1fr; max-width: 100%; }
}

/* Card */
.at-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Thumbnail */
.at-card-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.at-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay "Agregado" */
.at-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  z-index: 2;
  pointer-events: none;
}

/* Categoría */
.at-card-cat {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* Stats */
.at-card-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
}

.at-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.at-stat-row span:last-child {
  font-weight: 600;
  color: var(--color-text);
}

/* Actions */
.at-card-actions {
  display: flex;
  gap: 10px;
}

.at-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.2s;
  font-family: var(--fuente-principal);
}

.at-btn:hover {
  opacity: 0.85;
}

.at-btn-outline {
  background: transparent;
  border: var(--border-button);
  color: var(--color-principal);
}

.at-btn-primary {
  background: var(--color-principal);
  color: #1a1a1a;
}

.at-btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
