/*========================================================================
  [SECCIÓN] Single Post — Artículo individual del blog
  Diseño editorial premium con hero, contenido formateado y CTA dinámico.
  Paleta: Manual de Identidad Fungiverse
  ========================================================================*/

/* ═══ HERO ═══ */
.fv-single-hero {
    position: relative;
    padding: clamp(6rem, 12vw, 10rem) 0 clamp(3rem, 6vw, 5rem);
    background: var(--fv-bg-dark);
    color: var(--fv-text-light);
    overflow: hidden;
}

.fv-single-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(232,77,68,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(232,77,68,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.fv-single-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.fv-single-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(250,250,245,0.55);
}

.fv-single-hero__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 200ms ease;
    background: rgba(232,77,68,0.15);
    color: var(--fv-primary);
}

.fv-single-hero__category:hover {
    opacity: 0.8;
}

/* Colores por categoría */
.fv-single-hero__category--adaptogenos {
    background: rgba(76,175,80,0.15);
    color: #66bb6a;
}
.fv-single-hero__category--ciencia {
    background: rgba(156,39,176,0.15);
    color: #ce93d8;
}
.fv-single-hero__category--sintomas {
    background: rgba(0,150,136,0.15);
    color: #4db6ac;
}
.fv-single-hero__category--guias {
    background: rgba(255,152,0,0.15);
    color: #ffb74d;
}

.fv-single-hero__separator {
    color: rgba(250,250,245,0.25);
}

.fv-single-hero__date,
.fv-single-hero__reading {
    font-family: var(--fv-font-body);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.fv-single-hero__title {
    font-family: var(--fv-font-heading);
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.fv-single-hero__excerpt {
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    line-height: 1.7;
    color: rgba(250,250,245,0.65);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══ CONTENIDO ═══ */
.fv-single-content {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: var(--fv-bg);
}

.fv-container--narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ═══ FORMATO EDITORIAL — Contenido de artículos importados ═══ */
.fv-article-body {
    margin-bottom: 3rem;
}

.fv-content-formatted {
    font-family: var(--fv-font-body);
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    line-height: 1.85;
    color: var(--fv-text);
}

/* Headers dentro de artículos importados */
.fv-content-formatted .header-bar,
.fv-content-formatted .article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--fv-border-light);
}

.fv-content-formatted .header-bar h1,
.fv-content-formatted .article-header h1,
.fv-content-formatted > h1:first-of-type {
    display: none; /* Se muestra en el hero */
}

.fv-content-formatted .subtitle {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--fv-text-muted);
    line-height: 1.7;
    font-style: italic;
}

/* Badges / etiquetas */
.fv-content-formatted .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(232,77,68,0.1);
    color: var(--fv-primary);
    margin-bottom: 0.75rem;
}

.fv-content-formatted h2,
.fv-content-formatted .section-label {
    font-family: var(--fv-font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin: 2.5rem 0 1rem;
    color: var(--fv-text);
}

.fv-content-formatted h3 {
    font-family: var(--fv-font-body);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.625rem;
    color: var(--fv-text);
}

.fv-content-formatted p,
.fv-content-formatted .lead {
    margin-bottom: 1.25rem;
}

.fv-content-formatted .lead {
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    color: var(--fv-text-muted);
    line-height: 1.8;
    border-left: 3px solid var(--fv-primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
}

.fv-content-formatted ul,
.fv-content-formatted ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.fv-content-formatted li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Pull quotes / blockquotes */
.fv-content-formatted blockquote,
.fv-content-formatted .pull-quote {
    position: relative;
    border-left: 4px solid var(--fv-primary);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: var(--fv-bg-alt, rgba(232,77,68,0.03));
    border-radius: 0 12px 12px 0;
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--fv-text-muted);
}

.fv-content-formatted blockquote p:last-child,
.fv-content-formatted .pull-quote p:last-child {
    margin-bottom: 0;
}

/* Evidence boxes / callouts */
.fv-content-formatted .evidence-box,
.fv-content-formatted .info-box,
.fv-content-formatted .callout {
    background: var(--fv-surface, #f8f8f4);
    border: 1px solid var(--fv-border-light);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.fv-content-formatted .evidence-box h3,
.fv-content-formatted .info-box h3,
.fv-content-formatted .callout h3 {
    font-size: 1.1rem;
    margin-top: 0;
    color: var(--fv-primary);
}

/* Grids de fórmulas/productos */
.fv-content-formatted .formulas-grid,
.fv-content-formatted .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.fv-content-formatted .formula-card,
.fv-content-formatted .product-card {
    background: var(--fv-surface, #f8f8f4);
    border: 1px solid var(--fv-border-light);
    border-radius: 16px;
    padding: 1.25rem;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.fv-content-formatted .formula-card:hover,
.fv-content-formatted .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.fv-content-formatted .formula-card h4,
.fv-content-formatted .product-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Decision boxes */
.fv-content-formatted .decision,
.fv-content-formatted .decision-box {
    background: linear-gradient(135deg, var(--fv-surface, #f8f8f4), rgba(232,77,68,0.03));
    border: 1px solid var(--fv-border-light);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

/* Footer notes / bibliografía */
.fv-content-formatted .footer-note,
.fv-content-formatted .biblio,
.fv-content-formatted .references {
    font-size: 0.8125rem;
    color: var(--fv-text-subtle);
    line-height: 1.6;
    border-top: 1px solid var(--fv-border-light);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
}

.fv-content-formatted .biblio h3,
.fv-content-formatted .references h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fv-text-muted);
    margin-bottom: 0.75rem;
}

.fv-content-formatted .biblio ol,
.fv-content-formatted .references ol {
    font-size: 0.8125rem;
    color: var(--fv-text-subtle);
}

/* CTA existentes dentro de los artículos (se ocultan, usamos el dinámico) */
.fv-content-formatted .cta-box,
.fv-content-formatted .cta-section {
    display: none;
}

/* Imágenes dentro de artículos */
.fv-content-formatted img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* Tablas */
.fv-content-formatted table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.fv-content-formatted th,
.fv-content-formatted td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--fv-border-light);
    text-align: left;
}

.fv-content-formatted th {
    background: var(--fv-surface, #f8f8f4);
    font-weight: 600;
}

/* ═══ CTA DINÁMICO DEL BLOG ═══ */
.fv-cta-blog {
    margin: 3rem 0;
}

.fv-cta-blog__inner {
    position: relative;
    background: var(--fv-bg-dark);
    border-radius: 20px;
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    overflow: hidden;
}

.fv-cta-blog__inner::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(232,77,68,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.fv-cta-blog__icon-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(232,77,68,0.1);
    border-radius: 50%;
    margin-bottom: 1.25rem;
    color: var(--fv-primary);
}

.fv-cta-blog__heading {
    font-family: var(--fv-font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: #fff;
    margin-bottom: 0.5rem;
}

.fv-cta-blog__sub {
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: rgba(250,250,245,0.6);
    margin-bottom: 1.75rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.fv-cta-blog__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-family: var(--fv-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    background: var(--fv-primary);
    color: #fff;
}

.fv-cta-blog__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,77,68,0.3);
}

.fv-cta-blog__btn--whatsapp {
    background: #25d366;
}

.fv-cta-blog__btn--whatsapp:hover {
    box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

/* ═══ NAVEGACIÓN DE VUELTA ═══ */
.fv-single-nav {
    display: flex;
    justify-content: center;
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--fv-border-light);
    margin-top: 2rem;
}

.fv-single-nav__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--fv-text-muted);
    text-decoration: none;
    transition: color 200ms ease, gap 200ms ease;
}

.fv-single-nav__back:hover {
    color: var(--fv-primary);
    gap: 0.75rem;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
    .fv-single-hero__meta {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .fv-single-hero__separator {
        display: none;
    }
    
    .fv-cta-blog__inner {
        padding: 1.75rem 1.25rem;
    }
    
    .fv-cta-blog__btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}
