* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec489a;
  --text-light: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-orange: #f97316;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --favorite: #ef4444;
  --favorite-hover: #dc2626;
  --success: #22c55e;
  
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-favorite: linear-gradient(135deg, var(--favorite) 0%, var(--favorite-hover) 100%);
  --gradient-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-favorite: 0 0 20px rgba(239, 68, 68, 0.3);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  position: relative;
  transition: opacity 0.6s ease;
}

body.fade-in {
  opacity: 1;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../Fotos/Fondo.jpg) no-repeat center center fixed;
  background-size: cover;
  filter: brightness(0.3);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
  opacity: 0.6;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.side-left, .side-right {
  position: fixed;
  top: 0;
  width: 60px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.side-left {
  left: 0;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.side-right {
  right: 0;
  background: linear-gradient(270deg, var(--primary), transparent);
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  backdrop-filter: blur(10px);
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-circle {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top: 3px solid var(--primary);
  border-right: 3px solid var(--secondary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-progress {
  width: 200px;
  height: 2px;
  background: rgba(99, 102, 241, 0.2);
  margin-top: 20px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.loader-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  animation: progress 2s ease forwards;
}

@keyframes progress {
  to { width: 100%; }
}

#loader-text {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulse 2s ease infinite;
}

.page-container {
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
  padding-top: 100px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.access-allowed .page-container {
  opacity: 1;
}

.main-container {
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(20px);
  max-width: 1200px;
  width: 100%;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all var(--transition-base);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  position: sticky;
  top: -100px;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-md);
}

.navbar.visible {
  top: 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary);
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
}

.logo-text {
  color: var(--text-light);
}

.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--text-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.cart-link-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all var(--transition-fast);
}

.cart-link-nav:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.carrito-contador-nav {
  background: var(--gradient-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.main-content {
  text-align: center;
}

.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInUp 0.6s ease;
}

.page-subtitle {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
  min-height: 400px;
}

.loading-text {
  color: var(--text-muted);
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.1rem;
  padding: 3rem;
}

.favorite-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.favorite-card:nth-child(1) { animation-delay: 0.05s; }
.favorite-card:nth-child(2) { animation-delay: 0.1s; }
.favorite-card:nth-child(3) { animation-delay: 0.15s; }
.favorite-card:nth-child(4) { animation-delay: 0.2s; }
.favorite-card:nth-child(5) { animation-delay: 0.25s; }
.favorite-card:nth-child(6) { animation-delay: 0.3s; }

.favorite-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-favorite);
  border-color: var(--favorite);
  background: var(--bg-card-hover);
}

.favorite-image-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--favorite));
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.favorite-card:hover .favorite-image-container img {
  transform: scale(1.05);
}

.favorite-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gradient-favorite);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
  border: 2px solid white;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.1); }
  35% { transform: scale(1); }
  45% { transform: scale(1.05); }
  55% { transform: scale(1); }
  100% { transform: scale(1); }
}

.favorite-type-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--favorite);
  z-index: 2;
  text-transform: uppercase;
}

.favorite-platform-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(99, 102, 241, 0.9);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.favorite-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-card);
  flex: 1;
}

.favorite-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: left;
  line-height: 1.4;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.favorite-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.favorite-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  padding-top: 0.75rem;
}

.favorite-price-row,
.favorite-points-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.favorite-price-label,
.favorite-points-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.favorite-price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-green);
}

.favorite-points-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-yellow);
  background: rgba(245, 158, 11, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.favorite-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.favorite-button {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.btn-add-to-cart {
  background: var(--gradient-primary);
  color: white;
}

.btn-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-remove-fav {
  background: transparent;
  border: 2px solid var(--favorite);
  color: var(--favorite);
}

.btn-remove-fav:hover {
  background: var(--favorite);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-favorite);
}

.favorites-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(17, 24, 39, 0.5);
  border-radius: var(--radius-xl);
  border: 2px dashed rgba(99, 102, 241, 0.3);
}

.favorites-empty-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
  animation: float 3s ease infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.favorites-empty h3 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.favorites-empty p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.btn-explorar {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-explorar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-explorar.secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  margin-left: 1rem;
}

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

.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 6, 23, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 1rem;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.modal.flex {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.2);
  animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.9);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

.modal-image {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

@media (max-width: 768px) {
  .modal-image {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 300px;
  }
}

.modal-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.modal-game-title {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.modal-description {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.tag-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tag-secondary {
  background: rgba(99, 102, 241, 0.2);
  color: var(--text-light);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

.developer {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.developer strong {
  color: var(--text-light);
}

.price-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-green);
}

.status-badge {
  padding: 0.3rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-available {
  background: var(--success);
  color: white;
}

.status-unavailable {
  background: var(--danger);
  color: white;
}

.reserve-btn {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reserve-btn.available {
  background: var(--gradient-primary);
  color: white;
}

.reserve-btn.available:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.reserve-btn.unavailable {
  background: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

.favorite-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--gradient-favorite);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-family: 'Orbitron', sans-serif;
  z-index: 10001;
  animation: slideInRight 0.3s ease;
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.favorite-notification.success {
  background: linear-gradient(135deg, var(--success), #059669);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.footer {
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  transition: all var(--transition-slow);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  opacity: 0.7;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transition: left 0.8s ease;
}

.footer.visible::before {
  left: 100%;
}

.footer.visible {
  opacity: 1;
  transform: translateY(0);
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
  animation: glowPulse 3s infinite ease-in-out;
  margin-top: 2rem;
}

.footer-links {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer.visible p {
  color: var(--text-light);
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

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

@keyframes glowPulse {
  0% { box-shadow: 0 -4px 20px rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 -4px 30px rgba(99, 102, 241, 0.4); }
  100% { box-shadow: 0 -4px 20px rgba(99, 102, 241, 0.2); }
}

#access-check {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.check-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.check-text {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

body.access-allowed #access-check {
  opacity: 0;
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

@media (max-width: 1024px) {
  .favorites-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-container {
    padding-top: 80px;
  }

  .navbar {
    flex-wrap: wrap;
    padding: 1rem;
    top: -80px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .page-title {
    font-size: 2rem;
  }

  .favorites-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }

  .favorite-actions {
    flex-direction: column;
  }

  .favorite-notification {
    left: 20px;
    right: 20px;
    text-align: center;
  }

  .favorites-empty h3 {
    font-size: 1.3rem;
  }

  .favorites-empty-icon {
    font-size: 4rem;
  }

  .btn-explorar.secondary {
    margin-left: 0;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding-top: 70px;
  }

  .navbar {
    padding: 0.6rem 1rem;
    top: -70px;
  }

  .logo a {
    font-size: 1.5rem;
  }

  .main-container {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .favorites-empty h3 {
    font-size: 1.2rem;
  }

  .favorites-empty-icon {
    font-size: 3rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}