/* ============================================
   FitVision Coaches — Blog
   Grid/tarjetas, hero de artículo y sistema
   tipográfico .prose. Usa los tokens compartidos
   de tokens.css y los componentes de base.css.
   ============================================ */

/* ============================================
   HEADER
   ============================================ */
.blog-header {
    padding-top: 48px;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.blog-eyebrow a {
    color: var(--color-accent);
}

.blog-eyebrow a:hover {
    text-decoration: underline;
}

.blog-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 48px 0;
}

/* ============================================
   GRID + CARD
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 245, 160, 0.3);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.blog-card-link {
    display: block;
    color: inherit;
}

.blog-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg-subtle);
}

.blog-card-cover picture { display: block; width: 100%; height: 100%; }

.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-cover img {
    transform: scale(1.05);
}

.blog-card-cover--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 245, 160, 0.12), rgba(0, 194, 255, 0.08));
}

.blog-card-body {
    padding: 20px 22px 24px;
}

.blog-card-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.blog-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 10px;
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.blog-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 245, 160, 0.25);
    background: rgba(0, 245, 160, 0.08);
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s;
}

a.blog-tag-pill:hover {
    background: rgba(0, 245, 160, 0.16);
    border-color: var(--color-accent);
}

/* ============================================
   PAGINATION
   ============================================ */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
}

.blog-pagination-status {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ============================================
   ARTICLE HERO
   ============================================ */
.blog-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 96px;
}

.blog-hero--plain {
    min-height: 0;
    padding: 140px 0 40px;
    background: linear-gradient(180deg, rgba(0, 245, 160, 0.06), transparent);
}

.blog-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 15, 0.35) 0%, var(--color-bg) 92%);
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
    max-width: 820px;
}

.blog-back-link {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    transition: color 0.2s;
}

.blog-back-link:hover {
    color: var(--color-accent);
}

.blog-hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 16px;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.blog-hero-author {
    color: var(--color-text);
    font-weight: 500;
}

.blog-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

/* ============================================
   ARTICLE BODY — TYPOGRAPHIC SYSTEM
   ============================================ */
.blog-article-section {
    padding-top: 48px;
}

.prose {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
}

.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.25;
    margin: 40px 0 16px;
}

.prose h1 { font-size: 32px; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 18px; }

.prose p {
    margin: 0 0 22px;
}

.prose a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 245, 160, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.prose a:hover {
    text-decoration-color: var(--color-accent);
}

.prose ul,
.prose ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose blockquote {
    margin: 28px 0;
    padding: 4px 24px;
    border-left: 3px solid var(--color-accent);
    color: var(--color-text-muted);
    font-style: italic;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 2px 6px;
}

.prose pre {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 0 0 24px;
    overflow-x: auto;
}

.prose pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.prose img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 32px 0;
}

.prose hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 28px;
    font-size: 15px;
}

.prose th,
.prose td {
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
}

.prose th {
    background: var(--color-bg-subtle);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
}

.prose td {
    color: var(--color-text-muted);
}

/* ============================================
   BACK LINK / RELATED
   ============================================ */
.blog-back-footer {
    max-width: 720px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.blog-related-section {
    border-top: 1px solid var(--color-border);
}

/* Charts rendered server-side from ```chart blocks */
.fv-chart {
    margin: 1.5rem 0;
    padding: 18px 16px;
    background: #0F1318;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
}

.fv-chart svg {
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    height: auto;
}

.fv-chart figcaption {
    margin-top: 12px;
}

.fv-chart-title {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #E8F0FE;
}

.fv-chart .fv-chart-source {
    margin: 6px 0 0;
    font-size: 13px;
    color: #8A97A8;
}

/* ============================================
   SCIENTIFIC ARTICLE (mobile-first, 16px gutter,
   reading column max 720px)
   ============================================ */
.art {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 48px;
    color: #E8F0FE;
}

.art > * + * { margin-top: 32px; }
.art > .art-header { margin-top: 0; padding-top: 20px; }

.art-header { display: flex; flex-direction: column; gap: 14px; }
.art-crumbs { font-size: 13px; color: #8A97A8; }
.art-crumbs a {
    color: #8A97A8;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.art-crumbs a:hover { color: #E8F0FE; }

.art-chips, .blog-card-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.blog-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.blog-chip--topic { background: rgba(0, 245, 160, 0.12); color: #00F5A0; }
.blog-chip--evidence { background: rgba(0, 194, 255, 0.12); color: #5CD6FF; }
a.blog-chip--topic { min-height: 32px; }

.art-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.art-excerpt { font-size: 16px; line-height: 1.7; color: #A9B5C4; }

.art-byline { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.art-byline-text { display: flex; flex-direction: column; gap: 2px; }
.art-byline-name { font-size: 14px; font-weight: 700; color: #E8F0FE; }
.art-byline-meta { font-size: 12px; color: #8A97A8; }

.art-avatar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #141920;
    border: 2px solid #00F5A0;
    font-weight: 700;
    object-fit: cover;
}
.art-avatar--sm { width: 40px; height: 40px; font-size: 14px; }
.art-avatar--lg { width: 52px; height: 52px; font-size: 16px; }

.art picture { display: block; }
.art-cover { display: block; width: 100%; height: auto; border-radius: 16px; }

.art-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A97A8;
}
.art-label--accent { color: #00F5A0; }
.art-label--warn { color: #FFD600; }

.art-h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    line-height: 1.25;
}
.art-small { font-size: 13px; line-height: 1.5; color: #8A97A8; }

.art-answer {
    padding: 20px;
    border-radius: 16px;
    background: #0F1318;
    border: 1px solid rgba(0, 245, 160, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.art-answer-text { font-size: 18px; line-height: 1.55; font-weight: 500; }

.art-section { display: flex; flex-direction: column; gap: 14px; }
.art-section.prose { display: block; }

.art-points { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; }
.art-points li { display: flex; gap: 12px; }
.art-points p { font-size: 16px; line-height: 1.7; color: #C9D3E0; }
.art-point-n {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #141920;
    color: #00F5A0;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-study {
    padding: 18px;
    border-radius: 16px;
    background: #141920;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.art-study-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.35; }
.art-study-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    font-size: 13px;
}
.art-study-facts dt { color: #8A97A8; }
.art-study-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.art-study-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #00F5A0;
}

.art-limits {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 214, 0, 0.07);
    border: 1px solid rgba(255, 214, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.art-limits p { font-size: 15px; line-height: 1.7; color: #C9D3E0; }

.art-faq { display: flex; flex-direction: column; gap: 10px; }
.art-faq details {
    border-radius: 14px;
    background: #0F1318;
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.art-faq summary {
    min-height: 44px;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq-icon::before { content: "+"; color: #00F5A0; font-size: 18px; }
.art-faq details[open] .art-faq-icon::before { content: "\2013"; }
.art-faq details p { padding: 0 16px 16px; font-size: 15px; line-height: 1.7; color: #C9D3E0; }

.art-cta {
    padding: 24px 20px;
    border-radius: 20px;
    background: #0F1318;
    border: 1px solid rgba(0, 245, 160, 0.35);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.art-cta-title { font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1.25; }
.art-cta p { font-size: 15px; line-height: 1.7; color: #C9D3E0; }

.art-btn {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.art-btn--primary { background: #00F5A0; color: #04140D; }
.art-btn--primary:hover { background: #7DFFCB; }
.art-btn--ghost { border: 1px solid rgba(255, 255, 255, 0.15); color: #E8F0FE; font-size: 15px; }
.art-btn--ghost:hover { border-color: #00F5A0; }

.art-author {
    padding: 18px;
    border-radius: 16px;
    background: #141920;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.art-author h2 { font-size: 15px; font-weight: 700; margin: 0; }
.art-author h2 a { color: #E8F0FE; display: inline-flex; align-items: center; min-height: 44px; }
.art-author-cred { display: block; font-size: 13px; color: #00F5A0; margin-bottom: 4px; }
.art-author p { font-size: 13px; line-height: 1.55; color: #A9B5C4; }
.art-author--page { margin-bottom: 40px; }
.art-author--page .art-title { font-size: 26px; margin-bottom: 4px; }
.art-sameas { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; }
.art-sameas a { color: #00F5A0; display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

.art-refs ol { padding-left: 18px; font-size: 13px; line-height: 1.6; color: #A9B5C4; }
.art-refs a { color: #00F5A0; }
.art-related-title { margin-bottom: 20px; }

.art-gone { padding-top: 64px; display: flex; flex-direction: column; gap: 16px; }

.blog-card-chips { margin-top: 4px; }

@media (min-width: 768px) {
    .art { padding: 0 24px 72px; }
    .art-title { font-size: 40px; }
    .art-excerpt { font-size: 18px; }
    .art-cta .art-btn { align-self: flex-start; min-width: 260px; }
}

/* Coaches recomendados al final del artículo */
.blog-coaches-section .container { max-width: 760px; }
.blog-coaches-sub { color: #B4BFCD; margin: -4px 0 16px; }
.blog-coaches { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.blog-coach a { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px; border-radius: 16px; background: var(--color-bg-card); border: 1px solid var(--color-border); color: var(--color-text); }
.blog-coach a:hover { border-color: rgba(0,245,160,0.4); }
.blog-coach img, .blog-coach-ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.blog-coach-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--color-bg-subtle); font-weight: 700; }
.blog-coach a > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.blog-coach a > span span { color: #8F9BAC; font-size: 13px; }
