.card-view-switch{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;margin:4px 0 20px}.card-view-switch button{display:flex;align-items:center;gap:8px;padding:9px 15px;border:1px solid #cfb7d444;border-radius:12px;font-size:13px;color:#d9c8e3;background:#201c2c}.card-view-switch svg{width:19px;height:19px}.card-view-switch button[aria-pressed=true]{background:#f3e8f1;color:#503b58;border-color:#d5b8d2}.card-gallery,.card-gallery-reader{--text:#352d3e;--muted:#76667e;--lavender:#9a5f96;color:var(--text);background:linear-gradient(135deg,#faf7fb,#f0eaf3);border:1px solid #eadce9;border-radius:24px;padding:30px;box-shadow:0 14px 50px #07031512}.gallery-heading h1{font-size:36px;color:#3d3147}.gallery-heading .eyebrow{color:#95678c}.gallery-heading > div > p:not(.eyebrow){color:#73627b;margin-top:12px}.gallery-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:25px 0}.gallery-search{flex:1;min-width:220px}.gallery-filters input,.gallery-filters select{background:#fff;border:1px solid #d9cddf;color:#493952;border-radius:11px;padding:10px 13px;min-height:44px;width:100%}.gallery-filter{padding:10px 14px;background:#fff;border:1px solid #d9cddf;border-radius:11px;color:#67516e;font-size:13px}.gallery-filter[aria-pressed=true]{background:#ead9e8;border-color:#ad7ca6;color:#54384f}#gallery-count{font-size:12px;color:#7b6c80}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.gallery-card{background:#fff;border:1px solid #dfd0df;border-radius:16px;overflow:hidden;box-shadow:0 4px 13px #61345d06;display:flex;flex-direction:column;min-width:0}.gallery-cover{position:relative;display:block;background:#eee9f0;padding:12px;width:100%;height:190px;border-bottom:1px solid #e6dce7;overflow:hidden}.gallery-cover img{display:block;width:100%;height:100%;object-fit:contain;border-radius:7px;background:#fff}.gallery-cover span{position:absolute;right:18px;bottom:18px;background:#46364edb;color:white;padding:4px 9px;border-radius:7px;font-size:10px;opacity:0;transition:opacity .15s}.gallery-cover:hover span,.gallery-cover:focus-visible span{opacity:1}.gallery-card-content{display:flex;flex-direction:column;flex:1;padding:20px}.gallery-kicker{font-size:9px!important;letter-spacing:.1em;text-transform:uppercase;color:#906487;font-weight:700}.gallery-card h2{font-size:20px;line-height:1.25;letter-spacing:-.02em;margin:10px 0;color:#3e3048}.gallery-summary{font-size:13px;line-height:1.6;color:#76657e;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:20px}.gallery-card-bottom{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:auto}.gallery-card-bottom button{font-size:12px;font-weight:700;color:#865580;padding:4px 0;text-align:left}.gallery-card-bottom small{font-size:9px;background:#f3edf5;color:#76607e;padding:4px 6px;border-radius:4px}.gallery-empty{padding:30px;text-align:center}.gallery-back{color:#895881;background:#fff;border:1px solid #ddcadd;padding:9px 14px;border-radius:11px;margin-bottom:22px}.card-gallery-reader .library{display:block}.card-gallery-reader .library-sidebar{display:none}.card-gallery-reader .reader{width:100%;max-width:none;background:#fff;border-color:#e4d3e4;box-shadow:0 5px 20px #55305207}.card-gallery-reader .page-intro h1{color:#44334e}.card-gallery-reader .page-intro > p{color:#796780}.card-gallery-reader .reader-head{background:linear-gradient(135deg,#faf4f9,#f1e7f2)}.card-gallery-reader .reader-head .eyebrow{color:#8a6487}.card-gallery-reader .reading-section{background:#fff}.card-gallery-reader .section-tabs{background:#f8f2f8}.card-gallery-reader .reader-nav button{color:#82577f}.card-gallery-reader .reader-nav{color:#8b7891}.card-gallery-reader .study-chapters{background:#f8f2f8}.gallery-preview h2{padding-right:25px}.gallery-preview img{display:block;width:100%;max-height:330px;object-fit:contain;background:#f5f0f6;border-radius:12px;margin:22px 0}.gallery-preview ul{columns:2;padding-left:20px;margin:15px 0 25px}.gallery-preview li{font-size:13px;margin:4px 0}#dialog:has(.gallery-preview){background:#fff;color:#3e3048;border-color:#d8bfd7}#dialog:has(.gallery-preview) .eyebrow{color:#94648b}#dialog:has(.gallery-preview) .dialog-close{color:#76527d}.gallery-preview .primary{background:#deb4d3;color:#463047}@media(max-width:1050px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card-gallery,.card-gallery-reader{padding:24px}}@media(max-width:650px){.gallery-grid{grid-template-columns:1fr;gap:17px}.card-gallery,.card-gallery-reader{padding:16px;border-radius:16px}.gallery-heading h1{font-size:30px}.gallery-cover{height:215px}.gallery-filters{gap:8px}.gallery-filters label:not(.gallery-search){width:100%}.gallery-search{min-width:100%}.card-view-switch{justify-content:flex-start}.card-view-switch button{font-size:12px;padding:8px 11px}.gallery-preview ul{columns:1}.card-gallery-reader .reader-head{padding:20px}.card-gallery-reader .page-intro{margin-bottom:20px}}

.prenatal-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.prenatal-overview article{display:flex;gap:12px;border:1px solid #e2cfdf;background:#fcf8fb;border-radius:13px;padding:16px}.prenatal-overview article>span{font-weight:700;color:#a6759b;line-height:1.6}.prenatal-overview h4{font-size:15px;color:#654461;margin:0 0 5px}.prenatal-overview p{font-size:13px;line-height:1.55;color:#66526d}.prenatal-full-map{margin-top:20px;padding:16px;border:1px solid #e4d2e0;border-radius:12px}.prenatal-full-map img{width:100%;height:auto;margin:15px 0}.prenatal-reference{font-size:12px;color:#925f89!important}.card-gallery-reader .prenatal-events h4{color:#5c415c}.card-gallery-reader .prenatal-events p{color:#67556e}@media(max-width:700px){.prenatal-overview{grid-template-columns:1fr}}

.gallery-heading{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);align-items:center;gap:26px;margin-bottom:24px}
.gallery-header-player{min-width:0}.gallery-header-player .study-player{margin:0;width:100%;background:#fff;border-color:#d7b8d0;color:#44334e;box-shadow:0 6px 22px #8c3d7810}
.gallery-header-player .study-player select{color:#51384f;background:#fcf7fb;border-color:#d9c5d5}.gallery-header-player .study-player-detail{color:#76536d}.gallery-header-player .study-player-button{color:#704662;border-color:#dac1d2;background:#faf2f8}.gallery-header-player .study-player-play{color:#fff;background:#a52f7b;border-color:#a52f7b}
.gallery-card.is-listening{border:2px solid #ff299f;box-shadow:0 0 0 2px #ff299f26,0 0 22px #ff229f55;position:relative}.gallery-card.is-speaking{animation:gallery-neon-pulse 2.6s ease-in-out infinite}
@keyframes gallery-neon-pulse{0%,100%{box-shadow:0 0 0 2px #ff299f22,0 0 16px #ff229f44}50%{box-shadow:0 0 0 3px #ff299f44,0 0 28px #ff229f77}}
@media(max-width:1000px){.gallery-heading{grid-template-columns:1fr;gap:18px}.gallery-header-player{width:100%}}
@media(prefers-reduced-motion:reduce){.gallery-card.is-speaking{animation:none}}

/* Desktop playback actions share one row; narrow panels use the common transport grid below. */
.gallery-header-player .study-player-transport{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#d5bdd0 transparent;overscroll-behavior-x:contain}
.gallery-header-player .study-player-button,.gallery-player-tools button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;min-width:42px;height:42px;min-height:42px;padding:8px;border:1px solid #dac1d2;border-radius:8px;line-height:1;cursor:pointer}
.gallery-header-player .study-player-button.study-player-play{flex:1 0 104px;width:auto;min-width:104px;max-width:140px;gap:6px;padding:8px 10px;white-space:nowrap}
.gallery-header-player .study-player-speed{flex:0 0 64px;margin-left:0}
.gallery-header-player .study-player-speed select{box-sizing:border-box;display:block;width:64px;height:42px;min-height:42px;border-radius:8px}
.gallery-player-tools{display:flex;flex:0 0 auto;align-items:center;gap:6px}
.gallery-player-tools button{color:#704662;background:#faf2f8}
.gallery-header-player .study-player-icon,.gallery-player-tools svg{width:20px;height:20px;flex:0 0 20px}
.gallery-player-tools button:disabled{opacity:.35;cursor:default}
.gallery-player-tools button[aria-pressed=true]{border-color:#a52f7b;background:#f1ddeb;color:#8c2468}
@container study-player (max-width:560px){.gallery-header-player .study-player-transport,.gallery-player-tools{gap:5px}.gallery-header-player .study-player-button.study-player-play{flex:0 0 42px;width:42px;min-width:42px;padding:8px}.gallery-header-player [data-section-play-label]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}

/* Fichas and Clases keep the same button positions as the other study players. */
@container study-player (max-width:430px){
 .gallery-header-player .study-player-transport{display:grid;grid-template-columns:40px minmax(76px,1fr) 59px;gap:6px;overflow:visible}
 .gallery-header-player .study-player-button{width:40px;min-width:40px;flex-basis:40px}
 .gallery-header-player .study-player-button.study-player-play{width:100%;min-width:76px;max-width:none;padding:7px 5px;gap:5px}
 .gallery-header-player [data-section-play-label]{position:static;width:auto;height:auto;margin:0;clip-path:none;white-space:normal;overflow:visible}
 .gallery-header-player .study-player-speed,.gallery-header-player .study-player-speed select{width:59px;min-width:0;flex-basis:59px}
 .gallery-header-player .gallery-player-tools{grid-column:1/-1;grid-row:3;justify-content:center;gap:10px}
}
