/* hardware-catalog.css */

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

.jarv-hardware-section {
  --hw-card: #ffffff;
  --hw-text: #0b0d12;
  --hw-muted: #5b6273;
  --hw-brand: #f3c37d;
  --hw-brand-ink: #1f1300;
  --hw-radius: 20px;
  --hw-shadow: 0 12px 32px rgba(15,18,25,.12);
  
  font-family: 'Inter', system-ui, sans-serif;
  /* background: #f6f7fb; /* Fondo de la sección */
  color: var(--hw-text);
  width: 100%;
  padding: 40px 0;
}

.hw-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
}

.hw-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  justify-content: center;
  justify-items: center;
}

/* CARDS */
.hw-card {
  background: var(--hw-card);
  border-radius: var(--hw-radius);
  box-shadow: var(--hw-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #eef0f4;
  transition: transform .2s ease, box-shadow .2s ease;
  width: 100%;
  max-width: 380px;
  text-decoration: none; /* Por si es un enlace */
}

.hw-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(15,18,25,.18);
}

.hw-card--disabled {
  opacity: 0.55;
  filter: grayscale(0.4);
  cursor: not-allowed !important;
}

.hw-card__media {
  aspect-ratio: 16/9;
  background: #f6f7fb;
  overflow: hidden;
}

.hw-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hw-card__media--contain img {
    object-fit: contain !important;
    background-color: #ffffff;
    padding: 15px;
}

.hw-card:hover .hw-card__media img {
    transform: scale(1.05);
}

.hw-card__body {
  padding: 24px;
  flex: 1; /* Para que las tarjetas tengan altura igual */
}

.hw-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #0b0d12;
  font-weight: 700;
}

.hw-card p {
  margin: 0 0 14px;
  color: #3e4454;
  line-height: 1.5;
  font-size: 15px;
}

/* TAGS */
.hw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hw-tag {
  font-size: 12px;
  background: #f1f5f9;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
  color: #5b6273;
  font-weight: 600;
}

/* ACTIONS */
.hw-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 24px 24px;
}

/* BOTONES */
.hw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none !important;
  font-weight: 600;
  height: 48px;
  transition: .25s ease;
  font-size: 15px;
  flex: 1;
}

.hw-btn--primary {
  background: var(--hw-brand);
  border-color: transparent;
  color: var(--hw-brand-ink);
}

.hw-btn--primary:hover {
  background: #8ccaff;
  color: #000323;
  box-shadow: 0 5px 15px rgba(140,202,255,.3);
}

.hw-btn--disabled {
  background: #d1d5db !important;
  border-color: #c5c9d1 !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* BOTÓN PRECIO */
.hw-btn--price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 5px 16px;
  border-radius: 12px;
  background: #8ccaff;
  border: 1px solid transparent;
  color: #000323;
  text-decoration: none !important;
  height: 48px;
  min-width: 110px;
  transition: .25s ease;
  line-height: 1.1;
}

.hw-btn--price span {
  font-size: 16px;
  font-weight: 700;
}

.hw-btn--price small {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 10px;
  opacity: 0.8;
}

.hw-btn--price:hover {
  background: var(--hw-brand);
  color: var(--hw-brand-ink);
  box-shadow: 0 5px 15px rgba(243,195,125,.45);
}