/* ═══════════════════════════════════════════════════════════════════
   FINANCIAL PORTS · LA SECCIÓN, ESTILO FT  ·  FP 1.65.8
   ───────────────────────────────────────────────────────────────────
   La página de categoría deja la rejilla de tarjetas y pasa a leerse
   como la sección de un diario financiero impreso: el papel salmón
   sostiene, el negro manda, el rojo #af0101 señala, y la tipografía
   hace el trabajo — Playfair 900 en los titulares, Inter en la
   maquinaria. Doble filete FT bajo la cabecera (grueso + fino),
   hairlines entre piezas, CERO radios, CERO sombras.

   La última pieza FP PLUS de la sección abre como LEAD a dos columnas;
   el resto desfila en filas de hemeroteca con su miniatura. Cada 4
   filas, un hueco publicitario servido por las zonas del home.
   ═══════════════════════════════════════════════════════════════════ */

.fpcat {
    --fpc-ink:   #1A1614;
    --fpc-mute:  rgba(26, 22, 20, .64);
    --fpc-faint: rgba(26, 22, 20, .45);
    --fpc-hair:  rgba(26, 22, 20, .16);
    --fpc-band:  #0D0D0D;
    --fpc-red:   var(--et-brand, #af0101);
    --fpc-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --fpc-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 22px 70px;
    color: var(--fpc-ink);
    font-family: var(--fpc-sans);
}

/* ── LA CABECERA DE SECCIÓN ─────────────────────────────────────── */
.fpcat__mast { padding: 0 0 14px; }

.fpcat__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--fpc-red);
}
.fpcat__kicker::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--fpc-red);
}

.fpcat__title {
    margin: 10px 0 0;
    font-family: var(--fpc-serif);
    font-weight: 900;
    font-size: clamp(40px, 6vw, 64px);
    line-height: .98;
    letter-spacing: -1px;
    color: var(--fpc-ink);
}

/* FP 1.65.6 · subtexto ALINEADO A LA IZQUIERDA bajo el título (el
   flex space-between lo dejaba flotando hacia el centro) */
.fpcat__standline {
    display: block;
    margin-top: 12px;
    text-align: left;
}
.fpcat__desc {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--fpc-mute);
    max-width: 640px;
    text-align: left;
}
.fpcat__count {
    display: block;
    margin-top: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--fpc-faint);
}

/* el doble filete FT: grueso arriba, fino debajo */
.fpcat__rule {
    height: 0;
    border-top: 3px solid var(--fpc-band);
    position: relative;
    margin-top: 16px;
}
.fpcat__rule::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 3px;
    border-top: 1px solid var(--fpc-band);
}

/* ── EL LEAD · la última de FP PLUS ─────────────────────────────── */
.fpcat__lead {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 38px;
    align-items: center;
    padding: 34px 0 36px;
    border-bottom: 1px solid var(--fpc-hair);
}

/* FP 1.65.6 · el LOGO de FP PLUS, no un botón (orden del CEO) */
.fpcat__plus { display: block; margin: 0 0 2px; }
.fpcat__plus img { height: 16px; width: auto; display: inline-block; }

/* ── EL SELLO SOBRE LAS FOTOS (FP 1.65.8) ───────────────────────────
   El MISMO del home (fp-skin.css): el ancla de la casa como ::after,
   en TODAS las fotos de noticia — no el logo FP PLUS, no un chip
   blanco. fp-skin lo pinta solo dentro de .et-pcv2-page/.et-m, así que
   la sección lo declara aquí con idéntica receta: PNG con su color,
   halo claro que lo despega de la foto sin mancharla. */
.fpcat__lead-photo::after,
.fpcat__row-photo::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    background: url('https://financialports.com/wp-content/uploads/2026/08/ptimage-e1786753590396.png') center / contain no-repeat;
    filter: drop-shadow(0 0 3px rgba(255,255,255,.95)) drop-shadow(0 1px 2px rgba(255,255,255,.7));
    pointer-events: none;
    z-index: 3;
}
/* en las miniaturas de fila, más discreto */
.fpcat__row-photo::after { width: 28px; height: 28px; top: 6px; right: 6px; }

/* la firma del home, vestida dentro de la sección (pc-v2.css no carga aquí) */
.fpcat .et-pcv2-hero__byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    font-family: var(--fpc-sans);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--fpc-faint);
}
.fpcat .et-pcv2-hero__byline-author { color: var(--fpc-ink); }
.fpcat .et-pcv2-hero__byline-custom { color: var(--fpc-red); }
.fpcat .et-pcv2-hero__byline-role,
.fpcat .et-pcv2-hero__byline-date { color: var(--fpc-faint); }
.fpcat .et-pcv2-hero__byline-pipe,
.fpcat .et-pcv2-hero__byline-sep {
    display: inline-block;
    width: 1px; height: 11px;
    background: var(--fpc-hair);
}
.fpcat .et-pcv2-hero__byline img { height: 12px; width: auto; display: inline-block; vertical-align: middle; }

.fpcat__lead-title {
    margin: 14px 0 0;
    font-family: var(--fpc-serif);
    font-weight: 900;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.6px;
}
.fpcat__lead-title a { color: inherit; text-decoration: none; }
.fpcat__lead-title a:hover { color: var(--fpc-red); }

.fpcat__lead-stand {
    margin: 16px 0 0;
    font-size: 16.5px;
    line-height: 1.58;
    color: var(--fpc-mute);
    max-width: 56ch;
}

.fpcat__lead-photo {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--fpc-hair);
    border-radius: 6px;   /* FP 1.65.6 · esquinas ligeramente redondas SOLO en fotos */
    overflow: hidden;
}

/* ── LA FIRMA (compartida por lead y filas) ─────────────────────── */
.fpcat__by {
    margin: 16px 0 0;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fpc-faint);
}
.fpcat__by b { color: var(--fpc-ink); font-weight: 800; }
.fpcat__by .sep { margin: 0 7px; color: var(--fpc-hair); }

/* ── LAS FILAS · hemeroteca FT ──────────────────────────────────── */
.fpcat__row {
    display: grid;
    grid-template-columns: 1fr 212px;
    gap: 28px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--fpc-hair);
}

.fpcat__row-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fpc-red);
}
.fpcat__row-kicker .fpcat__plusbadge { transform: translateY(-1px); }

.fpcat__row-title {
    margin: 8px 0 0;
    font-family: var(--fpc-serif);
    font-weight: 900;
    font-size: 21.5px;
    line-height: 1.16;
    letter-spacing: -0.2px;
}
.fpcat__row-title a { color: inherit; text-decoration: none; }
.fpcat__row-title a:hover { color: var(--fpc-red); }

.fpcat__row-excerpt {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--fpc-mute);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fpcat__row .fpcat__by { margin-top: 10px; }

.fpcat__row-photo {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--fpc-hair);
    border-radius: 6px;
    overflow: hidden;
}

/* ── EL HUECO PUBLICITARIO · cada 4 filas ───────────────────────── */
.fpcat__ad {
    padding: 26px 0;
    border-bottom: 1px solid var(--fpc-hair);
    text-align: center;
}
.fpcat__ad .et-ad { margin: 0 auto; }
.fpcat__ad img { max-width: 100%; height: auto; }

/* ── PAGINACIÓN · cajas sharp ───────────────────────────────────── */
/* ── PAGINACIÓN · editorial, sin cajas (FP 1.65.6) ──────────────────
   Números desnudos en versalitas; el actual lleva el subrayado grueso
   rojo de la casa. Prev/next son flechas serif con aire. */
.fpcat__pages {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 22px;
    padding: 38px 0 0;
    font-family: var(--fpc-sans);
}
.fpcat__pages .page-numbers {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--fpc-faint);
    text-decoration: none;
    padding: 0 2px 10px;
    transition: color .15s;
}
.fpcat__pages a.page-numbers:hover { color: var(--fpc-ink); }
.fpcat__pages .page-numbers.current {
    color: var(--fpc-ink);
}
.fpcat__pages .page-numbers.current::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--fpc-red);
}
.fpcat__pages .prev,
.fpcat__pages .next {
    font-family: var(--fpc-serif);
    font-size: 17px;
    color: var(--fpc-ink);
}
.fpcat__pages .prev:hover,
.fpcat__pages .next:hover { color: var(--fpc-red); }
.fpcat__pages .dots { color: var(--fpc-faint); }

/* ── VACÍO ──────────────────────────────────────────────────────── */
.fpcat__empty { padding: 60px 0; text-align: center; }
.fpcat__empty h2 { font-family: var(--fpc-serif); font-weight: 900; font-size: 28px; margin: 0 0 10px; }
.fpcat__empty p  { color: var(--fpc-mute); margin: 0; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .fpcat { padding: 24px 16px 54px; }

    .fpcat__lead {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 0 28px;
    }
    .fpcat__lead-photo { order: -1; }
    .fpcat__lead-stand { font-size: 15px; }

    .fpcat__row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 0;
    }
    .fpcat__row-photo { order: -1; aspect-ratio: 16 / 9; }
    .fpcat__row-title { font-size: 20px; }

    .fpcat__standline { flex-direction: column; gap: 6px; }
}
