/* ==============================================================================
   Evangelio del Día • CatoliNews — Estilos Oficiales (Web + Blog + PWA)
   Paleta sincronizada con lib/theme/app_colors.dart (#238F85 & #D4AF37)
   ============================================================================== */

:root {
    --primary: #238F85;
    --primary-light: #34B5A8;
    --primary-dark: #155A53;
    --primary-soft: rgba(35, 143, 133, 0.14);
    --accent: #D4AF37;
    --accent-hover: #f0cb54;
    --accent-soft: rgba(212, 175, 55, 0.14);
    --like-red: #E53935;

    /* Modo Oscuro (Por defecto) */
    --bg: #0B1312;
    --bg-alt: #0F1A19;
    --bg-gradient: radial-gradient(circle at 50% 0%, #15332F 0%, #0B1312 75%);
    --surface: #132220;
    --surface-glass: rgba(19, 34, 32, 0.85);
    --card-border: rgba(52, 181, 168, 0.20);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-primary: #F2F7F6;
    --text-secondary: #B5C7C4;
    --text-muted: #7D9490;
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.42);
    --font-mult: 1;
}

[data-theme="light"] {
    --bg: #F6F9F8;
    --bg-alt: #EEF3F2;
    --bg-gradient: radial-gradient(circle at 50% 0%, #E1F2EF 0%, #F6F9F8 75%);
    --surface: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.90);
    --card-border: rgba(35, 143, 133, 0.22);
    --border-subtle: #E1ECE9;
    --text-primary: #182624;
    --text-secondary: #566966;
    --text-muted: #869996;
    --shadow-card: 0 10px 28px rgba(21, 90, 83, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.25s ease, color 0.25s ease;
    padding-bottom: 96px;
}

.serif-title {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.25;
}

.serif-body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: calc(1.125rem * var(--font-mult));
    line-height: 1.8;
    color: var(--text-primary);
}

/* ─── Barra Superior (Header) ──────────────────────────────────────────────── */
.top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.brand-link img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.brand-sub {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Pestañas en Desktop */
.desktop-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-alt);
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tab-btn i {
    font-size: 14px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--primary-soft);
}

.tab-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(35, 143, 133, 0.35);
}

/* Acciones derechas del Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-alt);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-pill-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.pwa-install-btn {
    background: linear-gradient(135deg, var(--accent), #b89225);
    color: #0B1312;
    border: none;
    font-weight: 700;
    display: none;
}

.pwa-install-btn.visible {
    display: inline-flex;
}

/* ─── Banner Hero Compacto con Botones de Tiendas (PC & Móvil) ────────────── */
.app-promo-banner {
    max-width: 1040px;
    margin: 22px auto 8px;
    padding: 0 24px;
    width: 100%;
}

.promo-inner {
    background: linear-gradient(135deg, rgba(35, 143, 133, 0.18) 0%, rgba(19, 34, 32, 0.92) 100%);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .promo-inner {
    background: linear-gradient(135deg, rgba(35, 143, 133, 0.12) 0%, #FFFFFF 100%);
}

.promo-copy {
    max-width: 520px;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

[data-theme="light"] .promo-badge {
    color: #9A7B1C;
}

.promo-copy h1 {
    font-size: clamp(19px, 2.6vw, 25px);
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.2;
}

.promo-copy p {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.store-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: var(--surface);
    color: var(--text-primary);
    border: 1.5px solid var(--card-border);
    padding: 10px 16px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-family: inherit;
}

.store-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.18);
}

.store-btn .store-icon {
    font-size: 22px;
    color: var(--primary-light);
    flex-shrink: 0;
}

[data-theme="light"] .store-btn .store-icon {
    color: var(--primary);
}

.pwa-store-btn {
    border-color: rgba(212, 175, 55, 0.4);
}

.pwa-store-btn .store-icon {
    color: var(--accent) !important;
}

.store-btn .btn-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-btn .small {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-btn .big {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
}

/* ─── Layout Principal Centrado (1 Columna Amplia sin Sidebar) ────────────── */
.main-container {
    max-width: 1040px;
    margin: 20px auto 44px;
    padding: 0 24px;
    width: 100%;
}

/* ─── Tarjetas y Componentes del Feed ─────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-light);
    font-size: 0.88em;
}

[data-theme="light"] .section-title i {
    color: var(--primary);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Tarjeta Destacada del Día (Hero Card) */
.featured-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 28px;
    transition: transform 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.featured-cover {
    position: relative;
    height: 320px;
    width: 100%;
    background: #0d1f1d;
    overflow: hidden;
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-cover img {
    transform: scale(1.03);
}

.featured-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 19, 18, 0.95) 0%, rgba(11, 19, 18, 0.35) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
}

.badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: var(--primary);
    color: #FFFFFF;
}

.pill-badge.gold {
    background: rgba(212, 175, 55, 0.22);
    color: #f7d969;
    border: 1px solid rgba(212, 175, 55, 0.45);
}

.featured-cover-overlay h2 {
    color: #FFFFFF;
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 6px;
}

.featured-body {
    padding: 22px 26px;
}

.featured-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-muted);
}

.read-more-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

[data-theme="light"] .read-more-cta {
    color: var(--primary-dark);
}

/* Grid de Tarjetas Secundarias (Días anteriores / Oraciones) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.item-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.22s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.item-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.item-card-thumb {
    height: 175px;
    width: 100%;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.item-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-card-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--primary-light);
    margin-bottom: 6px;
}

[data-theme="light"] .item-card-kicker {
    color: var(--primary);
}

.item-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ─── Tarjetas de Audio ───────────────────────────────────────────────────── */
.audio-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.audio-row-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.audio-row-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-card);
}

.audio-thumb-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-soft);
    cursor: pointer;
}

.audio-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-circle-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 16px;
    box-shadow: 0 6px 16px rgba(35, 143, 133, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-circle-btn:hover {
    transform: scale(1.06);
    background: var(--primary-light);
}

.audio-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.audio-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.audio-meta-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.audio-meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.audio-meta-line i {
    color: var(--primary-light);
}

/* ─── Filtros de Categorías (Oraciones) ───────────────────────────────────── */
.category-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 18px;
    scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

.chip-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip-btn.active, .chip-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* ─── Vista de Detalle (Artículo Individual con URL propia) ──────────────── */
.article-view {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.article-top-bar {
    padding: 16px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    gap: 12px;
    flex-wrap: wrap;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-alt);
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.article-hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.article-content-wrap {
    padding: 32px 36px;
}

.article-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--primary-light);
    margin-bottom: 10px;
}

[data-theme="light"] .article-kicker {
    color: var(--primary);
}

.article-title {
    font-size: calc(clamp(24px, 4vw, 34px) * var(--font-mult));
    margin-bottom: 10px;
}

.article-byline {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 22px;
}

/* Barra de Interacción (Compartir URL, WhatsApp, Likes, Comentarios) */
.interaction-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    margin-bottom: 26px;
}

.interaction-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.action-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-chip:hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.action-chip.liked {
    color: var(--like-red);
    border-color: rgba(229, 57, 53, 0.4);
    background: rgba(229, 57, 53, 0.1);
}

.action-chip.whatsapp {
    background: rgba(37, 211, 102, 0.14);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.35);
}

[data-theme="light"] .action-chip.whatsapp {
    color: #128C7E;
}

/* Secciones de Lecturas Bíblicas */
.reading-section-block {
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.reading-section-block h3 {
    font-size: calc(18px * var(--font-mult));
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

[data-theme="light"] .reading-section-block h3 {
    color: var(--primary-dark);
}

.reading-citation {
    font-family: 'Inter', sans-serif;
    font-size: calc(14.5px * var(--font-mult));
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .reading-citation {
    color: var(--primary);
}

.reading-text p, .article-rich-body p {
    margin-bottom: 1.15em;
}

/* Comentarios */
.comments-box {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.comment-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 4px;
    color: var(--primary-light);
}

.comment-text {
    font-size: 14px;
    color: var(--text-primary);
}

/* ─── Mini-Player de Audio Flotante + Barra Liquid Glass ─────────────────── */
.floating-dock {
    position: fixed;
    bottom: 14px;
    left: 0;
    right: 0;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    padding: 0 16px;
}

.mini-player {
    pointer-events: auto;
    width: 100%;
    max-width: 560px;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 10px 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    gap: 8px;
}

.mini-player.active {
    display: flex;
}

.mini-player-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-player-cover {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--primary-soft);
}

.mini-player-meta {
    flex: 1;
    min-width: 0;
}

.mini-player-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-sub {
    font-size: 11.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.mp-btn:hover {
    color: var(--primary-light);
}

.mp-btn.primary {
    background: var(--primary);
    color: #FFFFFF;
}

.mini-player-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.mini-player-progress input[type="range"] {
    flex: 1;
    accent-color: var(--primary);
    height: 4px;
    cursor: pointer;
}

/* Barra Inferior estilo Liquid Glass (Móviles / PWA) */
.liquid-glass-nav {
    pointer-events: auto;
    display: none;
    width: 100%;
    max-width: 430px;
    height: 64px;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    padding: 0 8px;
    align-items: center;
    justify-content: space-around;
}

.lg-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.lg-nav-item i {
    font-size: 18px;
}

.lg-nav-item.active {
    color: var(--primary-light);
    font-weight: 700;
}

[data-theme="light"] .lg-nav-item.active {
    color: var(--primary);
}

/* ─── Estados de Carga (Skeleton) y Toast ─────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--bg-alt) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
    height: 220px;
    margin-bottom: 16px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.toast-msg {
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--primary);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 300;
}

.toast-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    padding: 32px 24px;
    text-align: center;
    background: var(--bg-alt);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Responsive Design (Tablets & Móviles / PWA) ─────────────────────────── */
@media (max-width: 768px) {
    .desktop-tabs {
        display: none;
    }
    .liquid-glass-nav {
        display: flex;
    }
    .header-inner {
        padding: 10px 16px;
    }
    .app-promo-banner {
        padding: 0 16px;
        margin-top: 14px;
    }
    .promo-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
        gap: 16px;
    }
    .store-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    .store-btn {
        padding: 9px 12px;
        justify-content: center;
    }
    .main-container {
        padding: 0 16px;
    }
    .featured-cover {
        height: 230px;
    }
    .article-content-wrap {
        padding: 20px 18px;
    }
    .reading-section-block {
        padding: 18px 18px;
    }
}
