/* Estilos para el perfil del proveedor */

.provider-profile-container {
  min-height: 100vh;
  background: var(--light-gray);
  padding: 2rem 0;
}

.provider-profile-header {
  background: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(244, 180, 0, 0.2);
}

.provider-profile-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.provider-profile-avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary), #e6a800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 10px 25px rgba(244, 180, 0, 0.3);
}

.provider-profile-info h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.provider-profile-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.provider-rating-large {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-stars-large {
  color: #ffc107;
  font-size: 1.2rem;
}

.rating-text-large {
  color: var(--secondary-text);
  font-size: 1rem;
  font-weight: 500;
}

.provider-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-text);
  font-size: 1rem;
}

.provider-experience {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-text);
  font-size: 1rem;
}

.provider-actions-header {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.provider-btn-large {
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.provider-btn-large.primary {
  background: var(--primary);
  color: white;
  border: none;
}

.provider-btn-large.primary:hover {
  background: #e6a800;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(244, 180, 0, 0.3);
  color: white;
}

.provider-btn-large.secondary {
  background: var(--light-gray);
  color: var(--dark-gray);
  border: 2px solid #e1e5e9;
}

.provider-btn-large.secondary:hover {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
}

.provider-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.provider-main-content {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.provider-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.provider-widget {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-icon {
  color: var(--primary);
  font-size: 1.1rem;
}

.provider-description {
  line-height: 1.8;
  color: var(--dark-gray);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.description-placeholder {
  color: var(--secondary-text);
  font-style: italic;
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  background: white;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(244, 180, 0, 0.2);
}

.service-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-name {
  font-weight: 600;
  color: var(--dark-gray);
  font-size: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 12px;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--secondary-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.reviews-list {
  list-style: none;
  padding: 0;
}

.review-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child {
  border-bottom: none;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #e6a800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

.review-content h4 {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
}

.review-content p {
  font-size: 0.8rem;
  color: var(--secondary-text);
  margin-bottom: 0.5rem;
}

.review-rating {
  color: #ffc107;
  font-size: 0.8rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  padding: 0.75rem 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.back-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(244, 180, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .provider-profile-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .provider-profile-meta {
    justify-content: center;
  }
  
  .provider-content {
    grid-template-columns: 1fr;
  }
  
  .provider-profile-info h1 {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .provider-profile-container {
    padding: 1rem 0;
  }
  
  .provider-profile-header {
    padding: 2rem 0;
  }
  
  .provider-profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .provider-main-content,
  .provider-widget {
    padding: 1rem;
  }
  
  .provider-actions-header {
    flex-direction: column;
  }
  
  .provider-btn-large {
    justify-content: center;
  }
}

/* Estilos para la lista de servicios */
.services-list {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.service-row:hover {
  background: #f8f9fa;
}

.service-row:last-child {
  border-bottom: none;
}

.service-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.service-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--dark-gray);
  min-width: 200px;
}

.service-name i {
  color: var(--primary);
  font-size: 1rem;
}

.service-name i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.service-name h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin: 0 0 0.5rem 0;
}

.category-tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #bbdefb;
}

.service-category {
  min-width: 120px;
}

.service-price {
  min-width: 100px;
}

.price {
  font-weight: 600;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.price-consult {
  color: var(--secondary-text);
  font-style: italic;
  font-size: 0.85rem;
}

.service-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 150px;
}

.status-text {
  font-size: 0.85rem;
  font-weight: 500;
}

.status-text i {
  margin-right: 0.25rem;
}

.status-text:has(i.fa-check-circle) {
  color: #28a745;
}

.status-text:has(i.fa-times-circle) {
  color: #dc3545;
}

/* Switch toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  margin-right: 0.5rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #28a745;
}

.switch input:checked + .slider:before {
  transform: translateX(18px);
}

.service-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.action-link {
  padding: 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.action-link.edit {
  background: #e3f2fd;
  color: #1976d2;
}

.action-link.edit:hover {
  background: #bbdefb;
  color: #1565c0;
}

.action-link.delete {
  background: #ffebee;
  color: #d32f2f;
}

.action-link.delete:hover {
  background: #ffcdd2;
  color: #c62828;
}

/* Responsive para la lista de servicios */
@media (max-width: 768px) {
  .service-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }
  
  .service-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }
  
  .service-name {
    min-width: auto;
  }
  
  .service-category {
    min-width: auto;
  }
  
  .service-price {
    min-width: auto;
  }
  
  .service-status {
    min-width: auto;
  }
  
  .service-actions {
    align-self: flex-end;
  }
} 