/* === Tarjetas de proyectos unificadas === */
.proyecto-card {
  background: #fff;
  border: 2px solid #a78bfa; /* violeta suave */
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(99, 102, 241, 0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.proyecto-card:hover {
  box-shadow: 0 8px 40px 0 rgba(99, 102, 241, 0.16);
  transform: translateY(-4px) scale(1.01);
}
.proyecto-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.proyecto-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #6366f1;
}
.proyecto-card .tecnologias-texto {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.proyecto-card .tecnologias-texto span {
  background: #ede9fe;
  color: #7c3aed;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.proyecto-card .preview-proyecto-wrapper {
  margin-bottom: 0.5rem;
}
.proyecto-card .preview-proyecto-image,
.proyecto-card .preview-proyecto-qr {
  background: #f8fafc;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin-bottom: 0.5rem;
}
.proyecto-card .preview-proyecto-image img,
.proyecto-card .preview-proyecto-qr img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto;
}
.proyecto-card .preview-proyecto-qr {
  padding: 1.5rem 0;
}
.proyecto-card .proyecto-titulo,
.proyecto-card .proyecto-header i {
  color: #6366f1;
}
.proyecto-card .proyecto-header i {
  font-size: 1.5rem;
}
.proyecto-card .p-6.pt-0.space-y-4 {
  padding-top: 0 !important;
}
.proyecto-card .proyecto-descripcion strong,
.proyecto-card .proyecto-descripcion b {
  color: #6366f1;
}
.proyecto-card .proyecto-descripcion {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.proyecto-card .proyecto-descripcion small {
  color: #a1a1aa;
  font-size: 0.9em;
}
.proyecto-card .ver-proyecto-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid #6366f1;
  color: #6366f1;
  background: #fff;
  border-radius: 9999px;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(99, 102, 241, 0.06);
}
.proyecto-card .ver-proyecto-btn:hover {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(99, 102, 241, 0.12);
}

/* Solo estilos esenciales para modo claro/oscuro y accesibilidad */

/* Tema oscuro para modo oscuro */
html.dark .scroll-to-top {
  background: #818cf8;
}

html.dark .scroll-to-top:hover {
  background: #a5b4fc;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus visible para accesibilidad */
*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 4px;
}

html.dark *:focus-visible {
  outline-color: #818cf8;
}

/* Screen reader only content */
.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;
}

/* Screen reader only content */
.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;
}

/* Tema oscuro para modo oscuro */
html.dark .scroll-to-top {
  background: #818cf8;
}

html.dark .scroll-to-top:hover {
  background: #a5b4fc;
}

/* Animación de entrada para elementos */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Gradient text animations */
@keyframes gradient-x {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-x 3s ease infinite;
}

/* Focus visible para accesibilidad */
*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 4px;
}

html.dark *:focus-visible {
  outline-color: #818cf8;
}
