/* ==========================================================================
   Florilegio — MODO JOVEN v3 · "Cuaderno de estudio"
   Activado con .fm-joven en <html>. Convive con el Clásico (intacto).
   Identidad: papel claro, tinta sepia, canela como único acento
   y miel de arena como subrayado característico (subrayar la Palabra).
   Tipografía: Bricolage Grotesque (titulares/UI) + EB Garamond (lectura).
   Solo actúa en móvil/tablet (≤991px).
   ========================================================================== */

/* Paleta anclada al logo: la tinta de la flor es #3c3b39 (sepia
   cálido) sobre crema #f7f3ed. Acento canela/nogal y miel de arena. */
.fm-joven {
    --jv-papel: #ffffff;
    --jv-superficie: #ffffff;
    --jv-tinta: #2b2723;
    --jv-tenue: #7d746a;
    --jv-salvia: #85603f;          /* canela (acento único) */
    --jv-salvia-oscuro: #6b4c30;   /* canela tostada */
    --jv-hoja: #f4eee3;            /* arena, hermana del crema de marca */
    --jv-marcador: #f0dcba;        /* miel suave para subrayados */
    --jv-linea: #eeebe5;
    --jv-radio: 18px;
    --jv-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
}

/* Las pantallas de app no existen fuera del Modo Joven móvil */
.fm-app-home,
.fm-app-list {
    display: none;
}

@media (max-width: 991.98px) {

    /* ----------------------------------------------------------------
       0. Conmutación de arquitectura: home de app vs home clásica
       ---------------------------------------------------------------- */
    .fm-joven .fm-app-home {
        display: block;
    }

    .fm-joven .fm-classic-home {
        display: none !important;
    }

    /* ----------------------------------------------------------------
       1. Base: papel, tinta y titulares con carácter
       ---------------------------------------------------------------- */
    .fm-joven body {
        background-color: var(--jv-papel) !important;
        color: var(--jv-tinta);
    }

    .fm-joven h1, .fm-joven h2, .fm-joven h3,
    .fm-joven h4, .fm-joven h5,
    .fm-joven .h1, .fm-joven .h2, .fm-joven .h3,
    .fm-joven .h4, .fm-joven .h5 {
        font-family: var(--jv-display) !important;
        font-weight: 700 !important;
        letter-spacing: -0.015em;
        color: var(--jv-tinta);
    }

    .fm-joven .text-gray-600,
    .fm-joven .text-gray-500,
    .fm-joven .text-gray-400 {
        color: var(--jv-tenue) !important;
    }

    /* Titulares de sección: subrayado de marcador amarillo */
    .fm-joven .section-header h2,
    .fm-joven .uc-section-header h2 {
        position: relative;
        display: inline-block;
        z-index: 1;
    }

    .fm-joven .section-header h2::after,
    .fm-joven .uc-section-header h2::after {
        content: "";
        position: absolute;
        left: -5px;
        right: -5px;
        bottom: 1px;
        height: 0.42em;
        background: var(--jv-marcador);
        border-radius: 3px;
        transform: skewX(-8deg) rotate(-0.6deg);
        z-index: -1;
        opacity: 0.85;
    }

    /* La lectura larga permanece en serif sobre papel */
    .fm-joven .theology-content,
    .fm-joven .bible-chapter-text {
        font-family: var(--font-serif, 'EB Garamond', Georgia, serif) !important;
        color: #2b2f27 !important;
    }

    /* ----------------------------------------------------------------
       2. HOME DE APP — arquitectura propia
       ---------------------------------------------------------------- */
    .fm-joven .fm-app-home {
        padding: 1rem 1.1rem 0;
        max-width: 560px;
        margin: 0 auto;
    }

    /* Cabecera: saludo + fecha + flor */
    .fm-joven .fm-ah-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.5rem 0.1rem 1.1rem;
    }

    .fm-joven .fm-ah-saludo {
        font-family: var(--jv-display);
        font-size: 1.7rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        margin: 0;
        line-height: 1.1;
    }

    .fm-joven .fm-ah-fecha {
        margin: 2px 0 0;
        font-size: 0.85rem;
        color: var(--jv-tenue);
        text-transform: capitalize;
    }

    .fm-joven .fm-ah-flor {
        border-radius: 14px;
        border: 1px solid var(--jv-linea);
    }

    /* Historias (temas) al estilo Instagram: burbujas con anillo */
    .fm-joven .fm-ah-stories {
        display: flex;
        gap: 0.9rem;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -1.1rem 1.1rem;
        padding: 2px 1.1rem 4px;
    }

    .fm-joven .fm-ah-stories::-webkit-scrollbar {
        display: none;
    }

    .fm-joven .fm-ah-story {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        width: 68px;
        text-decoration: none !important;
    }

    .fm-joven .fm-ah-story-ring {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: conic-gradient(from 210deg, var(--jv-salvia), #c9a97e, var(--jv-marcador), var(--jv-salvia));
        padding: 2.5px;
    }

    .fm-joven .fm-ah-story-circulo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: var(--jv-superficie);
        border: 2.5px solid var(--jv-superficie);
        color: var(--jv-salvia);
        font-size: 1.35rem;
    }

    .fm-joven .fm-ah-story-nombre {
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--jv-tinta);
        max-width: 68px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fm-joven .fm-ah-story:active .fm-ah-story-ring {
        transform: scale(0.92);
    }

    /* Versículo del día: el héroe */
    .fm-joven .fm-ah-verso {
        background: var(--jv-superficie);
        border: 1px solid var(--jv-linea);
        border-radius: var(--jv-radio);
        padding: 1.35rem 1.25rem 1.2rem;
        box-shadow: 0 6px 24px rgba(133, 96, 63, 0.08);
    }

    .fm-joven .fm-ah-verso-etiqueta {
        margin: 0 0 0.6rem;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--jv-salvia);
    }

    .fm-joven .fm-ah-verso-texto {
        margin: 0;
        font-family: var(--font-serif, 'EB Garamond', Georgia, serif);
        font-size: 1.45rem;
        line-height: 1.5;
        color: var(--jv-tinta);
        background-image: linear-gradient(transparent 68%, rgba(240, 220, 186, 0.85) 68%, rgba(240, 220, 186, 0.85) 94%, transparent 94%);
        background-position: 0 0.18em;
        display: inline;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }

    .fm-joven .fm-ah-verso-ref {
        margin: 0.8rem 0 0;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--jv-tenue);
    }

    .fm-joven .fm-ah-verso-cta {
        display: inline-flex;
        align-items: center;
        margin-top: 0.9rem;
        padding: 0.6rem 1.2rem;
        background: var(--jv-salvia);
        color: #fff !important;
        border-radius: 999px;
        font-weight: 700;
        font-size: 0.9rem;
        text-decoration: none !important;
        font-family: var(--jv-display);
    }

    .fm-joven .fm-ah-verso-cta:active {
        transform: scale(0.96);
        background: var(--jv-salvia-oscuro);
    }

    /* Accesos rápidos: mosaico 2×2 */
    .fm-joven .fm-ah-acciones {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
        margin-top: 0.9rem;
    }

    .fm-joven .fm-ah-tile {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        background: var(--jv-hoja);
        border-radius: 16px;
        padding: 0.95rem 1rem;
        text-decoration: none !important;
        color: var(--jv-tinta) !important;
        font-family: var(--jv-display);
        font-weight: 700;
        font-size: 0.92rem;
        border: 1px solid transparent;
    }

    .fm-joven .fm-ah-tile i {
        font-size: 1.25rem;
        color: var(--jv-salvia);
    }

    .fm-joven .fm-ah-tile:active {
        transform: scale(0.97);
        border-color: rgba(133, 96, 63, 0.35);
    }

    /* Cabecera de sección: título + enlace "ver todo" */
    .fm-joven .fm-ah-sec {
        margin-top: 1.9rem;
    }

    .fm-joven .fm-ah-sec-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 0.85rem;
    }

    .fm-joven .fm-ah-sec-head h2 {
        font-size: 1.35rem;
        margin: 0;
        position: relative;
        z-index: 1;
        display: inline-block;
    }

    .fm-joven .fm-ah-sec-head h2::after {
        content: "";
        position: absolute;
        left: -4px;
        right: -4px;
        bottom: 1px;
        height: 0.4em;
        background: var(--jv-marcador);
        border-radius: 3px;
        transform: skewX(-8deg);
        z-index: -1;
        opacity: 0.85;
    }

    .fm-joven .fm-ah-sec-head a {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--jv-salvia) !important;
        text-decoration: none !important;
    }

    /* Rail horizontal de destacados */
    .fm-joven .fm-ah-rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 66%;
        gap: 0.75rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        margin-inline: -1.1rem;
        padding-inline: 1.1rem;
    }

    .fm-joven .fm-ah-rail::-webkit-scrollbar {
        display: none;
    }

    .fm-joven .fm-ah-card {
        scroll-snap-align: start;
        text-decoration: none !important;
        color: var(--jv-tinta) !important;
    }

    .fm-joven .fm-ah-card figure {
        margin: 0 0 0.55rem;
        aspect-ratio: 16 / 11;
        border-radius: 16px;
        overflow: hidden;
        background: var(--jv-hoja);
        border: 1px solid var(--jv-linea);
    }

    .fm-joven .fm-ah-card figure img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .fm-joven .fm-ah-card-cat {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--jv-salvia);
    }

    .fm-joven .fm-ah-card h3 {
        font-size: 1.02rem;
        line-height: 1.3;
        margin: 0.15rem 0 0;
    }

    /* Lista de recientes: filas limpias */
    .fm-joven .fm-ah-lista {
        display: flex;
        flex-direction: column;
    }

    .fm-joven .fm-ah-fila {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--jv-linea);
        text-decoration: none !important;
        color: var(--jv-tinta) !important;
    }

    .fm-joven .fm-ah-fila:last-child {
        border-bottom: none;
    }

    .fm-joven .fm-ah-fila img {
        width: 62px;
        height: 62px;
        border-radius: 14px;
        object-fit: cover;
        flex: 0 0 62px;
        background: var(--jv-hoja);
    }

    .fm-joven .fm-ah-fila span {
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--jv-salvia);
    }

    .fm-joven .fm-ah-fila h3 {
        font-size: 0.98rem;
        line-height: 1.3;
        margin: 0.1rem 0 0;
    }

    .fm-joven .fm-ah-fila:active {
        opacity: 0.7;
    }

    /* ----------------------------------------------------------------
       3. Barra superior: papel limpio
       ---------------------------------------------------------------- */
    .fm-joven .uc-top-navbar {
        background: rgba(251, 250, 247, 0.9) !important;
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--jv-linea) !important;
    }

    /* ----------------------------------------------------------------
       4. Dock: papel flotante, activo salvia, FAB salvia sólido
       ---------------------------------------------------------------- */
    .fm-joven .fm-bottom-nav {
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid var(--jv-linea);
        box-shadow: 0 12px 34px rgba(43, 39, 35, 0.16);
    }

    .fm-joven .fm-nav-item {
        color: var(--jv-tenue);
    }

    .fm-joven .fm-nav-item.active {
        color: var(--jv-salvia);
    }

    .fm-joven .fm-nav-item.active .fm-nav-icon {
        background: var(--jv-hoja);
        color: var(--jv-salvia);
    }

    .fm-joven .fm-nav-fab .fm-nav-icon,
    .fm-joven .fm-nav-item.fm-nav-fab.active .fm-nav-icon {
        background: var(--jv-salvia);
        color: #fff !important;
        border-color: var(--jv-papel);
        box-shadow: 0 8px 22px rgba(133, 96, 63, 0.4);
        animation: none;
    }

    .fm-joven .fm-nav-fab .fm-nav-label {
        color: var(--jv-salvia);
        font-weight: 700;
    }

    /* ----------------------------------------------------------------
       5. Resto de páginas: tarjetas papel, chips hoja, botones salvia
       ---------------------------------------------------------------- */
    .fm-joven .post-card-featured,
    .fm-joven .post-card-vertical,
    .fm-joven .post-card-grid,
    .fm-joven .essay-row,
    .fm-joven .mm-card,
    .fm-joven .category-card,
    .fm-joven .panel.border,
    .fm-joven .panel.border-all {
        background: var(--jv-superficie) !important;
        border: 1px solid var(--jv-linea) !important;
        border-radius: var(--jv-radio) !important;
        box-shadow: 0 4px 18px rgba(43, 39, 35, 0.05) !important;
    }

    .fm-joven .fs-7.text-primary.text-uppercase {
        display: inline-block;
        width: fit-content;
        background: var(--jv-hoja);
        color: var(--jv-salvia) !important;
        padding: 3px 10px;
        border-radius: 999px;
        font-weight: 700;
        font-size: 0.66rem !important;
        letter-spacing: 0.08em;
    }

    .fm-joven .uc-link {
        color: var(--jv-salvia) !important;
        font-weight: 600;
    }

    .fm-joven .category-card .category-icon i {
        color: var(--jv-salvia) !important;
    }

    .fm-joven .btn-primary,
    .fm-joven .mm-btn-primary,
    .fm-joven #btn-leer,
    .fm-joven #btn-estudio {
        background: var(--jv-salvia) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 999px !important;
        font-family: var(--jv-display);
        font-weight: 700;
        box-shadow: 0 6px 18px rgba(133, 96, 63, 0.25);
    }

    .fm-joven .btn-primary:active,
    .fm-joven #btn-leer:active,
    .fm-joven #btn-estudio:active {
        transform: scale(0.97);
        background: var(--jv-salvia-oscuro) !important;
    }

    .fm-joven .btn:not(.btn-sm):not(.rounded-circle) {
        border-radius: 999px !important;
    }

    .fm-joven .amt-btn,
    .fm-joven .freq-btn {
        background: transparent !important;
        border: 1.5px solid var(--jv-linea) !important;
        color: var(--jv-tinta) !important;
        border-radius: 999px !important;
    }

    .fm-joven .amt-btn.active,
    .fm-joven .freq-btn.active {
        background: var(--jv-salvia) !important;
        border-color: var(--jv-salvia) !important;
        color: #fff !important;
    }

    /* ----------------------------------------------------------------
       6. Estudios: papel de lectura con marcador
       ---------------------------------------------------------------- */
    .fm-joven .estudio-sidebar .panel,
    .fm-joven .bible-reading-panel,
    .fm-joven .context-panel-bg {
        background: var(--jv-superficie) !important;
        border: 1px solid var(--jv-linea) !important;
        border-radius: var(--jv-radio) !important;
    }

    .fm-joven .bible-chapter-text sup,
    .fm-joven .bible-verse-item sup {
        color: var(--jv-salvia) !important;
    }

    /* Versículo enfocado: subrayador amarillo, como en un cuaderno */
    .fm-joven #leer-container .bg-primary,
    .fm-joven #interlinear-container .bg-primary {
        background: var(--jv-marcador) !important;
        color: var(--jv-tinta) !important;
    }

    .fm-joven .chapter-nav-btn {
        background: var(--jv-hoja) !important;
        border: 1px solid var(--jv-linea) !important;
        border-radius: 999px !important;
        color: var(--jv-salvia);
    }

    .fm-joven .mode-selector-btn.active {
        color: var(--jv-salvia) !important;
        border-bottom-color: var(--jv-salvia) !important;
    }

    .fm-joven .context-tab.active {
        color: var(--jv-salvia) !important;
    }

    /* Madres: sustituir los rosas propios de la página */
    .fm-joven .mm-text-primary,
    .fm-joven .mm-category-icon {
        color: var(--jv-salvia) !important;
    }

    .fm-joven .mm-btn-outline {
        border-color: var(--jv-salvia) !important;
        color: var(--jv-salvia) !important;
        border-radius: 999px !important;
    }

    /* ----------------------------------------------------------------
       7. Detalles: progreso, paginación, newsletter, drawer
       ---------------------------------------------------------------- */
    .fm-joven #fm-progress {
        background: var(--jv-salvia);
    }

    .fm-joven .pagination-num.active {
        background: var(--jv-salvia);
        color: #fff;
    }

    .fm-joven .panel.bg-primary {
        background: var(--jv-salvia) !important;
        border-radius: var(--jv-radio) !important;
    }

    .fm-joven .btn-white {
        background: var(--jv-marcador) !important;
        color: var(--jv-tinta) !important;
        border-radius: 999px !important;
        font-weight: 700;
    }

    .fm-joven .keyword-highlight-box {
        background: var(--jv-hoja);
        border-left-color: var(--jv-salvia);
        border-radius: 12px;
    }

    .fm-joven .reading-progress-bar {
        background: var(--jv-salvia);
        box-shadow: none;
    }

    .fm-joven #uc-menu-panel .uc-offcanvas-bar {
        background: var(--jv-papel) !important;
    }

    .fm-joven .uc-nav a .icon {
        color: var(--jv-salvia) !important;
    }

    .fm-joven .fm-drawer-label {
        color: #a5a294;
    }

    /* Interruptor de tema en el drawer */
    .fm-theme-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 48px;
        padding: 10px 14px;
        border: 1.5px dashed rgba(128, 0, 32, 0.3);
        border-radius: 14px;
        background: transparent;
        font-weight: 700;
        font-size: 0.95rem;
        color: inherit;
        cursor: pointer;
        text-align: left;
    }

    .fm-joven .fm-theme-toggle {
        border: none;
        background: var(--jv-salvia);
        color: #fff;
        border-radius: 999px;
    }

    .fm-theme-toggle:active {
        transform: scale(0.97);
    }

    /* ----------------------------------------------------------------
       8. PÁGINAS INTERIORES — arquitectura de app
       ---------------------------------------------------------------- */

    /* Feed de app (Artículos): sustituye a las secciones clásicas */
    .fm-joven .fm-app-list {
        display: block;
        padding: 1rem 1.1rem 0;
        max-width: 560px;
        margin: 0 auto;
    }

    .fm-joven .fm-classic-page {
        display: none !important;
    }

    .fm-joven .fm-al-head h1 {
        font-size: 1.7rem;
        margin: 0.3rem 0 0;
        position: relative;
        display: inline-block;
        z-index: 1;
    }

    .fm-joven .fm-al-head h1::after {
        content: "";
        position: absolute;
        left: -5px;
        right: -5px;
        bottom: 2px;
        height: 0.4em;
        background: var(--jv-marcador);
        border-radius: 3px;
        transform: skewX(-8deg);
        z-index: -1;
        opacity: 0.85;
    }

    .fm-joven .fm-al-head p {
        margin: 0.35rem 0 0;
        font-size: 0.88rem;
        color: var(--jv-tenue);
    }

    /* Chips de categorías deslizables */
    .fm-joven .fm-al-chips {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 1rem -1.1rem 1.1rem;
        padding: 2px 1.1rem;
    }

    .fm-joven .fm-al-chips::-webkit-scrollbar {
        display: none;
    }

    .fm-joven .fm-al-chip {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
        border-radius: 999px;
        border: 1.5px solid var(--jv-linea);
        background: var(--jv-superficie);
        color: var(--jv-tinta) !important;
        font-family: var(--jv-display);
        font-weight: 600;
        font-size: 0.85rem;
        text-decoration: none !important;
        white-space: nowrap;
    }

    .fm-joven .fm-al-chip.active {
        background: var(--jv-salvia);
        border-color: var(--jv-salvia);
        color: #fff !important;
    }

    .fm-joven .fm-al-chip:active {
        transform: scale(0.95);
    }

    /* Primer artículo destacado del feed */
    .fm-joven .fm-al-destacado {
        display: block;
        text-decoration: none !important;
        color: var(--jv-tinta) !important;
        background: var(--jv-superficie);
        border: 1px solid var(--jv-linea);
        border-radius: var(--jv-radio);
        overflow: hidden;
        margin-bottom: 0.5rem;
        box-shadow: 0 6px 24px rgba(43, 39, 35, 0.06);
    }

    .fm-joven .fm-al-destacado figure {
        margin: 0;
        aspect-ratio: 16 / 9;
        background: var(--jv-hoja);
    }

    .fm-joven .fm-al-destacado figure img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .fm-joven .fm-al-destacado-body {
        padding: 0.9rem 1rem 1.1rem;
    }

    .fm-joven .fm-al-destacado-body span {
        font-size: 0.64rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--jv-salvia);
    }

    .fm-joven .fm-al-destacado-body h2 {
        font-size: 1.25rem;
        line-height: 1.25;
        margin: 0.25rem 0 0;
    }

    .fm-joven .fm-al-destacado:active {
        transform: scale(0.98);
    }

    .fm-joven .fm-al-vacio {
        text-align: center;
        color: var(--jv-tenue);
        padding: 2.5rem 0;
    }

    /* Posts del feed al estilo Instagram: imagen a sangre completa,
       texto debajo, separados por espacio y línea fina */
    .fm-joven .fm-post {
        margin: 0 -1.1rem 1.1rem;
        border-bottom: 1px solid var(--jv-linea);
        padding-bottom: 1.1rem;
    }

    .fm-joven .fm-post:last-child {
        border-bottom: none;
    }

    .fm-joven .fm-post-media {
        display: block;
        aspect-ratio: 4 / 3;
        background: var(--jv-hoja);
        overflow: hidden;
    }

    .fm-joven .fm-post-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .fm-joven .fm-post-body {
        padding: 0.75rem 1.1rem 0;
    }

    .fm-joven .fm-post-cat {
        font-size: 0.64rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--jv-salvia);
    }

    .fm-joven .fm-post-body h2 {
        font-size: 1.2rem;
        line-height: 1.28;
        margin: 0.25rem 0 0.35rem;
    }

    .fm-joven .fm-post-body h2 a {
        color: var(--jv-tinta) !important;
        text-decoration: none !important;
    }

    .fm-joven .fm-post-leer {
        font-family: var(--jv-display);
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--jv-salvia) !important;
        text-decoration: none !important;
    }

    /* Tap instantáneo estilo Instagram: atenuación inmediata */
    .fm-joven .fm-post-media:active,
    .fm-joven .fm-ah-fila:active,
    .fm-joven .fm-ah-card:active,
    .fm-joven .fm-post-body h2 a:active {
        opacity: 0.6;
        transition: opacity 0.05s ease;
    }

    /* Paginación de app */
    .fm-joven .fm-al-pag {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 1.4rem 0 0.5rem;
    }

    .fm-joven .fm-al-pag a {
        padding: 0.55rem 1.1rem;
        border-radius: 999px;
        background: var(--jv-hoja);
        color: var(--jv-salvia) !important;
        font-family: var(--jv-display);
        font-weight: 700;
        font-size: 0.85rem;
        text-decoration: none !important;
    }

    .fm-joven .fm-al-pag em {
        font-style: normal;
        font-size: 0.8rem;
        color: var(--jv-tenue);
    }

    /* Cabeceras de páginas que conservan su hero (Ensayos, Estudios):
       compactas, a la izquierda, sin aire de portada de escritorio */
    .fm-joven .hero-brand-section {
        background: var(--jv-papel) !important;
        padding-bottom: 0 !important;
    }

    .fm-joven .hero-brand-section .container {
        padding-top: 1.1rem !important;
        padding-bottom: 0.4rem !important;
    }

    .fm-joven .hero-brand-section .row.justify-center {
        justify-content: flex-start !important;
    }

    .fm-joven .hero-brand-section .text-center,
    .fm-joven .hero-brand-section h1,
    .fm-joven .hero-brand-section p {
        text-align: left !important;
    }

    .fm-joven .hero-brand-section h1 {
        font-size: 1.7rem !important;
        position: relative;
        display: inline-block;
        z-index: 1;
    }

    .fm-joven .hero-brand-section h1::after {
        content: "";
        position: absolute;
        left: -5px;
        right: -5px;
        bottom: 2px;
        height: 0.4em;
        background: var(--jv-marcador);
        border-radius: 3px;
        transform: skewX(-8deg);
        z-index: -1;
        opacity: 0.85;
    }

    .fm-joven .hero-brand-section p {
        font-size: 0.92rem !important;
        font-style: normal !important;
        color: var(--jv-tenue) !important;
        margin-top: 0.3rem !important;
    }

    /* Cabeceras uc-section (Apoyo, Contacto): mismo tratamiento */
    .fm-joven .uc-section-header {
        text-align: left !important;
        margin-bottom: 1.5rem !important;
    }

    .fm-joven .uc-section-header h1,
    .fm-joven .uc-section-header h2 {
        position: relative;
        display: inline-block;
        z-index: 1;
        font-size: 1.7rem !important;
    }

    .fm-joven .uc-section-header h1::after,
    .fm-joven .uc-section-header h2::after {
        content: "";
        position: absolute;
        left: -5px;
        right: -5px;
        bottom: 2px;
        height: 0.4em;
        background: var(--jv-marcador);
        border-radius: 3px;
        transform: skewX(-8deg);
        z-index: -1;
        opacity: 0.85;
    }

    /* Estudios: pestañas Lectura/Estudiar como control segmentado */
    .fm-joven .mode-selector-btn {
        border: 1.5px solid var(--jv-linea) !important;
        border-radius: 999px !important;
        padding: 0.55rem 1.15rem !important;
        font-family: var(--jv-display) !important;
        font-weight: 700 !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.02em !important;
        background: var(--jv-superficie) !important;
        color: var(--jv-tenue) !important;
        border-bottom: 1.5px solid var(--jv-linea) !important;
    }

    .fm-joven .mode-selector-btn.active {
        background: var(--jv-salvia) !important;
        border-color: var(--jv-salvia) !important;
        color: #fff !important;
    }

    /* Ensayos: filas de feed limpias */
    .fm-joven .essay-row {
        margin-bottom: 0.9rem;
    }

    .fm-joven .essay-row .essay-excerpt {
        color: var(--jv-tenue);
    }

    .fm-joven .essay-date {
        color: var(--jv-tenue) !important;
    }

    .fm-joven .essay-title-link,
    .fm-joven .essay-row h2,
    .fm-joven .essay-row h3 {
        font-family: var(--jv-display) !important;
        color: var(--jv-tinta) !important;
    }

    .fm-joven .search-input-essay {
        background: var(--jv-superficie) !important;
        border: 1.5px solid var(--jv-linea) !important;
        border-radius: 999px !important;
    }

    /* Detalle de artículo/ensayo: lectura de app */
    .fm-joven .reading-progress-container {
        height: 3px;
    }

    .fm-joven .author-box {
        background: var(--jv-superficie) !important;
        border: 1px solid var(--jv-linea) !important;
        border-radius: var(--jv-radio) !important;
    }

    .fm-joven .sidebar-widget-title {
        border-bottom: none;
        position: relative;
        display: inline-block;
        z-index: 1;
    }

    .fm-joven .sidebar-widget-title::after {
        content: "";
        position: absolute;
        left: -4px;
        right: -4px;
        bottom: 2px;
        height: 0.4em;
        background: var(--jv-marcador);
        border-radius: 3px;
        transform: skewX(-8deg);
        z-index: -1;
        opacity: 0.85;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fm-joven * {
        animation-duration: 0.01ms !important;
    }
}
