/* Generado por tools/split-css.php desde app.css. No editar a mano:
   los cambios van en app.css y despues se vuelve a ejecutar el script. */


.repo-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ——— Hero: lámina navy de biblioteca ——— */
.repo-hero {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(1200px 540px at 86% -10%, rgba(111, 180, 63, .16), transparent 60%),
        radial-gradient(900px 480px at -10% 110%, rgba(255, 255, 255, .07), transparent 55%),
        linear-gradient(160deg, var(--navy) 0%, #1d1856 55%, var(--navy-2) 100%);
    color: #fff;
}

.repo-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(720px 420px at 78% 36%, rgba(0, 0, 0, .8), transparent 72%);
    -webkit-mask-image: radial-gradient(720px 420px at 78% 36%, rgba(0, 0, 0, .8), transparent 72%);
}

.repo-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: clamp(2.2rem, 5vw, 3.6rem);
    padding-bottom: clamp(2.6rem, 6vw, 4.4rem);
}

.repo-breadcrumb a {
    color: rgba(255, 255, 255, .72);
}

.repo-breadcrumb a:hover {
    color: #fff;
}

.repo-breadcrumb span {
    color: rgba(255, 255, 255, .92);
}

.repo-breadcrumb svg {
    color: rgba(255, 255, 255, .45);
}

.repo-hero-copy h1 {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.7rem, 6.4vw, 4.9rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.028em;
    text-wrap: balance;
}

.repo-hero-lead {
    margin-top: 1.15rem;
    max-width: 56ch;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    font-weight: 500;
    line-height: 1.75;
}

/* Buscador principal */
.repo-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 1.9rem;
    max-width: 620px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(10, 8, 40, .4);
}

.repo-search:focus-within {
    outline: 3px solid rgba(111, 180, 63, .55);
    outline-offset: 2px;
}

.repo-search-icon {
    position: absolute;
    left: 1.1rem;
    color: var(--navy);
    pointer-events: none;
}

.repo-search input {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: transparent;
    padding: 1.18rem 5.4rem 1.18rem 3.2rem;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 600;
}

.repo-search input::placeholder {
    color: #5a6372;
    font-weight: 500;
}

.repo-search input:focus {
    outline: none;
}

.repo-search input::-webkit-search-cancel-button {
    display: none;
}

.repo-search-clear:hover {
    background: var(--warm-line);
}

.repo-hero-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 1.15rem;
    font-size: .86rem;
}

.repo-hero-chips>span {
    color: rgba(255, 255, 255, .62);
    font-weight: 700;
}

.repo-hero-chips button {
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    padding: .38rem .85rem;
    color: rgba(255, 255, 255, .92);
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.repo-hero-chips button:hover {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .1);
    transform: translateY(-1px);
}

/* Panel de datos del hero */
.repo-hero-panel {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    padding: 1.5rem 1.6rem 1.6rem;
}

.repo-hero-stat strong {
    display: block;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.repo-hero-stat span {
    display: block;
    margin-top: .35rem;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    font-weight: 600;
}

.repo-hero-facts li {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255, 255, 255, .88);
    font-size: .92rem;
    font-weight: 600;
}

.repo-hero-facts svg {
    flex-shrink: 0;
    color: var(--green);
}

/* ——— Barra de filtros ——— */
.repo-toolbar {
    position: sticky;
    top: 151px;
    z-index: 40;
    border-bottom: 1px solid var(--warm-line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}

.repo-scope button[aria-pressed="true"] {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 8px 18px rgba(38, 33, 97, .24);
}

.repo-toolbar-selects {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
}

.repo-toolbar-selects select {
    border: 1px solid var(--warm-line);
    border-radius: 10px;
    background: #fff;
    padding: .55rem 2rem .55rem .8rem;
    color: var(--ink-2);
    font-size: .85rem;
    font-weight: 700;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23262161' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .6rem center;
    cursor: pointer;
}

.repo-toolbar-selects select:focus-visible,
.repo-scope button:focus-visible,
.repo-hero-chips button:focus-visible,
.repo-cat-list button:focus-visible {
    outline: 3px solid rgba(111, 180, 63, .55);
    outline-offset: 2px;
}

.repo-reset {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 10px;
    padding: .55rem .8rem;
    color: #9a3412;
    font-size: .82rem;
    font-weight: 800;
    transition: background .2s ease;
}

.repo-reset:hover {
    background: #fff3eb;
}

/* ——— Cuerpo: aside + resultados ——— */
.repo-body {
    padding-top: clamp(1.8rem, 3.5vw, 2.8rem);
    padding-bottom: clamp(2.4rem, 5vw, 4rem);
}
@media (min-width: 1024px) {

    .repo-aside {
        position: sticky;
        top: 226px;
    }
}


.repo-aside h2 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
}

.repo-cat-list button svg {
    flex-shrink: 0;
    color: var(--gray);
    transition: color .18s ease;
}

.repo-cat-list button span {
    flex: 1;
    min-width: 0;
}

.repo-cat-list button:hover {
    background: var(--warm);
    color: var(--navy);
}

.repo-cat-list button[aria-pressed="true"] {
    background: var(--navy);
    color: #fff;
}

.repo-cat-list button[aria-pressed="true"] svg,
.repo-cat-list button[aria-pressed="true"] em {
    color: rgba(255, 255, 255, .85);
}

.repo-aside-note svg {
    flex-shrink: 0;
    margin-top: .1rem;
    color: var(--green-2);
}

.repo-aside-note p {
    color: #54524c;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.6;
}

/* Filas tipo catálogo de biblioteca */
.repo-list {
    display: grid;
    gap: .75rem;
}

.repo-row:hover {
    border-color: rgba(38, 33, 97, .35);
    box-shadow: 0 18px 40px rgba(38, 33, 97, .09);
    transform: translateY(-2px);
}

[data-scope="internacional"] .repo-row-icon {
    background: rgba(111, 180, 63, .14);
    color: var(--green-2);
}

.repo-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.repo-org {
    color: var(--green-2);
    letter-spacing: .02em;
}

.repo-lang {
    border: 1px solid var(--warm-line);
    border-radius: 6px;
    padding: .08rem .4rem;
    font-size: .68rem;
    letter-spacing: .05em;
}

.repo-key {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border-radius: 999px;
    background: rgba(111, 180, 63, .14);
    padding: .14rem .55rem;
    color: #3d7417;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.repo-row h3 a {
    color: var(--navy);
}

.repo-row h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
}

.repo-row h3 a:focus-visible {
    outline: none;
}

.repo-row h3 a:focus-visible::after {
    outline: 3px solid rgba(111, 180, 63, .55);
    outline-offset: 2px;
}

.repo-row-summary {
    margin-top: .4rem;
    max-width: 72ch;
    color: #4f4d48;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.65;
}

.repo-row:hover .repo-row-action {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

/* Mostrar más (paginación incremental del cliente) */
.repo-more {
    display: flex;
    justify-content: center;
    margin-top: 1.4rem;
}

.repo-more button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--warm-line);
    border-radius: 999px;
    background: #fff;
    padding: .8rem 1.5rem;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 900;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.repo-more button:hover {
    border-color: var(--navy);
    box-shadow: 0 12px 28px rgba(38, 33, 97, .1);
    transform: translateY(-1px);
}

/* Estado vacío */
.repo-empty {
    display: grid;
    justify-items: center;
    gap: .6rem;
    border: 1px dashed var(--warm-line);
    border-radius: 18px;
    background: var(--canvas);
    padding: 3rem 1.5rem;
    text-align: center;
}

.repo-empty svg {
    color: var(--gray);
}

.repo-empty h3 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.repo-empty p {
    max-width: 46ch;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.65;
}

/* ——— Fuentes para investigar ——— */
.repo-research {
    border-top: 1px solid var(--warm-line);
    background: var(--warm);
    padding: clamp(2.6rem, 5vw, 4.2rem) 0;
}

.repo-research-head h2 {
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.018em;
}

.repo-research-head p {
    margin-top: .6rem;
    max-width: 62ch;
    color: #54524c;
    font-size: .98rem;
    font-weight: 500;
    line-height: 1.7;
}

.repo-research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: .9rem;
    margin-top: 1.8rem;
}

.repo-research-grid a {
    display: block;
    height: 100%;
    border: 1px solid var(--warm-line);
    border-radius: 16px;
    background: #fff;
    padding: 1.25rem 1.3rem;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.repo-research-grid a:hover {
    border-color: rgba(38, 33, 97, .3);
    box-shadow: 0 16px 36px rgba(38, 33, 97, .08);
    transform: translateY(-2px);
}

.repo-research-grid a>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(38, 33, 97, .07);
    color: var(--navy);
}

.repo-research-grid strong {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .85rem;
    color: var(--navy);
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
}

.repo-research-grid strong svg {
    color: var(--green-2);
    transition: transform .2s ease;
}

.repo-research-grid a:hover strong svg {
    transform: translate(2px, -2px);
}

.repo-research-grid p {
    margin-top: .45rem;
    color: #55534d;
    font-size: .86rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ——— Cierre: aviso + solicitud ——— */
.repo-footer-band {
    padding: clamp(2.2rem, 4.5vw, 3.6rem) 0;
}

.repo-disclaimer {
    display: flex;
    gap: .85rem;
    border: 1px solid #f3d9b7;
    border-radius: 14px;
    background: #fdf6ec;
    padding: 1.05rem 1.2rem;
}

.repo-disclaimer svg {
    flex-shrink: 0;
    margin-top: .15rem;
    color: #b45309;
}

.repo-disclaimer p {
    color: #6b4d1f;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.65;
}

.repo-disclaimer strong {
    color: #92400e;
    font-weight: 800;
}

.repo-request {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 1.4rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--navy), #1d1856);
    padding: clamp(1.6rem, 3.4vw, 2.4rem) clamp(1.4rem, 3.4vw, 2.6rem);
    color: #fff;
}

.repo-request h2 {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.015em;
}

.repo-request p {
    margin-top: .45rem;
    max-width: 52ch;
    color: rgba(255, 255, 255, .78);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.65;
}
@media (max-width: 767px) {

    .repo-cat-list::-webkit-scrollbar {
        display: none;
    }
}


/* ==== repartido desde app.css (split-families-css.php) ==== */
.repo-row.hidden,
.repo-reset.hidden,
.repo-search-clear.hidden,
.repo-empty.hidden {
    display: none;
}

.repo-hero-grid {
    display: grid;
    align-items: end;
    gap: clamp(1.8rem, 4vw, 3.4rem);
    margin-top: clamp(1.4rem, 3vw, 2.4rem);
}

@media (min-width: 1024px) {
.repo-hero-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
    }
}

.repo-search-clear {
    position: absolute;
    right: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--warm);
    color: var(--navy);
    transition: background .2s ease;
}

.repo-search-kbd {
    position: absolute;
    right: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border: 1px solid var(--warm-line);
    border-radius: 8px;
    background: var(--canvas);
    color: var(--gray);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 800;
}

@media (hover: none) {
.repo-search-kbd {
        display: none;
    }
.repo-search-clear {
        right: 1.05rem;
    }
}

.repo-hero-facts {
    margin-top: 1.25rem;
    display: grid;
    gap: .7rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 1.25rem;
}

.repo-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.1rem;
    padding-top: .8rem;
    padding-bottom: .8rem;
}

.repo-scope {
    display: inline-flex;
    border: 1px solid var(--warm-line);
    border-radius: 12px;
    background: var(--warm);
    padding: .25rem;
}

.repo-scope button {
    border-radius: 9px;
    padding: .5rem .95rem;
    color: #4d4b46;
    font-size: .85rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.repo-count {
    margin-left: auto;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.repo-shell {
    display: grid;
    gap: clamp(1.4rem, 3vw, 2.6rem);
    align-items: start;
}

@media (min-width: 1024px) {
.repo-shell {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

.repo-cat-list {
    display: grid;
    gap: .3rem;
    margin-top: .9rem;
}

.repo-cat-list button {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    border-radius: 12px;
    padding: .62rem .75rem;
    color: #4d4b46;
    font-size: .89rem;
    font-weight: 700;
    text-align: left;
    transition: background .18s ease, color .18s ease;
}

.repo-cat-list button em {
    font-style: normal;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.repo-aside-note {
    display: flex;
    gap: .8rem;
    margin-top: 1.6rem;
    border: 1px solid var(--warm-line);
    border-radius: 14px;
    background: var(--warm);
    padding: 1rem 1.05rem;
}

.repo-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.05rem;
    border: 1px solid var(--warm-line);
    border-radius: 16px;
    background: var(--paper);
    padding: 1.15rem 1.2rem;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.repo-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(38, 33, 97, .07);
    color: var(--navy);
}

.repo-row-main {
    flex: 1;
    min-width: 0;
}

.repo-row h3 {
    margin-top: .4rem;
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.repo-row-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    align-self: center;
    flex-shrink: 0;
    border: 1px solid var(--warm-line);
    border-radius: 999px;
    padding: .5rem .95rem;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 900;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

@media (prefers-reduced-motion: no-preference) {
.repo-row {
        animation: repoRowIn .55s cubic-bezier(.16, .84, .44, 1) backwards;
    }
.repo-row:nth-child(1) {
        animation-delay: .05s;
    }
.repo-row:nth-child(2) {
        animation-delay: .1s;
    }
.repo-row:nth-child(3) {
        animation-delay: .15s;
    }
.repo-row:nth-child(4) {
        animation-delay: .2s;
    }
.repo-row:nth-child(5) {
        animation-delay: .25s;
    }
.repo-row:nth-child(6) {
        animation-delay: .3s;
    }
.repo-row:nth-child(n+7) {
        animation-delay: .34s;
    }
}

.repo-more.hidden {
    display: none;
}

.repo-empty .btn {
    margin-top: .6rem;
}

@media (max-width: 1023px) {
.repo-hero-panel {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem 2rem;
    }
.repo-hero-facts {
        margin-top: 0;
        border-top: 0;
        padding-top: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex: 1;
        min-width: 260px;
    }
}

@media (max-width: 767px) {
.repo-toolbar-inner {
        gap: .6rem;
    }
.repo-scope {
        width: 100%;
    }
.repo-scope button {
        flex: 1;
        padding: .5rem .3rem;
        font-size: .74rem;
        text-align: center;
        letter-spacing: -.01em;
    }
.repo-count {
        margin-left: 0;
    }
.repo-cat-list {
        display: flex;
        gap: .45rem;
        overflow-x: auto;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: .25rem 1rem .6rem;
        scrollbar-width: none;
    }
.repo-cat-list button {
        width: auto;
        flex-shrink: 0;
        border: 1px solid var(--warm-line);
        background: #fff;
        border-radius: 999px;
        padding: .5rem .85rem;
        font-size: .82rem;
    }
.repo-cat-list button em {
        font-size: .72rem;
    }
.repo-aside-note {
        display: none;
    }
.repo-row {
        flex-wrap: wrap;
        gap: .8rem;
        padding: 1rem;
    }
.repo-row-icon {
        width: 40px;
        height: 40px;
    }
.repo-row-main {
        flex-basis: calc(100% - 56px);
    }
.repo-row h3 {
        font-size: 1rem;
    }
.repo-row-action {
        margin-left: 56px;
        align-self: flex-start;
    }
.repo-hero-facts {
        grid-template-columns: 1fr;
    }
}
