/* Biblioteca GDO — Versículos en imágenes, Historial de devocionales y Videos (2026-11-29, diseño ordenado v2) */
/* gdo-v4 */
.versiculos-section{padding-block:clamp(46px,7vw,91px) clamp(14px,2.5vw,24px)}
.word-section+.versiculos-section{padding-top:0}
.versiculos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,160px));gap:18px;justify-content:start;align-items:stretch}
.versiculo-card{display:flex;flex-direction:column;width:100%;height:100%;padding:0;text-align:left;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;transition:border-color .18s}
.versiculo-card:hover{border-color:var(--red)}
.versiculo-card img{display:block;flex:none;width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.versiculo-card span{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:10px 12px;height:66px;box-sizing:border-box;font-size:14px;font-weight:750;color:var(--ink)}
.versiculo-card span strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.versiculo-card small{font-weight:700;color:#a71031;white-space:nowrap;font-size:12px}
.versiculos-notice{color:var(--muted)}
.versiculos-more{margin-top:22px}
.versiculo-viewer{box-sizing:border-box;background:transparent;color:#fff;border:0;box-shadow:none;width:min(520px,calc(100% - 24px));max-height:96vh;max-height:96dvh;padding:4px}
.versiculo-viewer::backdrop{background:#000c}
.versiculo-viewer figure{margin:0}
.versiculo-viewer img{width:auto;max-width:100%;height:auto;max-height:78vh;max-height:78dvh;object-fit:contain;border-radius:8px;margin-inline:auto}
.versiculo-viewer figcaption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;font-weight:750}
.versiculo-viewer figcaption span{color:#d9cfd1;font-weight:600}
.versiculo-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.versiculo-actions button{padding:9px 16px;color:#fff;background:#3e3036;border:1px solid #8a7380;border-radius:4px;font-size:14px;font-weight:700}
.versiculo-actions button:hover{background:#573f4a}
.versiculo-viewer{position:relative}
.versiculo-x{position:absolute;top:10px;right:10px;z-index:2;display:grid;place-items:center;width:38px;height:38px;padding:0;color:#fff;background:#141214b8;border:1px solid #ffffff59;border-radius:50%;font-size:24px;font-weight:300;line-height:1;cursor:pointer}
.versiculo-x:hover{background:#141214e6}
.historial-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.historial-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.historial-texto{min-width:0}
.historial-titulo{display:block;font-size:16px;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.historial-texto small{display:block;color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.historial-item a{font-weight:750;color:#a71031;white-space:nowrap}
.historial-item a:hover{text-decoration:underline}
.historial-destacado{border-color:#e3b7c2;background:#fdf3f5}
.historial-note{margin-top:16px;color:var(--muted);font-size:15px}
.historial-note a{font-weight:750;color:#a71031}
.historial-note a:hover{text-decoration:underline}
.videos-section{background:var(--black);color:#fff;padding-block:clamp(46px,7vw,91px)}
.videos-section .eyebrow{color:#ff8fa6}
.videos-section .section-head>p{color:#d9cfd1}
.video-player-wrap{max-width:420px}
.video-player{aspect-ratio:1/1;background:#000;border:1px solid #4a3540;border-radius:8px;overflow:hidden}
.video-player video{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.video-player-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
.video-player-bar strong{font-size:16px;letter-spacing:-.02em;color:#fff}
.video-lang-switch{display:flex;gap:8px}
.video-lang-btn{padding:7px 14px;border:1px solid #8a7380;border-radius:999px;background:transparent;color:#ffd7df;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;cursor:pointer}
.video-lang-btn:hover{border-color:#ffd7df}
.video-lang-btn.is-active{background:#a71031;border-color:#a71031;color:#fff}
.video-player-note{margin-top:10px;color:#d9cfd1;font-size:14px}
.reading-historial{margin-top:38px}
.reading-historial h2{font-size:clamp(22px,2.6vw,30px);line-height:1.1;letter-spacing:-.03em;margin-bottom:16px}
.reading-historial .historial-item{background:#fff}
.reading-daily-title{margin-top:38px;font-size:clamp(22px,2.6vw,30px);line-height:1.1;letter-spacing:-.03em}
.reading-daily-list{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:8px}
.reading-daily-list .historial-item{background:#fff}
.reading-top-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin-bottom:clamp(18px,3vw,33px)}
.reading-top-row .reading-back{margin-bottom:0;padding-top:9px}
.devocionales-menu>summary{display:inline-flex;align-items:center;gap:9px;cursor:pointer;list-style:none;padding:9px 16px;border:1px solid #a71031;border-radius:5px;background:#fff;color:#a71031;font-size:15px;font-weight:750}
.devocionales-menu>summary::-webkit-details-marker{display:none}
.devocionales-menu>summary::after{content:"";flex:none;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-1px,-1px)}
.devocionales-menu[open]>summary::after{transform:rotate(225deg) translate(-1px,-1px)}
.devocionales-menu>summary:hover{background:#fdf3f5}
.devocionales-menu .historial-list{margin-top:14px;text-align:left}
.devocionales-menu .historial-note{margin-top:14px;text-align:left}
.reading-top-row .devocionales-menu{flex:1 1 300px;max-width:560px;text-align:right}
@media(max-width:640px){
.versiculos-grid{grid-template-columns:repeat(3,1fr);gap:12px}
.versiculo-card span{gap:2px;padding:8px 10px;height:58px;font-size:13px}
.historial-item{flex-wrap:wrap;gap:6px 12px}
.historial-titulo,.historial-texto small{white-space:normal}
}
