/* ============================================================
   AC14 FERIA – GRIDS
   ============================================================ */

/* GRID: 6 columnas por defecto (atributo columnas="" del shortcode) */
.ac14-feria-grid {
  --ac14-feria-cols: 6;
  display: grid;
  grid-template-columns: repeat(var(--ac14-feria-cols), minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

/* ITEM */
.ac14-feria-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: ac14FeriaFadeIn 0.25s ease-in-out;
}

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

/* IMAGEN */
.ac14-feria-img {
  display: block;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.ac14-feria-img img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* Tarifa sin imagen todavía: tarjeta con el nombre */
.ac14-feria-img--vacia {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 15px 10px;
  background: #f4f4f4;
  text-align: center;
}

.ac14-feria-img--vacia span {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

/* BOTÓN EXCEL (Tarifas) */
.ac14-feria-xls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: #1d6f42;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s;
}

.ac14-feria-xls:hover {
  background: #134a2c;
}

.ac14-feria-xls-icono {
  flex-shrink: 0;
}

/* Sin Excel todavía */
.ac14-feria-xls--off {
  background: #e0e0e0;
  color: #777 !important;
  cursor: default;
}

.ac14-feria-xls--off:hover {
  background: #e0e0e0;
}

.ac14-feria-xls--off .ac14-feria-xls-icono text {
  fill: #e0e0e0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .ac14-feria-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .ac14-feria-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 480px) {
  .ac14-feria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ac14-feria-xls { font-size: 13px; padding: 8px; }
}

/* ANIMACIÓN */
@keyframes ac14FeriaFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
