article {
  max-width: 900px;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 3rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

[data-theme=dark] article {
  background: #1f2937;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Imagen destacada */
article img:first-of-type {
  width: 100%;
  height: 100%;
  max-height: 400px;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Contenido en prosa */
.prose {
  color: #374151;
  line-height: 1.8;
  font-size: 1.125rem;
  max-width: 100%;
}

.prose h1 {
  color: #111827;
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.prose h2 {
  color: #1f2937;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgb(var(--color-primary-500));
}

.prose h3 {
  color: #374151;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.prose strong {
  color: #111827;
  font-weight: 600;
}

.prose a {
  color: rgb(var(--color-primary-600));
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: rgb(var(--color-primary-700));
  border-bottom-color: rgb(var(--color-primary-500));
}

.prose img {
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.prose ul,
.prose ol {
  padding-left: 2rem;
  margin: 1.5rem 0;
}

.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.prose blockquote {
  border-left: 4px solid rgb(var(--color-primary-500));
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
}

.prose code {
  background-color: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #be185d;
}

.prose pre {
  background-color: #1f2937;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background-color: transparent;
  color: #e5e7eb;
  padding: 0;
}

/* Tags mejorados */
.mt-8.flex.flex-wrap.gap-2 span {
  background: linear-gradient(135deg, rgb(var(--color-primary-500)), rgb(var(--color-primary-600)));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mt-8.flex.flex-wrap.gap-2 span:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Enlaces relacionados mejorados */
.mt-8 h2 {
  color: #111827;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgb(var(--color-primary-500));
}

.mt-8 ul {
  background: #f9fafb;
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  border-left: 4px solid rgb(var(--color-primary-500));
}

.mt-8 ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.mt-8 ul li a {
  color: rgb(var(--color-primary-600));
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mt-8 ul li a:hover {
  color: rgb(var(--color-primary-700));
  transform: translateX(5px);
}

/* Modo oscuro */
[data-theme=dark] .prose {
  color: #e5e7eb;
}

[data-theme=dark] .prose h1 {
  color: white;
}

[data-theme=dark] .prose h2 {
  color: #f3f4f6;
  border-bottom-color: rgb(var(--color-primary-400));
}

[data-theme=dark] .prose h3 {
  color: #d1d5db;
}

[data-theme=dark] .prose p {
  color: #d1d5db;
}

[data-theme=dark] .prose strong {
  color: white;
}

[data-theme=dark] .prose a {
  color: rgb(var(--color-primary-400));
}

[data-theme=dark] .prose a:hover {
  color: rgb(var(--color-primary-300));
  border-bottom-color: rgb(var(--color-primary-400));
}

[data-theme=dark] .prose blockquote {
  color: #9ca3af;
  border-left-color: rgb(var(--color-primary-400));
}

[data-theme=dark] .prose code {
  background-color: #374151;
  color: #fbbf24;
}

[data-theme=dark] .mt-8 h2 {
  color: white;
  border-bottom-color: rgb(var(--color-primary-400));
}

[data-theme=dark] .mt-8 ul {
  background: #374151;
  border-left-color: rgb(var(--color-primary-400));
}

[data-theme=dark] .mt-8 ul li {
  color: #d1d5db;
}

[data-theme=dark] .mt-8 ul li a {
  color: rgb(var(--color-primary-400));
}

[data-theme=dark] .mt-8 ul li a:hover {
  color: rgb(var(--color-primary-300));
}

/* Responsive */
@media (max-width: 768px) {
  article {
    padding: 1.5rem;
    margin-top: 1rem;
  }

  .prose h1 {
    font-size: 2rem;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .prose {
    font-size: 1rem;
  }
}

/* Estilos para vídeos embebidos */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem 0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.75rem;
}

[data-theme=dark] .video-container {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}