/**
 * Jessica Cabello - Editorial Article & Sidebar Layout
 * Diseño de revista educativa / publicación académica de clase mundial
 */

:root {
  --jc-primary: #173f35;
  --jc-primary-light: #24584b;
  --jc-accent: #c46e4f;
  --jc-gold: #d6a35c;
  --jc-bg-card: #fffdf8;
  --jc-border: #e8ded2;
  --jc-text-main: #1e293b;
  --jc-text-muted: #64748b;
}

/* ==================== BREADCRUMBS ==================== */
.editorial-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--jc-text-muted);
  margin-bottom: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.editorial-breadcrumbs a {
  color: var(--jc-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.editorial-breadcrumbs a:hover {
  color: var(--jc-accent);
  text-decoration: underline;
}
.editorial-breadcrumbs-separator {
  color: #cbd5e1;
  font-size: 0.75rem;
}

/* ==================== HERO HEADER ==================== */
.editorial-hero-header {
  margin-bottom: 36px;
}

.editorial-category-badge {
  display: inline-block;
  margin-bottom: 14px;
}
.editorial-category-badge a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #047857;
  border: 1px solid #bbf7d0;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s ease;
}
.editorial-category-badge a:hover {
  background: #047857;
  color: #ffffff;
  border-color: #047857;
}

.editorial-title {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  color: #111827;
  font-weight: 700;
  margin: 0 0 20px 0;
  letter-spacing: -0.015em;
}

.editorial-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.editorial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.editorial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--jc-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.editorial-author-info {
  display: flex;
  flex-direction: column;
}
.editorial-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}
.editorial-author-name:hover {
  color: var(--jc-accent);
}
.editorial-author-role {
  font-size: 0.78rem;
  color: var(--jc-text-muted);
}

.editorial-meta-divider {
  width: 1px;
  height: 28px;
  background: #cbd5e1;
}

.editorial-meta-info {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.85rem;
  color: #64748b;
}
.editorial-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.editorial-meta-item svg {
  color: var(--jc-accent);
}

/* Imagen destacada en alta resolucion */
.editorial-featured-media {
  margin: 0 0 32px 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
}
.editorial-featured-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.editorial-featured-caption {
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-style: italic;
  margin: 0;
}

/* ==================== LAYOUT DE 2 COLUMNAS ==================== */
.editorial-layout-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: start;
}

.editorial-main-content {
  min-width: 0;
}

/* Tipografía y lectura fluida en el cuerpo */
.editorial-main-content p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 1.5rem;
}
.editorial-main-content h2 {
  font-family: Georgia, Cambria, serif;
  font-size: 1.65rem;
  line-height: 1.3;
  color: var(--jc-primary);
  margin: 2.2rem 0 1rem 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}
.editorial-main-content h3 {
  font-family: Georgia, Cambria, serif;
  font-size: 1.3rem;
  color: #1e293b;
  margin: 1.8rem 0 0.8rem 0;
}
.editorial-main-content ul, 
.editorial-main-content ol {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 1.5rem;
  padding-left: 24px;
}
.editorial-main-content li {
  margin-bottom: 0.5rem;
}
.editorial-main-content blockquote {
  border-left: 4px solid var(--jc-gold);
  background: var(--jc-bg-card);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #475569;
}

/* ==================== SIDEBAR EDITORIAL ==================== */
.editorial-sidebar {
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.editorial-widget {
  background: var(--jc-bg-card);
  border: 1px solid var(--jc-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(23, 63, 53, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Widget 1: Bio de la Autora */
.widget-author-header {
  text-align: center;
  margin-bottom: 14px;
}
.widget-author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--jc-gold);
  margin: 0 auto 10px auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.widget-author-name {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: var(--jc-primary);
  margin: 0 0 2px 0;
}
.widget-author-subtitle {
  font-size: 0.8rem;
  color: var(--jc-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.widget-author-bio {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  text-align: center;
  margin: 0 0 16px 0;
}
.widget-btn-secondary {
  display: block;
  text-align: center;
  background: #ffffff;
  color: var(--jc-primary) !important;
  border: 1.5px solid var(--jc-primary);
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.widget-btn-secondary:hover {
  background: var(--jc-primary);
  color: #ffffff !important;
}

/* Widget 2: Libro en Amazon KDP */
.widget-book {
  border: 2px solid var(--jc-gold);
  background: linear-gradient(180deg, #fffdf8 0%, #faf4ea 100%);
  position: relative;
  text-align: center;
}
.widget-book-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--jc-accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(196, 110, 79, 0.35);
  white-space: nowrap;
}
.widget-book-cover-wrap {
  margin: 8px 0 14px 0;
}
.widget-book-cover {
  width: 125px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  margin: 0 auto;
  display: block;
  transition: transform 0.25s ease;
}
.widget-book-cover:hover {
  transform: translateY(-3px) scale(1.02);
}
.widget-book-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: var(--jc-primary);
  margin: 0 0 8px 0;
  line-height: 1.25;
}
.widget-book-desc {
  font-size: 0.84rem;
  color: #55736a;
  line-height: 1.55;
  margin: 0 0 16px 0;
}
.widget-btn-primary {
  display: block;
  text-align: center;
  background: var(--jc-accent);
  color: #ffffff !important;
  padding: 11px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(196, 110, 79, 0.28);
  transition: all 0.2s ease;
}
.widget-btn-primary:hover {
  background: #ab5739;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(196, 110, 79, 0.35);
}
.widget-book-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--jc-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Widget 3: Recursos Gratuitos (Lead Magnet) */
.widget-resources {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.widget-resources-icon {
  width: 44px;
  height: 44px;
  background: #dcfce7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.widget-resources-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: #065f46;
  margin: 0 0 6px 0;
}
.widget-resources-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #047857;
  margin: 0 0 14px 0;
}
.widget-btn-outline {
  display: block;
  text-align: center;
  background: #ffffff;
  color: #065f46 !important;
  border: 1.5px solid #059669;
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.widget-btn-outline:hover {
  background: #059669;
  color: #ffffff !important;
}

/* Widget 4: Lecturas Recomendadas */
.widget-recent-title {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--jc-primary);
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.widget-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.widget-recent-item a {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}
.widget-recent-item a:hover .widget-recent-item-title {
  color: var(--jc-accent);
}
.widget-recent-thumb {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}
.widget-recent-item-title {
  font-size: 0.85rem;
  line-height: 1.35;
  font-weight: 600;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== RESPONSIVIDAD ==================== */
@media (max-width: 980px) {
  .editorial-layout-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .editorial-sidebar {
    position: static;
    margin-top: 20px;
  }
}
