/* ============================================================
   ATLAS PARA UNA EDUCACIÓN DEMOCRÁTICA
   Hoja de estilos consolidada
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');


/* ============================================================
   1. VARIABLES
   ============================================================ */

#atlas-app {
    --at-ink: #171717;
    --at-muted: #626262;
    --at-line: #e7e7e7;
    --at-soft: #f8f8f8;

    --at-red: #a6445b;
    --at-orange: #b16e35;
    --at-green: #3e806e;

    --at-red-soft: #f8edf1;
    --at-orange-soft: #faf2e9;
    --at-green-soft: #edf6f1;
}


/* ============================================================
   2. BASE GENERAL
   ============================================================ */

#atlas-app {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px 75px;

    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 16px;
    font-weight: 400 !important;
    line-height: 1.65;
    color: var(--at-ink) !important;
}

#atlas-app,
#atlas-app * {
    box-sizing: border-box;
}

#atlas-app [hidden] {
    display: none !important;
}

#atlas-app button,
#atlas-app input {
    font-family: 'Source Sans Pro', sans-serif !important;
}

#atlas-app button {
    height: auto;
    min-height: 0;
    line-height: inherit;
    white-space: normal;
    cursor: pointer;
    appearance: none;
}

#atlas-app h1,
#atlas-app h2,
#atlas-app h3,
#atlas-app h4,
#atlas-app h5,
#atlas-app h6 {
    font-family: 'Playfair Display', serif !important;
    letter-spacing: normal !important;
    color: var(--at-ink) !important;
}

#atlas-app h1,
#atlas-app h2 {
    font-weight: 700 !important;
}

#atlas-app h3,
#atlas-app h4,
#atlas-app h5,
#atlas-app h6 {
    font-weight: 500 !important;
}

#atlas-app h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.12;
}

#atlas-app h2 {
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    line-height: 1.25;
}

#atlas-app p {
    line-height: 1.7;
}

#atlas-app a {
    color: var(--at-ink) !important;
    text-decoration: none;
}

#atlas-app a:hover {
    color: #000 !important;
}

#atlas-app a:focus-visible,
#atlas-app button:focus-visible,
#atlas-app input:focus-visible {
    outline: 2px solid var(--at-orange);
    outline-offset: 3px;
}

#atlas-app .at-section {
    margin-top: 45px;
}


/* ============================================================
   3. CABECERA PRINCIPAL
   ============================================================ */

#atlas-app .at-hero {
    position: relative;
    overflow: hidden;

    padding: 30px 38px !important;
    border-radius: 15px;

    background: linear-gradient(
        125deg,
        #1d1d1d 0%,
        #292929 65%,
        #393939 100%
    ) !important;

    color: #fff !important;
}

#atlas-app .at-hero .at-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 12px;

    font-family: 'Source Sans Pro', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .12em;
    text-transform: uppercase;

    color: #e5e5e5 !important;
}

#atlas-app .at-hero .at-eyebrow i {
    font-size: .8rem;
    opacity: .85;
}

#atlas-app .at-hero h1 {
    max-width: 950px;

    margin: 0 !important;

    font-size: clamp(2.25rem, 3.5vw, 3.35rem) !important;
    font-weight: 700 !important;
    line-height: 1.12;

    color: #fff !important;
}

#atlas-app .at-hero p {
    max-width: 760px;
    color: #f4f4f4 !important;
}

#atlas-app .at-hero .at-hero-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    margin-top: 22px;
}

#atlas-app .at-hero .at-hero-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 8px 14px;

    border: 1px solid rgba(255,255,255,.4);
    border-radius: 999px;

    background: transparent;
    color: #fff !important;

    font-family: 'Source Sans Pro', sans-serif;
    font-size: .84rem;
    font-weight: 600 !important;
    line-height: 1.4;

    text-decoration: none !important;

    transition: background .2s, border-color .2s;
}

#atlas-app .at-hero .at-hero-links a:hover,
#atlas-app .at-hero .at-hero-links a:focus-visible {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.8);
    color: #fff !important;
}

#atlas-app .at-hero .at-hero-links a i:last-child {
    font-size: .75rem;
    opacity: .8;
}


/* ============================================================
   4. INTRODUCCIÓN EDITORIAL
   ============================================================ */

#atlas-app .at-editorial-intro {
    max-width: 1000px;
    margin: 30px auto 0;
    padding: 0 4px;
}

#atlas-app .at-editorial-content {
    padding: 2px 0 2px 23px;
    border-left: 3px solid #dedede;
}

#atlas-app .at-editorial-content p {
    max-width: 940px;

    margin: 0;

    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.03rem;
    font-weight: 400 !important;
    line-height: 1.75;

    color: #383838 !important;
}

#atlas-app .at-editorial-content p + p {
    margin-top: 14px;
}


/* ============================================================
   5. ENCABEZADOS DE SECCIÓN
   ============================================================ */

#atlas-app .at-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 10px;
}

#atlas-app .at-section-heading h2 {
    margin: 0;

    font-size: clamp(1.55rem, 2.4vw, 1.95rem);
    line-height: 1.25;
}

#atlas-app .at-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;
    width: 40px;
    height: 40px;

    border-radius: 11px;

    background: #f2f2f2;
    color: #333;

    font-size: .95rem;
}

#atlas-app .at-intro {
    max-width: 900px;

    margin: 0 0 21px;

    font-size: .97rem;
    font-weight: 400 !important;
    line-height: 1.7;

    color: var(--at-muted) !important;
}


/* ============================================================
   6. LOS TRES NIVELES
   ============================================================ */

#atlas-app .at-levels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

#atlas-app .at-level {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    min-height: 100%;

    padding: 24px;

    border: 1px solid var(--at-line) !important;
    border-radius: 14px;

    background: #fff !important;
    color: var(--at-ink) !important;

    text-align: left;

    box-shadow: 0 3px 14px rgba(0,0,0,.025) !important;

    transition:
        transform .2s,
        border-color .2s,
        box-shadow .2s;
}

#atlas-app .at-level:hover,
#atlas-app .at-level:focus-visible {
    transform: translateY(-3px);

    border-color: #bcbcbc !important;

    box-shadow: 0 8px 24px rgba(0,0,0,.055) !important;
}

#atlas-app .at-level-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 15px;

    border-radius: 11px;

    font-size: 1.1rem;
}

#atlas-app .at-level-icon-fundacional {
    background: var(--at-red-soft);
    color: var(--at-red);
}

#atlas-app .at-level-icon-organizador {
    background: var(--at-orange-soft);
    color: var(--at-orange);
}

#atlas-app .at-level-icon-operativo {
    background: var(--at-green-soft);
    color: var(--at-green);
}

#atlas-app .at-level .at-kicker {
    display: block;

    margin: 0 0 9px;

    font-family: 'Source Sans Pro', sans-serif;
    font-size: .73rem;
    font-weight: 700 !important;
    line-height: 1.5;
    letter-spacing: .07em;
    text-transform: uppercase;
}

#atlas-app .at-level strong {
    display: block;

    margin: 0 0 12px;

    font-family: 'Playfair Display', serif;
    font-size: 1.17rem;
    font-weight: 600 !important;
    line-height: 1.35;

    color: #171717 !important;
}

#atlas-app .at-level p {
    flex-grow: 1;

    margin: 0 0 18px;

    font-family: 'Source Sans Pro', sans-serif;
    font-size: .94rem;
    font-weight: 400 !important;
    line-height: 1.65;

    color: #555 !important;
}

#atlas-app .at-level small {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding-top: 7px;

    font-family: 'Source Sans Pro', sans-serif;
    font-size: .84rem;
    font-weight: 700 !important;

    color: #222 !important;
}

#atlas-app .at-level small i {
    transition: transform .2s;
}

#atlas-app .at-level:hover small i {
    transform: translateX(4px);
}

/* Colores de los niveles */

#atlas-app .at-level[data-level="fundacional"] .at-kicker,
#atlas-app .at-tag.fundacional {
    color: var(--at-red) !important;
}

#atlas-app .at-level[data-level="organizador"] .at-kicker,
#atlas-app .at-tag.organizador {
    color: var(--at-orange) !important;
}

#atlas-app .at-level[data-level="operativo"] .at-kicker,
#atlas-app .at-tag.operativo {
    color: var(--at-green) !important;
}


/* ============================================================
   7. EXPLORADOR Y BUSCADOR
   ============================================================ */

#atlas-app .at-searchbox {
    padding: 22px;

    border: 1px solid var(--at-line);
    border-radius: 14px;

    background: #fafafa;
}

#atlas-app .at-searchrow {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

#atlas-app .at-search-input-wrap {
    position: relative;

    flex: 1 1 auto;
    min-width: 0;
}

#atlas-app .at-search-input-wrap > i {
    position: absolute;

    top: 50%;
    left: 17px;

    transform: translateY(-50%);

    font-size: .95rem;
    color: #888;

    pointer-events: none;
}

#atlas-app #at-query {
    display: block;

    flex: 1 1 auto;

    width: 100%;
    min-width: 0;
    height: 51px;

    padding: 12px 16px;

    border: 1px solid #d5d5d5 !important;
    border-radius: 9px;

    background: #fff !important;
    color: #222 !important;

    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: 400 !important;
    line-height: 1.4;
}

#atlas-app .at-search-input-wrap #at-query {
    padding-left: 45px;
}

#atlas-app #at-query::placeholder {
    color: #929292;
    opacity: 1;
}

#atlas-app .at-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    flex: 0 0 auto;

    min-height: 51px;
    padding: 10px 18px;

    border: 1px solid #d5d5d5 !important;
    border-radius: 9px;

    background: #fff !important;
    color: #333 !important;

    font-size: .9rem;
    font-weight: 600 !important;

    transition: background .2s, color .2s;
}

#atlas-app .at-clear:hover {
    background: #222 !important;
    border-color: #222 !important;
    color: #fff !important;
}

#atlas-app .at-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 15px;
}

#atlas-app .at-filter {
    padding: 7px 13px;

    border: 1px solid #ddd !important;
    border-radius: 999px;

    background: #fff !important;
    color: #333 !important;

    font-size: .84rem;
    font-weight: 600 !important;
    line-height: 1.4;

    transition:
        background .15s,
        color .15s,
        border-color .15s;
}

#atlas-app .at-filter:hover {
    border-color: #999 !important;
}

#atlas-app .at-filter[aria-pressed="true"] {
    background: #252525 !important;
    border-color: #252525 !important;
    color: #fff !important;
}

#atlas-app .at-count {
    margin: 18px 0 13px;

    font-size: .87rem;
    font-weight: 400 !important;

    color: #777 !important;
}


/* ============================================================
   8. TARJETAS DE RESULTADOS
   ============================================================ */

#atlas-app .at-results {
    display: block;
}

#atlas-app .at-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

#atlas-app .at-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    min-width: 0;

    padding: 19px 21px;

    border: 1px solid var(--at-line) !important;
    border-radius: 12px;

    background: #fff !important;
    color: #222 !important;

    text-align: left;

    box-shadow: 0 2px 12px rgba(0,0,0,.025) !important;

    transition:
        border-color .2s,
        box-shadow .2s,
        transform .2s;
}

#atlas-app .at-card:hover,
#atlas-app .at-card:focus-visible {
    transform: translateY(-2px);

    border-color: #bcbcbc !important;

    box-shadow: 0 7px 20px rgba(0,0,0,.05) !important;
}

#atlas-app .at-tag {
    display: inline-block;

    font-family: 'Source Sans Pro', sans-serif;
    font-size: .72rem;
    font-weight: 700 !important;
    line-height: 1.4;

    letter-spacing: .06em;
    text-transform: uppercase;
}

#atlas-app .at-card h3 {
    margin: 7px 0 8px;

    font-family: 'Playfair Display', serif !important;
    font-size: 1.22rem;
    font-weight: 500 !important;
    line-height: 1.35;

    color: #171717 !important;
}

#atlas-app .at-card .at-preview {
    margin: 0;

    font-family: 'Source Sans Pro', sans-serif;
    font-size: .89rem;
    font-weight: 400 !important;
    line-height: 1.55;

    color: #666 !important;
}

#atlas-app .at-open {
    display: inline-block;

    margin-top: 13px;

    font-family: 'Source Sans Pro', sans-serif;
    font-size: .83rem;
    font-weight: 700 !important;

    color: #222 !important;
}

#atlas-app .at-card:hover .at-open {
    text-decoration: underline;
    text-underline-offset: 3px;
}

#atlas-app .at-empty {
    margin-top: 12px;
    padding: 22px;

    border: 1px dashed #ddd;
    border-radius: 12px;

    font-size: .95rem;
    color: var(--at-muted);
}


/* ============================================================
   9. RESULTADO DESTACADO DE BÚSQUEDA
   ============================================================ */

#atlas-app .at-search-focus {
    margin: 0 0 22px;

    padding: 23px 26px;

    border: 1px solid #e5dce0;
    border-radius: 13px;

    background: #fbf9fa;
}

#atlas-app .at-search-focus.risk {
    border-left: 4px solid var(--at-red);
}

#atlas-app .at-search-focus.own {
    border-left: 4px solid var(--at-green);
}

#atlas-app .at-search-focus.nuclear {
    border-left: 4px solid #555;
}

#atlas-app .at-focus-kicker {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: .75rem;
    font-weight: 700 !important;
    line-height: 1.5;

    letter-spacing: .07em;
    text-transform: uppercase;

    color: #666;
}

#atlas-app .at-search-focus h3 {
    margin: 8px 0 12px;

    font-size: clamp(1.45rem, 2.7vw, 1.9rem);
    font-weight: 600 !important;
}

#atlas-app .at-search-focus h4 {
    margin: 23px 0 9px;

    font-size: 1.04rem;
    font-weight: 600 !important;
}

#atlas-app .at-search-focus p {
    margin: 8px 0 12px;

    font-size: .96rem;
    font-weight: 400 !important;
    line-height: 1.7;
}

#atlas-app .at-focus-frame {
    margin: 10px 0;
    padding: 15px 18px;

    border: 1px solid var(--at-line);
    border-radius: 10px;

    background: #fff;
}

#atlas-app .at-focus-frame p {
    margin: 6px 0 0;
    white-space: pre-line;
}

#atlas-app .at-focus-frame .at-focus-small {
    margin-top: 10px;

    font-size: .84rem;
    color: var(--at-muted);
}

#atlas-app .at-focus-assoc {
    margin: 8px 0;
    padding: 11px 14px;

    border: 1px solid #efefef;
    border-radius: 9px;

    background: #fff;

    font-size: .91rem;
    font-weight: 400 !important;
}

#atlas-app .at-focus-assoc strong {
    font-weight: 700 !important;
}

#atlas-app .at-focus-small {
    font-size: .87rem;
    color: var(--at-muted);
}

#atlas-app .at-focus-open {
    margin-left: 10px;
    padding: 3px 0;

    border: 0 !important;

    background: transparent !important;
    color: #222 !important;

    font-size: .88rem;
    font-weight: 700 !important;

    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ============================================================
   10. DETALLE INTERACTIVO DEL EXPLORADOR
   ============================================================ */

#atlas-app .at-detail {
    padding: clamp(22px, 4vw, 40px);

    border: 1px solid var(--at-line);
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 3px 15px rgba(0,0,0,.03);
}

#atlas-app .at-back {
    margin-bottom: 22px;
    padding: 0;

    border: 0 !important;

    background: transparent !important;
    color: #333 !important;

    font-size: .93rem;
    font-weight: 700 !important;
}

#atlas-app .at-back:hover {
    text-decoration: underline;
}

#atlas-app .at-detail h2 {
    margin: 7px 0 20px;

    font-size: clamp(2rem, 4vw, 2.8rem);
}

#atlas-app .at-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

#atlas-app .at-panel {
    min-width: 0;
    padding: 21px;

    border: 1px solid var(--at-line) !important;
    border-radius: 12px;

    background: var(--at-soft) !important;
}

#atlas-app .at-panel h3 {
    margin: 0 0 13px;

    font-size: 1.08rem;
    font-weight: 600 !important;
}

#atlas-app .at-panel p {
    margin: 0;
}

#atlas-app .at-pillbox {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#atlas-app .at-pill {
    padding: 6px 11px;

    border: 1px solid #ddd !important;
    border-radius: 999px;

    background: #fff !important;
    color: #333 !important;

    font-size: .85rem;
    font-weight: 400 !important;
}

#atlas-app .at-pill:hover {
    border-color: #888 !important;
    background: #f0f0f0 !important;
}

#atlas-app .at-frame {
    margin-top: 18px;
    padding: 20px 23px;

    border-left: 4px solid #666;
    border-radius: 0 10px 10px 0;

    background: var(--at-soft);
}

#atlas-app .at-frame h3 {
    margin: 0 0 8px;

    font-size: 1.08rem;
    font-weight: 600 !important;
}

#atlas-app .at-frame p {
    margin: 0;
    white-space: pre-line;
}

#atlas-app .at-related {
    margin-top: 25px;
}

#atlas-app .at-related h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

#atlas-app .at-note {
    margin-top: 24px;

    font-size: .87rem;
    font-weight: 400 !important;
    line-height: 1.7;

    color: #777 !important;
}

#atlas-app .at-explore-section > .at-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

#atlas-app .at-explore-section > .at-note i {
    flex: 0 0 auto;
    margin-top: 5px;
}

#atlas-app .at-seo-ficha-link {
    color: #222 !important;

    font-size: .9rem;
    font-weight: 600 !important;

    text-decoration: underline !important;
    text-underline-offset: 3px;
}


/* ============================================================
   11. ÍNDICE DE CONCEPTOS
   ============================================================ */

#atlas-app .at-seo-index {
    margin-top: 48px;
    padding-top: 29px;

    border-top: 1px solid var(--at-line);
}

#atlas-app .at-seo-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 24px;

    margin: 20px 0 0;
    padding: 0;

    list-style: none;
}

#atlas-app .at-seo-links li {
    margin: 0;
    padding: 0;

    list-style: none;
}

#atlas-app .at-seo-links a {
    display: inline-block;

    font-size: .9rem;
    font-weight: 600 !important;
    line-height: 1.5;

    color: #444 !important;
    text-decoration: none !important;

    transition: color .15s;
}

#atlas-app .at-seo-links a::before {
    content: "›";
    margin-right: 8px;

    color: #999;
}

#atlas-app .at-seo-links a:hover {
    color: #000 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}


/* ============================================================
   12. PÁGINAS EXPLICATIVAS
   ============================================================ */

#atlas-app .at-guide {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 4px;

    color: var(--at-ink);
    line-height: 1.8;
}

#atlas-app .at-guide h2 {
    margin: 35px 0 13px;
}

#atlas-app .at-guide h3 {
    margin: 24px 0 8px;
}

#atlas-app .at-guide p,
#atlas-app .at-guide li {
    font-weight: 400 !important;
    line-height: 1.8;
}

#atlas-app .at-guide a {
    color: #222 !important;
}

#atlas-app .at-example {
    padding: 16px 22px;

    border-left: 4px solid var(--at-green);
    border-radius: 0 10px 10px 0;

    background: var(--at-soft);
}

#atlas-app .at-guide-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin: 24px 0 0;
}

#atlas-app .at-guide-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 15px;

    border: 1px solid var(--at-line);
    border-radius: 999px;

    font-size: .9rem;
    font-weight: 600 !important;

    text-decoration: none !important;
}

#atlas-app .at-guide-nav a:hover {
    border-color: #999;
    background: #fafafa;
}


/* ============================================================
   13. FICHAS INDIVIDUALES
   ============================================================ */

#atlas-app .at-concept-page {
    margin-top: 8px;
}

#atlas-app .at-concept-page .at-seo-concept {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 4px;
}

/* Cabecera de la ficha */

#atlas-app .at-concept-header {
    position: relative;
    overflow: hidden;

    padding: 26px 32px;

    border: 1px solid var(--at-line);
    border-radius: 14px;

    background: linear-gradient(
        145deg,
        #fff 50%,
        #f8f8f8
    );
}

#atlas-app .at-concept-header::before {
    content: "";

    position: absolute;
    inset: 0 auto 0 0;

    width: 5px;
    background: #777;
}

#atlas-app .at-concept-header[data-level="fundacional"]::before {
    background: var(--at-red);
}

#atlas-app .at-concept-header[data-level="organizador"]::before {
    background: var(--at-orange);
}

#atlas-app .at-concept-header[data-level="operativo"]::before {
    background: var(--at-green);
}

#atlas-app .at-concept-header .at-eyebrow {
    margin: 0 0 9px;

    font-size: .7rem;
    font-weight: 700 !important;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;

    color: #666 !important;
}

#atlas-app .at-concept-header .at-eyebrow i {
    margin-right: 7px;
}

#atlas-app .at-concept-level {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 4px 10px;

    border: 1px solid #ddd;
    border-radius: 999px;

    background: #fff;
    color: #555;

    font-size: .72rem;
    font-weight: 700 !important;

    text-transform: uppercase;
    letter-spacing: .06em;
}

#atlas-app .at-concept-level[data-level="fundacional"] {
    color: var(--at-red);
    border-color: #e8cbd3;
}

#atlas-app .at-concept-level[data-level="organizador"] {
    color: var(--at-orange);
    border-color: #e8d5c2;
}

#atlas-app .at-concept-level[data-level="operativo"] {
    color: var(--at-green);
    border-color: #cce2da;
}

#atlas-app .at-concept-header h1 {
    margin: 12px 0 !important;

    font-size: clamp(2rem, 3.2vw, 3rem) !important;
    line-height: 1.15;

    color: #111 !important;
    overflow-wrap: anywhere;
}

#atlas-app .at-concept-lead {
    max-width: 780px;
    margin: 0;

    font-size: .96rem;
    font-weight: 400 !important;
    line-height: 1.65;

    color: #444 !important;
}


/* ============================================================
   14. PANELES DE LAS FICHAS
   ============================================================ */

#atlas-app .at-concept-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-top: 16px;
}

#atlas-app .at-concept-panel {
    min-width: 0;
    padding: 20px;

    border: 1px solid var(--at-line);
    border-radius: 15px;

    background: #fff;
}

#atlas-app .at-concept-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin-bottom: 13px;
}

#atlas-app .at-concept-icon {
    display: flex;
    flex: 0 0 34px;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 9px;

    background: #f1f1f1;
    color: #333;

    font-size: .9rem;
}

#atlas-app .at-concept-democratic .at-concept-icon {
    background: #f0f5f2;
    color: #386b58;
}

#atlas-app .at-concept-risk .at-concept-icon {
    background: #f7f4f2;
    color: #66564e;
}

#atlas-app .at-concept-panel h2,
#atlas-app .at-concept-frame h2 {
    margin: 3px 0 0;

    font-size: 1.2rem !important;
    font-weight: 600 !important;
    line-height: 1.3;

    color: #111 !important;
}

#atlas-app .at-concept-hint {
    margin: 0 0 17px;

    font-size: .93rem;
    font-weight: 400 !important;
    line-height: 1.65;

    color: #555 !important;
}


/* ============================================================
   15. ETIQUETAS CLICABLES
   ============================================================ */

#atlas-app .at-seo-concept .at-concept-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin: 0;
    padding: 0;

    list-style: none;
}

#atlas-app .at-seo-concept .at-concept-chips li {
    margin: 0;
    padding: 0;

    border: 1px solid #ddd;
    border-radius: 999px;

    background: #fafafa;

    font-size: .86rem;
    line-height: 1.35;

    list-style: none;
}

#atlas-app .at-concept-chips .at-concept-term-link {
    display: block;

    padding: 6px 11px;

    border-radius: 999px;

    color: #222 !important;

    font-size: .86rem;
    font-weight: 600 !important;

    text-decoration: none !important;

    transition: background .15s;
}

#atlas-app .at-concept-chips li:hover {
    background: #ededed;
    border-color: #999;
}

#atlas-app .at-concept-chips .at-concept-term-link:focus-visible {
    outline: 2px solid #555;
    outline-offset: 3px;
}


/* ============================================================
   16. MARCO DISCURSIVO
   ============================================================ */

#atlas-app .at-concept-frame {
    margin-top: 16px;
    padding: 20px 24px;

    border: 1px solid var(--at-line);
    border-left: 4px solid #555;

    border-radius: 0 15px 15px 0;

    background: #fafafa;
}

#atlas-app .at-concept-frame .at-concept-panel-heading {
    margin-bottom: 12px;
}

#atlas-app .at-concept-frame p {
    margin: 0;

    font-size: .96rem;
    font-weight: 400 !important;
    line-height: 1.7;

    color: #222 !important;

    white-space: pre-line;
}


/* ============================================================
   17. NAVEGACIÓN DE LAS FICHAS
   ============================================================ */

#atlas-app .at-concept-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 26px;
}

#atlas-app .at-concept-nav a {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 10px 16px;

    border: 1px solid #ddd;
    border-radius: 999px;

    background: #fff;
    color: #222 !important;

    font-size: .9rem;
    font-weight: 600 !important;
    line-height: 1.4;

    text-decoration: none !important;
}

#atlas-app .at-concept-nav a:hover,
#atlas-app .at-concept-nav a:focus-visible {
    border-color: #777;
    background: #f7f7f7;
}


/* ============================================================
   18. TABLETS
   ============================================================ */

@media (max-width: 900px) {

    #atlas-app .at-levels {
        gap: 12px;
    }

    #atlas-app .at-level {
        padding: 19px;
    }

    #atlas-app .at-level strong {
        font-size: 1.08rem;
    }

    #atlas-app .at-level p {
        font-size: .9rem;
    }

}


/* ============================================================
   19. MÓVILES
   ============================================================ */

@media (max-width: 760px) {

    #atlas-app {
        padding: 16px 14px 50px;
    }

    #atlas-app .at-section {
        margin-top: 35px;
    }

    #atlas-app .at-hero {
        padding: 26px 23px !important;
        border-radius: 13px;
    }

    #atlas-app .at-hero h1 {
        font-size: clamp(2rem, 7vw, 2.6rem) !important;
    }

    #atlas-app .at-hero .at-eyebrow {
        font-size: .65rem;
    }

    #atlas-app .at-hero .at-hero-links {
        gap: 9px;
        margin-top: 19px;
    }

    #atlas-app .at-hero .at-hero-links a {
        padding: 8px 11px;
        font-size: .8rem;
    }

    #atlas-app .at-editorial-intro {
        margin-top: 25px;
    }

    #atlas-app .at-editorial-content {
        padding-left: 17px;
    }

    #atlas-app .at-editorial-content p {
        font-size: .97rem;
        line-height: 1.75;
    }

    #atlas-app .at-section-heading {
        gap: 10px;
    }

    #atlas-app .at-section-heading h2 {
        font-size: 1.5rem;
    }

    #atlas-app .at-section-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    #atlas-app .at-levels,
    #atlas-app .at-result-grid,
    #atlas-app .at-detail-grid,
    #atlas-app .at-concept-grid {
        grid-template-columns: 1fr;
    }

    #atlas-app .at-level {
        padding: 22px;
    }

    #atlas-app .at-level p {
        font-size: .94rem;
    }

    #atlas-app .at-searchbox {
        padding: 17px;
    }

    #atlas-app .at-searchrow {
        flex-direction: column;
        align-items: stretch;
    }

    #atlas-app .at-search-input-wrap {
        width: 100%;
    }

    #atlas-app #at-query {
        width: 100%;
    }

    #atlas-app .at-clear {
        width: 100%;
    }

    #atlas-app .at-card {
        padding: 19px;
    }

    #atlas-app .at-search-focus {
        padding: 20px;
    }

    #atlas-app .at-seo-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px 17px;
    }

    #atlas-app .at-concept-header {
        padding: 22px;
    }

    #atlas-app .at-concept-header h1 {
        font-size: clamp(1.9rem, 7vw, 2.5rem) !important;
    }

    #atlas-app .at-concept-panel {
        padding: 18px;
        border-radius: 13px;
    }

    #atlas-app .at-concept-frame {
        padding: 18px;
    }

}


/* ============================================================
   20. MÓVILES PEQUEÑOS
   ============================================================ */

@media (max-width: 480px) {

    #atlas-app .at-hero {
        padding: 23px 19px !important;
    }

    #atlas-app .at-hero h1 {
        font-size: 2rem !important;
    }

    #atlas-app .at-hero .at-hero-links {
        flex-direction: column;
        align-items: stretch;
    }

    #atlas-app .at-hero .at-hero-links a {
        justify-content: center;
    }

    #atlas-app .at-seo-links {
        grid-template-columns: 1fr;
    }

    #atlas-app .at-filters {
        gap: 7px;
    }

    #atlas-app .at-filter {
        padding: 7px 11px;
        font-size: .81rem;
    }

    #atlas-app .at-concept-nav {
        flex-direction: column;
    }

    #atlas-app .at-concept-nav a {
        justify-content: center;
    }

}
/* ==========================================
   ATLAS — ECOSISTEMA DE REDES
   Diseño compacto y editorial
   ========================================== */

/* Contenedor general */

.atlas-ecosistema {
    background: #fafaf9;
    color: #222;
    min-height: 100vh;
    padding: 28px 24px 65px;
}

.atlas-ecosistema__container {
    max-width: 900px;
    margin: 0 auto;
}

/* Navegación */

.atlas-ecosistema__nav {
    margin-bottom: 28px;
}

.atlas-ecosistema__nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.atlas-ecosistema__nav a:hover {
    color: #111;
}

.atlas-ecosistema__nav i {
    font-size: 0.8rem;
}

/* Cabecera */

.atlas-ecosistema__header {
    max-width: 800px;
    margin-bottom: 28px;
}

.atlas-ecosistema__eyebrow {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 12px;
}

.atlas-ecosistema__header h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #171717;
    margin: 0 0 14px;
}

.atlas-ecosistema__lead {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    max-width: 720px;
    margin: 0;
}

/* Introducción */

.atlas-ecosistema__intro {
    max-width: 800px;
    border-left: 3px solid #d6d6d6;
    padding-left: 20px;
    margin-bottom: 45px;
}

.atlas-ecosistema__intro p {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: #383838;
    margin: 0 0 14px;
}

.atlas-ecosistema__intro p:last-child {
    margin-bottom: 0;
}

/* Encabezado de la sección de redes */

.atlas-ecosistema__section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.atlas-ecosistema__section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ededeb;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atlas-ecosistema__section-icon i {
    font-size: 0.95rem;
}

.atlas-ecosistema__section-heading h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #171717;
    margin: 0 0 5px;
}

.atlas-ecosistema__section-heading p {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #777;
    margin: 0;
}

/* Cuadrícula de organizaciones */

.atlas-ecosistema__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* Tarjetas */

.atlas-ecosistema__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    background: #fff;
    border: 1px solid #e7e7e5;
    border-radius: 12px;
    text-decoration: none !important;
    color: #222;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.atlas-ecosistema__card:hover {
    transform: translateY(-3px);
    border-color: #c9c9c5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.055);
}

/* Contenedor de logotipos */

.atlas-ecosistema__logo {
    width: 100%;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.atlas-ecosistema__logo img {
    display: block;
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Nombres */

.atlas-ecosistema__card h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
    margin: 0 0 10px;
}

/* Enlaces y descripciones */

.atlas-ecosistema__visit {
    margin-top: auto;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.83rem;
    font-weight: 500;
    line-height: 1.5;
    color: #777;
}

.atlas-ecosistema__visit i {
    margin-left: 5px;
    font-size: 0.75rem;
}

/* Cierre */

.atlas-ecosistema__footer {
    max-width: 800px;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.atlas-ecosistema__footer p {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.65;
    color: #555;
    margin: 0 0 20px;
}

.atlas-ecosistema__footer a {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.atlas-ecosistema__footer a:hover {
    color: #111;
}

/* ==========================================
   RESPONSIVE — TABLET
   ========================================== */

@media (max-width: 900px) {

    .atlas-ecosistema {
        padding: 25px 22px 55px;
    }

    .atlas-ecosistema__container {
        max-width: 100%;
    }

    .atlas-ecosistema__header h1 {
        font-size: 2.3rem;
    }
}

/* ==========================================
   RESPONSIVE — MÓVIL
   ========================================== */

@media (max-width: 700px) {

    .atlas-ecosistema {
        padding: 22px 18px 50px;
    }

    .atlas-ecosistema__nav {
        margin-bottom: 25px;
    }

    .atlas-ecosistema__header {
        margin-bottom: 25px;
    }

    .atlas-ecosistema__header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .atlas-ecosistema__lead {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .atlas-ecosistema__intro {
        padding-left: 18px;
        margin-bottom: 35px;
    }

    .atlas-ecosistema__intro p {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .atlas-ecosistema__section-heading {
        gap: 12px;
        margin-bottom: 20px;
    }

    .atlas-ecosistema__section-heading h2 {
        font-size: 1.4rem;
    }

    .atlas-ecosistema__section-heading p {
        font-size: 0.85rem;
    }

    .atlas-ecosistema__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .atlas-ecosistema__card {
        padding: 24px 20px;
    }

    .atlas-ecosistema__logo {
        height: 100px;
        margin-bottom: 12px;
    }

    .atlas-ecosistema__logo img {
        max-height: 95px;
    }

    .atlas-ecosistema__card h3 {
        font-size: 1.05rem;
    }

    .atlas-ecosistema__footer {
        margin-top: 40px;
    }

    .atlas-ecosistema__footer p {
        font-size: 1rem;
    }
}

/* Accesibilidad: reducir animaciones */

@media (prefers-reduced-motion: reduce) {

    .atlas-ecosistema__card {
        transition: none;
    }

    .atlas-ecosistema__card:hover {
        transform: none;
    }
}