/* Lienzo fijo de 1920 × 1080 escalado al tamaño real de la pantalla.
   Tamaños de letra del anteproyecto (lectura a 5 m): mínimo 43 px, cuerpo 56, título 84, estado y reloj 148. */
@font-face { font-family: "Inter"; src: url("/assets/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: block; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #05070b; overflow: hidden; cursor: none; }
body { font-family: "Inter", system-ui, sans-serif; color: #f3f4f6; -webkit-font-smoothing: antialiased; }
.oculto { display: none !important; }

.lienzo { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform-origin: 0 0; display: grid; grid-template-columns: 1248px 672px; grid-template-rows: 988px 92px; background: #0b0f17; }

/* 65 % · avisos (fila 1: logo fijo sin encimar, fila 2: escenario centrado expandible, fila 3: puntos) */
.avisos { position: relative; padding: 36px 64px 28px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 24px; border-right: 4px solid #B21017; min-height: 0; overflow: hidden; }
.logo { justify-self: start; width: 224px; height: auto; background: #ffffff; padding: 10px 16px; border-radius: 14px; display: block; }
.aviso { min-height: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; overflow: hidden; transition: opacity 0.6s ease; }
.aviso.con-imagen { gap: 20px; }
.aviso.saliendo { opacity: 0; }
.aviso-ejemplo { color: #9ca3af; text-transform: uppercase; font-size: 28px; letter-spacing: 0.08em; font-weight: 700; flex: 0 0 auto; }
.aviso-img { flex: 1 1 auto; min-height: 0; width: 100%; max-width: 1120px; max-height: 560px; object-fit: contain; object-position: center; align-self: center; border-radius: 16px; }
.aviso-titulo { font-size: 84px; font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; max-width: 1060px; flex: 0 0 auto; }
.aviso.con-imagen .aviso-titulo { font-size: 62px; line-height: 1.12; }
.aviso-titulo.urgente::before { content: "URGENTE"; display: block; font-size: 40px; font-weight: 800; letter-spacing: 0.08em; color: #ffffff; background: #B21017; padding: 6px 24px; border-radius: 12px; margin: 0 auto 20px; width: max-content; }
.aviso.con-imagen .aviso-titulo.urgente::before { font-size: 32px; padding: 4px 18px; margin-bottom: 12px; }
.aviso-cuerpo { font-size: 56px; line-height: 1.3; color: #d1d5db; font-weight: 500; max-width: 1040px; flex: 0 0 auto; }
.aviso.con-imagen .aviso-cuerpo { font-size: 44px; line-height: 1.25; }
.puntos { justify-self: center; display: flex; gap: 18px; }
.puntos span { width: 22px; height: 22px; border-radius: 50%; background: #374151; }
.puntos span.activo { background: #B21017; }

/* 35 % · sala y reloj (barra fija) */
.sala { padding: 44px 56px 56px; display: flex; flex-direction: column; gap: 14px; background: #111827; position: relative; min-height: 0; }
.sala-etiqueta { font-size: 43px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; }
.sala-estado { font-size: 120px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.sala-estado.libre { color: #4ade80; }
.sala-estado.ocupada { color: #f87171; }
.sala-estado.sin_datos { color: #9ca3af; font-size: 84px; }
.clima { border-top: 1px solid #374151; padding-top: 25px; margin-top: 24px; }
.clima-etiqueta { color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 30px; }
.clima-actual { font-size: 44px; font-weight: 700; margin-top: 10px; }
.clima-pronostico { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 24px; color: #d1d5db; margin-top: 12px; }
.clima-pronostico > span { display: flex; flex-direction: column; gap: 4px; }
.clima-pronostico strong { font-size: 28px; color: #f3f4f6; }
.clima-pronostico small { grid-column: 1 / -1; font-size: 20px; }
.reloj { margin-top: auto; }
.hora { font-size: 148px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fecha { font-size: 43px; color: #9ca3af; margin-top: 8px; }
.estado-datos { position: absolute; right: 24px; bottom: 18px; font-size: 22px; color: #9ca3af; }
.estado-datos.alerta { color: #f59e0b; }

.cumpleanos { grid-column: 1 / -1; min-height: 92px; display: flex; align-items: center; gap: 42px; padding: 18px 64px; background: #202733; border-top: 3px solid #B21017; font-size: 32px; color: #f3f4f6; }
.cumpleanos-titulo { color: #fff; font-weight: 800; text-transform: uppercase; font-size: 27px; letter-spacing: .06em; white-space: nowrap; }
#cumpleanos-texto { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sin-vincular { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #0b0f17; text-align: center; }
.sin-vincular img { width: 360px; background: #ffffff; padding: 18px 26px; border-radius: 16px; margin-bottom: 24px; }
.sin-vincular p { font-size: 40px; font-weight: 800; }
.sin-vincular .sub { font-size: 22px; font-weight: 500; color: #9ca3af; }
