/* Estilos base de detalle de revistas.
   Se cargan globalmente para que la vista mantenga diseño
   incluso cuando la navegación se hace sin recarga completa. */

.revista-detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.revista-hero {
  position: relative;
  margin-bottom: 3rem;
}

.revista-hero-image {
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.2);
  display: block;
}

.revista-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #4b5563;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  text-decoration: none;
}

.revista-back-link:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: #1e3a8a;
}

.revista-content-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 3rem;
}

.revista-header {
  padding: 3rem 3rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.revista-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.revista-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.revista-actions {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.revista-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.revista-excerpt {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4b5563;
  font-style: italic;
  padding-top: 1.25rem;
  border-top: 2px solid #e5e7eb;
  margin-top: 1rem;
}

.revista-body {
  padding: 3rem;
}

.prose {
  line-height: 1.9;
  color: #374151;
  font-size: 1.125rem;
  max-width: 100%;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
}

.prose blockquote {
  border-left: 5px solid #1e3a8a;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
}

@media (max-width: 768px) {
  .revista-detail-container {
    padding: 1rem;
  }

  .revista-header,
  .revista-body {
    padding: 1.5rem;
  }

  .revista-title {
    font-size: 1.75rem;
  }

  .revista-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
    justify-content: space-between;
  }
}
