/* ═══════════════════════════════════════════════
   NutriFit Marta — Blog Styles
   Paleta: Magenta/Pink sobre Cream
═══════════════════════════════════════════════ */

:root {
    --nfm-black: #1a1a1a;
    --nfm-white: #ffffff;
    --nfm-cream: #FDF8F9;
    --nfm-pink-lightest: #FAE8EC;
    --nfm-pink-light: #F2C4CF;
    --nfm-pink-medium: #E8A4B8;
    --nfm-pink: #D584A1;
    --nfm-magenta: #A34473;
    --nfm-magenta-dark: #82305C;
    --nfm-text-muted: #6b6b6b;
    --nfm-border: rgba(163, 68, 115, 0.1);
    --nfm-font-display: 'Syne', sans-serif;
    --nfm-font-body: 'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════════════
   ASTRA OVERRIDES — FULL WIDTH
   Solo afecta al área de contenido (#content / .site-content)
   NO toca header ni footer de Astra
═══════════════════════════════════════════════ */

/* Resetear containers de Astra SOLO en site-content */
.nfm-fullwidth-blog .site-content,
.nfm-fullwidth-single .site-content,
.nfm-fullwidth-blog #content,
.nfm-fullwidth-single #content {
    padding: 0 !important;
    margin: 0 !important;
}

/* ─── FIX: Astra .ast-container flex + max-width (SOLO en #content) ─── */
@media (min-width: 922px) {
    .nfm-fullwidth-blog #content .ast-container,
    .nfm-fullwidth-single #content .ast-container {
        display: block !important;
        max-width: 100% !important;
    }
}
@media (min-width: 544px) {
    .nfm-fullwidth-blog #content .ast-container,
    .nfm-fullwidth-single #content .ast-container {
        max-width: 100% !important;
    }
}

.nfm-fullwidth-blog #content .ast-container,
.nfm-fullwidth-single #content .ast-container,
.nfm-fullwidth-blog .site-content > .ast-container,
.nfm-fullwidth-single .site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
}

/* Contenido principal de Astra a full width */
.nfm-fullwidth-blog #primary,
.nfm-fullwidth-single #primary,
.nfm-fullwidth-blog .content-area,
.nfm-fullwidth-single .content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* Quitar sidebar de Astra (usamos la nuestra) */
.nfm-fullwidth-blog #secondary,
.nfm-fullwidth-single #secondary {
    display: none !important;
}

/* Quitar padding del main content area de Astra */
.nfm-fullwidth-blog .site-main,
.nfm-fullwidth-single .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

/* Quitar el header title de Astra para archives */
.nfm-fullwidth-blog .ast-archive-description,
.nfm-fullwidth-blog .page-header {
    display: none !important;
}

/* Quitar featured image de Astra en single (la ponemos nosotros en el hero) */
.nfm-fullwidth-single .entry-header,
.nfm-fullwidth-single .ast-single-post-order .ast-featured-img {
    display: none !important;
}

/* Eliminar cualquier article wrapper de Astra en archive */
.nfm-fullwidth-blog .site-main > .ast-row {
    display: block !important;
    max-width: 100% !important;
}

/* Astra plain-container extra overrides (solo contenido) */
.nfm-fullwidth-blog.ast-plain-container #content .ast-container,
.nfm-fullwidth-single.ast-plain-container #content .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Fix para cuando Astra usa box layout */
.nfm-fullwidth-blog .ast-separate-container .site-main,
.nfm-fullwidth-single .ast-separate-container .site-main {
    background: transparent !important;
    padding: 0 !important;
}
.nfm-fullwidth-blog .ast-separate-container .ast-article-post,
.nfm-fullwidth-blog .ast-separate-container .ast-article-single,
.nfm-fullwidth-single .ast-separate-container .ast-article-post,
.nfm-fullwidth-single .ast-separate-container .ast-article-single {
    background: transparent !important;
    padding: 0 !important;
}

/* ═══════════════════════════════════════════════
   GLOBAL RESETS (scoped to blog)
═══════════════════════════════════════════════ */
.nfm-blog {
    font-family: var(--nfm-font-body);
    color: var(--nfm-black);
    line-height: 1.6;
    background: var(--nfm-cream);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
.nfm-blog ::selection {
    background: var(--nfm-pink-light);
    color: var(--nfm-magenta-dark);
}
.nfm-blog img {
    max-width: 100%;
    display: block;
}
.nfm-blog a {
    color: inherit;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════
   ARCHIVE HERO
═══════════════════════════════════════════════ */
.nfm-archive-hero {
    background: linear-gradient(135deg, var(--nfm-magenta-dark) 0%, var(--nfm-magenta) 50%, var(--nfm-pink) 100%);
    padding: 5rem 3rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.nfm-archive-hero::before {
    content: attr(data-bg-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--nfm-font-display);
    font-size: 18vw;
    font-weight: 800;
    color: var(--nfm-white);
    opacity: 0.06;
    white-space: nowrap;
    pointer-events: none;
}
.nfm-archive-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.nfm-archive-hero h1 {
    font-family: var(--nfm-font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--nfm-white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.nfm-archive-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--nfm-white); }
.breadcrumb svg { width: 14px; height: 14px; opacity: 0.5; }
.nfm-single-hero .breadcrumb a { color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════════════
   ARCHIVE FILTERS
═══════════════════════════════════════════════ */
.nfm-archive-filters {
    padding: 1.5rem 3rem;
    background: var(--nfm-white);
    border-bottom: 1px solid var(--nfm-border);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}
.nfm-filters-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.nfm-filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.nfm-filter-tag {
    display: inline-block;
    padding: 0.45rem 1.15rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--nfm-pink-light);
    background: transparent;
    color: var(--nfm-magenta-dark);
    transition: all 0.3s ease;
    font-family: var(--nfm-font-body);
}
.nfm-filter-tag:hover,
.nfm-filter-tag.active {
    background: linear-gradient(135deg, var(--nfm-magenta) 0%, var(--nfm-magenta-dark) 100%);
    color: var(--nfm-white);
    border-color: var(--nfm-magenta);
}
.nfm-search-box {
    display: flex;
    align-items: center;
    background: var(--nfm-cream);
    border-radius: 100px;
    padding: 0.45rem 1rem;
    gap: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.nfm-search-box:focus-within { border-color: var(--nfm-magenta); }
.nfm-search-box svg { width: 18px; height: 18px; color: var(--nfm-text-muted); flex-shrink: 0; }
.nfm-search-box input {
    border: none;
    background: transparent;
    font-family: var(--nfm-font-body);
    font-size: 0.85rem;
    color: var(--nfm-black);
    outline: none;
    width: 180px;
}
.nfm-search-box input::placeholder { color: var(--nfm-text-muted); }
.nfm-search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
}

/* ═══════════════════════════════════════════════
   ARCHIVE LAYOUT
═══════════════════════════════════════════════ */
.nfm-archive-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

/* ═══════════════════════════════════════════════
   POST CARDS
═══════════════════════════════════════════════ */
.nfm-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.nfm-post-card {
    background: var(--nfm-white);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}
.nfm-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(163, 68, 115, 0.12);
    border-color: var(--nfm-pink-light);
}
.nfm-post-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--nfm-pink-lightest);
}
.nfm-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.nfm-post-card:hover .nfm-post-card-image img { transform: scale(1.05); }
.nfm-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--nfm-magenta) 0%, var(--nfm-magenta-dark) 100%);
    color: var(--nfm-white);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 2;
}
.nfm-post-card-body { padding: 1.5rem; }
.nfm-post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--nfm-text-muted);
    margin-bottom: 0.75rem;
}
.nfm-post-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.nfm-post-card-meta svg { width: 14px; height: 14px; color: var(--nfm-pink); }
.nfm-post-card h2 {
    font-family: var(--nfm-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}
.nfm-post-card h2 a { color: inherit; }
.nfm-post-card:hover h2 { color: var(--nfm-magenta); }
.nfm-excerpt {
    font-size: 0.875rem;
    color: var(--nfm-text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nfm-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nfm-magenta);
    transition: gap 0.3s ease;
}
.nfm-read-more:hover { gap: 0.75rem; }
.nfm-read-more svg { width: 16px; height: 16px; }

/* Featured Post */
.nfm-post-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.nfm-post-card.featured .nfm-post-card-image { height: 100%; min-height: 280px; }
.nfm-post-card.featured .nfm-post-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}
.nfm-post-card.featured h2 { font-size: 1.5rem; }
.nfm-post-card.featured .nfm-excerpt { -webkit-line-clamp: 4; }

/* No thumbnail fallback */
.nfm-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--nfm-pink-lightest) 0%, var(--nfm-pink-light) 100%);
}
.nfm-no-thumb svg { width: 48px; height: 48px; color: var(--nfm-magenta); opacity: 0.4; }

/* ═══════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════ */
.nfm-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0 0;
}
.nfm-pagination a,
.nfm-pagination span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--nfm-pink-light);
    background: var(--nfm-white);
    color: var(--nfm-magenta-dark);
    transition: all 0.3s ease;
}
.nfm-pagination a:hover,
.nfm-pagination span.current {
    background: linear-gradient(135deg, var(--nfm-magenta) 0%, var(--nfm-magenta-dark) 100%);
    color: var(--nfm-white);
    border-color: var(--nfm-magenta);
}
.nfm-pagination .dots {
    border: none;
    background: none;
    color: var(--nfm-text-muted);
}

/* ═══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */
.nfm-sidebar { display: flex; flex-direction: column; gap: 2rem; }
.sidebar-widget {
    background: var(--nfm-white);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 10px 40px rgba(163, 68, 115, 0.06);
}
.sidebar-widget h3 {
    font-family: var(--nfm-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--nfm-pink-lightest);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-widget h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--nfm-magenta);
    border-radius: 50%;
}

/* Popular Posts */
.nfm-popular-post {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--nfm-border);
}
.nfm-popular-post:last-child { border-bottom: none; }
.nfm-popular-post-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--nfm-pink-lightest);
}
.nfm-popular-post-img img { width: 100%; height: 100%; object-fit: cover; }
.nfm-popular-post h4 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}
.nfm-popular-post:hover h4 { color: var(--nfm-magenta); }
.nfm-popular-post h4 a { color: inherit; }
.nfm-popular-post span { font-size: 0.7rem; color: var(--nfm-text-muted); }

/* Categories Widget */
.nfm-category-list { list-style: none; padding: 0; margin: 0; }
.nfm-category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--nfm-border);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.nfm-category-list li:last-child { border-bottom: none; }
.nfm-category-list li:hover { color: var(--nfm-magenta); }
.nfm-category-list li a { color: inherit; flex: 1; }
.nfm-count {
    background: var(--nfm-pink-lightest);
    color: var(--nfm-magenta);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Tags Widget */
.nfm-tags-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nfm-tag-pill {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--nfm-pink-lightest);
    color: var(--nfm-magenta-dark);
    transition: all 0.3s ease;
}
.nfm-tag-pill:hover {
    background: var(--nfm-magenta);
    color: var(--nfm-white);
}

/* CTA Widget */
.sidebar-widget.nfm-sidebar-cta {
    background: linear-gradient(135deg, var(--nfm-magenta) 0%, var(--nfm-magenta-dark) 100%);
    color: var(--nfm-white);
    text-align: center;
}
.nfm-sidebar-cta h3 {
    color: var(--nfm-white);
    border-bottom-color: rgba(255,255,255,0.2);
    justify-content: center;
}
.nfm-sidebar-cta h3::before { background: var(--nfm-pink-light); }
.nfm-sidebar-cta p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.nfm-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--nfm-white);
    color: var(--nfm-magenta-dark);
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.nfm-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    color: var(--nfm-magenta-dark);
}

/* No results */
.nfm-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}
.nfm-no-results h2 {
    font-family: var(--nfm-font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.nfm-no-results p { color: var(--nfm-text-muted); margin-bottom: 2rem; }
.nfm-no-results .nfm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--nfm-magenta) 0%, var(--nfm-magenta-dark) 100%);
    color: var(--nfm-white);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}
.nfm-no-results .nfm-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(163, 68, 115, 0.35);
}

/* ═══════════════════════════════════════════════
   SINGLE POST — HERO
═══════════════════════════════════════════════ */
.nfm-single-hero {
    position: relative;
    height: 55vh;
    min-height: 400px;
    overflow: hidden;
    width: 100%;
}
.nfm-single-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nfm-single-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.2) 50%, transparent 100%);
}
/* Fallback hero sin imagen */
.nfm-single-hero.no-image {
    background: linear-gradient(135deg, var(--nfm-magenta-dark) 0%, var(--nfm-magenta) 50%, var(--nfm-pink) 100%);
    height: auto;
    min-height: auto;
    padding: 5rem 3rem 4rem;
}
.nfm-single-hero.no-image::after { display: none; }
.nfm-single-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.nfm-single-hero.no-image .nfm-single-hero-content {
    position: relative;
    max-width: 700px;
    text-align: center;
}
.nfm-single-hero .nfm-category-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
}
.nfm-single-hero h1 {
    font-family: var(--nfm-font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--nfm-white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.nfm-post-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.nfm-single-hero.no-image .nfm-post-hero-meta { justify-content: center; }
.nfm-author-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.nfm-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nfm-magenta) 0%, var(--nfm-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--nfm-font-display);
    font-weight: 700;
    color: var(--nfm-white);
    font-size: 0.85rem;
    overflow: hidden;
}
.nfm-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nfm-author-name { font-size: 0.85rem; font-weight: 600; color: var(--nfm-white); }
.nfm-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}
.nfm-meta-item svg { width: 15px; height: 15px; color: var(--nfm-pink-light); }

/* ═══════════════════════════════════════════════
   SINGLE POST — LAYOUT
═══════════════════════════════════════════════ */
.nfm-single-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* ═══════════════════════════════════════════════
   SINGLE POST — ARTICLE
═══════════════════════════════════════════════ */
.nfm-article {
    background: var(--nfm-white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(163, 68, 115, 0.06);
}
.nfm-article-content h2 {
    font-family: var(--nfm-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--nfm-black);
    letter-spacing: -0.01em;
}
.nfm-article-content h3 {
    font-family: var(--nfm-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--nfm-magenta-dark);
}
.nfm-article-content h4 {
    font-family: var(--nfm-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.nfm-article-content p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--nfm-text-muted);
    margin-bottom: 1.25rem;
}
.nfm-article-content p strong { color: var(--nfm-black); font-weight: 600; }
.nfm-article-content a { color: var(--nfm-magenta); font-weight: 500; text-decoration: underline; }
.nfm-article-content a:hover { color: var(--nfm-magenta-dark); }
.nfm-article-content ul,
.nfm-article-content ol {
    margin: 1rem 0 1.5rem 1.25rem;
}
.nfm-article-content li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--nfm-text-muted);
    margin-bottom: 0.5rem;
}
.nfm-article-content li strong { color: var(--nfm-black); }
.nfm-article-content blockquote {
    background: var(--nfm-pink-lightest);
    border-left: 4px solid var(--nfm-magenta);
    padding: 1.5rem 2rem;
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
}
.nfm-article-content blockquote p {
    color: var(--nfm-magenta-dark);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}
.nfm-article-content figure {
    margin: 2rem 0;
}
.nfm-article-content figure img {
    border-radius: 16px;
    width: 100%;
}
.nfm-article-content figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--nfm-text-muted);
    padding: 0.75rem;
    font-style: italic;
}

/* Gutenberg blocks support */
.nfm-article-content .wp-block-image img { border-radius: 16px; }
.nfm-article-content .wp-block-quote {
    background: var(--nfm-pink-lightest);
    border-left: 4px solid var(--nfm-magenta);
    padding: 1.5rem 2rem;
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
}

/* ═══════════════════════════════════════════════
   SINGLE POST — TAGS & SHARE
═══════════════════════════════════════════════ */
.nfm-post-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--nfm-pink-lightest);
    flex-wrap: wrap;
    gap: 1rem;
}
.nfm-post-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.nfm-post-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--nfm-pink-lightest);
    color: var(--nfm-magenta-dark);
    transition: all 0.3s ease;
}
.nfm-post-tag:hover { background: var(--nfm-magenta); color: var(--nfm-white); }
.nfm-share-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nfm-share-links > span { font-size: 0.8rem; font-weight: 600; color: var(--nfm-text-muted); }
.nfm-share-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--nfm-pink-lightest);
    color: var(--nfm-magenta);
    transition: all 0.3s ease;
}
.nfm-share-btn:hover {
    background: var(--nfm-magenta);
    color: var(--nfm-white);
    transform: translateY(-2px);
}
.nfm-share-btn svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════
   SINGLE POST — AUTHOR BOX
═══════════════════════════════════════════════ */
.nfm-author-box {
    background: var(--nfm-white);
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 10px 40px rgba(163, 68, 115, 0.06);
}
.nfm-author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nfm-magenta) 0%, var(--nfm-magenta-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--nfm-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--nfm-white);
    flex-shrink: 0;
    overflow: hidden;
}
.nfm-author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nfm-author-box h3 {
    font-family: var(--nfm-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.nfm-author-box .role {
    font-size: 0.8rem;
    color: var(--nfm-magenta);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.nfm-author-box p { font-size: 0.875rem; color: var(--nfm-text-muted); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   SINGLE POST — NAVIGATION
═══════════════════════════════════════════════ */
.nfm-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
.nfm-post-nav-item {
    background: var(--nfm-white);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.nfm-post-nav-item:hover {
    border-color: var(--nfm-pink-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(163, 68, 115, 0.1);
    color: var(--nfm-black);
}
.nfm-post-nav-item.next { text-align: right; flex-direction: row-reverse; }
.nfm-nav-arrow {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nfm-pink-lightest);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.nfm-post-nav-item:hover .nfm-nav-arrow { background: var(--nfm-magenta); }
.nfm-nav-arrow svg { width: 18px; height: 18px; color: var(--nfm-magenta); }
.nfm-post-nav-item:hover .nfm-nav-arrow svg { color: var(--nfm-white); }
.nfm-nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nfm-text-muted);
    margin-bottom: 0.25rem;
}
.nfm-nav-title {
    font-family: var(--nfm-font-display);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

/* ═══════════════════════════════════════════════
   SINGLE POST — RELATED SECTION
═══════════════════════════════════════════════ */
.nfm-related-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem 4rem;
}
.nfm-related-section > h2 {
    font-family: var(--nfm-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}
.nfm-related-section > h2 .accent {
    background: linear-gradient(135deg, var(--nfm-magenta) 0%, var(--nfm-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nfm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.nfm-related-card {
    background: var(--nfm-white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    display: block;
}
.nfm-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(163, 68, 115, 0.12);
    border-color: var(--nfm-pink-light);
    color: var(--nfm-black);
}
.nfm-related-card-img { height: 180px; overflow: hidden; background: var(--nfm-pink-lightest); }
.nfm-related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.nfm-related-card:hover .nfm-related-card-img img { transform: scale(1.05); }
.nfm-related-card-body { padding: 1.5rem; }
.nfm-related-card-body .cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nfm-magenta);
    margin-bottom: 0.5rem;
}
.nfm-related-card-body h3 {
    font-family: var(--nfm-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.nfm-related-card:hover h3 { color: var(--nfm-magenta); }
.nfm-related-card-body .date { font-size: 0.75rem; color: var(--nfm-text-muted); }

/* TOC in sidebar */
.nfm-toc-list { list-style: none; padding: 0; margin: 0; }
.nfm-toc-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--nfm-border);
}
.nfm-toc-list li:last-child { border-bottom: none; }
.nfm-toc-list a {
    font-size: 0.85rem;
    color: var(--nfm-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.nfm-toc-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--nfm-pink-light);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s ease;
}
.nfm-toc-list a:hover { color: var(--nfm-magenta); }
.nfm-toc-list a:hover::before { background: var(--nfm-magenta); }

/* ═══════════════════════════════════════════════
   FULL-WIDTH BREAKOUT (cuando Astra mete containers)
   Técnica: si el .nfm-blog está dentro de un container con max-width,
   estas secciones se salen a 100vw igualmente.
═══════════════════════════════════════════════ */
.nfm-blog {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Related section en single post también full width */
.nfm-related-section {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* El footer de Astra también necesita espacio limpio */
.nfm-fullwidth-blog .site-footer,
.nfm-fullwidth-single .site-footer {
    width: 100% !important;
    max-width: 100% !important;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nfm-archive-content,
    .nfm-single-layout { grid-template-columns: 1fr; }
    .nfm-sidebar { order: -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .nfm-sidebar-cta { grid-column: 1 / -1; }
    .nfm-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nfm-archive-hero { padding: 4rem 1.5rem 3rem; }
    .nfm-archive-filters { padding: 1.25rem 1.5rem; }
    .nfm-filters-inner { flex-direction: column; align-items: stretch; }
    .nfm-filter-tags { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
    .nfm-filter-tags::-webkit-scrollbar { display: none; }
    .nfm-search-box input { width: 100%; }
    .nfm-archive-content,
    .nfm-single-layout { padding: 2rem 1.5rem; }
    .nfm-posts-grid { grid-template-columns: 1fr; }
    .nfm-post-card.featured { grid-template-columns: 1fr; }
    .nfm-post-card.featured .nfm-post-card-image { min-height: 200px; }
    .nfm-sidebar { grid-template-columns: 1fr; }
    .nfm-single-hero { height: 45vh; min-height: 320px; }
    .nfm-single-hero-content { padding: 2rem 1.5rem; }
    .nfm-article { padding: 2rem 1.5rem; }
    .nfm-post-nav { grid-template-columns: 1fr; }
    .nfm-author-box { flex-direction: column; text-align: center; }
    .nfm-related-section { padding: 0 1.5rem 3rem; }
    .nfm-related-grid { grid-template-columns: 1fr; }
    .breadcrumb { flex-wrap: wrap; }
    /* En móvil no necesitamos la técnica vw breakout en secciones internas */
    .nfm-archive-hero,
    .nfm-archive-filters,
    .nfm-single-hero {
        width: 100%;
        margin-left: 0;
    }
}
@media (max-width: 480px) {
    .nfm-single-hero h1 { font-size: 1.5rem; }
    .nfm-post-hero-meta { gap: 0.75rem; }
    .nfm-post-footer-meta { flex-direction: column; align-items: flex-start; }
}
