/* ================== Ajustes DIGI21: Productos con forma consistente ================== */

/* GRID contenedor (no invasivo: sólo si no existe ya) */
.productos.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Tarjeta */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  overflow: hidden;
  height: 100%;
  transition: transform .25s ease;
}
.product-card:hover { transform: translateY(-4px); }

/* Imagen con proporción fija */
.product-card .media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f7fb;
}
.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cuerpo flexible: el CTA siempre abajo */
.product-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  text-align: center;
}

/* Título: máx 2 líneas */
.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b5caa;
  margin: 0 0 .5rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Descripción: máx 4 líneas para mantener altura uniforme */
.product-card p {
  font-size: 1rem;
  line-height: 1.55;
  color: #333;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botones al pie */
.product-card .actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
}

@media (max-width: 768px){
  .productos.container { gap: 16px; }
  .product-card h3 { font-size: 1.15rem; }
  .product-card p { font-size: .97rem; -webkit-line-clamp: 5; } /* un pelín más de texto en móvil */
}
/* ================== Ajustes DIGI21: Productos con forma consistente ================== */

/* GRID contenedor (no invasivo: sólo si no existe ya) */
.productos.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Tarjeta */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  overflow: hidden;
  height: 100%;
  transition: transform .25s ease;
}
.product-card:hover { transform: translateY(-4px); }

/* Imagen con proporción fija */
.product-card .media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f7fb;
}
.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cuerpo flexible: el CTA siempre abajo */
.product-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  text-align: center;
}

/* Título: máx 2 líneas */
.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b5caa;
  margin: 0 0 .5rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Descripción: máx 4 líneas para mantener altura uniforme */
.product-card p {
  font-size: 1rem;
  line-height: 1.55;
  color: #333;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botones al pie */
.product-card .actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
}

@media (max-width: 768px){
  .productos.container { gap: 16px; }
  .product-card h3 { font-size: 1.15rem; }
  .product-card p { font-size: .97rem; -webkit-line-clamp: 5; } /* un pelín más de texto en móvil */
}
/* Botones de acciones en productos */
.product-card .actions .btn {
  background-color: #e9f2ff;
  border: 1px solid #0b5caa;
  color: #0b5caa;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.25s ease;
}

.product-card .actions .btn.primary {
  background-color: #0b5caa;
  color: #fff;
}

.product-card .actions .btn:hover {
  background-color: #0b5caa;
  color: #fff;
  transform: translateY(-2px);
}

