/* Estilos específicos para la página de error */
.error-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 3rem 2rem;
  width: 100%;
  max-width: 600px;
  border: 1px solid #fecaca;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.error-title {
  font-size: 2rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.error-message {
  font-size: 1.1rem;
  color: #7f1d1d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-details {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.error-details h3 {
  color: #dc2626;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-details li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #fecaca;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #991b1b;
}

.error-details li:last-child {
  border-bottom: none;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-retry {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-retry:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-home {
  background: var(--secondary-color);
  color: var(--text-primary);
  padding: 0.875rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-home:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
}

.url-checker {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 2rem;
}

.url-checker h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.url-display {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #374151;
  word-break: break-all;
  margin-bottom: 1rem;
}

.copy-btn {
  background: #6366f1;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #4f46e5;
}

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
  90% {
    transform: translateY(-2px);
  }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  .error-container {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  }
  
  .error-card {
    background: #1f2937;
    border-color: #374151;
  }
  
  .error-details {
    background: #111827;
    border-color: #374151;
  }
  
  .url-checker {
    background: #111827;
    border-color: #374151;
  }
  
  .url-display {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .error-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .error-title {
    font-size: 1.5rem;
  }
  
  .error-actions {
    flex-direction: column;
  }
  
  .btn-retry, .btn-home {
    width: 100%;
    justify-content: center;
  }
}