/* Página del monitor (monitor.html).
   Dos distribuciones: en columnas (pantallas anchas o celular en horizontal) y apilada (vertical).
   La consulta de la distribución apilada es la misma que usa monitor.js (APILA). --hd es el alto de la cabecera (lo pone monitor.js). */
.mo{--mo-b:#223040;--mo-s:#111823;--mo-c:#1FB6C9;--mo-m:#9AA9B8;--mo-f:#E8EEF3;font-family:"IBM Plex Sans","Segoe UI",sans-serif;color:var(--mo-f);line-height:1.55}
.mo *{box-sizing:border-box}
html{--hd:81px}
body.imp{background:#05080D}
body.imp .site-header{position:sticky;top:0;z-index:50;background:rgba(5,8,13,.9);backdrop-filter:blur(10px)}
.mo-k{font:500 13px "IBM Plex Mono",monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--mo-c)}
.mo-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;cursor:pointer;padding:15px 24px;border-radius:12px;background:var(--mo-c);color:#04222A;font:700 17px "IBM Plex Sans",sans-serif;text-decoration:none}
.mo-btn:hover{background:#6FD6E3;color:#04222A}
.mo-btn svg{width:21px;height:21px;flex:none}
.mo-btn--g{background:transparent;color:var(--mo-f);border:1px solid #4A6178}
.mo-btn--g:hover{background:#0E1B22;color:#fff}
.mo a:focus-visible,.mo button:focus-visible{outline:3px solid #fff;outline-offset:3px;border-radius:12px}
.c1{color:#1FB6C9}
.c2{color:#F2A93B}
.c3{color:#FF5F57}

/* Lienzo de puntos, aviso al pasar el mouse y marcador de escenas */
#cv{position:fixed;left:0;top:0;width:100%;height:100vh;height:100lvh;z-index:0;display:block}
#tip{position:fixed;z-index:15;pointer-events:none;padding:10px 14px;border-radius:10px;background:#E8EEF3;color:#0A0E14;font:600 15px "IBM Plex Sans",sans-serif;max-width:240px}
#prog{position:fixed;right:22px;top:50%;transform:translateY(-50%);z-index:10;display:flex;flex-direction:column;gap:12px;transition:opacity .3s}
#prog.fuera{opacity:0}
#prog i{width:8px;height:8px;border-radius:50%;background:#33465A;transition:height .3s,background .3s}
#prog i.on{background:#1FB6C9;height:26px;border-radius:6px}

/* Escenas */
.dsec{position:relative;z-index:2;height:170vh;height:170svh;pointer-events:none}
.dsec.dfin{height:150vh;height:150svh}
.dsec.dcie{height:120vh;height:120svh}
.dsec .fij{position:sticky;top:var(--hd);height:calc(100vh - var(--hd));height:calc(100svh - var(--hd));display:flex;align-items:center;gap:clamp(20px,4vw,64px);width:100%}
.dsec .txt{flex:none;width:min(540px,44%);opacity:0;transform:translateY(22px);transition:opacity .5s,transform .5s}
.dsec.on .txt{opacity:1;transform:none;pointer-events:auto}
.dsec .fig{flex:1;min-width:0;align-self:stretch;margin:clamp(8px,3vh,32px) 34px clamp(8px,3vh,32px) 0}
.mo .big{font:900 clamp(26px,min(4.3vw,8.2vh),62px)/1.04 Archivo,sans-serif;letter-spacing:-.03em;margin:0 0 clamp(10px,2vh,18px);color:#fff;text-wrap:balance}
.mo .ley{font-size:clamp(15px,min(1.55vw,3.1vh),21px);line-height:1.5;color:#D3DDE6;margin:0;max-width:500px;text-wrap:pretty}
.mo .fino{font-size:14.5px;color:#9AA9B8;margin:clamp(8px,1.8vh,16px) 0 0;text-wrap:pretty}
#frac{display:block}
.dsec[data-e="0"] .big{font-size:clamp(25px,min(3.65vw,7.6vh),52px)}
.leyp{display:flex;flex-wrap:wrap;gap:6px 20px;margin:clamp(10px,2.2vh,22px) 0 0;padding:0;list-style:none;font-size:15px;color:#D3DDE6}
.leyp li{white-space:nowrap}
.leyp i{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:8px}
.dsec .mo-btn{margin-top:clamp(12px,2.6vh,24px)}

/* Inicio: teléfono, logo y texto */
.dfin .fij{--cel:clamp(196px,28vw,372px);--lg:clamp(64px,24vh,210px);display:grid;grid-template-columns:auto minmax(0,520px);grid-template-rows:1fr auto auto 1fr;grid-template-areas:"tel ." "tel logo" "tel txt" "tel .";justify-content:center;gap:0 clamp(28px,6.5vw,110px);align-items:center}
.dfin .tcol{grid-area:tel;opacity:0;transform:translateY(40px);transition:opacity .6s,transform .8s cubic-bezier(.2,.9,.2,1)}
.tel-ver .dfin .tcol{opacity:1;transform:none}
#logo{grid-area:logo;width:var(--lg);aspect-ratio:1;margin-bottom:clamp(8px,2.4vh,24px)}
#logo,#logo2{pointer-events:none}
.dfin .txt{grid-area:txt;width:auto}
.dfin .mo-k{margin-bottom:clamp(4px,1.2vh,12px)}
.dfin .big{font-size:clamp(25px,min(3.7vw,7.4vh),52px)}
.dfin .big .c1{display:block}
.pausa{display:block;margin-top:clamp(4px,1.4vh,14px);padding:9px 0;background:none;border:0;color:#9AA9B8;font:500 14.5px "IBM Plex Sans",sans-serif;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.pausa:hover{color:#fff}
.cel{position:relative;width:var(--cel);height:min(720px,calc(100vh - var(--hd) - 36px));height:min(720px,calc(100svh - var(--hd) - 36px));border-radius:54px;padding:12px;background:linear-gradient(140deg,#77889a 0,#27323d 14%,#10171e 45%,#1c2630 70%,#6a7a8a 100%);box-shadow:0 60px 120px -30px rgba(0,0,0,.95),0 0 0 1px rgba(255,255,255,.08),inset 0 0 0 2px rgba(0,0,0,.6)}
.cel::before,.cel::after{content:"";position:absolute;width:3px;background:#3A4855;border-radius:2px}
.cel::before{right:-3px;top:150px;height:74px}
.cel::after{left:-3px;top:130px;height:48px;box-shadow:0 62px 0 #3A4855}
.pant{height:100%;border-radius:43px;overflow:hidden;box-shadow:0 0 0 5px #04070A}
.isla{position:absolute;left:50%;top:22px;width:24%;max-width:92px;height:26px;transform:translateX(-50%);border-radius:20px;background:#000;z-index:4}
.bloq{height:100%;padding:0 12px;background:radial-gradient(420px 320px at 70% 8%,#1b6f86,transparent 70%),radial-gradient(400px 400px at 10% 60%,#123a5e,transparent 70%),#07121c;position:relative;display:flex;flex-direction:column}
.bloq::after{content:"";position:absolute;left:50%;bottom:8px;width:112px;height:4px;margin-left:-56px;border-radius:4px;background:rgba(255,255,255,.75)}
.est2{position:absolute;right:0;top:0;padding:14px 24px 0}
.est2 svg{height:13px;width:auto;display:block}
.bloq .fe{order:-1;text-align:center;font-size:16px;color:#D3E4EE;margin:0 0 10px;padding-top:46px}
.bloq .gran{font:800 66px/1 Archivo,sans-serif;letter-spacing:-.04em;color:#fff;text-align:center;margin:0 0 16px;font-variant-numeric:tabular-nums}
.bloq .lista{display:flex;flex-direction:column;gap:8px}
.noti{display:flex;gap:11px;padding:12px 13px;border-radius:20px;background:rgba(232,242,248,.92);color:#0A1620;font-size:15px;line-height:1.36}
.noti img{width:38px;height:38px;border-radius:10px;flex:none}
.noti>div{flex:1;min-width:0}
.nc{display:flex;justify-content:space-between;gap:8px;font-size:13.5px;color:#33485A}
.nc b{color:#33485A;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.noti strong{display:block;font-size:15.5px}
.noti p{margin:0;color:#1d2f3d}

/* Cierre */
.dcie .fij{justify-content:space-between}
#logo2{flex:none;width:min(400px,34vw,62vh);aspect-ratio:1;margin-right:5%}

/* Niveles y aviso */
.mo-fondo{position:relative;z-index:3;background:#0A0E14}
.mo-fondo>.mo-int{padding-top:80px;padding-bottom:72px}
.mo-int h2{font:900 clamp(26px,3.4vw,42px)/1.08 Archivo,sans-serif;letter-spacing:-.02em;margin:0 0 24px}
.mo-niv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.mo-caja{display:flex;flex-direction:column;padding:28px;border-radius:20px;border:1px solid var(--mo-b);background:var(--mo-s);min-width:0}
.mo-caja.uno{border-color:var(--mo-c)}
.mo-caja h3{font:800 21px/1.2 Archivo,sans-serif;margin:0 0 6px}
.mo-sub{font-size:15.5px;color:var(--mo-m);margin:0 0 18px}
.mo-caja ul{margin:0 0 22px;padding-left:18px;color:#C9D4DE;font-size:16px}
.mo-caja li{margin-bottom:6px}
.mo-caja .mo-btn{margin-top:auto}
.mo-riesgo{margin-top:26px;padding:18px 20px;border-radius:14px;border:1px solid #4A3A17;background:#1A150A;color:#E9D3A0;font-size:14.5px}

/* Columnas con poco espacio: celular en horizontal, ventanas bajas o con zoom */
@media (max-width:1150px),(max-height:640px){
.cel{border-radius:42px;padding:9px}
.pant{border-radius:34px}
.isla{top:17px;height:20px}
.bloq .fe{padding-top:38px;font-size:14px;margin-bottom:6px}
.bloq .gran{font-size:50px;margin-bottom:12px}
.noti{font-size:13.5px;padding:9px 11px;gap:9px;border-radius:17px}
.noti strong{font-size:14px}
.noti img{width:30px;height:30px;border-radius:8px}
.nc{font-size:13px}
.est2{padding:10px 18px 0}
.est2 svg{height:11px}
}
@media (max-height:520px){
.dsec{height:210vh;height:210svh}
.dsec.dfin{height:190vh;height:190svh}
.dsec.dcie{height:140vh;height:140svh}
.dfin .fij{--cel:clamp(190px,27vw,260px);--lg:58px}
.dfin .mo-k{display:none}
.mo .dsec .big{font-size:clamp(21px,min(3.4vw,7.4vh),34px)}
.mo .ley{font-size:15px;line-height:1.4}
.dsec .txt{width:min(540px,50%)}
.dfin .txt{width:auto}
.dsec .mo-btn{padding:11px 18px;font-size:16px;width:auto}
.leyp{font-size:14px}
.mo .fino{font-size:13.5px;margin-top:6px}
.pausa{margin-top:0;padding:7px 0}
.bloq .fe{padding-top:32px;margin-bottom:2px}
.bloq .gran{font-size:40px;margin-bottom:8px}
.isla{height:15px;top:15px}
#prog{display:none}
}

/* Apilada: figura arriba, texto abajo */
@media (max-aspect-ratio:9/10){
.dsec .fij{flex-direction:column;justify-content:center;align-items:stretch;gap:clamp(16px,3svh,40px);padding-top:10px;padding-bottom:18px}
.dsec .txt{width:100%}
.dsec .fig{order:-1;flex:0 1 min(94vw,56svh);min-height:130px;margin:0}
.dsec[data-e="1"] .fig,.dsec[data-e="3"] .fig{flex-basis:min(52vw,40svh)}
.dsec[data-e="2"] .fig{flex-basis:min(72vw,44svh)}
.mo .dsec .big{font-size:clamp(26px,min(8vw,5.2svh),58px);margin-bottom:clamp(8px,1.4svh,18px)}
.mo .ley{font-size:clamp(16px,min(4.2vw,2.5svh),23px);max-width:620px}
.mo .fino{font-size:clamp(13.5px,2vw,16px)}
.leyp{font-size:clamp(14px,2.1vw,17px);gap:4px 16px;margin-top:clamp(8px,1.6svh,18px)}
.dfin .fij{--cel:clamp(176px,57vw,400px);--lg:min(230px,calc(100vw - var(--cel) - 78px));grid-template-columns:var(--cel) minmax(0,1fr);grid-template-rows:minmax(0,min(640px,64svh)) auto;grid-template-areas:"tel logo" "txt txt";align-content:center;justify-content:stretch;gap:clamp(12px,2.6svh,34px) 24px}
.dfin .tcol{align-self:stretch;min-height:0;overflow:hidden;padding:6px 4px 0;margin:0 -4px;-webkit-mask:linear-gradient(#000 82%,transparent);mask:linear-gradient(#000 82%,transparent)}
.dfin .cel{height:700px}
#logo{align-self:start;justify-self:center;margin:24px 0 0}

.dcie .fij{justify-content:center}
#logo2{order:-1;width:min(64vw,38svh,420px);margin:0 auto}
#prog{right:8px}
}
@media (max-aspect-ratio:9/10) and (max-width:640px){
.mo-btn{width:100%}
.dsec .mo-btn{margin-top:14px}
}
@media (max-aspect-ratio:9/10) and (max-height:620px){
.dfin .mo-k{display:none}
.mo .dsec .big{font-size:25px}
.mo .ley{font-size:15px;line-height:1.42}
.dsec .fij{padding-bottom:10px;gap:12px}
.dsec .mo-btn{padding:12px 18px}
.pausa{padding:6px 0;margin-top:2px}
.leyp{gap:2px 14px;margin-top:8px}
.mo .fino{margin-top:6px}
}
@media (max-aspect-ratio:9/10){
.dsec[data-e="1"] .txt,.dsec[data-e="2"] .txt,.dsec[data-e="3"] .txt{background:rgba(5,8,13,.8);box-shadow:0 0 26px 26px rgba(5,8,13,.8)}
}
@media (max-aspect-ratio:9/10) and (max-width:420px){
.noti{gap:7px;padding:8px 9px}
.noti img{width:24px;height:24px;border-radius:7px}
}
@media (max-width:340px){
.noti img{display:none}
.bloq .gran{font-size:44px}
}
@media (max-width:980px){
.mo-niv{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:620px){
.mo-caja{padding:22px}
.mo-fondo>.mo-int{padding-top:56px;padding-bottom:48px}
}
@media (prefers-reduced-motion:reduce){
.dsec .txt,.dfin .tcol,#prog,#prog i{transition:none}
}

/* Celular acostado: icono menor para que quepa el aviso */
@media (max-height:520px) and (max-width:900px){
.noti{gap:7px;padding:8px 9px}
.noti img{width:24px;height:24px;border-radius:7px}
}
