@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap");

:root {
  --primary-color: #35adff;
  --secondary-color: #1050a1;
  --third-color: #243c78;
  --fourth-color: #29a8e1;
  --fifth-color: #28ace2;
  --text-color: #333;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Estilos del filtro */
.filtro-container {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 25px;
  margin-bottom: 15px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.filtro-mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.filtro-title {
  font-weight: 600;
  font-size: 18px;
  color: #333;
}

.filtro-toggle {
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filtro-toggle:hover {
  background: var(--primary-color);
}

.categorias-container {
  transition: max-height 0.3s ease-out;
}

.categoria-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.categoria-chip {
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.categoria-chip:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.categoria-chip.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.result-count {
  text-align: center;
  margin-top: 15px;
  color: #666;
  font-style: italic;
  font-weight: 500;
}

/* Estilos responsive para filtros */
@media (max-width: 768px) {
  .filtro-mobile-header {
    display: flex;
  }

  .categorias-container {
    max-height: 0;
    overflow: hidden;
  }

  .categorias-container.active {
    max-height: 500px;
  }

  .categoria-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .categoria-chip {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
  }
}

/* Estilos de la sección de proveedores */
.providers-section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.provider-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.provider-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.provider-img {
  height: 180px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.provider-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.provider-card:hover .provider-img img {
  transform: scale(1.05);
}

.provider-info {
  padding: 25px;
}

.provider-categories {
  margin-bottom: 15px;
}

.provider-category {
  display: inline-block;
  background: #edecec;
  color: #000;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

.provider-info h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--secondary-color);
  font-weight: 700;
}

.provider-info h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.provider-info h3 a:hover {
  color: var(--primary-color);
}

.provider-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.provider-contact {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
}

.provider-contact i {
  margin-right: 8px;
  color: var(--fifth-color);
}

/* Animación de carga */
.provider-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mensaje cuando no hay resultados */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
  display: none;
}

.no-results.show {
  display: block;
}

.no-results i {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 20px;
  display: block;
}
