/* Pantalla de difusión: semana completa y códigos QR sin servicios externos. */
.screen-body{--today-accent:#0097d5;background:#f5f3ee}
.screen-shell{padding:14px 22px;gap:12px;border-top:6px solid var(--orange)}
.screen-body .display-header{border-bottom:3px solid var(--orange)}
.screen-body .display-header .brand img{width:320px;padding:19px}
.screen-body .display-heading h1{font-size:clamp(34px,3.3vw,62px)}
.screen-body .display-heading .eyebrow{color:var(--ink);margin-bottom:5px}
.screen-body .display-clock strong{color:var(--ink)}
.screen-body .display-subhead{min-height:44px}
.screen-body .display-subhead h2{font-size:clamp(20px,1.7vw,32px)}
.screen-body #display-count{font-size:13px;color:var(--muted);margin-top:4px}
.screen-tabs{display:flex;gap:4px;background:#e6e5e0;padding:4px;flex:none}
.screen-tabs button{border:0;background:transparent;color:var(--ink);font-size:14px;font-weight:800;padding:9px 14px}
.screen-tabs button[aria-pressed=true]{background:var(--orange);color:#1d1d1b}
.screen-content{display:grid;grid-template-columns:minmax(0,1fr) clamp(158px,12vw,228px);gap:16px;min-height:0;min-width:0}
.screen-body .display-grid{gap:14px;grid-template-rows:1fr}
.screen-body .display-grid .activity{padding:18px;overflow:hidden;border-top:5px solid var(--orange);background:var(--white)}
.screen-body .display-grid .activity.live{border-color:var(--green);border-top-color:#1d1d1b;background:var(--green);color:#1d1d1b}
.screen-body .display-grid .activity.live .activity-hour,.screen-body .display-grid .activity.live .activity-audience,.screen-body .display-grid .activity.live .activity-tutor,.screen-body .display-grid .activity.live .activity-qr,.screen-body .display-grid .activity.live .activity-qr small{color:#1d1d1b}
.screen-body .display-grid .activity.live .state-live{background:#1d1d1b;color:#fff}
.screen-body .display-grid .activity.suspended{background:var(--paper);border-top-color:var(--ink)}
.screen-body .display-grid .activity.ended{border-top-color:#b4bcc0;background:white}
.screen-body .display-grid .activity h3{font-size:clamp(21px,1.8vw,32px);margin-bottom:12px}
.screen-body .display-grid .activity p{font-size:clamp(13px,1.05vw,19px);margin-bottom:6px}
.screen-body .display-grid .activity-hour{font-size:clamp(23px,1.9vw,34px);margin-bottom:12px;color:var(--ink)}
.screen-body .display-grid .activity-head{margin-bottom:10px}
.screen-body .display-grid .activity-audience{flex:0}
.screen-body .state-next{background:var(--paper);color:var(--ink)}
.screen-rail{display:flex;flex-direction:column;align-items:stretch;justify-content:space-evenly;gap:14px;padding:14px 10px;background:var(--ink);color:white;min-height:0;text-align:center}
.site-qr>a,.screen-meeting a{display:block;text-decoration:none}
.qr-code{display:block;width:100%;height:auto;max-width:192px;margin:auto;background:white;flex:none}
.screen-rail .eyebrow{font-size:11px;letter-spacing:.08em;margin-bottom:6px;color:var(--white)}
.site-qr h2{font-size:17px;letter-spacing:-.02em;line-height:1.25;margin:10px 0 5px}
.site-qr>p:last-child{font-size:11px;margin:0;overflow-wrap:normal}
.rail-note{font-size:13px;line-height:1.4;margin:0}
.screen-meeting{padding-top:12px;border-top:1px solid #66717a}
.screen-meeting .qr-code{max-width:168px}
.screen-meeting strong{display:block;font-size:16px;margin:5px 0;color:var(--white)}
.screen-meeting p:last-child{font-size:11px;line-height:1.3;margin:0}
.activity-qr{display:flex;align-items:center;gap:12px;text-decoration:none;border-top:1px solid var(--line);padding-top:12px;margin-top:auto;color:var(--ink);font-size:15px;font-weight:800}
.activity-qr .qr-code{width:clamp(112px,9.2vw,176px);margin:0}
.activity-qr small{display:block;font-size:11px;line-height:1.4;margin-top:5px;color:var(--muted);font-weight:600}
.screen-body .display-footer{padding-top:8px;font-size:12px}
.screen-body .display-controls{gap:8px}
.screen-body .display-controls button{font-weight:700;padding:7px 10px}
.screen-body #pause[aria-pressed=true]{background:var(--paper);border-color:var(--orange)}
.screen-week-host{min-width:0;min-height:0;overflow:hidden;position:relative}
.screen-week{display:grid;grid-template-columns:repeat(var(--screen-week-columns,5),minmax(0,1fr));gap:.55em;height:100%;font-size:14px;transform-origin:top left}
.screen-week-day{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fff;border:1px solid #d5dadd}
.screen-week-day-title{display:flex;justify-content:space-between;align-items:center;gap:.4em;flex:none;margin:0;padding:.5em .45em;background:var(--ink);color:white;font-size:1.03em;line-height:1.15;text-transform:capitalize;letter-spacing:0}
.screen-week-day-title small{font-size:.7em;background:var(--paper);color:#1d1d1b;padding:.15em .3em}
.screen-week-day.is-today{border:3px solid var(--today-accent);background:var(--white)}
.screen-week-day.is-today .screen-week-day-title{background:var(--today-accent);color:#1d1d1b}.screen-week-day.is-today .screen-week-day-title small{background:#1d1d1b;color:white;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:.25em .45em}.screen-week-day.is-today .screen-week-time{background:var(--today-accent);color:#1d1d1b;border-left-color:#1d1d1b}
.screen-week-day-body{flex:1;min-height:0;min-width:0;padding:.35em .4em;overflow:visible}
.screen-week-block{margin-bottom:.4em}
.screen-week-block:last-child{margin-bottom:0}
.screen-week-time{font-size:.93em;line-height:1.1;margin:0 0 .25em;padding:.24em .3em;background:var(--paper);color:var(--ink);border-left:.2em solid var(--orange)}
.screen-week-time span{font-weight:600}
.screen-week-entries{display:flex;flex-direction:column;gap:.2em}
.screen-week-item{padding:.26em .25em;border-bottom:1px solid #e3e6e6;line-height:1.14;min-width:0}
.screen-week-item:last-child{border-bottom:0}
.screen-week-subject{display:block;font-size:1em;overflow-wrap:anywhere;letter-spacing:-.025em}
.screen-week-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 .45em;margin-top:.13em;font-size:.83em;line-height:1.15}
.screen-week-place{color:#52616a;overflow-wrap:anywhere}
.screen-week-state{font-weight:800;font-size:.9em}
.screen-week-item.next .screen-week-state,.screen-week-item.ended .screen-week-state{display:none}
.screen-week-item.suspended{background:var(--paper);border-left:.22em solid var(--ink)}
.screen-week-item.suspended .screen-week-state{color:var(--ink)}
.screen-week-item.live{background:var(--paper);border-left:.22em solid var(--green)}
.screen-week-item.live .screen-week-state{color:var(--ink)}
.screen-week-audience{display:block;font-size:.83em;line-height:1.15;margin-top:.12em;color:#52616a}
.screen-week-zoom{display:inline-block;font-weight:800;color:var(--ink);background:var(--paper);padding:.08em .2em}
.screen-week-empty{font-size:.9em;padding:.8em .2em;color:var(--muted)}
@media(min-height:900px) and (min-width:1400px){.screen-shell{padding:18px 28px;gap:16px}.screen-body .display-header .brand img{width:340px;padding:20px}.screen-body .display-grid{grid-template-rows:1fr 1fr}.screen-body .display-grid .activity{padding:16px}.screen-body .display-grid .activity h3{font-size:25px;margin-bottom:8px}.screen-body .display-grid .activity-hour{font-size:25px;margin-bottom:8px}.screen-body .display-grid .activity p{font-size:15px;margin-bottom:4px}.screen-body .activity-qr{padding-top:6px}.screen-body .activity-qr .qr-code{width:112px}}
@media(max-height:760px) and (min-width:701px){.screen-shell{padding:10px 16px;gap:9px}.screen-body .display-header .brand img{width:320px;padding:19px}.screen-body .display-heading h1{font-size:38px}.screen-body .display-subhead h2{font-size:21px}.screen-rail{padding:10px 8px;gap:8px}.screen-meeting{padding-top:8px}.screen-meeting .qr-code{max-width:128px}.site-qr .qr-code{max-width:136px}.site-qr h2{font-size:15px}.screen-body .display-grid .activity{padding:14px}.screen-body #screen-help{font-size:11px;max-width:38%}}
@media(max-width:1000px) and (min-width:701px){.screen-body .display-header{gap:15px}.screen-body .display-header .brand img{width:320px;padding:19px}.screen-body .display-heading h1{font-size:32px}.screen-body .display-heading .eyebrow{font-size:10px}.screen-body .display-clock{font-size:11px;padding-right:10px}.screen-tabs button{font-size:12px;padding:8px 10px}.screen-body .display-subhead h2{font-size:18px}.screen-body .activity-qr{gap:6px;flex-wrap:wrap}.screen-body .activity-qr .qr-code{width:112px}.screen-body .display-controls{gap:5px}.screen-body .display-controls button{font-size:11px}.screen-body #screen-help{display:none}}
@media(max-width:700px){.screen-shell{height:auto;min-height:100dvh}.screen-body .display-subhead{flex-wrap:wrap;gap:12px}.screen-content{grid-template-columns:1fr}.screen-body .display-grid{grid-template-columns:1fr;grid-template-rows:auto}.screen-body .display-grid .activity{min-height:260px}.screen-rail{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;padding:18px;gap:20px}.site-qr{max-width:180px}.screen-meeting{max-width:160px;border:0;padding:0}.rail-note{max-width:180px}.screen-week-host{height:70dvh;min-height:400px}.screen-week{gap:.35em}.screen-body .display-controls{flex-wrap:wrap}.screen-body .display-heading{padding:10px}.screen-body .display-heading h1{font-size:38px}.screen-body .display-clock{padding:10px}.screen-body .activity-qr .qr-code{width:144px}.screen-body #screen-help{max-width:none}}
.screen-body .display-grid[data-count="1"]{grid-template-columns:1fr;grid-template-rows:1fr}.screen-body .display-grid[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr}.screen-body .display-grid[data-count="3"]{grid-template-rows:1fr}@media(max-width:700px){.screen-body .display-grid[data-count="2"]{grid-template-columns:1fr;grid-template-rows:auto}}

.screen-meeting .meeting-subject{font-size:15px;line-height:1.2;margin:0 0 5px;color:#fff}.screen-meeting .meeting-time{font-size:11px;line-height:1.35;margin:0 0 8px}.screen-meeting strong{font-size:14px;margin:4px 0}

/* Tarjetas de Hoy: tamaño según contenido, texto ancho y QR del propio taller. */
.screen-body .display-subhead{min-height:34px}
.screen-body .display-subhead h2{font-size:clamp(18px,1.4vw,25px);line-height:1.25}
.screen-body .display-subhead>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 18px}
.screen-body #display-count{margin:0;font-size:12px}
.screen-body .display-grid,.screen-body .display-grid[data-count]{grid-template-rows:auto;align-content:start;align-items:start;gap:18px}
.screen-body .display-grid .activity{display:block;min-height:0;padding:22px;overflow:visible}
.screen-body .display-grid .activity-head{margin-bottom:12px;gap:10px}
.screen-body .display-grid .activity h3{font-size:clamp(23px,1.6vw,31px);line-height:1.25;margin:0 0 18px;letter-spacing:-.02em}
.screen-card-body{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.screen-card-body.has-qr{grid-template-columns:minmax(0,1fr) 140px}
.screen-card-copy{min-width:0}
.screen-body .display-grid .activity-hour{font-size:clamp(21px,1.45vw,28px);line-height:1.3;margin:0 0 14px;white-space:nowrap}
.screen-body .display-grid .activity p{font-size:clamp(16px,1.05vw,20px);line-height:1.5;margin:0 0 10px}
.screen-body .display-grid .activity-audience{min-height:0}
.screen-body .display-grid .activity-tutor{margin-bottom:0}
.screen-body .activity-qr{display:flex;flex-direction:column;align-items:center;gap:8px;flex-wrap:nowrap;margin:0;padding:0;border:0;text-align:center;font-size:13px;line-height:1.35}
.screen-body .activity-qr .qr-code{width:140px;max-width:100%;margin:0}
.screen-body .activity-qr small{font-size:10px;margin-top:3px}
.screen-rail{justify-content:center;align-self:start;padding:20px 10px;gap:16px}
@media(min-width:1000px) and (max-width:1699px){.screen-body .display-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:999px){.screen-body .display-grid,.screen-body .display-grid[data-count]{grid-template-columns:1fr}.screen-body .display-grid .activity{padding:18px}.screen-card-body.has-qr{grid-template-columns:minmax(0,1fr) 128px}.screen-body .activity-qr .qr-code{width:128px}}
@media(max-width:430px){.screen-card-body.has-qr{grid-template-columns:1fr}.screen-body .activity-qr{flex-direction:row;text-align:left;justify-content:flex-start}}

@media(min-width:701px) and (max-width:1000px){.screen-body .display-header{gap:12px}.screen-body .display-heading h1{font-size:30px}.screen-body .display-heading{min-width:0}.screen-body .display-heading .eyebrow{font-size:10px}}
