/* =========================================================
   horario-estudio.css — horario de estudio del estudiante (js/horario-estudio.js). Prefijo hor-
   ========================================================= */
.hor, .hor-lock, .hor-aviso { --h-ink: #0f1f4d; --h-mut: #5b6785; --h-line: #e3e9f7; --h-bg: #f6f8fe; --h-az: #2563eb; --h-vio: #6d28d9; --h-ok: #16a34a; --h-amb: #d97706; --h-rojo: #dc2626; }
.hor { display: grid; gap: 16px; }
.hor-hero { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #1e3a8a 0%, #4f46e5 55%, #7c3aed 100%); box-shadow: 0 10px 30px rgba(79,70,229,.25); }
.hor-hero > span { font-size: 2.2rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.hor-hero h3 { margin: 0 0 3px; font-size: 1.2rem; color: #fff; } .hor-hero p { margin: 0; opacity: .92; font-size: .92rem; }
.hor-ks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hor-k { display: flex; gap: 12px; align-items: center; padding: 14px 15px; background: #fff; border: 1px solid var(--h-line); border-radius: 18px; box-shadow: 0 3px 14px rgba(15,31,77,.06); position: relative; overflow: hidden; }
.hor-k::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, #94a3b8); }
.hor-k > span { font-size: 1.6rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--c, #94a3b8) 14%, #fff); flex: none; }
.hor-k strong { display: block; font-size: 1.28rem; color: var(--h-ink); line-height: 1.1; } .hor-k b { display: block; font-size: .82rem; color: var(--h-ink); margin-top: 2px; } .hor-k small { display: block; color: var(--h-mut); font-size: .76rem; line-height: 1.3; margin-top: 1px; }
.hor-k--ok { --c: var(--h-ok); } .hor-k--noche { --c: #475569; } .hor-k--azul { --c: var(--h-az); } .hor-k--viol { --c: var(--h-vio); } .hor-k--ambar { --c: var(--h-amb); }
.hor-card { background: #fff; border: 1px solid var(--h-line); border-radius: 20px; padding: 16px 18px; box-shadow: 0 3px 14px rgba(15,31,77,.05); }
.hor-card h3 { margin: 0 0 10px; font-size: 1.02rem; color: var(--h-ink); }
.hor-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
/* semana */
.hor-sem { display: grid; gap: 6px; }
.hor-sem__f { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: center; }
.hor-sem__f label { font-weight: 800; font-size: .82rem; color: var(--h-ink); line-height: 1.1; } .hor-sem__f label small { display: block; font-size: .65rem; color: var(--h-az); text-transform: uppercase; letter-spacing: .04em; }
.hor-sem__t { position: relative; height: 30px; border-radius: 10px; background: repeating-linear-gradient(90deg, #f1f5fb 0, #f1f5fb calc(100% / 24 - 1px), #e4eaf6 calc(100% / 24 - 1px), #e4eaf6 calc(100% / 24)); overflow: hidden; }
.hor-sem__t b { position: absolute; top: 3px; bottom: 3px; border-radius: 8px; background: linear-gradient(90deg, #3b82f6, #6366f1); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(79,70,229,.35); }
.hor-sem__t em { font-style: normal; color: #fff; font-size: .7rem; font-weight: 800; white-space: nowrap; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hor-sem__f.is-off .hor-sem__t { background: repeating-linear-gradient(135deg, #f1f5f9 0 8px, #e8edf4 8px 16px); }
.hor-sem__t span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; color: #64748b; font-weight: 700; }
.hor-sem__f.is-hoy label { color: var(--h-az); } .hor-sem__f.is-hoy .hor-sem__t { box-shadow: 0 0 0 2px #93c5fd; }
.hor-sem__e { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; } .hor-sem__e > div { position: relative; height: 14px; }
.hor-sem__e i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: .64rem; color: #64748b; white-space: nowrap; } .hor-sem__e i:first-child { transform: none; } .hor-sem__e i:last-child { transform: translateX(-100%); }
/* editor */
.hor-ed__h h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--h-ink); } .hor-ed__h p { margin: 0 0 12px; color: var(--h-mut); font-size: .88rem; }
.hor-pre { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.hor-pre button { text-align: left; display: grid; gap: 1px; padding: 11px 12px; border-radius: 14px; border: 1.5px solid var(--h-line); background: var(--h-bg); cursor: pointer; font: inherit; color: var(--h-ink); transition: .15s; }
.hor-pre button:hover { border-color: #a5b4fc; transform: translateY(-1px); } .hor-pre button.is-on { border-color: var(--h-az); background: #eef4ff; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.hor-pre button > span { font-size: 1.25rem; } .hor-pre b { font-size: .92rem; } .hor-pre small { color: var(--h-mut); font-size: .74rem; }
.hor-ed__g { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.hor-ed__g label { display: grid; gap: 4px; font-weight: 700; font-size: .85rem; color: var(--h-ink); }
.hor-ed__g select { padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--h-line); font: inherit; background: #fff; color: var(--h-ink); }
.hor-dias { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.hor-dias button { min-width: 52px; padding: 9px 12px; border-radius: 999px; border: 1.5px solid var(--h-line); background: #fff; font: inherit; font-weight: 800; font-size: .84rem; color: var(--h-mut); cursor: pointer; transition: .15s; }
.hor-dias button.is-on { background: linear-gradient(135deg, #3b82f6, #6366f1); border-color: transparent; color: #fff; box-shadow: 0 3px 10px rgba(79,70,229,.3); }
.hor-dias__x { padding: 9px 12px; border-radius: 999px; background: repeating-linear-gradient(135deg, #f1f5f9 0 6px, #e8edf4 6px 12px); color: #64748b; font-weight: 800; font-size: .8rem; cursor: help; }
.hor-prev { padding: 12px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.45; margin-bottom: 12px; border: 1px solid; }
.hor-prev small { display: block; margin-top: 3px; opacity: .85; font-size: .8rem; }
.hor-prev--ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; } .hor-prev--amp { background: #fffbeb; border-color: #fde68a; color: #78350f; } .hor-prev--red { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; } .hor-prev--mal { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.hor-ed__a { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .hor-msg { font-size: .88rem; font-weight: 700; } .hor-msg.is-ok { color: #15803d; } .hor-msg.is-mal { color: #b91c1c; }
/* festivos y regla */
.hor-fest { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.hor-fest li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; } .hor-fest b { display: block; font-size: .88rem; color: #7c2d12; } .hor-fest small { color: #9a3412; }
.hor-regla { display: flex; gap: 12px; padding: 15px 17px; border-radius: 18px; background: linear-gradient(135deg, #eef4ff, #f5f0ff); border: 1px solid #d9defa; } .hor-regla > span { font-size: 1.4rem; } .hor-regla b { color: var(--h-ink); } .hor-regla p { margin: 4px 0 0; font-size: .86rem; color: #3b4a73; line-height: 1.5; }
/* padrino */
.hor-sel { margin: 4px 0 12px; } .hor-sel label { display: grid; gap: 4px; max-width: 420px; font-weight: 700; font-size: .85rem; color: var(--h-ink); } .hor-sel select { padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--h-line); font: inherit; background: #fff; }
.hor-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin: 14px 0; }
.hor-al { background: #fff; border: 1px solid var(--h-line); border-left: 5px solid #94a3b8; border-radius: 16px; padding: 13px 15px; display: grid; gap: 8px; box-shadow: 0 3px 12px rgba(15,31,77,.05); } .hor-al.is-ok { border-left-color: var(--h-ok); }
.hor-al header { display: flex; gap: 10px; align-items: center; } .hor-al header > div { flex: 1; min-width: 0; } .hor-al header b { display: block; color: var(--h-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hor-al header small { color: var(--h-mut); }
.hor-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3b82f6, #7c3aed); color: #fff; font-weight: 800; flex: none; }
.hor-pill { font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; } .hor-pill--ok { background: #dcfce7; color: #166534; } .hor-pill--noche { background: #e2e8f0; color: #334155; }
.hor-al__h { margin: 0; font-size: .84rem; color: #334155; line-height: 1.5; } .hor-tag { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #ede9fe; color: #5b21b6; font-size: .7rem; font-weight: 800; } .hor-tag--g { background: #f1f5f9; color: #475569; }
.hor-vacio { text-align: center; padding: 28px 16px; color: var(--h-mut); } .hor-vacio > span { font-size: 2.2rem; display: block; } .hor-vacio b { display: block; color: var(--h-ink); margin: 6px 0 2px; }
/* estudiante: aviso y descanso */
.hor-aviso { display: flex; align-items: center; gap: 12px; margin: 10px auto 0; max-width: 1180px; width: calc(100% - 24px); box-sizing: border-box; padding: 11px 14px; border-radius: 14px; background: #fff7e0; border: 1.5px solid #f2c96a; color: #6b4300; font-size: .92rem; position: relative; z-index: 6; }
.hor-aviso > div { flex: 1; } .hor-aviso button { border: 0; background: transparent; font-size: 1rem; cursor: pointer; color: inherit; }
.hor-lock { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 15%, #312e81 0%, #1e1b4b 45%, #0f172a 100%); overflow: auto; }
.hor-lock::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 30%, #fff8, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fff7, transparent), radial-gradient(2px 2px at 85% 65%, #fff6, transparent), radial-gradient(1.5px 1.5px at 35% 80%, #fff7, transparent), radial-gradient(1px 1px at 55% 50%, #fff8, transparent); pointer-events: none; }
.hor-lock__box { position: relative; max-width: 480px; width: 100%; text-align: center; padding: 30px 26px; border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hor-lock__moon { font-size: 3.6rem; line-height: 1; margin-bottom: 8px; animation: horFlota 4s ease-in-out infinite; } .hor-lock h2 { margin: 0 0 8px; color: #1e1b4b; font-size: 1.45rem; } .hor-lock p { color: #3b4a73; line-height: 1.5; margin: 0 0 12px; }
.hor-lock__next { margin: 14px 0; padding: 13px 16px; border-radius: 16px; background: linear-gradient(135deg, #eef2ff, #f5f3ff); border: 1px solid #c7d2fe; } .hor-lock__next small { display: block; color: #5b6785; font-size: .8rem; } .hor-lock__next b { font-size: 1.15rem; color: #3730a3; }
.hor-lock__s { font-size: .84rem !important; color: #64748b !important; }
body.hor-cerrado { overflow: hidden; }
@keyframes horFlota { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@media (max-width: 900px) { .hor-ks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hor-pre { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hor-dos { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hor-ks { grid-template-columns: 1fr; } .hor-hero { padding: 16px; } .hor-sem__f, .hor-sem__e { grid-template-columns: 44px minmax(0, 1fr); } .hor-sem__t em { font-size: .62rem; } }
@media (prefers-reduced-motion: reduce) { .hor-lock__moon { animation: none; } }

.hor-k__rango { font-size: .98rem; line-height: 1.2; display: block; }

.hor-lockinfo { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; } .hor-lockinfo > span { font-size: 1.6rem; } .hor-lockinfo p { margin: 3px 0 0; font-size: .88rem; }

/* ---- Administrador: horarios por zona, colegio, grado y estudiante (hox-) ---- */
.hox { gap: 16px; }
.hox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .hox-span2 { grid-column: 1 / -1; }
.hox-slot { display: grid; gap: 14px; }
.hox-hm { display: grid; gap: 4px; } .hox-hm__f { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; align-items: center; } .hox-hm__f label { font-size: .74rem; font-weight: 800; color: var(--h-ink); }
.hox-hm__f > div { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; } .hox-hm__f i { height: 22px; border-radius: 4px; background: rgba(37, 99, 235, calc(.06 + var(--a) * .94)); border: 1px solid rgba(37,99,235,.12); }
.hox-hm__e { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; } .hox-hm__e > div { position: relative; height: 14px; } .hox-hm__e span { position: absolute; font-size: .64rem; color: #64748b; white-space: nowrap; }
.hox-acc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hox-reglas { display: grid; gap: 8px; }
.hox-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--h-line); border-left: 5px solid var(--c); border-radius: 14px; background: #fff; }
.hox-r__t { font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); white-space: nowrap; }
.hox-r__b b { display: block; color: var(--h-ink); overflow: hidden; text-overflow: ellipsis; } .hox-r__b small { color: var(--h-mut); font-size: .8rem; }
.hox-r__n { text-align: center; line-height: 1.15; } .hox-r__n b { display: block; font-size: 1.1rem; color: var(--h-ink); } .hox-r__n small { color: var(--h-mut); font-size: .7rem; }
.hox-r__a { display: flex; gap: 6px; }
.hox-scopes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .hox-scopes button { display: inline-flex; gap: 6px; align-items: center; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--h-line); background: #fff; font: inherit; font-weight: 700; font-size: .86rem; color: var(--h-mut); cursor: pointer; }
.hox-scopes button.is-on { background: linear-gradient(135deg, #3b82f6, #6366f1); border-color: transparent; color: #fff; box-shadow: 0 3px 10px rgba(79,70,229,.3); }
.hox-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; } .hox-campos label { display: grid; gap: 4px; font-weight: 700; font-size: .84rem; color: var(--h-ink); } .hox-campos .hox-w2 { grid-column: span 2; }
.hox-campos select, .hox-bus input { padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--h-line); font: inherit; background: #fff; color: var(--h-ink); width: 100%; box-sizing: border-box; }
.hox-pre { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hox-fest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .hox-fest button { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--h-line); background: #fff; font: inherit; font-weight: 700; font-size: .84rem; color: var(--h-mut); cursor: pointer; } .hox-fest button.is-on { border-color: var(--h-az); background: #eef4ff; color: #1e3a8a; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.hox-alc { font-size: .88rem; color: #334155; margin: -4px 0 12px; }
.hox-dos { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .hox-lado { display: grid; gap: 14px; align-content: start; }
.hox-res { display: grid; gap: 8px; margin-top: 10px; } .hox-est { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid var(--h-line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; } .hox-est:hover { border-color: #a5b4fc; background: #f8f9ff; } .hox-est b { display: block; color: var(--h-ink); } .hox-est small { color: var(--h-mut); }
.hox-ficha { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; } .hox-ficha > div { flex: 1; min-width: 200px; } .hox-ficha h3 { margin: 0; } .hox-ficha p { margin: 2px 0 0; }
.hox-fuente { padding: 9px 13px; border-radius: 12px; background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); color: #1f2a4d; font-size: .88rem; margin-bottom: 12px; } .hox-fuente b { color: var(--c); }
.hox-carga { padding: 20px; }
@media (max-width: 900px) { .hox-grid { grid-template-columns: 1fr; } .hox-dos { grid-template-columns: 1fr; } .hox-pre { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hox-r { grid-template-columns: 1fr auto; } .hox-r__t { grid-column: 1 / -1; justify-self: start; } .hox-campos .hox-w2 { grid-column: span 1; } }

.hox-forzar { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: .85rem; margin-bottom: 12px; cursor: pointer; } .hox-forzar[hidden] { display: none; }

/* ---- Historial de cambios de horario ---- */
.hox-hist { display: grid; gap: 8px; }
.hox-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--h-line); border-left: 5px solid var(--c); border-radius: 14px; background: #fff; }
.hox-h__i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: color-mix(in srgb, var(--c) 14%, #fff); }
.hox-h__b p { margin: 0; font-size: .88rem; color: var(--h-ink); line-height: 1.4; } .hox-h__b em { font-style: normal; color: var(--h-mut); font-size: .8rem; }
.hox-h__b small { display: block; margin-top: 3px; color: var(--h-mut); font-size: .78rem; line-height: 1.4; } .hox-h__b small s { opacity: .75; text-decoration-thickness: 1px; }
.hox-h__n { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: .72rem; font-weight: 800; } .hox-h__ie { color: var(--h-mut); font-size: .8rem; }
.hox-h time { color: var(--h-mut); font-size: .75rem; white-space: nowrap; text-align: right; }
.hox-hf { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 10px 0 14px; } .hox-hf label { display: grid; gap: 4px; font-weight: 700; font-size: .84rem; color: var(--h-ink); } .hox-hf .hox-w2 { grid-column: span 2; }
.hox-hf select, .hox-hf input { padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--h-line); font: inherit; background: #fff; width: 100%; box-sizing: border-box; }
.hox-top { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 6px; } .hox-top li { display: flex; gap: 10px; align-items: center; } .hox-top div { flex: 1; min-width: 0; } .hox-top b { display: block; color: var(--h-ink); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; } .hox-top small { color: var(--h-mut); } .hox-top em { font-style: normal; font-weight: 800; color: var(--h-ink); }
.hox-h5 { margin: 12px 0 4px; font-size: .84rem; color: var(--h-mut); }
@media (max-width: 700px) { .hox-h { grid-template-columns: auto 1fr; } .hox-h time { grid-column: 1 / -1; text-align: left; } .hox-hf .hox-w2 { grid-column: span 1; } }

/* ---- Inscripciones y pagos (pg-) ---- */
.pg { display: grid; gap: 16px; } .pg-slot { display: grid; gap: 14px; }
.pg-hero { background: linear-gradient(120deg, #065f46 0%, #0d9488 55%, #2563eb 100%) !important; box-shadow: 0 10px 30px rgba(13,148,136,.25) !important; }
.pg-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; } .pg-flow > div { flex: 1; min-width: 180px; display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #e3e9f7; box-shadow: 0 3px 12px rgba(15,31,77,.05); } .pg-flow > div > span { font-size: 1.4rem; } .pg-flow b { color: #0f1f4d; } .pg-flow small { color: #5b6785; font-size: .78rem; } .pg-flow > i { align-self: center; color: #94a3b8; font-style: normal; font-weight: 800; }
.pg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pg-b { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 8px; align-items: center; margin-bottom: 8px; } .pg-b > span { font-weight: 800; color: #0f1f4d; font-size: .86rem; } .pg-b small { grid-column: 2; color: #5b6785; font-size: .72rem; }
.pg-b__t { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #eef2f7; } .pg-b__t i.ok { background: #16a34a; } .pg-b__t i.pe { background: #f59e0b; }
.pg-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 8px; } .pg-sw.ok { background: #16a34a; } .pg-sw.pe { background: #f59e0b; }
.pg-cole, .pg-rec { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .pg-cole li, .pg-rec li { display: flex; gap: 10px; align-items: center; } .pg-cole div, .pg-rec div { flex: 1; min-width: 0; } .pg-cole b, .pg-rec b { display: block; color: #0f1f4d; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; } .pg-cole small, .pg-rec small, .pg-rec time { color: #5b6785; font-size: .75rem; }
.pg-acc { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 10px; } .pg-f label { display: grid; gap: 4px; font-weight: 700; font-size: .84rem; color: #0f1f4d; } .pg-w2 { grid-column: span 2; }
.pg-f select, .pg-f input { padding: 10px 12px; border-radius: 12px; border: 1.5px solid #e3e9f7; font: inherit; background: #fff; width: 100%; box-sizing: border-box; }
.pg-cab { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 10px; } .pg-cab b { color: #0f1f4d; font-size: 1.05rem; } .pg-cab span { color: #5b6785; font-size: .86rem; flex: 1; }
.pg-lista { display: grid; gap: 10px; }
.pg-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid #e3e9f7; border-left: 5px solid #94a3b8; border-radius: 16px; box-shadow: 0 3px 12px rgba(15,31,77,.05); }
.pg-r.is-pend { border-left-color: #f59e0b; background: #fffdf6; } .pg-r.is-ok { border-left-color: #16a34a; }
.pg-r__b b { display: block; color: #0f1f4d; } .pg-r__b small { color: #5b6785; font-size: .8rem; } .pg-r__f { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pg-chip { padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; } .pg-chip.ok { background: #dcfce7; color: #166534; } .pg-chip.es { background: #fef3c7; color: #92400e; }
.pg-r__s { display: grid; justify-items: end; gap: 2px; } .pg-r__s small { color: #5b6785; font-size: .72rem; } .pg-pill { padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800; white-space: nowrap; } .pg-pill.pe { background: #fef3c7; color: #92400e; } .pg-pill.ok { background: #dcfce7; color: #166534; }
.pg-r__a { display: grid; gap: 6px; }
.pg-mas { text-align: center; margin-top: 12px; } .pg-carga { padding: 18px; } .pg-aviso:empty { display: none; }
.pg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pg-card { text-align: left; display: grid; gap: 4px; padding: 16px; border-radius: 18px; border: 1.5px solid #e3e9f7; background: #fff; cursor: pointer; font: inherit; color: #0f1f4d; transition: .15s; box-shadow: 0 3px 12px rgba(15,31,77,.05); } .pg-card:hover { border-color: #5eead4; transform: translateY(-2px); } .pg-card.is-on { border-color: #0d9488; background: #f0fdfa; }
.pg-card > span { font-size: 1.8rem; } .pg-card b { font-size: 1rem; } .pg-card small { color: #5b6785; font-size: .82rem; line-height: 1.4; } .pg-card em { font-style: normal; color: #0d9488; font-weight: 800; font-size: .8rem; margin-top: 4px; }
@media (max-width: 900px) { .pg-grid, .pg-cards { grid-template-columns: 1fr; } .pg-r { grid-template-columns: auto 1fr; } .pg-r__s, .pg-r__a { grid-column: 1 / -1; justify-items: start; } .pg-w2 { grid-column: span 1; } .pg-flow > i { display: none; } }

/* ---- Cobro con precio y canal (pg-modal) ---- */
.pg-canal { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); vertical-align: middle; }
.pg-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(15,23,42,.55); display: grid; place-items: center; padding: 16px; overflow: auto; }
.pg-modal__box { position: relative; width: min(560px, 100%); background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); max-height: calc(100vh - 32px); overflow: auto; }
.pg-modal__box h3 { margin: 0 0 4px; padding-right: 30px; color: #0f1f4d; } .pg-modal__x { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; color: #64748b; }
.pg-tipos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; } .pg-tipos button { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border-radius: 14px; border: 1.5px solid #e3e9f7; background: #f6f8fe; font: inherit; font-weight: 700; font-size: .78rem; color: #0f1f4d; cursor: pointer; } .pg-tipos button > span { font-size: 1.3rem; } .pg-tipos button.is-on { border-color: #0d9488; background: #f0fdfa; box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.pg-mf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; } .pg-mf label { display: grid; gap: 4px; font-weight: 700; font-size: .82rem; color: #0f1f4d; } .pg-mf label[hidden] { display: none; } .pg-mf input, .pg-mf select { padding: 10px 12px; border-radius: 12px; border: 1.5px solid #e3e9f7; font: inherit; width: 100%; box-sizing: border-box; background: #fff; }
.pg-reg { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: #334155; margin-bottom: 8px; cursor: pointer; }
.pg-total { padding: 11px 14px; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; font-size: .92rem; margin-bottom: 6px; } .pg-err { margin: 0 0 8px; color: #b91c1c; font-weight: 700; font-size: .84rem; min-height: 1em; }
.pg-modal__a { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-nota { margin: 0 !important; padding: 10px 14px; border-radius: 14px; background: #f0fdfa; border: 1px solid #99f6e4; }
.pg-card[aria-pressed="true"] { border-color: #0d9488; background: #f0fdfa; box-shadow: 0 0 0 3px rgba(13,148,136,.14); }
@media (max-width: 560px) { .pg-tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pg-mf { grid-template-columns: 1fr; } .pg-mf .pg-w2 { grid-column: span 1; } }

.pg-modo { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; } .pg-modo button { padding: 8px 14px; border-radius: 999px; border: 1.5px solid #e3e9f7; background: #fff; font: inherit; font-weight: 700; font-size: .82rem; color: #475569; cursor: pointer; } .pg-modo button.is-on { border-color: #0d9488; background: #f0fdfa; color: #0f766e; }

/* ---- Responsivo: las rejillas nunca deben ensancharse más que su contenedor (móvil y tablet) ---- */
.hor, .pg, .pg-slot, .hox-slot { grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; }
.hor > *, .pg > *, .pg-slot > *, .hox-slot > *, .hor-dos > *, .pg-grid > *, .hox-grid > *, .hox-dos > * { min-width: 0; }
.hor-hero > div, .hor-k > div, .hor-regla > div, .hox-r__b, .pg-r__b, .hox-h__b { min-width: 0; overflow-wrap: anywhere; }
.hor-card, .hor-hero, .hor-regla, .hox-r, .hox-h, .pg-r, .pg-card, .pg-flow > div { max-width: 100%; box-sizing: border-box; }
.hor-sem, .hox-hm { max-width: 100%; }
.fe-panel .hor, .adm-pane .hor, .adm-pane .pg { width: 100%; }
@media (max-width: 640px) {
  .hor-hero { flex-direction: row; align-items: flex-start; padding: 14px; gap: 12px; } .hor-hero > span { font-size: 1.6rem; } .hor-hero h3 { font-size: 1.05rem; }
  .hor-card { padding: 14px; border-radius: 16px; }
  .hor-pre { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hox-pre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hor-ed__g { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hor-ed__a .btn { flex: 1 1 100%; }
  .hor-dias button { min-width: 0; flex: 1 1 calc(25% - 8px); padding: 9px 4px; }
  .hor-dias__x { display: none; }
  .hor-lista, .hor-al { max-width: 100%; }
  .hox-scopes button { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .hox-r { grid-template-columns: minmax(0, 1fr) auto; } .hox-r__a { grid-column: 1 / -1; }
  .hox-hm__f { grid-template-columns: 30px minmax(0, 1fr); } .hox-hm__e { grid-template-columns: 30px minmax(0, 1fr); } .hox-hm__f i { height: 16px; }
  .hor-sem__t em { display: none; }
  .pg-r { padding: 11px; } .pg-r__a { display: flex; flex-wrap: wrap; } .pg-r__a .btn { flex: 1 1 auto; }
  .pg-cab { flex-direction: column; align-items: flex-start; }
  .pg-b { grid-template-columns: 30px minmax(0, 1fr); }
  .pg-modal { padding: 8px; align-items: end; } .pg-modal__box { border-radius: 20px 20px 14px 14px; padding: 16px; }
  .hor-lock__box { padding: 22px 16px; border-radius: 22px; } .hor-lock h2 { font-size: 1.2rem; }
  .hor-aviso { font-size: .84rem; width: calc(100% - 16px); }
}
@media (min-width: 641px) and (max-width: 1024px) { .hor-ks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hox-pre { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hor .hor-hero h3, .hor .hor-hero p, .hor .pg-hero h3, .hor .pg-hero p { color: #fff !important; }
.hor .hor-hero > span { align-self: center; }
.hor-ed__g > label { min-width: 0; } .hor-ed__g select, .hox-campos select, .pg-f select, .pg-mf select, .hox-hf select, .hor-sel select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; text-overflow: ellipsis; }
