/**
 * El Mundo del Frío — CSS base mínimo (Fase 1)
 * Sin imponer diseño final. Utilidades para futuros bloques dinámicos.
 */

.emf-skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 37%, rgba(255, 255, 255, 0.04) 63%);
  background-size: 400% 100%;
  animation: emf-shimmer 1.4s ease infinite;
  border-radius: 0.75rem;
  min-height: 1rem;
}

@keyframes emf-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.emf-hidden { display: none !important; }

.emf-grid {
  display: grid;
  gap: 1rem;
}

.emf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.emf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .emf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emf-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .emf-grid-4,
  .emf-grid-3,
  .emf-grid-2 { grid-template-columns: 1fr; }
}

.emf-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.emf-card__body { padding: 1rem; }

.emf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.emf-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.emf-empty {
  color: #94a3b8;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.emf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.emf-btn--primary {
  background: #005dff;
  color: #fff;
}

.emf-btn--whatsapp {
  background: #059669;
  color: #fff;
}

.emf-search-bar input:focus,
.emf-search-bar select:focus {
  border-color: rgba(0, 210, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12);
}

.emf-search-bar input::placeholder {
  color: #64748b;
}

.emf-product-search-section .emf-search-results:empty {
  display: none;
}

.emf-tech-toolbar input:focus,
.emf-tech-toolbar select:focus {
  border-color: rgba(0, 210, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12);
}

.emf-tech-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.emf-tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.25);
}

.emf-tech-directory-section .emf-tech-results:empty {
  display: none;
}
