/* ============================================================
 * Frasesflax — rediseño editorial
 * Todas las clases y variables van prefijadas con ff- para
 * convivir sin conflictos con Bootstrap 5 y con styles.css.
 * ============================================================ */

:root {
    --ff-bg:          #F1E9DA;
    --ff-bg-deep:     #E8DEC9;
    --ff-paper:       #FBF6EB;
    --ff-paper-warm:  #F7EFDE;
    --ff-ink:         #1A1410;
    --ff-ink-soft:    #3D352B;
    --ff-ink-mute:    #847A6A;
    --ff-ink-faint:   #B6AC99;
    --ff-accent:      #A23A1F;
    --ff-accent-deep: #6F2310;
    --ff-gold:        #C8923A;
    --ff-gold-soft:   #E5C57E;
    --ff-line:        rgba(26, 20, 16, 0.14);
    --ff-line-strong: rgba(26, 20, 16, 0.28);

    --ff-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
    --ff-sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset suave dentro del scope ff (no quiero romper bootstrap fuera) */
.ff-scope, .ff-scope * { box-sizing: border-box; }

body.ff-body {
    font-family: var(--ff-sans);
    background: var(--ff-bg);
    color: var(--ff-ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Grano de papel global. No bloquea clicks. */
body.ff-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
}

.ff-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* ============ TOPBAR / NAV ============ */
.ff-topbar {
    border-bottom: 1px solid var(--ff-line);
    background: var(--ff-bg);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(1.1);
}

.ff-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 40px;
}

.ff-logo {
    font-family: var(--ff-serif);
    font-size: 30px;
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--ff-ink);
    text-decoration: none;
    line-height: 1;
    position: relative;
    flex-shrink: 0;
}

.ff-logo::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ff-accent);
}

.ff-nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.ff-nav-links a {
    color: var(--ff-ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.ff-nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--ff-accent);
    transition: width 0.3s ease;
}

.ff-nav-links a:hover { color: var(--ff-ink); }
.ff-nav-links a:hover::after { width: 100%; }

.ff-nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ff-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--ff-line);
    background: var(--ff-paper);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ff-ink-mute);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--ff-sans);
}

.ff-search-trigger:hover {
    border-color: var(--ff-ink);
    color: var(--ff-ink);
}

.ff-search-trigger svg { width: 14px; height: 14px; }

.ff-logout-form { display: inline; margin: 0; }
.ff-logout-btn {
    background: transparent;
    border: 1px solid var(--ff-line-strong);
    color: var(--ff-ink-soft);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--ff-sans);
    transition: all 0.2s ease;
}
.ff-logout-btn:hover { background: var(--ff-ink); color: var(--ff-paper); border-color: var(--ff-ink); }

/* ============ HERO ============ */
.ff-hero {
    padding: 80px 0 100px;
    position: relative;
}

.ff-hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
    font-size: 12px;
    color: var(--ff-ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
}

.ff-hero-meta::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--ff-ink-mute);
}

.ff-hero-quote {
    font-family: var(--ff-serif);
    font-size: clamp(40px, 7vw, 96px);
    line-height: 1.0;
    letter-spacing: -0.025em;
    color: var(--ff-ink);
    max-width: 1100px;
    font-weight: 400;
    margin: 0 0 56px;
}

.ff-hero-quote .ff-q-open,
.ff-hero-quote .ff-q-close {
    color: var(--ff-accent);
    font-style: italic;
}

.ff-hero-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 32px;
    border-top: 1px solid var(--ff-line);
    padding-top: 28px;
}

.ff-hero-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ff-hero-author-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ff-ink-mute);
    font-weight: 500;
}

.ff-hero-author-name {
    font-family: var(--ff-serif);
    font-size: 24px;
    color: var(--ff-ink);
    font-style: italic;
}

.ff-hero-author-name a { color: inherit; text-decoration: none; }
.ff-hero-author-name a:hover { color: var(--ff-accent); }

.ff-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.ff-reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--ff-line-strong);
    background: var(--ff-paper);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ff-ink);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ff-sans);
}

.ff-reaction-pill:hover {
    background: var(--ff-ink);
    color: var(--ff-paper);
    border-color: var(--ff-ink);
    transform: translateY(-1px);
}
.ff-reaction-pill.is-disliked:hover { background: var(--ff-accent-deep); border-color: var(--ff-accent-deep); }

.ff-reaction-pill svg { width: 14px; height: 14px; }
.ff-reaction-pill[disabled] { opacity: 0.4; pointer-events: none; }

.ff-share-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ff-line-strong);
    background: var(--ff-paper);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--ff-ink);
    padding: 0;
}

.ff-share-btn:hover {
    background: var(--ff-accent);
    border-color: var(--ff-accent);
    color: var(--ff-paper);
    transform: translateY(-1px);
}

.ff-share-btn svg { width: 16px; height: 16px; }

.ff-hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ff-hero-cats a {
    font-size: 12px;
    color: var(--ff-ink-soft);
    text-decoration: none;
    border: 1px solid var(--ff-line);
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: all 0.2s ease;
}
.ff-hero-cats a:hover { background: var(--ff-ink); color: var(--ff-paper); border-color: var(--ff-ink); }

.ff-vote-result {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ff-ink-mute);
    min-height: 20px;
}

/* ============ INTRO BAR (oscura) ============ */
.ff-intro-bar {
    background: var(--ff-ink);
    color: var(--ff-paper);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.ff-intro-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(200, 146, 58, 0.08), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(162, 58, 31, 0.10), transparent 50%);
    pointer-events: none;
}

.ff-intro-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    position: relative;
}

.ff-intro-headline {
    font-family: var(--ff-serif);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--ff-paper);
    margin: 0;
    font-weight: 400;
}

.ff-intro-headline em { font-style: italic; color: var(--ff-gold-soft); }

.ff-intro-text {
    color: rgba(251, 246, 235, 0.7);
    font-size: 16px;
    line-height: 1.7;
    align-self: end;
    margin: 0;
}

.ff-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(251, 246, 235, 0.18);
    position: relative;
}

.ff-stat { display: flex; flex-direction: column; gap: 4px; }

.ff-stat-num {
    font-family: var(--ff-serif);
    font-size: 56px;
    line-height: 1;
    color: var(--ff-paper);
    letter-spacing: -0.02em;
}

.ff-stat-num em { font-style: italic; color: var(--ff-gold-soft); }

.ff-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(251, 246, 235, 0.55);
    font-weight: 500;
    margin-top: 4px;
}

/* ============ SECCIÓN GENÉRICA ============ */
.ff-section { padding: 100px 0; }

.ff-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ff-line);
}

.ff-section-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--ff-accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ff-section-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--ff-accent);
}

.ff-section-title {
    font-family: var(--ff-serif);
    font-size: clamp(32px, 4.5vw, 60px);
    line-height: 1;
    letter-spacing: -0.02em;
    max-width: 720px;
    margin: 0;
    font-weight: 400;
}

.ff-section-title em { font-style: italic; color: var(--ff-accent); }

.ff-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ff-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--ff-ink);
    padding-bottom: 4px;
    transition: gap 0.3s ease;
}

.ff-section-link:hover { gap: 14px; color: var(--ff-ink); }

/* ============ CATEGORÍAS GRID ============ */
.ff-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--ff-line);
    border: 1px solid var(--ff-line);
}

.ff-cat-card {
    background: var(--ff-paper);
    padding: 32px 28px;
    text-decoration: none;
    color: var(--ff-ink);
    position: relative;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    gap: 24px;
}

.ff-cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ff-ink);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 0;
}

.ff-cat-card:hover::before { transform: translateY(0); }
.ff-cat-card:hover { color: var(--ff-paper); }
.ff-cat-card:hover .ff-cat-num { color: var(--ff-gold-soft); }
.ff-cat-card:hover .ff-cat-meta { color: rgba(251, 246, 235, 0.6); }

.ff-cat-card > * { position: relative; z-index: 1; }

.ff-cat-num {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--ff-ink-mute);
    transition: color 0.3s ease;
}

.ff-cat-name {
    font-family: var(--ff-serif);
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.015em;
}

.ff-cat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ff-ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ff-cat-arrow { width: 18px; height: 18px; transition: transform 0.3s ease; }
.ff-cat-card:hover .ff-cat-arrow { transform: translateX(4px) translateY(-4px); }

.ff-cats-more {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.ff-cat-tag {
    padding: 8px 16px;
    border: 1px solid var(--ff-line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ff-ink-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ff-cat-tag:hover { background: var(--ff-ink); color: var(--ff-paper); border-color: var(--ff-ink); }

/* ============ FRASES DESTACADAS (revista) ============ */
.ff-featured { background: var(--ff-bg-deep); }

.ff-quotes-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.ff-qcard {
    background: var(--ff-paper);
    padding: 36px 32px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--ff-line);
}

.ff-qcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -24px rgba(26, 20, 16, 0.25);
}

.ff-qcard.ff-size-lg { grid-column: span 7; min-height: 360px; padding: 48px 40px; }
.ff-qcard.ff-size-md { grid-column: span 5; min-height: 320px; }
.ff-qcard.ff-size-sm { grid-column: span 4; min-height: 260px; }

.ff-qcard.ff-dark   { background: var(--ff-ink); color: var(--ff-paper); border-color: var(--ff-ink); }
.ff-qcard.ff-gold   { background: var(--ff-gold); color: var(--ff-ink); border-color: var(--ff-gold); }
.ff-qcard.ff-accent { background: var(--ff-accent); color: var(--ff-paper); border-color: var(--ff-accent); }

.ff-qcard-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    opacity: 0.65;
}

.ff-qcard-text {
    font-family: var(--ff-serif);
    line-height: 1.05;
    letter-spacing: -0.015em;
    font-weight: 400;
    margin: 0;
}

.ff-qcard.ff-size-lg .ff-qcard-text { font-size: 44px; }
.ff-qcard.ff-size-md .ff-qcard-text { font-size: 32px; }
.ff-qcard.ff-size-sm .ff-qcard-text { font-size: 24px; line-height: 1.15; }

.ff-qcard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid currentColor;
    opacity: 0.85;
}

.ff-qcard-author {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 16px;
}

.ff-qcard-likes {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.ff-qcard-likes svg { width: 14px; height: 14px; }

/* Tarjeta para listado de categoría (lista vertical, no grid)
 * Estructura:
 *   <article class="ff-list-quote-wrap">      ← borde y hover viven aquí
 *     <a class="ff-list-quote"> frase </a>
 *     <div class="ff-list-quote-meta"> ... </div>
 *   </article>
 */
.ff-list-quote-wrap {
    padding: 36px 0;
    border-bottom: 1px solid var(--ff-line);
    transition: padding 0.3s ease, background 0.3s ease;
}

.ff-list-quote-wrap:hover {
    padding-left: 16px;
    padding-right: 16px;
    background: var(--ff-paper);
}

.ff-list-quote {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
}

.ff-list-quote-text {
    font-family: var(--ff-serif);
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ff-ink);
    margin: 0;
    font-weight: 400;
}

.ff-list-quote-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}

.ff-list-quote-author {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--ff-ink-soft);
    text-decoration: none;
}
.ff-list-quote-author:hover { color: var(--ff-accent); }

.ff-list-quote-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ff-list-quote-cats a {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ff-ink-mute);
    text-decoration: none;
    border: 1px solid var(--ff-line);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.ff-list-quote-cats a:hover { background: var(--ff-ink); color: var(--ff-paper); border-color: var(--ff-ink); }

.ff-list-quote-votes {
    display: flex;
    gap: 14px;
    color: var(--ff-ink-mute);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.ff-list-quote-votes svg { width: 12px; height: 12px; vertical-align: -1px; }

/* ============ TOP 10 ============ */
.ff-top-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ff-line);
}

.ff-top-item {
    display: grid;
    grid-template-columns: 80px 1fr 200px 80px;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--ff-line);
    align-items: center;
    transition: padding 0.3s ease, background 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.ff-top-item:hover { padding-left: 16px; padding-right: 16px; background: var(--ff-paper); }

.ff-top-num {
    font-family: var(--ff-serif);
    font-size: 56px;
    font-style: italic;
    line-height: 1;
    color: var(--ff-accent);
    letter-spacing: -0.03em;
}

.ff-top-text {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.2;
    color: var(--ff-ink);
    letter-spacing: -0.01em;
    margin: 0;
}

.ff-top-author {
    font-size: 13px;
    color: var(--ff-ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    text-decoration: none;
}
.ff-top-author:hover { color: var(--ff-accent); }

.ff-top-likes {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 14px;
    color: var(--ff-ink-soft);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.ff-top-likes svg { width: 14px; height: 14px; color: var(--ff-accent); }

/* ============ INSTAGRAM ============ */
.ff-insta-section {
    background: var(--ff-paper);
    border-top: 1px solid var(--ff-line);
    border-bottom: 1px solid var(--ff-line);
}

.ff-insta-embed {
    margin-top: 32px;
    border: 1px solid var(--ff-line);
    background: var(--ff-paper-warm);
    padding: 8px;
    border-radius: 4px;
}

.ff-insta-embed iframe {
    width: 100%;
    border: 0;
    overflow: hidden;
    display: block;
}

/* ============ NEWSLETTER ============ */
.ff-newsletter {
    background: var(--ff-ink);
    color: var(--ff-paper);
    padding: 100px 0;
    text-align: center;
}

.ff-newsletter-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--ff-gold-soft);
    margin-bottom: 24px;
}

.ff-newsletter-title {
    font-family: var(--ff-serif);
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1;
    max-width: 900px;
    margin: 0 auto 32px;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.ff-newsletter-title em { font-style: italic; color: var(--ff-gold-soft); }

.ff-newsletter-sub {
    color: rgba(251, 246, 235, 0.65);
    font-size: 17px;
    max-width: 540px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.ff-nl-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    background: rgba(251, 246, 235, 0.08);
    border: 1px solid rgba(251, 246, 235, 0.18);
    border-radius: 999px;
    padding: 6px;
}

.ff-nl-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ff-paper);
    font-size: 15px;
    padding: 10px 18px;
    font-family: var(--ff-sans);
    min-width: 0;
}

.ff-nl-input::placeholder { color: rgba(251, 246, 235, 0.4); }

.ff-nl-btn {
    background: var(--ff-gold-soft);
    color: var(--ff-ink);
    border: none;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--ff-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ff-nl-btn:hover { background: var(--ff-paper); transform: translateY(-1px); }

/* ============ FOOTER ============ */
.ff-footer { background: var(--ff-bg); padding: 80px 0 40px; }

.ff-foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.ff-foot-name {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 32px;
    margin-bottom: 16px;
}

.ff-foot-tagline {
    font-family: var(--ff-serif);
    font-size: 18px;
    line-height: 1.4;
    color: var(--ff-ink-soft);
    max-width: 320px;
    font-style: italic;
    margin: 0;
}

.ff-foot-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ff-ink-mute);
    font-weight: 600;
    margin: 0 0 20px;
}

.ff-foot-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.ff-foot-col a {
    color: var(--ff-ink-soft);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.ff-foot-col a:hover { color: var(--ff-accent); }

.ff-foot-bottom {
    border-top: 1px solid var(--ff-line);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--ff-ink-mute);
}

.ff-foot-bottom a { color: var(--ff-ink-mute); text-decoration: none; }
.ff-foot-bottom a:hover { color: var(--ff-ink); }

.ff-foot-cross {
    border-top: 1px solid var(--ff-line);
    padding-top: 24px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--ff-ink-mute);
}
.ff-foot-cross a { color: var(--ff-ink-mute); text-decoration: underline; text-underline-offset: 3px; }
.ff-foot-cross a:hover { color: var(--ff-accent); }

.ff-foot-social { display: flex; gap: 12px; }

.ff-foot-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--ff-line-strong);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--ff-ink);
}

.ff-foot-social a:hover { background: var(--ff-ink); color: var(--ff-paper); border-color: var(--ff-ink); }
.ff-foot-social svg { width: 16px; height: 16px; }

/* ============ PARTIAL: BUSCADOR ============ */
.ff-search-block {
    padding: 80px 0;
    border-top: 1px solid var(--ff-line);
    border-bottom: 1px solid var(--ff-line);
    background: var(--ff-paper);
}

.ff-search-intro {
    font-family: var(--ff-serif);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    max-width: 800px;
}

.ff-search-intro a {
    color: var(--ff-accent);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.ff-search-hint {
    font-size: 13px;
    color: var(--ff-ink-mute);
    margin: 0 0 24px;
}

.ff-search-form {
    display: flex;
    gap: 0;
    max-width: 720px;
    border: 1px solid var(--ff-line-strong);
    border-radius: 999px;
    background: var(--ff-bg);
    padding: 6px;
    overflow: hidden;
}

.ff-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ff-ink);
    font-size: 15px;
    padding: 10px 18px;
    font-family: var(--ff-sans);
    min-width: 0;
}

.ff-search-input::placeholder { color: var(--ff-ink-mute); }

.ff-search-submit {
    background: var(--ff-ink);
    color: var(--ff-paper);
    border: none;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--ff-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ff-search-submit:hover { background: var(--ff-accent); transform: translateY(-1px); }

/* ============ PAGINACIÓN ============ */
.ff-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 56px 0 0;
    padding: 0;
}

.ff-pagination li a,
.ff-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--ff-line);
    border-radius: 999px;
    color: var(--ff-ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: var(--ff-paper);
    transition: all 0.2s ease;
}

.ff-pagination li a:hover {
    border-color: var(--ff-ink);
    color: var(--ff-ink);
}

.ff-pagination li.active a,
.ff-pagination li.active span {
    background: var(--ff-ink);
    color: var(--ff-paper);
    border-color: var(--ff-ink);
}

.ff-pagination li.disabled a,
.ff-pagination li.disabled span { opacity: 0.4; pointer-events: none; }

.ff-pagination-summary {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--ff-ink-mute);
}

/* ============ PÁGINA: CATEGORÍA ============ */
.ff-category-header {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--ff-line);
}

.ff-category-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--ff-accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ff-category-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--ff-accent);
}

.ff-category-title {
    font-family: var(--ff-serif);
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 0 0 24px;
    font-weight: 400;
}

.ff-category-desc {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.4;
    color: var(--ff-ink-soft);
    max-width: 760px;
    margin: 0;
    font-style: italic;
}

.ff-category-list { padding: 40px 0 100px; }

/* ============ TÍTULO DE PÁGINA GENÉRICO ============ */
.ff-page-header {
    padding: 80px 0 40px;
    border-bottom: 1px solid var(--ff-line);
}
.ff-page-header h1 {
    font-family: var(--ff-serif);
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 0;
    font-weight: 400;
}
.ff-page-header .ff-page-lead {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.4;
    color: var(--ff-ink-soft);
    max-width: 760px;
    margin: 24px 0 0;
    font-style: italic;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .ff-cats-grid { grid-template-columns: repeat(2, 1fr); }
    .ff-stats-row { grid-template-columns: repeat(2, 1fr); }
    .ff-intro-grid { grid-template-columns: 1fr; gap: 32px; }
    .ff-qcard.ff-size-lg, .ff-qcard.ff-size-md, .ff-qcard.ff-size-sm { grid-column: span 12; }
    .ff-foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .ff-top-item { grid-template-columns: 60px 1fr 60px; }
    .ff-top-author { display: none; }
}

@media (max-width: 640px) {
    .ff-wrap { padding: 0 20px; }
    .ff-nav-links { display: none; }
    .ff-hero { padding: 56px 0 60px; }
    .ff-section { padding: 64px 0; }
    .ff-cats-grid { grid-template-columns: 1fr; }
    .ff-foot-grid { grid-template-columns: 1fr; }
    .ff-stats-row { grid-template-columns: 1fr 1fr; gap: 16px; }
    .ff-stat-num { font-size: 40px; }
    .ff-nl-form { flex-direction: column; padding: 12px; border-radius: 16px; }
    .ff-nl-btn { width: 100%; }
    .ff-search-form { flex-direction: column; padding: 12px; border-radius: 16px; }
    .ff-search-submit { width: 100%; }
    .ff-newsletter { padding: 64px 0; }
    .ff-category-header { padding: 56px 0 40px; }
}
