:root {
  --primary: #D91B5C;
  --primary-dark: #B01548;
  --primary-light: #FF2D6F;
  --secondary: #6120A8;
  --background: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #E0E0E0;
  --card-gradient: linear-gradient(135deg, rgba(180, 100, 220, 0.03) 0%, rgba(220, 100, 180, 0.03) 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
}

/* Hero Section */
.services-hero {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #e61c72 0%, #ff4d94 100%);
  margin-bottom: 0;
}

.services-hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  z-index: 1;
}

.services-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease forwards;
}

.services-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease forwards;
}

.services-hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeInUp 1s ease 0.2s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Hero */
@media (max-width: 768px) {
  .services-hero {
    padding: 60px 0;
  }

  .services-hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .services-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.875rem;
  }

  .services-hero-title {
    font-size: 2.2rem;
  }

  .services-hero-subtitle {
    font-size: 1rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.services-list {
  padding: 4rem 0;
  background: var(--background);
  position: relative;
}

.heading-section {
  margin-bottom: 3rem;
}

.gradient-text {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(231, 33, 100, 0.95) 0%, rgba(219, 30, 96, 0.95) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* Barra de búsqueda */
.search-container {
  margin-bottom: 2rem;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 3.5rem;
  border: 2px solid var(--border);
  border-radius: 100px;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(217, 27, 92, 0.1);
}

.clear-search {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-muted);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: var(--transition);
  padding: 0;
  flex-shrink: 0;
}

.clear-search:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.search-results-count {
  text-align: center;
  margin-top: 0.75rem;
  color: var(--text-light);
  font-size: 0.875rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Controles superiores */
.top-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.filters-container {
  position: relative;
  flex: 1;
  min-width: 0;
  background: white;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scroll-button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--background);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.scroll-button:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.scroll-button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.scroll-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.filters-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem;
  flex: 1;
}

.filters-scroll::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 100px;
  background: var(--background);
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  min-width: max-content;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  flex-shrink: 0;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, rgba(231, 33, 100, 0.95) 0%, rgba(219, 30, 96, 0.95) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.filter-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.filter-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.3);
}

.controls-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.sort-control {
  position: relative;
}

.sort-select {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  background: white;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  min-height: 44px;
}

.sort-select:hover {
  border-color: var(--primary);
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(217, 27, 92, 0.1);
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
  background: white;
  padding: 0.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.view-btn {
  padding: 0.625rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.view-btn:hover {
  background: var(--card-gradient);
  color: var(--primary);
}

.view-btn.active {
  background: var(--primary);
  color: white;
}

.view-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Filtro de precio */
.price-filter-container {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  animation: slideDown 0.5s ease-out;
}

.price-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.price-filter-header label {
  font-weight: 600;
  color: var(--text);
}

.price-range-display {
  font-weight: 600;
  color: var(--primary);
}

.price-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 100%, var(--border) 100%);
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 1rem;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.price-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.price-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.reset-price-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.reset-price-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Skeleton Loader */
.skeleton-loader {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.skeleton-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.skeleton-header {
  width: 60px;
  height: 60px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 12px;
  margin: 0 auto 1rem;
}

.skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Grid de servicios */
.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  transition: var(--transition);
  position: relative;
}

.services-grid[data-view="list"] {
  grid-template-columns: 1fr;
}

.services-grid[data-view="list"] .service-category-inner {
  display: flex;
  flex-direction: column;
}

.services-grid[data-view="list"] .services-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.services-grid[data-view="compact"] {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.services-grid[data-view="compact"] .service-category-header {
  padding: 1rem;
}

.services-grid[data-view="compact"] .network-icon {
  height: 40px;
}

.services-grid[data-view="compact"] .network-name {
  font-size: 1rem;
}

.service-category {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition);
}

.service-category.hidden {
  display: none;
}

.service-category.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

.service-category.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.service-category-inner {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
}

.service-category-inner:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-category-header {
  padding: 2rem;
  text-align: center;
  background: var(--card-gradient);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.network-icon {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.network-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.services-wrapper {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.service-card {
  position: relative;
  opacity: 1;
  transform: scale(1);
  transition: var(--transition);
}

.service-card.hidden {
  display: none;
}

.service-card.collapsed {
  display: none;
}

/* Botón Ver más */
.show-more-container {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.show-more-btn {
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary);
  border-radius: 100px;
  background: white;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.show-more-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.show-more-btn svg {
  transition: var(--transition);
}

.show-more-btn.expanded svg {
  transform: rotate(180deg);
}

.service-card-inner {
  display: block;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: var(--background);
  text-decoration: none !important;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

.service-card-inner:hover {
  background: var(--card-gradient);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
}

.service-card-inner:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Badges */
.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-popular {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #333;
}

.badge-new {
  background: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%);
  color: #333;
}

.badge-free {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.badge-offer {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

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

.service-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text);
  text-decoration: none !important;
}

.service-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price {
  font-size: 0.875rem;
  color: var(--text-light);
}

.price-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.service-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Tooltip */
.service-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--text);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 100;
  min-width: 250px;
  max-width: 300px;
}

.service-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--text);
}

.service-card-inner:hover .service-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.tooltip-content p {
  margin: 0.5rem 0;
  font-size: 0.875rem;
}

.tooltip-content p:first-child {
  margin-top: 0;
}

.tooltip-content p:last-child {
  margin-bottom: 0;
}

.tooltip-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-light);
}

.tooltip-info,
.tooltip-delivery {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.tooltip-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #4ade80;
}

/* Botón de favoritos */
.btn-favorite {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.btn-favorite:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.btn-favorite.active {
  background: var(--primary);
  color: white;
}

.btn-favorite.active .heart-icon {
  fill: currentColor;
  animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
}

/* Estado vacío */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeIn 0.5s ease-out;
}

.empty-state-content svg {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.btn-reset-filters {
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary);
  border-radius: 100px;
  background: white;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

.btn-reset-filters:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Scroll to top */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(217, 27, 92, 0.3);
}

.scroll-to-top:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .services-list {
    padding: 2rem 0;
  }

  .heading-section {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }

  .gradient-text {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .heading-section p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .search-wrapper {
    padding: 0 1rem;
  }

  .search-input {
    padding: 1rem 4.5rem 1rem 4.25rem;
  }

  .search-icon {
    left: 2rem;
  }

  .clear-search {
    right: 2rem;
  }

  .top-controls {
    flex-direction: column;
    padding: 0 1rem;
  }

  .filters-container {
    width: 100%;
  }

  .controls-right {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
  }

  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .service-category-header {
    padding: 1.5rem;
  }

  .services-wrapper {
    padding: 1rem;
  }

  .price-filter-container {
    margin: 0 1rem 2rem 1rem;
  }

  .service-tooltip {
    display: none;
  }

  .scroll-to-top {
    bottom: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
  }

  /* Mejoras táctiles para móvil */
  .filter-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    max-width: none;
  }

  .filter-text {
    max-width: 120px;
  }

  .filter-count {
    font-size: 0.7rem;
    padding: 0.125rem 0.375rem;
  }

  .filters-scroll {
    padding: 0.375rem 0.25rem;
  }

  .view-btn,
  .scroll-button {
    min-width: 44px;
    min-height: 44px;
  }

  .service-card-inner {
    padding: 1.25rem;
  }

  .filters-container {
    padding: 0.375rem;
  }

  .scroll-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .gradient-text {
    font-size: 1.75rem;
  }

  .controls-right {
    flex-direction: column;
    gap: 0.75rem;
  }

  .sort-control,
  .view-toggle {
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }

  .view-toggle {
    justify-content: center;
  }

  .filter-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
  }

  .filter-text {
    max-width: 100px;
  }

  .filter-count {
    font-size: 0.65rem;
    padding: 0.125rem 0.375rem;
  }

  .scroll-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .filters-scroll {
    gap: 0.5rem;
  }
}

/* Animaciones de entrada */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-category {
  animation: slideInUp 0.5s ease-out backwards;
}

.service-category:nth-child(1) { animation-delay: 0.1s; }
.service-category:nth-child(2) { animation-delay: 0.2s; }
.service-category:nth-child(3) { animation-delay: 0.3s; }
.service-category:nth-child(4) { animation-delay: 0.4s; }
.service-category:nth-child(5) { animation-delay: 0.5s; }
.service-category:nth-child(6) { animation-delay: 0.6s; }

/* High contrast mode */
@media (prefers-contrast: high) {
  .filter-btn,
  .view-btn,
  .sort-select {
    border-width: 3px;
  }

  .service-card-inner {
    border: 2px solid var(--border);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
