/* Estilos específicos del blog */

/* Lista de artículos */
.blog-hero { padding: 80px 0 50px; text-align: center; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.blog-hero .section-label { display: inline-block; }
.blog-hero .section-title { max-width: 720px; margin: 0 auto 16px; }
.blog-hero .section-description { margin: 0 auto; }

.blog-controls { padding: 40px 0 24px; background: var(--bg); }
.blog-search-wrap { max-width: 560px; margin: 0 auto 28px; position: relative; }
.blog-search-input { width: 100%; padding: 16px 22px 16px 50px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); font-size: 15px; font-family: var(--sans); color: var(--ink); transition: all 0.2s ease; }
.blog-search-input:focus { outline: none; border-color: var(--rose-deep); box-shadow: 0 0 0 4px rgba(201, 122, 122, 0.1); }
.blog-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--rose-deep); pointer-events: none; }

.blog-categories { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 12px; }
.blog-category-btn { padding: 8px 18px; border-radius: 999px; font-size: 13px; background: transparent; color: var(--ink-soft); border: 1px solid var(--line); cursor: pointer; transition: all 0.2s ease; font-family: var(--sans); }
.blog-category-btn:hover { border-color: var(--rose); color: var(--ink); }
.blog-category-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.blog-results-info { text-align: center; font-size: 13px; color: var(--ink-soft); font-style: italic; min-height: 20px; }

.blog-articles-section { padding: 40px 0 90px; }

.blog-no-results { text-align: center; padding: 80px 20px; color: var(--ink-soft); display: none; }
.blog-no-results.active { display: block; }
.blog-no-results-icon { font-family: var(--serif-display); font-size: 60px; font-style: italic; color: var(--rose); margin-bottom: 16px; }
.blog-no-results-title { font-family: var(--serif-display); font-size: 24px; color: var(--ink); margin-bottom: 8px; font-weight: 500; }

.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.blog-pagination button { min-width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); font-size: 14px; cursor: pointer; font-family: var(--sans); transition: all 0.2s ease; padding: 0 12px; }
.blog-pagination button:hover:not(:disabled) { background: var(--rose-soft); border-color: var(--rose); }
.blog-pagination button.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.blog-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Artículo individual */
.article-page-hero { padding: 60px 0 40px; text-align: center; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.article-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--rose-deep); margin-bottom: 30px; letter-spacing: 0.3px; }
.article-back-link::before { content: "←"; }
.article-meta-top { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.article-category { background: var(--rose-soft); color: var(--rose-deep); padding: 6px 14px; border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; }
.article-meta-info { font-size: 13px; color: var(--ink-soft); }
.article-page-title { font-family: var(--serif-display); font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 400; color: var(--ink); max-width: 880px; margin: 0 auto 24px; letter-spacing: -0.5px; }
.article-page-excerpt { font-size: 18px; color: var(--ink-soft); max-width: 720px; margin: 0 auto; line-height: 1.6; font-style: italic; font-family: var(--serif-display); }

.article-cover { max-width: 1100px; margin: 0 auto; padding: 50px 24px 0; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

.article-content { max-width: 760px; margin: 0 auto; padding: 60px 24px 40px; font-size: 17px; line-height: 1.8; color: var(--ink); font-family: var(--serif); }
.article-content p { margin-bottom: 24px; }
.article-content h2 { font-family: var(--serif-display); font-size: 30px; font-weight: 500; color: var(--ink); margin-top: 50px; margin-bottom: 20px; line-height: 1.2; }
.article-content h3 { font-family: var(--serif-display); font-size: 24px; font-weight: 500; color: var(--ink); margin-top: 36px; margin-bottom: 16px; line-height: 1.3; }
.article-content h4 { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 28px; margin-bottom: 12px; }
.article-content ul, .article-content ol { margin: 0 0 24px 24px; padding-left: 8px; }
.article-content li { margin-bottom: 10px; padding-left: 8px; }
.article-content blockquote { border-left: 3px solid var(--rose); background: var(--bg-alt); padding: 24px 30px; margin: 32px 0; font-style: italic; font-family: var(--serif-display); font-size: 19px; color: var(--ink); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content hr { border: none; height: 1px; background: var(--line); margin: 40px 0; }
.article-content img { border-radius: var(--radius-lg); margin: 30px auto; box-shadow: var(--shadow-card); }
.article-content a { color: var(--rose-deep); border-bottom: 1px solid var(--rose-soft); transition: all 0.2s ease; }
.article-content a:hover { color: var(--heart); border-bottom-color: var(--heart); }
.article-content strong { font-weight: 600; color: var(--ink); }
.article-content em { font-style: italic; }
.article-content code { background: var(--bg-alt); padding: 2px 8px; border-radius: 4px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; color: var(--rose-deep); }

/* Botones de compartir */
.share-section { max-width: 760px; margin: 40px auto 0; padding: 40px 24px; border-top: 1px solid var(--line); text-align: center; }
.share-label { font-family: var(--serif-display); font-size: 22px; color: var(--ink); margin-bottom: 8px; font-weight: 500; }
.share-description { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; font-style: italic; }
.share-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.share-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.25s ease; position: relative; text-decoration: none; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(58, 42, 40, 0.12); }
.share-btn svg { width: 20px; height: 20px; }
.share-btn.share-facebook:hover { background: #1877f2; color: white; border-color: #1877f2; }
.share-btn.share-linkedin:hover { background: #0a66c2; color: white; border-color: #0a66c2; }
.share-btn.share-whatsapp:hover { background: #25d366; color: white; border-color: #25d366; }
.share-btn.share-twitter:hover { background: #000; color: white; border-color: #000; }
.share-btn.share-copy:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.share-tooltip { position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--ink); color: var(--cream); padding: 6px 12px; border-radius: 6px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.2s ease; }
.share-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.share-btn.copied .share-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Artículos relacionados */
.related-articles { background: var(--bg-alt); padding: 80px 0; margin-top: 40px; }
.related-articles-header { text-align: center; margin-bottom: 50px; }
.related-articles-title { font-family: var(--serif-display); font-size: 32px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.related-articles-title em { font-style: italic; color: var(--rose-deep); }
.related-articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

@media (max-width: 720px) {
  .article-content { font-size: 16px; padding: 40px 20px; }
  .article-cover { padding: 30px 20px 0; }
  .article-content h2 { font-size: 26px; }
  .article-content h3 { font-size: 21px; }
  .article-page-hero { padding: 40px 0 30px; }
}
