/* ============================================================================
 *  TUTORIALES PROPIOS · 21 placeholders y tarjetas de vídeo (07/11/2026)
 * ========================================================================== */

.page-tutoriales {
    background: #f4f8fc;
}

.tut-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(6, 182, 212, .22), transparent 34%),
        radial-gradient(circle at 82% 80%, rgba(6, 182, 212, .16), transparent 30%),
        linear-gradient(135deg, #0A2647 0%, #123d68 58%, #0b4f6c 100%);
    color: #fff;
    padding: 3.2rem 20px 2.8rem;
    border-bottom: 5px solid var(--cyan, #06b6d4);
}

.tut-hero__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.tut-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .9rem;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7ff3ff;
}

.tut-hero h1 {
    margin: 0 0 .9rem;
    font-size: clamp(2rem, 4.3vw, 3.2rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.02em;
}

.tut-hero__lead {
    max-width: 820px;
    margin: 0 0 1.5rem;
    font-size: clamp(.98rem, 1.5vw, 1.12rem);
    line-height: 1.65;
    color: #d7e3f1;
}

.tut-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.4rem;
    margin: 0 0 1.2rem;
}

.tut-stat {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.tut-stat strong {
    font-size: 2rem;
    line-height: 1;
    color: #7ff3ff;
}

.tut-stat span {
    font-size: .78rem;
    color: #cbd9e8;
    font-weight: 600;
}

.tut-hero__nota {
    margin: 0;
    font-size: .86rem;
    line-height: 1.5;
    color: #b9cadb;
}

.tut-hero__nota strong { color: #fff; }
.tut-hero__nota a { color: #7ff3ff; font-weight: 700; }

.tut-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 20px 3.5rem;
    box-sizing: border-box;
}

.tut-section {
    margin: 0 0 2.8rem;
}

.tut-section--proyecto {
    margin-bottom: 3.2rem;
}

.tut-section__head {
    margin: 0 0 1.1rem;
}

.tut-kicker {
    margin: 0 0 .35rem;
    color: var(--cyan, #06b6d4);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.tut-section__head h2 {
    margin: 0 0 .45rem;
    color: var(--navy, #0A2647);
    font-size: clamp(1.3rem, 2.3vw, 1.8rem);
    line-height: 1.2;
}

.tut-section__head > p:not(.tut-kicker) {
    max-width: 820px;
    margin: 0;
    color: #475569;
    line-height: 1.55;
    font-size: .94rem;
}

.tut-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .85rem;
}

.tut-chip {
    display: inline-flex;
    align-items: center;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #075985;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}

.tut-chip:hover {
    background: var(--navy, #0A2647);
    border-color: var(--navy, #0A2647);
    color: #fff;
}

.tut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
}

.tut-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
}

.tut-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe6f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(10, 38, 71, .07);
}

.tut-card--proyecto {
    border-color: #bae6fd;
}

/* El atributo hidden debe ganar a los display:flex/grid de las tarjetas y
   secciones: si no, los filtros dejan tarjetas a la vista y descuadran el
   contador. Vale para el buscador, las etiquetas y los acordeones. */
.tut-card[hidden],
.tut-section[hidden],
.tut-cat-acc__tags[hidden],
.tut-sidebar[hidden],
.tut-sin-resultados[hidden] {
    display: none !important;
}

.tut-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(6, 182, 212, .28), transparent 38%),
        radial-gradient(circle at 82% 80%, rgba(6, 182, 212, .18), transparent 36%),
        linear-gradient(135deg, #0A2647 0%, #123d68 60%, #0b4f6c 100%);
}

.tut-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Idiomas ES/PT en tarjetas. El conmutador del portal pone html[data-lang].
   Selectores con la misma especificidad que «.tut-poster img» para que el
   póster oculto no se pinte por encima. */
.tut-poster img.tut-poster__img--pt { display: none; }
html[data-lang="pt"] .tut-poster img.tut-poster__img--es { display: none; }
html[data-lang="pt"] .tut-poster img.tut-poster__img--pt { display: block; }

.ath-i18n-pt { display: none; }
html[data-lang="pt"] .ath-i18n-es { display: none; }
html[data-lang="pt"] .ath-i18n-pt { display: inline; }

.tut-aviso-pt { display: none; }
html[data-lang="pt"] .tut-aviso-pt { display: block; }

.tut-poster__vacio {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    color: #d7e3f1;
    text-align: center;
    padding: 1rem;
}

.tut-poster__vacio i {
    font-size: 2.4rem;
    color: #7ff3ff;
    opacity: .9;
}

.tut-poster__vacio span {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #b9cadb;
}

.tut-origen,
.tut-tipo {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: .3rem .6rem;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tut-origen {
    top: 12px;
    left: 12px;
    background: #06b6d4;
    color: #04283f;
}

.tut-tipo {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    background: rgba(4, 16, 29, .78);
    color: #e2e8f0;
    white-space: normal;
}

.tut-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: 3px solid rgba(255, 255, 255, .94);
    border-radius: 50%;
    background: #ff0033;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
    transition: transform .18s ease, background .18s ease;
}

.tut-play:hover {
    background: #d9002b;
    transform: translate(-50%, -50%) scale(1.06);
}
.tut-play i { margin-left: 3px; }

.tut-play--pronto {
    top: auto;
    left: auto;
    right: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    transform: none;
    background: rgba(255, 255, 255, .14);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: none;
    cursor: default;
    font-size: .78rem;
}

.tut-play--pronto:hover {
    background: rgba(255, 255, 255, .14);
    transform: none;
}

.tut-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: .55rem;
    padding: 1.05rem 1.1rem 1.1rem;
}

.tut-body h3 {
    margin: 0;
    color: var(--navy, #0A2647);
    font-size: 1.06rem;
    line-height: 1.3;
}

.tut-body p {
    margin: 0;
    color: #475569;
    font-size: .88rem;
    line-height: 1.5;
}

.tut-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
    margin-top: .1rem;
}

.tut-app,
.tut-duracion {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .3rem .6rem;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
}

.tut-app {
    background: #eef6fd;
    border: 1px solid #dbeafe;
    color: #075985;
    text-decoration: none;
}

.tut-app:hover {
    background: #e0f2fe;
}

.tut-duracion {
    background: #f1f5f9;
    color: #475569;
}

.tut-pie {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    margin-top: auto;
    padding-top: .85rem;
    border-top: 1px solid #eef2f7;
}

.tut-estado {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #64748b;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.35;
}

/* Tarjetas con vídeo propio: acciones y enlace a la ficha. */
.tut-acciones {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
}

.tut-ficha-enlace {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #075985;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    padding: .2rem .1rem;
}

.tut-ficha-enlace:hover { color: #0A2647; text-decoration: underline; }

/* Distintivo de las tarjetas que aún no tienen vídeo (sin enlaces muertos). */
.tut-pronto {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    padding: .3rem .6rem;
    border-radius: 999px;
    background: rgba(4, 16, 29, .82);
    border: 1px solid rgba(127, 243, 255, .5);
    color: #d7f3ff;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tut-card--pre { border-color: #cbd5e1; }

.tut-note {
    margin-top: 2.2rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px dashed #bae6fd;
    background: #f0f9ff;
    color: #334155;
    font-size: .86rem;
    line-height: 1.55;
}

.tut-note p { margin: 0 0 .6rem; }
.tut-note p:last-child { margin-bottom: 0; }
.tut-note i { color: #0284c7; }

/* --- MODAL DE VÍDEO CON EL REPRODUCTOR PROPIO (sin YouTube ni iframes) --- */
.tut-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.tut-modal[hidden] { display: none !important; }

.tut-modal__fondo {
    position: absolute;
    inset: 0;
    background: rgba(3, 12, 26, .86);
}

.tut-modal__caja {
    position: relative;
    z-index: 2;
    width: min(960px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 52px 14px 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
    box-sizing: border-box;
}

.tut-modal__cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #0A2647;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.tut-modal__cerrar:hover { background: #06b6d4; color: #04283f; }

.tut-modal__marco {
    position: relative;
    min-height: 180px;
    border-radius: 12px;
    background: #04101d;
    overflow: hidden;
}

.tut-modal__marco .ath-player { border-radius: 12px; box-shadow: none; }

.tut-modal__pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .8rem .2rem .1rem;
}

.tut-modal__pie h2 {
    margin: 0;
    color: #0A2647;
    font-size: 1rem;
    line-height: 1.35;
}

.tut-modal__ficha {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .7rem;
    border-radius: 9px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #075985;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.tut-modal__ficha:hover { background: #e0f2fe; color: #0A2647; }
.tut-modal__ficha[hidden] { display: none !important; }

.tut-modal__error {
    margin: 0;
    padding: 2rem 1.2rem;
    color: #cbd9e8;
    font-size: .9rem;
    text-align: center;
}

.tut-modal__error a { color: #7ff3ff; font-weight: 700; }

body.tut-modal-abierto { overflow: hidden; }

@media (max-width: 900px) {
    .tut-hero { padding: 2.2rem 16px 2rem; }
    .tut-hero__lead { font-size: .98rem; }
    .tut-stats { gap: 1rem 1.6rem; }
    .tut-stat strong { font-size: 1.65rem; }
    .tut-main { padding: 1.5rem 12px 2.6rem; }
    .tut-grid { grid-template-columns: 1fr; }
    .tut-section { margin-bottom: 2.2rem; }
    .tut-grid--single { max-width: none; }
}

@media (max-width: 560px) {
    .tut-hero h1 { font-size: 1.8rem; }
    .tut-hero__lead { font-size: .92rem; }
    .tut-stat strong { font-size: 1.45rem; }
    .tut-stat span { font-size: .72rem; }
    .tut-body { padding: .95rem; }
    .tut-body h3 { font-size: 1rem; }
    .tut-modal { padding: 8px; }
    .tut-modal__caja { padding: 50px 10px 10px; }
    .tut-tipo { font-size: .6rem; }
    .tut-origen { font-size: .6rem; }
}


/* ============================================================================
 *  TUTORIALES · SIDEBAR DE CATEGORÍAS/ETIQUETAS Y BUSCADOR (07/11/2026)
 * ========================================================================== */
.tut-main--con-filtros {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    max-width: none;
    padding-left: 2rem;
    padding-right: 2rem;
}

.tut-contenido { min-width: 0; }

.tut-sidebar {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    padding: .9rem .95rem .75rem;
    box-shadow: 0 6px 22px rgba(10, 38, 71, .06);
}

.tut-sidebar::-webkit-scrollbar { width: 6px; }
.tut-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.tut-sidebar__cab {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding-bottom: .55rem;
    margin-bottom: .7rem;
    border-bottom: 1px solid #eef2f7;
}

.tut-sidebar__titulo {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex: 1 1 auto;
    margin: 0;
    color: #0A2647;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.tut-sidebar__titulo i { color: #06b6d4; }

.tut-sidebar__limpiar {
    border: 0;
    background: #f1f5f9;
    color: #475569;
    border-radius: 7px;
    padding: .25rem .5rem;
    font: 700 .7rem 'Inter', system-ui, sans-serif;
    cursor: pointer;
}
.tut-sidebar__limpiar:hover { background: #e2e8f0; color: #0A2647; }
.tut-sidebar__cerrar {
    display: none;
    border: 0;
    background: #f1f5f9;
    color: #475569;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    cursor: pointer;
}

.tut-sidebar .filter-group { margin-bottom: .8rem; }
.tut-sidebar .filter-group:last-child { margin-bottom: 0; }
.tut-sidebar .filter-group h4 {
    margin: 0 0 .4rem;
    font-size: .68rem;
    letter-spacing: .07em;
    gap: .35rem;
}
.tut-sidebar .filter-group h4 i { font-size: .7rem; }
.tut-sidebar .filter-option {
    gap: .45rem;
    margin-bottom: .25rem;
    padding: .12rem 0;
    font-size: .81rem;
    line-height: 1.3;
    align-items: flex-start;
}
.tut-sidebar .filter-option input { flex: 0 0 auto; margin-top: .12rem; }
.tut-filtro-nombre { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tut-filtro-cuenta {
    flex: 0 0 auto;
    min-width: 22px;
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 1px 6px;
}

.tut-buscador {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: 1.1rem;
    padding: .6rem;
    background: #fff;
    border: 1px solid #dbe6f3;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(10, 38, 71, .05);
}
.tut-buscador__campo {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex: 1 1 280px;
    min-width: 0;
    padding: .15rem .7rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.tut-buscador__campo i { color: #06b6d4; flex: 0 0 auto; }
.tut-buscador__campo input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: .55rem 0;
    color: #0A2647;
    font: 500 .9rem 'Inter', system-ui, sans-serif;
}
.tut-resultados {
    flex: 0 0 auto;
    color: #64748b;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.tut-filtros-toggle {
    display: none;
    align-items: center;
    gap: .4rem;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #075985;
    border-radius: 9px;
    padding: .52rem .7rem;
    font: 700 .78rem 'Inter', system-ui, sans-serif;
    cursor: pointer;
}

.tut-sin-resultados {
    margin-bottom: 1.4rem;
    padding: 2.1rem 1.2rem;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}
.tut-sin-resultados[hidden] { display: none; }
.tut-sin-resultados i { color: #94a3b8; font-size: 1.8rem; }
.tut-sin-resultados h3 { margin: .55rem 0 .25rem; color: #0A2647; font-size: 1.05rem; }
.tut-sin-resultados p { margin: 0 0 .9rem; color: #64748b; font-size: .88rem; }

@media (max-width: 1024px) {
    .tut-main--con-filtros {
        display: block;
        max-width: none;
    }
    .tut-sidebar {
        position: static;
        display: none;
        max-height: none;
        margin-bottom: 1rem;
    }
    .tut-sidebar.is-open { display: block; }
    .tut-sidebar__cerrar { display: inline-flex; align-items: center; justify-content: center; }
    .tut-filtros-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
    .tut-buscador { gap: .45rem; padding: .5rem; }
    .tut-buscador__campo { flex-basis: 100%; order: 2; }
    .tut-resultados { margin-left: auto; }
    .tut-filtros-toggle { order: 1; }
}


/* ============================================================================
 *  FICHA DEL TUTORIAL · /tutorial/<codigo>   (07/11/2026)
 * ========================================================================== */
.ath-ficha {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.4rem 20px 3.5rem;
    box-sizing: border-box;
}

.ath-migas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1.1rem;
    font-size: .8rem;
    color: #64748b;
}

.ath-migas a {
    color: #0A2647;
    font-weight: 600;
    text-decoration: none;
}

.ath-migas a:hover { color: #0284c7; text-decoration: underline; }
.ath-migas [aria-current] { color: #475569; overflow-wrap: anywhere; }

.ath-ficha__rejilla {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
}

.ath-ficha__principal { min-width: 0; }

.ath-ficha__kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .45rem;
    color: var(--cyan, #06b6d4);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.ath-ficha__titulo {
    margin: 0 0 .6rem;
    color: var(--navy, #0A2647);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: -.02em;
}

.ath-ficha__desc {
    max-width: 760px;
    margin: 0 0 1rem;
    color: #475569;
    font-size: .98rem;
    line-height: 1.6;
}

.ath-ficha__nota-idioma {
    margin: 0 0 1rem;
    padding: .55rem .75rem;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: .82rem;
    line-height: 1.5;
}

.ath-ficha__preview {
    margin: 0 0 1rem;
    padding: .55rem .8rem;
    border-radius: 10px;
    background: #eef6ff;
    border: 1px solid #bae6fd;
    color: #075985;
    font-size: .82rem;
}

.ath-ficha .ath-player { margin: .2rem 0 .6rem; }

.ath-ficha__atajos {
    margin: .35rem 0 1.5rem;
    color: #64748b;
    font-size: .76rem;
    line-height: 1.6;
}

.ath-ficha__atajos kbd {
    display: inline-block;
    padding: 0 .3rem;
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-radius: 4px;
    background: #f8fafc;
    color: #334155;
    font: 700 .72rem 'Inter', system-ui, sans-serif;
}

.ath-ficha__noscript {
    padding: 1rem;
    color: #e2e8f0;
    font-size: .86rem;
}

.ath-ficha__noscript a { color: #7ff3ff; }

/* Estado de preproducción: miniatura visible y sin enlaces muertos. */
.ath-ficha__preproduccion {
    margin: 0 0 1.5rem;
    padding: 1rem;
    border: 1px dashed #bae6fd;
    border-radius: 16px;
    background: #f0f9ff;
}

.ath-ficha__preproduccion-marco {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background:
        radial-gradient(circle at 18% 22%, rgba(6, 182, 212, .28), transparent 38%),
        linear-gradient(135deg, #0A2647 0%, #123d68 60%, #0b4f6c 100%);
}

.ath-ficha__preproduccion-marco img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ath-preproduccion {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: .32rem .65rem;
    border-radius: 999px;
    background: rgba(4, 16, 29, .82);
    border: 1px solid rgba(127, 243, 255, .5);
    color: #d7f3ff;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ath-ficha__preproduccion p {
    margin: .75rem .2rem 0;
    color: #334155;
    font-size: .86rem;
    line-height: 1.55;
}

/* PDF del guion. */
.ath-ficha__pdfs {
    margin: 1.6rem 0 0;
    padding: 1.1rem 1.2rem;
    background: #fff;
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(10, 38, 71, .06);
}

.ath-ficha__pdfs h2 {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .4rem;
    color: var(--navy, #0A2647);
    font-size: 1.12rem;
}

.ath-ficha__pdfs h2 i { color: #06b6d4; }

.ath-ficha__pdfs-texto {
    margin: 0 0 .85rem;
    color: #475569;
    font-size: .85rem;
    line-height: 1.55;
}

.ath-ficha__pdf-botones {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.ath-pdf {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .58rem .9rem;
    border: 1px solid var(--navy, #0A2647);
    border-radius: 10px;
    background: var(--navy, #0A2647);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.ath-pdf:hover { background: #123d68; }
.ath-pdf.is-desactivado {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.ath-ficha__pdfs-nota {
    margin: .75rem 0 0;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.5;
}

.ath-ficha__pdfs-nota i { color: #0284c7; }

/* Columna lateral. */
.ath-ficha__lateral {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.ath-ficha__tarjeta {
    padding: 1rem 1.05rem;
    background: #fff;
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(10, 38, 71, .06);
}

.ath-ficha__tarjeta h2 {
    margin: 0 0 .7rem;
    color: var(--navy, #0A2647);
    font-size: .95rem;
}

.ath-ficha__datos {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .45rem .7rem;
    margin: 0;
    font-size: .82rem;
}

.ath-ficha__datos dt {
    color: #64748b;
    font-weight: 700;
    white-space: nowrap;
}

.ath-ficha__datos dd {
    margin: 0;
    color: #1e293b;
    overflow-wrap: anywhere;
}

.ath-ficha__datos a { color: #075985; font-weight: 600; text-decoration: none; }
.ath-ficha__datos a:hover { text-decoration: underline; }
.ath-ficha__datos code { color: #334155; font-size: .78rem; overflow-wrap: anywhere; }

.ath-ficha__idiomas {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.ath-ficha__idiomas li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .78rem;
}

.ath-ficha__idioma-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: .12rem .35rem;
    border-radius: 6px;
    background: #e0f2fe;
    color: #075985;
    font-size: .68rem;
    font-weight: 800;
}

.ath-ficha__idiomas li.is-pendiente .ath-ficha__idioma-chip {
    background: #f1f5f9;
    color: #94a3b8;
}

.ath-ficha__idioma-estado {
    color: #15803d;
    font-size: .7rem;
    font-weight: 700;
}

.ath-ficha__idiomas li.is-pendiente .ath-ficha__idioma-estado { color: #b45309; }

.ath-ficha__enlaces {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ath-ficha__enlaces a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #075985;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
}

.ath-ficha__enlaces a:hover { color: #0A2647; text-decoration: underline; }
.ath-ficha__enlaces i { color: #06b6d4; }

.ath-ficha__nota {
    margin: 0;
    padding: .8rem .9rem;
    border: 1px dashed #bae6fd;
    border-radius: 12px;
    background: #f0f9ff;
    color: #334155;
    font-size: .78rem;
    line-height: 1.5;
}

.ath-ficha__nota i { color: #0284c7; }

@media (max-width: 980px) {
    .ath-ficha__rejilla { grid-template-columns: minmax(0, 1fr); }
    .ath-ficha__lateral { order: 2; }
}

@media (max-width: 560px) {
    .ath-ficha { padding: 1rem 12px 2.5rem; }
    .ath-ficha__titulo { font-size: 1.5rem; }
    .ath-ficha__desc { font-size: .92rem; }
    .ath-ficha__pdfs { padding: .9rem .95rem; }
    .ath-ficha__pdf-botones { flex-direction: column; align-items: stretch; }
    .ath-pdf { justify-content: center; }
    .tut-modal__cerrar { top: 8px; right: 8px; width: 36px; height: 36px; }
    .tut-play { width: 60px; height: 60px; top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); font-size: 1.15rem; }
    .tut-modal__pie h2 { font-size: .9rem; }
    .tut-modal__ficha { font-size: .76rem; }
    .tut-pronto { font-size: .58rem; top: 8px; right: 8px; }
}



/* Categorías con etiquetas anidadas en acordeón */
.tut-cat-acc {
    border-bottom: 1px solid #eef2f7;
    padding: .2rem 0 .25rem;
}
.tut-cat-acc:last-child { border-bottom: 0; }
.tut-cat-acc__cab {
    display: flex;
    align-items: flex-start;
    gap: .25rem;
}
.tut-cat-acc__check {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding: .2rem 0 !important;
    gap: .4rem !important;
}
.tut-cat-acc__toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    margin-top: .1rem;
    border: 0;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    font-size: .62rem;
}
.tut-cat-acc__toggle:hover { background: #e2e8f0; color: #0A2647; }
.tut-cat-acc__toggle i { transition: transform .15s ease; }
.tut-cat-acc.is-open .tut-cat-acc__toggle i { transform: rotate(180deg); }
.tut-cat-acc__tags {
    margin: .1rem 0 .4rem .55rem;
    padding: .1rem 0 .15rem .55rem;
    border-left: 2px solid #e2e8f0;
}
.tut-cat-acc__tags[hidden] { display: none; }
.tut-tag-option {
    margin-bottom: .2rem !important;
    padding: .08rem 0 !important;
    gap: .35rem !important;
    font-size: .75rem !important;
    color: #475569;
}
.tut-tag-option input { transform: scale(.86); }
.tut-cat-acc__vacio {
    display: block;
    color: #94a3b8;
    font-size: .72rem;
    font-style: italic;
    padding: .15rem 0;
}

@media (max-width: 1024px) {
    .tut-main--con-filtros {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.tut-sidebar__ayuda {
    margin: -.1rem 0 .5rem;
    color: #64748b;
    font-size: .72rem;
    line-height: 1.35;
}
