@font-face {font-family: 'Open Sans'; font-style: normal; font-display: swap; font-weight: 300; src: url('../fonts/open-sans-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face {font-family: 'Open Sans'; font-style: normal; font-display: swap; font-weight: 300; src: url('../fonts/open-sans-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face {font-family: 'Open Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url('../fonts/open-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face {font-family: 'Open Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url('../fonts/open-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face {font-family: 'Open Sans'; font-style: normal; font-display: swap; font-weight: 500; src: url('../fonts/open-sans-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face {font-family: 'Open Sans'; font-style: normal; font-display: swap; font-weight: 500; src: url('../fonts/open-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face {font-family: 'Open Sans'; font-style: normal; font-display: swap; font-weight: 600; src: url('../fonts/open-sans-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face {font-family: 'Open Sans'; font-style: normal; font-display: swap; font-weight: 600; src: url('../fonts/open-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face {font-family: 'Open Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url('../fonts/open-sans-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face {font-family: 'Open Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url('../fonts/open-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face {font-family: 'Open Sans'; font-style: italic; font-display: swap; font-weight: 400; src: url('../fonts/open-sans-latin-ext-400-italic.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face {font-family: 'Open Sans'; font-style: italic; font-display: swap; font-weight: 400; src: url('../fonts/open-sans-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face {font-family: 'Open Sans'; font-style: italic; font-display: swap; font-weight: 600; src: url('../fonts/open-sans-latin-ext-600-italic.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face {font-family: 'Open Sans'; font-style: italic; font-display: swap; font-weight: 600; src: url('../fonts/open-sans-latin-600-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* ==========================================================================
   Mediateka — estilos (misma apariencia que mediatk.morgancrea.net)
   ========================================================================== */
:root {
    --ink: #000;
    --paper: #fff;
    --grey: #333;
    --mute: #999;
    --line: #e2e2e2;
    --soft: #f4f4f4;
    --pad: 50px;
    --gap: 10px;
    --top: 132px;
    --font: "Open Sans", Arial, sans-serif;
    --track: 0.2em;
}
@media (max-width: 991px) { :root { --pad: 24px; } }
@media (max-width: 575px) { :root { --pad: 16px; --top: 124px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    padding-top: var(--top);
    font: 300 16px/1.5 var(--font);
    color: var(--ink);
    background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid #3814a8; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { padding: 0 var(--pad); }

/* ---------- cabecera ---------- */
.top {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.top-bar {
    height: 70px; padding: 0 var(--pad) 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo img { width: 200px; height: 25px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.logo { flex: none; }
.nav-ic { display: none; width: 24px; height: 24px; }
.brand-sub {
    font-size: 14px; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase;
    padding-left: 16px; border-left: 1px solid #c8c8c8; line-height: 22px; white-space: nowrap;
}
.brand-sub.is-active { text-decoration: none; }
@media (max-width: 575px) {
    .top-bar { padding: 0 var(--pad) 0 12px; }
    .logo img { width: 104px; height: auto; }
    .nav-txt { display: none; }
    .nav-ic { display: block; }
    .brand { gap: 8px; }
    .brand .brand-sub { font-size: 12px; letter-spacing: .12em; padding-left: 8px; }
    .top-nav { gap: 10px; }
    .top-nav .nav-link, .top-nav .lang summary { font-size: 12px; letter-spacing: .1em; }
    .top-nav { gap: 12px; }
}
.top-nav { display: flex; align-items: center; gap: 30px; height: 100%; }
.nav-link, .lang summary {
    font-size: 14px; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase;
}
.nav-link.is-active { text-decoration: underline; text-underline-offset: 6px; }
.user { width: 45px; height: 45px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; }
.user svg { width: 24px; height: 24px; }
.user.is-in { box-shadow: 0 0 0 3px #3814a8; }
@media (max-width: 575px) { .user { width: 34px; height: 34px; } .user svg { width: 19px; height: 19px; } }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 9px; height: 6px; }
.lang ul {
    position: absolute; right: -14px; top: 34px; background: var(--paper);
    box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 6px 0; min-width: 70px;
}
.lang li a { display: block; padding: 6px 18px; font-size: 14px; font-weight: 500; letter-spacing: var(--track); }
.lang li a[aria-current] { font-weight: 700; }

.search-bar {
    position: relative; height: 62px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 var(--pad);
}
.filter-btn {
    position: absolute; left: 0; top: 11px;
    width: 50px; height: 40px; border-radius: 0 20px 20px 0;
    background: var(--ink); color: var(--paper);
    display: flex; align-items: center; justify-content: center;
}
.filter-btn svg { width: 22px; height: 22px; }
.search { display: flex; width: min(450px, 100% - 60px); height: 40px; margin-left: 30px; }
@media (min-width: 576px) { .search { margin-left: 0; } }
.search input {
    flex: 1; min-width: 0; height: 40px; padding: 0 18px;
    border: 1px solid var(--ink); border-right: 0; border-radius: 20px 0 0 20px;
    font-size: 14px; font-weight: 400; background: var(--paper);
    -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #9a9a9a; }
.search button {
    width: 50px; border: 0; border-radius: 0 20px 20px 0;
    background: var(--ink); color: var(--paper);
    display: flex; align-items: center; justify-content: center;
}
.search button svg { width: 20px; height: 20px; }

/* ---------- botones ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 26px; border-radius: 15px;
    background: var(--paper); color: var(--ink); border: 1px solid var(--paper);
    font-size: 12px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
}
.pill:hover { text-decoration: none; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill-dark:hover { background: var(--paper); color: var(--ink); }
.pill-line { background: transparent; border-color: var(--ink); height: 28px; padding: 0 14px; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 13px; }
.pill svg { width: 12px; height: 12px; }
.icon-btn { border: 0; background: none; width: 36px; height: 36px; padding: 6px; }

/* ---------- portada ---------- */
.hero {
    position: relative; height: 500px;
    background: #222 center / cover no-repeat;
    display: flex; align-items: flex-start; padding-top: 88px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0) 60%); }
.hero-txt { position: relative; padding: 0 var(--pad); color: var(--paper); max-width: 760px; }
.hero h1 { font-size: 40px; line-height: 1.25; font-weight: 600; letter-spacing: 8px; text-transform: uppercase; margin-bottom: 20px; }
.hero p { font-size: 18px; font-weight: 400; margin-bottom: 50px; }
@media (max-width: 575px) {
    .hero { height: 360px; align-items: flex-end; padding: 0 0 40px; }
    .hero h1 { font-size: 28px; letter-spacing: 5px; }
    .hero p { font-size: 16px; margin-bottom: 30px; }
}

.rows { padding: 30px 0 30px; }
.row-sec { margin-bottom: 30px; }
.row-title {
    font-size: 12px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--grey);
    margin: 0 0 10px calc(var(--pad) + 5px);
}

/* ---------- carrusel ---------- */
.slider { position: relative; }
.slider-track {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
    gap: var(--gap);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
    padding: 0 var(--pad) 14px;
    scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > li { scroll-snap-align: start; }
@media (max-width: 1199px) { .slider-track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 767px) { .slider-track { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 575px) { .slider-track { grid-auto-columns: calc(100% - 24px); } }
.slider-btn {
    position: absolute; top: calc(50% - 7px); transform: translateY(-50%);
    width: 40px; height: 60px; border: 0; background: none; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.slider-btn[hidden] { display: none; }
.slider-btn svg { width: 28px; height: 28px; }
.slider-btn.prev { left: calc(var(--pad) - 46px); }
.slider-btn.next { right: calc(var(--pad) - 46px); }
@media (max-width: 991px) { .slider-btn { display: none; } }

/* ---------- tarjeta de vídeo ---------- */
.card { position: relative; display: block; color: var(--paper); }
.card:hover { text-decoration: none; }
.card-img { display: block; aspect-ratio: 327 / 200; overflow: hidden; background: #ccc; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-txt {
    position: absolute; inset: auto 0 0 0; min-height: 65%;
    display: flex; align-items: flex-end; padding: 20px 15px 22px;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
}
.card-title {
    font-size: 12px; font-weight: 600; line-height: 1.25; letter-spacing: var(--track); text-transform: uppercase;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ic-lock { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; }
.dur {
    position: absolute; right: 24px; bottom: -10px;
    background: var(--paper); color: var(--ink);
    font-size: 12px; font-weight: 400; line-height: 12px; padding: 4px 10px 5px; border-radius: 13px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* ---------- rejilla (playlist y resultados) ---------- */
.grid {
    display: grid; gap: 24px var(--gap);
    grid-template-columns: repeat(4, 1fr);
    padding: 20px 0 50px;
}
@media (max-width: 1199px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .grid { grid-template-columns: 1fr; } }

/* ---------- playlists ---------- */
.count { font-size: 12px; text-align: right; padding: 18px 0 14px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 50px; }
@media (max-width: 767px) { .tiles { grid-template-columns: 1fr; } }
.tile {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    aspect-ratio: 712 / 500; padding: 60px 75px 50px; color: var(--paper);
    background: #333 center / cover no-repeat; overflow: hidden;
}
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); transition: background .3s; }
.tile:hover { text-decoration: none; }
.tile:hover::before { background: rgba(0,0,0,.35); }
.tile > * { position: relative; }
.tile.is-dark { color: var(--ink); }
.tile.is-dark::before { background: rgba(255,255,255,.05); }
.tile-title, .cover h1 {
    display: block; font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: 6px; text-transform: uppercase; margin-bottom: 16px;
}
.tile-sub { display: block; font-size: 14px; font-weight: 400; line-height: 1.7; max-width: 420px; }
.tile-meta { display: block; font-size: 14px; font-weight: 400; margin-top: auto; margin-bottom: 22px; }
.tile .pill { align-self: flex-start; }
@media (max-width: 575px) {
    .tile { padding: 32px 26px 28px; aspect-ratio: 4 / 3.4; }
    .tile-title, .cover h1 { font-size: 22px; letter-spacing: 4px; }
}

.cover {
    position: relative; margin: 14px 0 0; min-height: 420px;
    border-radius: 6px; overflow: hidden;
    display: flex; align-items: stretch;
    background: #333 center / cover no-repeat; color: var(--paper);
}
.cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,0) 65%); }
.cover.is-dark { color: var(--ink); }
.cover.is-dark::before { background: linear-gradient(90deg, rgba(255,255,255,.6), rgba(255,255,255,0) 65%); }
.cover-txt { position: relative; padding: 50px 65px; display: flex; flex-direction: column; max-width: 640px; }
.cover-txt p { font-size: 14px; font-weight: 400; line-height: 1.8; }
.cover-meta { margin-top: auto; padding-top: 30px; }
.badge {
    align-self: flex-start; margin-bottom: 14px; padding: 2px 10px; border-radius: 10px;
    background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
@media (max-width: 575px) { .cover { min-height: 360px; border-radius: 0; } .cover-txt { padding: 32px 26px; } }

/* ---------- ficha de vídeo ---------- */
.video-page {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px;
    padding: 30px var(--pad) 40px 20px;
}
@media (max-width: 991px) { .video-page { grid-template-columns: 1fr; padding: 20px var(--pad) 30px; } }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 78px; height: 78px; border-radius: 50%; border: 0;
    background: rgba(0,0,0,.65); color: var(--paper);
    display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s;
}
.play svg { width: 34px; height: 34px; margin-left: 4px; }
.player:hover .play { background: var(--ink); transform: translate(-50%, -50%) scale(1.06); }
.player-note { position: absolute; left: 12px; bottom: 10px; font-size: 11px; color: rgba(255,255,255,.75); }
.player-locked { display: flex; align-items: center; justify-content: center; color: var(--paper); text-align: center; padding: 20px; }
.player-locked svg { width: 34px; height: 34px; margin: 0 auto 10px; }
.video-title {
    margin: 26px 0 18px; font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
}
.video-desc { font-size: 15px; font-weight: 400; line-height: 1.7; }
.video-desc a { text-decoration: underline; text-decoration-color: #c8c8c8; text-underline-offset: 3px; }
/* valores de la ficha que lanzan una búsqueda: sin subrayado; al pasar el ratón, fondo y lupa */
.sq { position: relative; border-radius: 3px; padding: 0 2px; margin: 0 -2px; transition: background .15s; }
.sq:hover, .sq:focus-visible { text-decoration: none; background: #efefef; }
.sq:hover::after, .sq:focus-visible::after {
    content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 4px; vertical-align: -1px;
    background: currentColor; opacity: .55;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.info-hint { font-size: 12px; color: var(--mute); margin-top: 14px; font-weight: 400; }
.info td > a.sq + a.sq, .info .clamp > a.sq + a.sq { margin-left: 0; }
.video-side { position: relative; padding-top: 4px; }
.back { position: absolute; right: 0; top: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 44px; }
.tabs button {
    border: 1px solid transparent; border-bottom: 0; background: none; padding: 5px 14px; font-size: 12px; font-weight: 400;
    margin-bottom: -1px; border-radius: 3px 3px 0 0;
}
.tabs button[aria-selected="true"] { border-color: var(--line); background: var(--paper); }
.tab-panel { padding: 22px 0 0; }
.info { width: 100%; border-collapse: collapse; font-size: 15px; }
.info th, .info td { text-align: left; vertical-align: top; padding: 8px 8px; border-bottom: 1px solid #ececec; font-weight: 400; }
.info th { width: 120px; white-space: nowrap; color: var(--grey); }
.clamp.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-toggle { border: 0; background: none; padding: 0; font-weight: 600; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.transcript { max-height: 520px; overflow-y: auto; font-size: 14px; font-weight: 400; line-height: 1.6; padding-right: 10px; }
.transcript p { margin-bottom: 8px; }
.transcript time { display: inline-block; min-width: 46px; color: var(--mute); font-variant-numeric: tabular-nums; }
.rows-related { padding-top: 0; }

/* ---------- buscador ---------- */
.search-page { display: flex; align-items: flex-start; min-height: 60vh; }
.results { flex: 1; min-width: 0; padding: 0 var(--pad); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 18px 0 6px; }
.results-bar .count { padding: 0; text-align: left; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 12px;
    border: 1px solid var(--ink); border-radius: 13px; background: var(--paper); font-size: 12px; font-weight: 400;
}
.chip svg { width: 12px; height: 12px; }
.results-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; }
.sort select { border: 1px solid var(--ink); border-radius: 14px; height: 28px; padding: 0 10px; background: var(--paper); font-size: 13px; }
.views { display: flex; gap: 4px; }
.views button { border: 0; background: none; width: 30px; height: 30px; padding: 5px; opacity: .35; }
.views button[aria-pressed="true"] { opacity: 1; }
.empty { padding: 40px 0; font-size: 15px; font-weight: 400; }
.more { display: flex; justify-content: center; padding-bottom: 50px; }

.grid.is-list { grid-template-columns: repeat(2, 1fr); gap: 18px 30px; }
@media (max-width: 991px) { .grid.is-list { grid-template-columns: 1fr; } }
.row-item { display: grid; grid-template-columns: 38% 1fr; gap: 18px; align-items: start; color: var(--ink); }
.row-item:hover { text-decoration: none; }
.row-item .card-img { position: relative; }
.row-item .dur { right: 10px; bottom: 8px; }
.row-item h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; margin: 2px 0 8px; }
.row-item p { font-size: 13px; font-weight: 400; line-height: 1.55; color: #555; }
.row-item p strong { font-weight: 600; color: var(--ink); }

.filters {
    position: sticky; top: var(--top); flex: 0 0 290px; max-height: calc(100vh - var(--top)); overflow-y: auto;
    padding: 14px 20px 30px; border-right: 1px solid var(--line); background: var(--paper);
}
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters-head h2 { font-size: 12px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; }
.facet { border-bottom: 1px solid var(--line); }
.facet summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    height: 50px; font-size: 12px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
}
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: "+"; font-size: 18px; font-weight: 300; letter-spacing: 0; }
.facet[open] summary::after { content: "–"; }
.facet-n { margin-left: auto; margin-right: 12px; background: var(--ink); color: var(--paper); border-radius: 9px; padding: 0 7px; font-size: 11px; letter-spacing: 0; }
.facet-body { padding: 0 0 14px; }
.facet-find { width: 100%; height: 32px; border: 1px solid #bbb; border-radius: 16px; padding: 0 12px; font-size: 13px; margin-bottom: 8px; }
.facet-list { max-height: 260px; overflow-y: auto; }
.facet-list label { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 13px; font-weight: 400; cursor: pointer; }
.facet-list input { accent-color: #000; }
.facet-list .n { margin-left: auto; color: var(--mute); font-size: 12px; }
.clear { margin-top: 18px; }
@media (max-width: 991px) {
    .filters {
        position: fixed; inset: var(--top) auto 0 0; width: min(320px, 88vw); max-height: none; z-index: 40;
        transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 0 30px rgba(0,0,0,.18);
    }
    .filters.is-open { transform: none; }
}
@media (min-width: 992px) { [data-close-filters] { display: none; } }

/* ---------- buscador en capa (sobre cualquier página) ---------- */
.search-layer {
    position: fixed; inset: var(--top) 0 0 0; z-index: 45; background: var(--paper);
    overflow-y: auto; overscroll-behavior: contain;
}
.search-layer[hidden] { display: none; }
body.has-layer { overflow: hidden; }
.search-layer .filters { top: 0; max-height: calc(100vh - var(--top)); }
@media (max-width: 991px) { .search-layer .filters { top: var(--top); } }
.chip-k { color: var(--mute); }
/* modo "solo barra lateral": la página sigue visible detrás */
.filters-foot { display: none; }
.search-layer.is-drawer { background: rgba(0,0,0,.35); overflow: hidden; }
.search-layer.is-drawer .results { display: none; }
.search-layer.is-drawer .filters {
    position: fixed; top: var(--top); bottom: 0; left: 0; width: min(320px, 88vw); max-height: none;
    transform: none; box-shadow: 0 0 30px rgba(0,0,0,.2); padding-bottom: 90px;
}
.search-layer.is-drawer .filters-foot {
    display: block; position: fixed; left: 0; bottom: 0; width: min(320px, 88vw);
    padding: 14px 20px; background: var(--paper); border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}
.search-layer.is-drawer .filters-foot .pill { width: 100%; justify-content: center; height: 38px; border-radius: 19px; }
.search-layer.is-drawer [data-close-filters] { display: block; }

/* ---------- textos (FAQ, legal) ---------- */
.prose { max-width: 860px; margin: 0 auto; padding-top: 40px; padding-bottom: 60px; font-size: 15px; font-weight: 400; line-height: 1.7; }
.prose h1 { font-size: 22px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; margin-bottom: 30px; }
.prose h2, .prose h3 { font-size: 16px; font-weight: 600; margin: 30px 0 10px; }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose a { text-decoration: underline; }

/* ---------- pie ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 60px var(--pad) 15px; font-weight: 500; }
.foot-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1340px; }
.foot h2 { font-size: 22px; font-weight: 600; color: #4d4d4d; margin-bottom: 20px; }
.foot p { color: var(--mute); }
.foot a:hover { color: var(--paper); }
.foot strong { color: var(--paper); font-weight: 600; }
.foot-support { border-left: 1px solid #333; padding-left: 30px; }
.social { display: flex; gap: 28px; align-items: center; }
.social svg { width: 18px; height: 18px; color: var(--paper); }
.foot-copy { margin-top: 60px; color: var(--mute); font-size: 15px; }
@media (max-width: 767px) {
    .foot-in { grid-template-columns: 1fr; }
    .foot-support { border: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 374px) {
    .logo img { width: 88px; }
    .brand { gap: 6px; }
    .brand .brand-sub { font-size: 11px; letter-spacing: .08em; padding-left: 6px; }
    .top-nav { gap: 8px; }
    .user { width: 30px; height: 30px; }
}
