.fp-pwa-install-card {
    position: fixed;
    z-index: 999999;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(470px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    color: #f7f7f2;
    background: rgba(21, 21, 21, .98);
    border: 1px solid rgba(217, 168, 64, .48);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: inherit;
}

.fp-pwa-install-card__media {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
}

.fp-pwa-install-card__logo {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    background: #173c2b;
    border: 1px solid rgba(217, 168, 64, .65);
}

.fp-pwa-install-card__body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.fp-pwa-install-card__eyebrow {
    color: #d9a840;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fp-pwa-install-card__title {
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.fp-pwa-install-card__text {
    color: #cacac5;
    font-size: 12px;
    line-height: 1.42;
}

.fp-pwa-install-card__steps {
    margin: 6px 0 0 18px;
    padding: 0;
    color: #e2e2dc;
    font-size: 12px;
    line-height: 1.5;
}

.fp-pwa-install-card__steps li + li {
    margin-top: 4px;
}

.fp-pwa-install-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-pwa-install-card button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.fp-pwa-install-card__install {
    padding: 10px 14px;
    border-radius: 999px !important;
    background: #d9a840;
    color: #171717;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.fp-pwa-install-card__install:disabled {
    opacity: .55;
    cursor: wait;
}

.fp-pwa-install-card__close {
    width: 34px;
    height: 34px;
    border-radius: 999px !important;
    background: transparent;
    color: #d7d7d2;
    font-size: 22px;
    line-height: 1;
}

.fp-pwa-install-card button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 620px) {
    .fp-pwa-install-card {
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: auto;
        grid-template-columns: auto 1fr;
    }

    .fp-pwa-install-card__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .fp-pwa-install-card {
        animation: fpPwaSlideIn .28s ease-out both;
    }

    @keyframes fpPwaSlideIn {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ===== Fútbol Profundo PWA v0.2: guardados, biblioteca y navegación ===== */

.fp-pwa-save-button {
    position: fixed;
    z-index: 999992;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 16px;
    border: 1px solid rgba(217, 168, 64, .5);
    border-radius: 999px;
    background: rgba(23, 60, 43, .97);
    color: #fff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .26);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.fp-pwa-save-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: #d9a840;
}

.fp-pwa-save-button.is-saved {
    background: #d9a840;
    color: #171717;
    border-color: #d9a840;
}

.fp-pwa-save-button.is-saved svg {
    color: #171717;
}

.fp-pwa-save-button:disabled {
    opacity: .65;
    cursor: wait;
}

.fp-pwa-save-button:focus-visible,
.fp-pwa-bottom-nav a:focus-visible,
.fp-pwa-bottom-nav button:focus-visible,
.fp-pwa-library-card a:focus-visible,
.fp-pwa-library-card button:focus-visible,
.fp-pwa-explore-sheet button:focus-visible,
.fp-pwa-explore-sheet input:focus-visible {
    outline: 3px solid #d9a840;
    outline-offset: 3px;
}

.fp-pwa-standalone .fp-pwa-save-button {
    bottom: calc(92px + env(safe-area-inset-bottom));
}

.fp-pwa-install-visible .fp-pwa-save-button {
    bottom: 132px;
}

.fp-pwa-standalone.fp-pwa-install-visible .fp-pwa-save-button {
    bottom: calc(154px + env(safe-area-inset-bottom));
}

.fp-pwa-bottom-nav-spacer {
    display: block;
    width: 100%;
    height: calc(82px + env(safe-area-inset-bottom));
    pointer-events: none;
}

.fp-pwa-bottom-nav {
    position: fixed;
    z-index: 999990;
    left: 50%;
    bottom: 0;
    width: min(620px, 100%);
    min-height: 68px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(20, 20, 20, .96);
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.fp-pwa-bottom-nav__item {
    position: relative;
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #b9b9b5;
    text-decoration: none;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.fp-pwa-bottom-nav__item svg {
    width: 23px;
    height: 23px;
}

.fp-pwa-bottom-nav__item.is-active,
.fp-pwa-bottom-nav__item:hover {
    color: #d9a840;
}

.fp-pwa-bottom-nav__item b {
    position: absolute;
    top: 3px;
    left: calc(50% + 8px);
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #d9a840;
    color: #171717;
    font-size: 10px;
    line-height: 1;
}

.fp-pwa-toast {
    position: fixed;
    z-index: 1000005;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom));
    max-width: min(420px, calc(100vw - 32px));
    transform: translate(-50%, 14px);
    padding: 11px 15px;
    border-radius: 999px;
    background: #171717;
    color: #fff;
    border: 1px solid rgba(217, 168, 64, .45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.fp-pwa-standalone .fp-pwa-toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
}

.fp-pwa-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.fp-pwa-network-status {
    position: fixed;
    z-index: 999989;
    top: max(10px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(24, 24, 24, .94);
    color: #efefea;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.fp-pwa-sheet-open,
.fp-pwa-sheet-open body {
    overflow: hidden !important;
}

.fp-pwa-explore-sheet {
    position: fixed;
    z-index: 1000002;
    inset: 0;
    display: grid;
    align-items: end;
}

.fp-pwa-explore-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, .58);
    cursor: pointer;
}

.fp-pwa-explore-sheet__panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 8px 20px calc(28px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    background: #1d1d1d;
    color: #f5f5f2;
    box-shadow: 0 -24px 70px rgba(0, 0, 0, .35);
}

.fp-pwa-explore-sheet__grab {
    width: 38px;
    height: 4px;
    margin: 2px auto 16px;
    border-radius: 999px;
    background: #5a5a56;
}

.fp-pwa-explore-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fp-pwa-explore-sheet__head span {
    display: block;
    margin-bottom: 3px;
    color: #d9a840;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.fp-pwa-explore-sheet__head h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    line-height: 1.1;
}

.fp-pwa-explore-sheet__close {
    width: 38px;
    height: 38px;
    border: 1px solid #41413e;
    border-radius: 999px;
    background: #292929;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.fp-pwa-explore-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 13px;
    border: 1px solid #444440;
    border-radius: 16px;
    background: #282828;
}

.fp-pwa-explore-search svg {
    width: 21px;
    height: 21px;
    color: #bfbfba;
}

.fp-pwa-explore-search input {
    min-width: 0;
    width: 100%;
    padding: 9px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 16px;
}

.fp-pwa-explore-search input::placeholder {
    color: #999994;
}

.fp-pwa-explore-search button {
    padding: 10px 13px;
    border: 0;
    border-radius: 11px;
    background: #d9a840;
    color: #171717;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.fp-pwa-explore-sheet__hint {
    margin: 9px 3px 20px;
    color: #a9a9a4;
    font-size: 12px;
    line-height: 1.45;
}

.fp-pwa-explore-sheet__saved {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid #383835;
    border-radius: 16px;
    background: #242424;
    color: #fff;
    text-decoration: none;
}

.fp-pwa-explore-sheet__saved > svg {
    width: 27px;
    height: 27px;
    color: #d9a840;
}

.fp-pwa-explore-sheet__saved span {
    display: grid;
    gap: 2px;
}

.fp-pwa-explore-sheet__saved strong {
    font-size: 14px;
}

.fp-pwa-explore-sheet__saved small {
    color: #a9a9a4;
    font-size: 11px;
}

/* App page: biblioteca */
.fp-pwa-app-page {
    margin: 0;
    min-height: 100vh;
    background: #202020;
    color: #f5f5f2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fp-pwa-app-page *,
.fp-pwa-app-page *::before,
.fp-pwa-app-page *::after {
    box-sizing: border-box;
}

.fp-pwa-app-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    min-height: 68px;
    padding: calc(10px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
    background: rgba(24, 24, 24, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.fp-pwa-app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .055em;
}

.fp-pwa-app-brand img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: cover;
}

.fp-pwa-library {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 36px max(18px, env(safe-area-inset-right)) 44px max(18px, env(safe-area-inset-left));
}

.fp-pwa-library__heading {
    max-width: 680px;
    margin-bottom: 28px;
}

.fp-pwa-library__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #d9a840;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.fp-pwa-library__heading h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(2.1rem, 8vw, 3.6rem);
    line-height: .98;
    letter-spacing: -.035em;
}

.fp-pwa-library__heading p {
    max-width: 640px;
    margin: 0;
    color: #bdbdb8;
    font-size: 15px;
    line-height: 1.6;
}

.fp-pwa-library__list {
    display: grid;
    gap: 16px;
}

.fp-pwa-library-card {
    display: grid;
    grid-template-columns: minmax(150px, 210px) 1fr;
    overflow: hidden;
    border: 1px solid #383835;
    border-radius: 20px;
    background: #272727;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.fp-pwa-library-card__image {
    min-height: 180px;
    background: #1c1c1c;
}

.fp-pwa-library-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.fp-pwa-library-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
}

.fp-pwa-library-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    color: #d9a840;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.fp-pwa-library-card__meta span:last-child {
    color: #989893;
}

.fp-pwa-library-card h2 {
    margin: 0 0 8px;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    line-height: 1.15;
}

.fp-pwa-library-card h2 a {
    color: #fff;
    text-decoration: none;
}

.fp-pwa-library-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 16px;
    color: #bcbcb7;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.fp-pwa-library-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.fp-pwa-library-card__read,
.fp-pwa-library-card__remove,
.fp-pwa-library-empty a {
    appearance: none;
    border-radius: 999px;
    padding: 9px 13px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.fp-pwa-library-card__read,
.fp-pwa-library-empty a {
    border: 1px solid #d9a840;
    background: #d9a840;
    color: #171717;
}

.fp-pwa-library-card__remove {
    border: 1px solid #464642;
    background: transparent;
    color: #d1d1cc;
}

.fp-pwa-library-empty {
    display: grid;
    justify-items: start;
    padding: 34px;
    border: 1px dashed #4a4a46;
    border-radius: 22px;
    background: #252525;
}

.fp-pwa-library-empty > svg {
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    color: #d9a840;
}

.fp-pwa-library-empty h2 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}

.fp-pwa-library-empty p {
    max-width: 520px;
    margin: 0 0 20px;
    color: #bcbcb7;
    line-height: 1.6;
}

@media (max-width: 680px) {
    .fp-pwa-save-button {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        min-height: 44px;
        padding: 10px 14px;
    }

    .fp-pwa-install-visible .fp-pwa-save-button {
        bottom: 154px;
    }

    .fp-pwa-standalone .fp-pwa-save-button {
        bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .fp-pwa-library {
        padding-top: 28px;
    }

    .fp-pwa-library-card {
        grid-template-columns: 108px 1fr;
        border-radius: 16px;
    }

    .fp-pwa-library-card__image {
        min-height: 160px;
    }

    .fp-pwa-library-card__body {
        padding: 14px;
    }

    .fp-pwa-library-card p {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 430px) {
    .fp-pwa-library-card {
        grid-template-columns: 1fr;
    }

    .fp-pwa-library-card__image {
        min-height: 190px;
        max-height: 230px;
    }

    .fp-pwa-save-button span {
        max-width: 116px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .fp-pwa-explore-sheet__panel {
        animation: fpPwaSheetUp .22s ease-out both;
    }

    @keyframes fpPwaSheetUp {
        from { transform: translateY(24px); opacity: .7; }
        to { transform: translateY(0); opacity: 1; }
    }
}

/* ===== Fútbol Profundo PWA v0.2.1: portada exclusiva de la app ===== */
.fp-pwa-home-page {
    --fp-app-green: #2a7336;
    --fp-app-green-dark: #205b2b;
    --fp-app-dark: #1a1a1a;
    --fp-app-ink: #262626;
    --fp-app-muted: #6b6b68;
    --fp-app-line: #e5e5e2;
    --fp-app-surface: #ffffff;
    margin: 0;
    padding: 0;
    background: #f9f9f7;
    color: var(--fp-app-ink);
}

.fp-pwa-home-page a {
    color: inherit;
    text-decoration: none;
}

.fp-pwa-home-header {
    position: sticky;
    z-index: 50;
    top: 0;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(10px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--fp-app-line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.fp-pwa-home-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fp-pwa-home-brand img {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.fp-pwa-home-brand > span {
    display: grid;
    gap: 0;
    line-height: .92;
    letter-spacing: -.01em;
}

.fp-pwa-home-brand strong,
.fp-pwa-home-brand b {
    font-size: 13px;
    font-weight: 900;
}

.fp-pwa-home-brand strong { color: #111; }
.fp-pwa-home-brand b { color: var(--fp-app-green); }

.fp-pwa-home-menu {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 4px;
    border: 0;
    border-radius: 13px;
    background: #f1f1ef;
    cursor: pointer;
}

.fp-pwa-home-menu span {
    width: 19px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: #222;
}

.fp-pwa-home-menu:focus-visible,
.fp-pwa-home-page a:focus-visible {
    outline: 3px solid var(--fp-app-green);
    outline-offset: 3px;
}

.fp-pwa-home-main {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 18px max(16px, env(safe-area-inset-right)) 34px max(16px, env(safe-area-inset-left));
}

.fp-pwa-home-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 24px 30px;
    border-radius: 18px;
    background: var(--fp-app-dark);
    color: #fff;
    box-shadow: 0 16px 42px rgba(0,0,0,.12);
}

.fp-pwa-home-hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -72px;
    bottom: -86px;
    border: 28px solid rgba(42,115,54,.32);
    border-radius: 50%;
}

.fp-pwa-home-kicker {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 12px;
    color: #8fd39a;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.fp-pwa-home-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2rem, 8vw, 3.6rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.fp-pwa-home-hero p {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 0 24px;
    color: #c9c9c5;
    font-size: 14px;
    line-height: 1.55;
}

.fp-pwa-home-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--fp-app-green);
    color: #fff !important;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .025em;
}

.fp-pwa-home-section {
    margin-top: 30px;
}

.fp-pwa-home-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--fp-app-line);
}

.fp-pwa-home-section__head > div > span {
    display: block;
    margin-bottom: 2px;
    color: var(--fp-app-green);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fp-pwa-home-section__head h2 {
    margin: 0;
    color: #222;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.fp-pwa-home-section__head > a {
    padding-bottom: 1px;
    color: var(--fp-app-green);
    font-size: 11px;
    font-weight: 800;
}

.fp-pwa-home-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 1px 1px 9px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.fp-pwa-home-categories::-webkit-scrollbar { display: none; }

.fp-pwa-home-category {
    scroll-snap-align: start;
    flex: 0 0 118px;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e4e4e1;
    border-radius: 14px;
    background: var(--fp-app-surface);
    box-shadow: 0 7px 22px rgba(0,0,0,.04);
}

.fp-pwa-home-category i {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eaf3ec;
    color: var(--fp-app-green);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.fp-pwa-home-category span {
    color: #242424;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .025em;
}

.fp-pwa-home-story-list {
    display: grid;
    gap: 13px;
}

.fp-pwa-home-story {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e4e4e1;
    border-radius: 15px;
    background: var(--fp-app-surface);
    box-shadow: 0 7px 22px rgba(0,0,0,.035);
}

.fp-pwa-home-story__media {
    min-height: 132px;
    display: grid;
    place-items: center;
    background-color: #d9d9d6;
    background-size: cover;
    background-position: center;
    color: rgba(255,255,255,.8) !important;
    font-size: 23px;
    font-weight: 950;
}

.fp-pwa-home-story__body {
    min-width: 0;
    padding: 14px;
}

.fp-pwa-home-story__tag {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 7px;
    overflow: hidden;
    color: var(--fp-app-green);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .065em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.fp-pwa-home-story h3 {
    margin: 0;
    color: #202020;
    font-size: 15px;
    line-height: 1.22;
    letter-spacing: -.012em;
}

.fp-pwa-home-story p {
    display: none;
    margin: 9px 0 0;
    color: var(--fp-app-muted);
    font-size: 12px;
    line-height: 1.5;
}

.fp-pwa-home-story.is-lead {
    grid-template-columns: 1fr;
}

.fp-pwa-home-story.is-lead .fp-pwa-home-story__media {
    min-height: 205px;
}

.fp-pwa-home-story.is-lead .fp-pwa-home-story__body {
    padding: 16px;
}

.fp-pwa-home-story.is-lead h3 {
    font-size: 21px;
    line-height: 1.12;
}

.fp-pwa-home-story.is-lead p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fp-pwa-home-tools {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.fp-pwa-home-tools > a {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    min-height: 145px;
    padding: 20px;
    border-radius: 16px;
    background: var(--fp-app-dark);
    color: #fff !important;
}

.fp-pwa-home-tools > a::after {
    content: "";
    position: absolute;
    width: 92px;
    height: 92px;
    right: -25px;
    bottom: -31px;
    border: 18px solid rgba(42,115,54,.34);
    border-radius: 50%;
}

.fp-pwa-home-tools span,
.fp-pwa-home-tools strong,
.fp-pwa-home-tools b {
    position: relative;
    z-index: 1;
}

.fp-pwa-home-tools span {
    color: #8fd39a;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fp-pwa-home-tools strong {
    max-width: 270px;
    font-size: 17px;
    line-height: 1.18;
}

.fp-pwa-home-tools b {
    align-self: end;
    color: #d7d7d2;
    font-size: 11px;
}

.fp-pwa-home-empty {
    padding: 26px;
    border: 1px dashed #c9c9c5;
    border-radius: 15px;
    background: #fff;
    color: var(--fp-app-muted);
    font-size: 13px;
    line-height: 1.55;
}

.fp-pwa-home-page .fp-pwa-bottom-nav-spacer {
    height: calc(84px + env(safe-area-inset-bottom));
}

@media (min-width: 620px) {
    .fp-pwa-home-main { padding-top: 26px; }
    .fp-pwa-home-story-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .fp-pwa-home-story,
    .fp-pwa-home-story.is-lead { grid-template-columns: 1fr; }
    .fp-pwa-home-story__media { min-height: 185px; }
    .fp-pwa-home-story.is-lead { grid-column: 1 / -1; }
    .fp-pwa-home-story.is-lead .fp-pwa-home-story__media { min-height: 300px; }
    .fp-pwa-home-tools { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* v0.3.2 · Progreso de lectura sin alterar la landing v0.2.1 */
.fp-pwa-reading-bar {
    position: fixed;
    z-index: 1000001;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    pointer-events: none;
    background: transparent;
}

.fp-pwa-reading-bar > span {
    display: block;
    width: 0;
    height: 100%;
    background: #2a7336;
    transition: width .12s linear;
}

.fp-pwa-reading-indicator {
    position: fixed;
    z-index: 999998;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 5px 18px rgba(0,0,0,.10);
    color: #555;
    font-size: 10px;
    line-height: 1;
    opacity: .72;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fp-pwa-reading-indicator strong {
    color: #2a7336;
    font-size: 11px;
}

.fp-pwa-home-story__reading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.fp-pwa-home-story__reading > span {
    flex: 1 1 auto;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e5e2;
}

.fp-pwa-home-story__reading > span i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2a7336;
}

.fp-pwa-home-story__reading > b {
    flex: 0 0 auto;
    color: #6b6b67;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}


/* ===== Fútbol Profundo PWA v0.4.2: perfil integrado al tema ===== */
.fp-pwa-profile-page .fp-profile-shell,
.fp-pwa-profile-page .fp-profile-shell * { box-sizing: border-box; }

.fp-profile-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 32px;
    color: inherit;
    font-family: inherit;
}

.fp-profile-shell a { color: inherit; }
.fp-profile-shell button,
.fp-profile-shell input { font: inherit; }

.fp-profile-intro,
.fp-profile-welcome,
.fp-profile-onboarding { margin: 0 0 24px; }

.fp-profile-intro > span,
.fp-profile-kicker,
.fp-profile-card__head span {
    display: block;
    margin-bottom: 7px;
    color: #2a7336;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fp-profile-intro h2,
.fp-profile-welcome h2,
.fp-profile-onboarding h2 {
    margin: 0 0 12px;
    color: inherit;
    font-family: inherit;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.08;
}

.fp-profile-intro p,
.fp-profile-onboarding > p,
.fp-profile-welcome p,
.fp-profile-muted {
    margin: 0;
    color: inherit;
    opacity: .72;
    font-size: inherit;
    line-height: 1.6;
}

.fp-profile-auth,
.fp-profile-onboarding {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.fp-auth-tabs {
    display: flex;
    gap: 22px;
    margin: 28px 0 24px;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,.14);
    background: transparent;
}

.fp-auth-tabs button {
    position: relative;
    min-height: 42px;
    padding: 0 0 10px;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: .58;
    font-weight: 700;
    cursor: pointer;
}

.fp-auth-tabs button.is-active { opacity: 1; }
.fp-auth-tabs button.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #2a7336;
}

.fp-auth-form { display: grid; gap: 18px; max-width: 620px; }
.fp-auth-form[hidden] { display: none !important; }
.fp-auth-form label:not(.fp-auth-consent) { display: grid; gap: 7px; font-weight: 650; }

.fp-auth-form input[type="text"],
.fp-auth-form input[type="email"],
.fp-auth-form input[type="password"],
.fp-team-picker__search input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 4px;
    outline: 0;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 15px;
}

.fp-auth-form input:focus,
.fp-team-picker__search input:focus {
    border-color: #2a7336;
    box-shadow: 0 0 0 2px rgba(42,115,54,.12);
}

.fp-auth-form small { opacity: .65; font-size: 12px; }
.fp-auth-consent { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; font-size: 12px; line-height: 1.5; }
.fp-auth-consent input { margin-top: 3px; }
.fp-auth-consent a { text-decoration: underline; }

.fp-profile-primary,
.fp-profile-secondary,
.fp-profile-text-button {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    cursor: pointer;
}
.fp-profile-primary,
.fp-profile-secondary {
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 4px;
    font-weight: 750;
}
.fp-profile-primary { border: 1px solid #2a7336; background: #2a7336; color: #fff; }
.fp-profile-secondary { border: 1px solid rgba(0,0,0,.16); background: transparent; color: inherit; }
.fp-profile-primary:disabled,
.fp-profile-secondary:disabled { opacity: .55; cursor: wait; }
.fp-profile-text-button { padding: 0; border: 0; background: transparent; color: #2a7336; font-weight: 750; }
.fp-auth-reset { justify-self: start; font-size: 13px; }

.fp-auth-message,
.fp-profile-message { max-width: 620px; margin: 0 0 14px; font-size: 13px; font-weight: 650; line-height: 1.45; }
.fp-auth-message:not(:empty),
.fp-profile-message:not(:empty) { padding: 10px 12px; border-left: 3px solid #2a7336; background: rgba(42,115,54,.07); }
.fp-auth-message.is-error,
.fp-profile-message.is-error { border-left-color: #a52a2a; background: rgba(165,42,42,.07); color: #8a2020; }

.fp-profile-dashboard { display: grid; gap: 28px; }
.fp-profile-card { padding: 22px 0; border-top: 1px solid rgba(0,0,0,.12); background: transparent; }
.fp-profile-card__head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.fp-profile-card__head h3 { margin: 0; color: inherit; font-family: inherit; font-size: 1.25rem; }
.fp-profile-card__head a { color: #2a7336; font-weight: 700; white-space: nowrap; }

.fp-current-team { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; }
.fp-current-team__logo { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: rgba(42,115,54,.08); color: #2a7336; }
.fp-current-team__logo img { width: 100%; height: 100%; object-fit: contain; }
.fp-current-team > div { min-width: 0; display: grid; gap: 3px; }
.fp-current-team > div span { opacity: .65; font-size: 12px; }
.fp-current-team > a { color: #2a7336; font-weight: 700; white-space: nowrap; }

.fp-team-picker { margin-top: 24px; }
.fp-team-picker__search { display: block; margin-bottom: 14px; max-width: 620px; }
.fp-team-picker__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; max-height: 440px; overflow: auto; padding: 2px; }
.fp-team-option { min-width: 0; min-height: 104px; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 10px 8px; border: 1px solid rgba(0,0,0,.14); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; text-align: center; }
.fp-team-option.is-selected { border-color: #2a7336; box-shadow: 0 0 0 2px rgba(42,115,54,.12); }
.fp-team-option__logo { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: rgba(42,115,54,.08); }
.fp-team-option__logo img { width: 100%; height: 100%; object-fit: contain; }
.fp-team-option__name { font-size: 12px; font-weight: 700; line-height: 1.25; }
.fp-team-picker__empty { opacity: .7; }
.fp-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fp-profile-team-picker-wrap { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.12); }
.fp-profile-team-picker-wrap[hidden] { display: none !important; }
.fp-profile-team-picker-wrap .fp-profile-primary { margin-top: 14px; }
.fp-profile-notice { margin: 20px 0; padding: 14px 0; border-top: 1px solid rgba(0,0,0,.12); border-bottom: 1px solid rgba(0,0,0,.12); }
.fp-profile-notice strong { display: block; margin-bottom: 5px; }
.fp-profile-notice p { margin: 0; }
.fp-pwa-explore-sheet__profile { margin-top: 8px; }

@media (max-width: 620px) {
    .fp-auth-form { max-width: 100%; }
    .fp-team-picker__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fp-current-team { grid-template-columns: auto 1fr; }
    .fp-current-team > a { grid-column: 2; justify-self: start; }
    .fp-profile-actions { display: grid; grid-template-columns: 1fr; }
    .fp-profile-actions > * { width: 100%; }
}

@media (max-width: 370px) {
    .fp-team-picker__grid { grid-template-columns: 1fr; }
}

/* ===== Fútbol Profundo PWA v0.5: personalización en la portada real ===== */
.fp-personal-section {
    width: 100%;
    margin: 28px 0;
    font-family: inherit;
    color: inherit;
}

.fp-personal-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(0,0,0,.12);
}

.fp-personal-section__heading small,
.fp-choose-team small {
    display: block;
    margin-bottom: 2px;
    color: #248b2e;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fp-personal-section__heading h2 {
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 850;
    line-height: 1.15;
}

.fp-personal-section__heading > a,
.fp-choose-team > a {
    color: #248b2e;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.fp-team-home__card {
    min-height: 120px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 16px;
    background: #101712;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.fp-team-home__logo {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.fp-team-home__logo img { width: 88%; height: 88%; object-fit: contain; }
.fp-team-home__fallback { color: #67d552; font-size: 28px; font-weight: 900; }
.fp-team-home__body { min-width: 0; display: grid; gap: 3px; }
.fp-team-home__body small { color: #67d552; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fp-team-home__body strong { color: #fff; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.1; }
.fp-team-home__body > span { margin-top: 5px; color: #67d552; font-size: 13px; font-weight: 800; }

.fp-continue-card {
    min-height: 126px;
    display: grid;
    grid-template-columns: minmax(150px, 32%) minmax(0,1fr);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 14px;
    background: #fff;
    color: #151515;
    text-decoration: none;
    box-shadow: 0 7px 22px rgba(0,0,0,.05);
}
.fp-continue-card:not(:has(.fp-continue-card__media)) { grid-template-columns: 1fr; }
.fp-continue-card__media { min-height: 126px; background: #171717; }
.fp-continue-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.fp-continue-card__body { min-width: 0; display: grid; align-content: center; gap: 7px; padding: 16px 18px; }
.fp-personal-kicker { color: #248b2e; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.fp-continue-card__body strong { color: inherit; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2; }
.fp-continue-card__body b { color: #248b2e; font-size: 11px; }
.fp-continue-card__progress { width: 100%; height: 5px; overflow: hidden; border-radius: 999px; background: #e7e7e4; }
.fp-continue-card__progress i { height: 100%; display: block; border-radius: inherit; background: #248b2e; }

.fp-team-stories__grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
}
.fp-team-story-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 12px;
    background: #fff;
    color: #151515;
}
.fp-team-story-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: #ddd; }
.fp-team-story-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.fp-team-story-card:hover .fp-team-story-card__media img { transform: scale(1.02); }
.fp-team-story-card__body { padding: 14px 15px 16px; }
.fp-team-story-card__body > span { display: inline-block; margin-bottom: 7px; color: #248b2e; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.fp-team-story-card h3 { margin: 0; font: inherit; font-size: 16px; font-weight: 850; line-height: 1.25; }
.fp-team-story-card h3 a { color: inherit; text-decoration: none; }
.fp-team-story-card p { margin: 9px 0 0; color: #555; font-size: 13px; line-height: 1.45; }

.fp-choose-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(36,139,46,.25);
    border-radius: 12px;
    background: rgba(36,139,46,.055);
}
.fp-choose-team > div { min-width: 0; }
.fp-choose-team strong { display: block; line-height: 1.35; }

@media (max-width: 900px) {
    .fp-team-stories__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
    .fp-personal-section { margin: 22px 0; }
    .fp-personal-section__heading { align-items: center; }
    .fp-team-home__card { min-height: 104px; padding: 16px; border-radius: 12px; }
    .fp-team-home__logo { width: 62px; height: 62px; }
    .fp-continue-card { grid-template-columns: 112px minmax(0,1fr); min-height: 112px; border-radius: 10px; }
    .fp-continue-card__media { min-height: 112px; }
    .fp-continue-card__body { padding: 13px; }
    .fp-team-stories__grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }
    .fp-team-story-card { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
    .fp-choose-team { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
    .fp-continue-card { grid-template-columns: 1fr; }
    .fp-continue-card__media { aspect-ratio: 16/8; min-height: 0; }
}
