/* Estilos para las tarjetas informativas - Frontend */
.ncicw-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
  padding: 0;
}

.ncicw-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e5e7eb;
  position: relative;
  padding: 0;
  margin: 0;
}

.ncicw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ncicw-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #1f2937;
  position: relative;
  display: block;
  line-height: 0;
  font-size: 0;
  margin: 0;
  padding: 0;
}

.ncicw-card > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.ncicw-card-image::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #7c3aed;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  display: none; /* Puedes mostrar fecha si lo necesitas */
}

.ncicw-card-image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease, filter 0.3s ease;
  display: block;
  filter: brightness(0.95);
  margin: 0;
  padding: 0;
  vertical-align: top;
}

.ncicw-card:hover .ncicw-card-image img {
  transform: scale(1.08);
  filter: brightness(1);
}

.ncicw-card-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
  background: #ffffff;
}

.ncicw-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ncicw-card-description {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  flex-grow: 1;
}

.ncicw-card-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  color: #16a34a;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.2s ease, color 0.2s ease;
  align-self: flex-start;
  margin-top: auto;
}

.ncicw-card-button:hover {
  color: #15803d;
  gap: 10px;
}

.ncicw-card-button svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ncicw-card-button:hover svg {
  transform: translateX(2px);
}

/* Responsivo */
@media (max-width: 768px) {
  .ncicw-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ncicw-card-image {
    height: 180px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ncicw-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Variantes de color para el botón */
.ncicw-card-button.blue {
  background: #3b82f6;
}

.ncicw-card-button.blue:hover {
  background: #2563eb;
}

.ncicw-card-button.green {
  background: #10b981;
}

.ncicw-card-button.green:hover {
  background: #059669;
}
