/* Estilos para cards */
.card {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__header {
  margin-bottom: var(--space-md);
}

.card__title {
  margin: 0;
  font-size: 1.125rem;
}

.card__body {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card__footer {
  margin-top: var(--space-md);
}

/* .category-card / .category-card__icon sizing (padding, min-height, width,
   aspect-ratio, text alignment) is fully (re)defined in home.css for the
   horizontal-scroll layout. Only the parts home.css doesn't touch — cursor,
   focus-visible outline and the hover ring — stay here.
   This file used to ALSO define .category-card__icon img/svg (max-width/
   max-height: 84%, on top of home.css's 100%/100%) plus two @media queries
   forcing the icon box to a fixed 56px/50px width below 767px/479px — both
   fighting the single home.css rule that's supposed to be authoritative.
   Removed rather than left "just in case", per "una sola regla común". */
.category-card {
  cursor: pointer;
}

.category-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.category-card__icon {
  box-shadow: inset 0 0 0 1px rgba(19, 41, 75, 0.05);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.category-card:hover .category-card__icon {
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px rgba(19, 41, 75, 0.08);
}

.category-card__icon--code {
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

.category-card__icon::before {
  display: none;
}

.category-card__title {
  margin: 0;
  font-size: 1rem;
}

.category-card__subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.product-card__image--placeholder {
  display: grid;
  align-items: center;
  justify-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(27, 63, 160, 0.08), rgba(249, 115, 22, 0.08));
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding: var(--space-md);
  text-align: center;
  gap: var(--space-sm);
  min-height: 160px;
}

.product-card__placeholder-text {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* .product-card__image itself is fully (re)defined in home.css, including
   its explicit height — this file previously also set min-height:200px and
   object-fit:cover here, silently overriding home.css's shorter, non-cropping
   height on every page load. Nothing here now to avoid that contradiction. */

.product-card__info {
  display: grid;
  gap: 0.5rem;
}

.product-card__meta {
  display: grid;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.product-card__actions {
  display: grid;
  gap: var(--space-sm);
}

.product-card__actions .button {
  width: 100%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.status-badge--success {
  background: var(--color-success);
}

.status-badge--warning {
  background: var(--color-warning);
}

.status-badge--danger {
  background: var(--color-danger);
}

.status-badge--info {
  background: var(--color-info);
}
