.mt-sc, .mt-sc-nav {
    font-family: var(--mt-sc-font, "Work Sans", sans-serif);
}

.mt-sc {
    --mt-sc-accent: #002db1;
    --mt-sc-ink: #171717;
    --mt-sc-muted: #555;
    --mt-sc-border: #e4e4ea;
    --mt-sc-radius: 14px;
    --mt-sc-gap: 16px;
    --mt-sc-card-width: calc((100% - var(--mt-sc-gap)) / 2.35);
    min-width: 0;
    max-width: 100%;
    margin-block: 0 36px;
    font-size: var(--mt-sc-body-size, 18px);
    line-height: 1.3;
}

.mt-sc, .mt-sc-anchor-target { scroll-margin-block-start: var(--mt-sc-scroll-offset, 100px); }
.mt-sc:last-child { margin-block-end: 0; }
.mt-sc__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.mt-sc .mt-sc__header h2 {
    margin: 0;
    color: var(--mt-sc-heading-color, #000);
    font-family: inherit;
    font-size: var(--mt-sc-heading-size, 26px);
    font-weight: 600;
    line-height: 1.19;
    letter-spacing: normal;
}
.mt-sc__controls { display: flex; flex: none; gap: 6px; }
.mt-sc__controls[hidden] { display: none; }

.mt-sc__controls button {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #121212;
    background: transparent;
    border: 1px solid #b9c4d1;
    border-radius: 8px;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.mt-sc__controls button::before {
    content: '';
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateX(-2px) rotate(-45deg);
}
.mt-sc__controls button[data-mt-prev]::before { transform: translateX(2px) rotate(135deg); }
.mt-sc__controls button:not([aria-disabled="true"]):is(:hover, :focus-visible, :active) {
    color: #fff;
    background: var(--mt-sc-accent);
    border-color: var(--mt-sc-accent);
}
.mt-sc__controls button[aria-disabled="true"] { opacity: .6; cursor: default; }
.mt-sc :focus-visible { outline: 2px solid var(--mt-sc-accent); outline-offset: 2px; }

.mt-sc .mt-sc__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--mt-sc-card-width);
    align-items: stretch;
    gap: var(--mt-sc-gap);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 5px;
    scrollbar-width: none;
    padding: 5px 5px 12px;
    margin: 0;
    list-style: none;
}

.mt-sc__track::-webkit-scrollbar, .mt-sc-nav ul::-webkit-scrollbar { display: none; }
.mt-sc__track[data-mt-draggable] { cursor: grab; }
.mt-sc .mt-sc__track.mt-sc__track--dragging {
    cursor: grabbing;
    user-select: none;
    scroll-snap-type: none;
}
.mt-sc__track--dragging * { cursor: grabbing; }

.mt-sc .mt-sc__card {
    min-width: 0;
    padding: 16px;
    margin: 0;
    scroll-snap-align: start;
    color: var(--mt-sc-ink);
    background: #fff;
    border: 1px solid var(--mt-sc-border);
    border-radius: var(--mt-sc-radius);
    overflow-wrap: anywhere;
}

.mt-sc__card :is(h3, p, figure, blockquote) { margin: 0; }
.mt-sc .mt-sc__card h3 { color: var(--mt-sc-ink); font: inherit; font-weight: 700; }
.mt-sc .mt-sc__card h3 a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.mt-sc .mt-sc__card h3 + p { margin-top: .5em; }
.mt-sc .mt-sc__card img { display: block; max-width: 100%; height: auto; }
.mt-sc--freshness .mt-sc__card, .mt-sc--libros .mt-sc__card, .mt-sc--noticias .mt-sc__card { box-shadow: 0 3px 9px rgba(0, 0, 0, .12); }

.mt-sc__meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.mt-sc__meta span, .mt-sc__source, .mt-sc__quote figcaption { font-size: .875em; color: var(--mt-sc-muted); }
.mt-sc__rating { color: var(--mt-sc-accent); font-size: 1.2em; }
.mt-sc .mt-sc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.mt-sc__tags li { padding: 2px 8px; color: var(--mt-sc-accent); background: #eaedfb; border-radius: 999px; font-size: .8em; }
.mt-sc .mt-sc__quote { margin: 10px 0 0; }
.mt-sc .mt-sc__quote blockquote { background: transparent; border: 0; padding: 0; color: inherit; font: inherit; }
.mt-sc__quote blockquote p::before { content: '“'; }
.mt-sc__quote blockquote p::after { content: '”'; }
.mt-sc__quote figcaption { margin-top: 4px; }
.mt-sc__summary:not(:empty) { margin-top: 12px; font-size: .9em; }
.mt-sc__quote + .mt-sc__summary:not(:empty) { padding-top: 12px; border-top: 1px dashed #a2a2aa; }

.mt-sc--videos { --mt-sc-card-width: 91%; }
.mt-sc--videos .mt-sc__header { justify-content: flex-end; }
.mt-sc--videos .mt-sc__header:not(:has(.mt-sc__controls:not([hidden]))) { margin: 0; }
.mt-sc--videos .mt-sc__card { padding: 0; overflow: hidden; }
.mt-sc__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.mt-sc__video { position: relative; aspect-ratio: 16 / 9; background: #151928; }
.mt-sc__preview { display: grid; position: absolute; inset: 0; place-items: center; }
.mt-sc .mt-sc__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mt-sc__preview:focus-visible { outline-offset: -4px; }
.mt-sc__play { position: relative; display: grid; place-items: center; padding-inline-start: .2em; width: 64px; height: 64px; border: 2px solid #fff; border-radius: 50%; background: #151928d9; color: #fff; font-size: 22px; }
.mt-sc__video :is(iframe, video) { display: block; width: 100%; height: 100%; border: 0; }
.mt-sc__video :is(iframe, video):focus-visible { outline-offset: -3px; }

.mt-sc--logos { --mt-sc-card-width: calc((100% - 4 * var(--mt-sc-gap)) / 5); }
.mt-sc--logos .mt-sc__card { display: grid; place-items: center; min-height: 104px; }
.mt-sc--logos .mt-sc__card img { width: auto; max-height: 65px; object-fit: contain; }

.mt-sc--libros { --mt-sc-card-width: calc((100% - 4 * var(--mt-sc-gap)) / 4.5); }
.mt-sc--noticias { --mt-sc-card-width: calc((100% - 2 * var(--mt-sc-gap)) / 3); }
.mt-sc--libros .mt-sc__track { align-items: start; }
.mt-sc--libros .mt-sc__card, .mt-sc--noticias .mt-sc__card { padding: 0; overflow: hidden; }
.mt-sc__card-body { padding: 16px; }
.mt-sc__cover, .mt-sc__news-image { position: relative; overflow: hidden; background: #f4f4f5; }
.mt-sc__book { position: relative; }
.mt-sc__book--with-cover .mt-sc__cover { aspect-ratio: 2 / 3; }
.mt-sc__book--overlay { padding-bottom: var(--mt-sc-book-caption-height); }
.mt-sc__news-image { aspect-ratio: 16 / 9; }
.mt-sc__cover > a, .mt-sc .mt-sc__cover img, .mt-sc .mt-sc__news-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mt-sc .mt-sc__cover img { object-fit: cover; }
.mt-sc--libros .mt-sc__card h3 a, .mt-sc--noticias .mt-sc__card h3 a { text-decoration: none; }
.mt-sc--libros .mt-sc__card a:hover, .mt-sc--noticias .mt-sc__card a:hover { color: var(--mt-sc-accent); }
.mt-sc--libros .mt-sc__card a:focus-visible, .mt-sc--noticias .mt-sc__card a:focus-visible { outline-offset: -2px; }
.mt-sc .mt-sc__source { margin-bottom: 4px; }
.mt-sc--noticias .mt-sc__card h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.3;
    max-height: 2.6em;
}
.mt-sc .mt-sc__book-panel {
    padding: 10px;
    background: rgba(255, 255, 255, .96);
    font-size: 13px;
    line-height: 1.35;
}
.mt-sc__book--overlay .mt-sc__book-panel {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    scrollbar-width: none;
}
.mt-sc__book--overlay .mt-sc__book-panel::-webkit-scrollbar { display: none; }
.mt-sc .mt-sc__book-toggle {
    display: block;
    width: 100%;
    min-height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-align: start;
    font: inherit;
    cursor: pointer;
}
.mt-sc__book-title, .mt-sc__book-brief { display: block; }
.mt-sc__book-title { font-size: 14px; font-weight: 600; }
.mt-sc .mt-sc__book-panel .mt-sc__book-brief { margin-top: 4px; font-weight: 500; color: grey; }
.mt-sc .mt-sc__book-panel h3 { font-size: 14px; font-weight: 600; }
.mt-sc__book-extra { display: grid; grid-template-rows: 1fr; font-size: 13px; line-height: 1.4; }
.mt-sc__book-extra > div { min-height: 0; }
.mt-sc__book-extra > div > :first-child { padding-top: 8px; }
.mt-sc__book-panel--interactive .mt-sc__book-extra {
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 300ms ease, visibility 300ms;
}
.mt-sc__book-panel--interactive .mt-sc__book-extra > div { overflow: hidden; }
.mt-sc__book-panel--open .mt-sc__book-extra { grid-template-rows: 1fr; visibility: visible; }
.mt-sc .mt-sc__book-extra p + p { margin-top: 8px; }

.mt-sc--single .mt-sc__track { overflow: visible; }
.mt-sc--videos.mt-sc--single { --mt-sc-card-width: 100%; }

.mt-sc--faqs {
    padding: clamp(16px, 3vw, 28px);
    border-radius: var(--mt-sc-radius);
    background: var(--mt-sc-faq-bg, #f4f3f1);
}

.mt-sc__faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    align-items: start;
    column-gap: 24px;
}

.mt-sc__faq {
    min-width: 0;
    border-bottom: 1px solid var(--mt-sc-border);
    color: var(--mt-sc-ink);
    overflow-wrap: anywhere;
}

.mt-sc__faq summary, .mt-sc__faq-answer {
    font-size: 16px;
    line-height: 1.3;
}

.mt-sc__faq summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-block: 12px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.mt-sc__faq summary::-webkit-details-marker { display: none; }
.mt-sc .mt-sc__faq summary h3 {
    min-width: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: normal;
}
.mt-sc__faq summary::after { content: '+' / ''; color: var(--mt-sc-accent); }
.mt-sc__faq[open] summary::after { content: '−' / ''; }
.mt-sc__faq-answer { padding-block-end: 12px; }
.mt-sc .mt-sc__faq-answer p { margin: 0; font: inherit; font-weight: 400; }

.mt-sc-nav { min-width: 0; max-width: 100%; }
.mt-sc-nav[hidden], .mt-sc-nav li[hidden] { display: none; }
.mt-sc-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mt-sc-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 82px;
    padding-inline: 14px;
    border: 1px solid #929292;
    border-radius: 999px;
    color: var(--mt-sc-nav-color, #333);
    font-size: 16px;
    line-height: 1.25;
    text-decoration: none;
}

.mt-sc-nav a:hover, .mt-sc-nav a:focus-visible {
    color: var(--mt-sc-accent, #002db1);
    border-color: currentColor;
}

@media (max-width: 900px) {
    .mt-sc--logos { --mt-sc-card-width: calc((100% - 2 * var(--mt-sc-gap)) / 3); }
    .mt-sc--libros { --mt-sc-card-width: calc((100% - 2 * var(--mt-sc-gap)) / 3); }
    .mt-sc--noticias { --mt-sc-card-width: calc((100% - var(--mt-sc-gap)) / 2.1); }
}

@media (max-width: 767px) {
    .mt-sc[data-mt-carousel] { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .mt-sc[data-mt-carousel] .mt-sc__header { display: contents; }
    .mt-sc[data-mt-carousel] .mt-sc__header h2 { grid-column: 1; grid-row: 1; margin-bottom: 20px; }
    .mt-sc[data-mt-carousel] .mt-sc__track { grid-column: 1; grid-row: 2; }
    .mt-sc[data-mt-carousel] .mt-sc__controls { grid-column: 1; grid-row: 3; justify-content: center; margin-top: 10px; }
    .mt-sc--videos[data-mt-carousel] .mt-sc__track { grid-row: 1; }
    .mt-sc--videos[data-mt-carousel] .mt-sc__controls { grid-row: 2; }

    .mt-sc-nav ul {
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-block: 2px;
    }
    .mt-sc-nav li { flex: 1 1 0; min-width: 0; margin: 0; }
    .mt-sc-nav a { display: flex; box-sizing: border-box; width: 100%; min-width: 0; min-height: 38px; padding-inline: 4px; font-size: 14px; white-space: nowrap; }
    .mt-sc-nav a:focus-visible { outline-offset: -2px; }
}

@media (max-width: 600px) {
    .mt-sc { --mt-sc-gap: 12px; }
    .mt-sc--freshness, .mt-sc--noticias { --mt-sc-card-width: 88%; }
    .mt-sc--libros { --mt-sc-card-width: calc((100% - var(--mt-sc-gap)) / 2); }
    .mt-sc--logos { --mt-sc-card-width: 44%; }
    .mt-sc--single:not(.mt-sc--logos):not(.mt-sc--libros) { --mt-sc-card-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .mt-sc__book-panel--interactive .mt-sc__book-extra { transition: none; }
}
