/* Ventana de recursos (Calendario, Manual de Marca, Lineamientos) con fondo desenfocado */
.rc-ov { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px 16px;
  background: rgba(11,31,78,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rc-ov.open { display: flex; animation: rc-in .2s ease-out; }
@keyframes rc-in { from { opacity: 0; } to { opacity: 1; } }
.rc-win { background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); width: min(1100px, 100%); height: min(92vh, 900px); display: flex; flex-direction: column; overflow: hidden; font-family: 'Jost', 'Segoe UI', Arial, sans-serif; }
.rc-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e3e8f0; }
.rc-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.rc-head h2 { font-size: 17px; color: #0B1F4E; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-act { display: flex; gap: 8px; align-items: center; }
.rc-btn { border: 1.5px solid #e3e8f0; background: #fff; color: #0B1F4E; border-radius: 9px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.rc-btn:hover { border-color: #0B1F4E; }
.rc-x { border: none; background: #eef1f5; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; cursor: pointer; color: #475569; flex-shrink: 0; }
.rc-x:hover { background: #e2e8f0; }
.rc-body { flex: 1; min-height: 0; overflow: auto; background: #eef1f5; position: relative; }
.rc-pages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px; }
.rc-pages canvas { max-width: 100%; height: auto !important; background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.15); border-radius: 4px; }
.rc-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #475569; font-size: 14.5px; text-align: center; padding: 24px; }
.rc-msg b { color: #0B1F4E; }
.rc-bar { width: 220px; height: 6px; background: #dbe3ee; border-radius: 4px; overflow: hidden; }
.rc-bar i { display: block; height: 100%; width: 0; background: #8CC63F; transition: width .2s; }
.rc-login { background: #0B1F4E; color: #fff; border: none; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.rc-flip { display: flex; align-items: center; justify-content: center; height: 100%; padding: 16px; }
.rc-nav { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 30px; padding: 6px 10px; box-shadow: 0 6px 18px rgba(15,23,42,.15); font-size: 13px; color: #475569; }
.rc-zoom { position: absolute; inset: 0; overflow: auto; cursor: grab; touch-action: pan-x pan-y; }
.rc-zoom.drag { cursor: grabbing; }
.rc-zrow { display: flex; gap: 0; width: max-content; margin: 0 auto; padding: 24px 24px 80px; }
.rc-zrow canvas { height: auto !important; background: #fff; box-shadow: 0 6px 24px rgba(15,23,42,.18); user-select: none; -webkit-user-drag: none; }
.rc-sep { width: 1px; height: 20px; background: #e3e8f0; margin: 0 2px; }
.rc-zp { min-width: 44px; text-align: center; font-weight: 700; color: #0B1F4E; cursor: pointer; }
.rc-nav .rc-zb { background: #eef1f5; color: #0B1F4E; font-size: 18px; font-weight: 700; line-height: 1; }
.rc-nav .rc-zb:hover { background: #e2e8f0; }
.rc-nav { z-index: 3; }
.rc-nav button { border: none; background: #0B1F4E; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 15px; }
/* Consulta tu solicitud */
.cs-win { width: min(720px, 100%); height: auto; max-height: 90vh; }
.cs-body { background: #f6f8fb; }
.cs-form { max-width: 420px; margin: 0 auto; padding: 26px 20px; display: flex; flex-direction: column; gap: 12px; color: #334155; font-size: 14.5px; }
.cs-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #475569; }
.cs-form input { border: 1.5px solid #e3e8f0; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px; }
.cs-form input:focus { outline: none; border-color: #2563eb; }
.cs-err { color: #dc2626; font-size: 13px; min-height: 16px; }
.cs-o { font-size: 13px; color: #64748b; text-align: center; } .cs-o a { color: #2563eb; }
.cs-list { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cs-card { background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; padding: 14px 16px; }
.cs-top { display: flex; justify-content: space-between; gap: 10px; }
.cs-code { font-size: 12px; font-weight: 700; color: #64748b; letter-spacing: .03em; }
.cs-card h3 { font-size: 15.5px; color: #0f172a; margin: 2px 0; }
.cs-meta { font-size: 12.5px; color: #64748b; }
.cs-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; }
.cs-b { font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: #eef3ff; color: #2563eb; white-space: nowrap; }
.cs-b.urg { background: #fde8e8; color: #dc2626; }
.cs-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 14px 0 6px; }
.cs-st { text-align: center; position: relative; font-size: 11px; color: #94a3b8; }
.cs-st::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: #e3e8f0; }
.cs-st:first-child::before { display: none; }
.cs-st span { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 4px; border-radius: 50%; background: #fff; border: 2px solid #e3e8f0; font-weight: 700; font-size: 11px; }
.cs-st em { font-style: normal; }
.cs-st.ok span { background: #8CC63F; border-color: #8CC63F; color: #0B1F4E; } .cs-st.ok::before, .cs-st.cur::before { background: #8CC63F; }
.cs-st.cur span { border-color: #2563eb; color: #2563eb; box-shadow: 0 0 0 4px #eef3ff; } .cs-st.cur { color: #0f172a; font-weight: 600; }
.cs-cancel { margin: 12px 0 4px; font-size: 13px; color: #64748b; background: #eef1f5; border-radius: 8px; padding: 6px 10px; }
.cs-coms { margin-top: 10px; background: #f6f8fb; border-radius: 10px; padding: 10px 12px; }
.cs-ch { font-size: 13px; font-weight: 700; color: #0B1F4E; margin-bottom: 4px; }
.cs-c { padding: 6px 0; border-bottom: 1px dashed #e3e8f0; font-size: 13px; }
.cs-c:last-child { border-bottom: none; }
.cs-cw { font-size: 12px; color: #64748b; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cs-ct { white-space: pre-wrap; color: #334155; margin-top: 2px; }
.cs-tag { font-size: 11px; font-weight: 600; background: #eef3ff; color: #2563eb; border-radius: 20px; padding: 0 8px; }
.cs-coms .cs-nota { padding: 2px 0; }
.cs-card details { margin-top: 6px; font-size: 13px; } .cs-card summary { color: #2563eb; cursor: pointer; }
.cs-hist { list-style: none; margin: 6px 0 0; padding: 0; } .cs-hist li { padding: 3px 0; color: #475569; }
.cs-nota { font-size: 13px; color: #64748b; padding: 6px 0; }
.cs-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #64748b; }
/* Documentos (Herramientas de Comunicación) */
.dc-win { width: min(860px, 100%); height: min(88vh, 820px); }
.dc-body { background: #f6f8fb; }
.dc-wrap { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 2px 4px 6px; }
.dc-top b { color: #0B1F4E; font-size: 15px; display: block; } .dc-top small { color: #64748b; font-size: 12.5px; }
.dc-adm, .dc-ro { font-size: 12px; font-weight: 600; border-radius: 20px; padding: 3px 10px; }
.dc-adm { background: #eef7e3; color: #4d7a19; } .dc-ro { background: #eef1f5; color: #64748b; }
.dc-vacio { background: #fff; border: 1.5px dashed #d5dde8; border-radius: 14px; padding: 28px; text-align: center; color: #64748b; font-size: 14px; }
.dc-c { background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; overflow: hidden; }
.dc-ch { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: none; font: inherit; cursor: pointer; text-align: left; }
.dc-ch:hover { background: #fafcf7; } .dc-st { cursor: default; }
.dc-fold { width: 30px; height: 24px; flex-shrink: 0; position: relative; background: #f5c24b; border-radius: 3px 5px 5px 5px; }
.dc-fold::before { content: ""; position: absolute; left: 0; top: -5px; width: 13px; height: 7px; background: #e0a92e; border-radius: 3px 3px 0 0; }
.dc-c.ab .dc-fold { background: #f8d475; }
.dc-cn { flex: 1; min-width: 0; font-weight: 600; color: #0B1F4E; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-n { font-size: 12px; font-weight: 700; color: #4d7a19; background: #eef7e3; border-radius: 20px; padding: 1px 9px; }
.dc-car { color: #94a3b8; font-size: 20px; line-height: 1; transition: transform .15s; } .dc-c.ab .dc-car { transform: rotate(90deg); }
.dc-cb { display: none; border-top: 1px solid #eef1f5; padding: 6px 14px 14px; } .dc-c.ab .dc-cb { display: block; }
.dc-fl { list-style: none; margin: 0; padding: 0; }
.dc-f { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #e3e8f0; }
.dc-f:last-child { border-bottom: none; }
.dc-ic { width: 38px; height: 44px; flex-shrink: 0; border-radius: 4px 10px 4px 4px; background: color-mix(in srgb, var(--c) 12%, #fff); border: 1.5px solid color-mix(in srgb, var(--c) 45%, #fff); color: var(--c); font-size: 10px; font-weight: 800; display: grid; place-items: end center; padding-bottom: 5px; }
.dc-fn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dc-fn b { font-weight: 600; font-size: 14px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-fn small { font-size: 12px; color: #64748b; }
.dc-fa { display: flex; gap: 6px; flex-shrink: 0; } .dc-fa .rc-btn { padding: 5px 9px; font-size: 12.5px; }
.dc-nota { font-size: 13px; color: #94a3b8; padding: 8px 0; }
.dc-up { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1.5px dashed #b9d98f; background: #fafdf6; border-radius: 12px; padding: 14px; cursor: pointer; color: #4d7a19; font-size: 13.5px; text-align: center; }
.dc-up small { color: #64748b; font-size: 12px; } .dc-up.sobre, .dc-up:hover { background: #eef7e3; border-color: #8CC63F; }
.dc-delc { margin-top: 8px; color: #dc2626; }
.dc-gear { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #64748b; background: #fff; border: 1.5px solid #e3e8f0; cursor: pointer; flex-shrink: 0; }
.dc-gear:hover { color: #0B1F4E; border-color: #0B1F4E; } .dc-gear:hover svg { transform: rotate(60deg); }
.dc-gear svg { width: 18px; height: 18px; transition: transform .3s; } .dc-gear[hidden] { display: none; }
@media (max-width: 560px) { .dc-win { height: 100vh; } .dc-f { flex-wrap: wrap; } .dc-fa { width: 100%; justify-content: flex-end; } }
/* Plantillas (galería) */
.pl-win { width: min(940px, 100%); height: min(88vh, 820px); }
.pl-body { background: #f6f8fb; }
.pl-top { padding: 16px 18px 4px; display: flex; flex-direction: column; } .pl-top b { color: #0B1F4E; font-size: 15px; } .pl-top span { color: #64748b; font-size: 12.5px; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 12px 18px 22px; }
.pl-card { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px rgba(15,23,42,.06); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; outline: none; }
.pl-card:hover, .pl-card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.14); }
.pl-prev { position: relative; aspect-ratio: 16 / 9; background: #eef1f5; display: grid; place-items: center; overflow: hidden; }
.pl-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-ext { font-weight: 800; font-size: 22px; color: #7c5cff; letter-spacing: .06em; }
.pl-tag { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 11px; font-weight: 700; color: #4c35c9; background: rgba(255,255,255,.9); border-radius: 20px; padding: 2px 9px; }
.pl-card figcaption { padding: 10px 12px 4px; display: flex; flex-direction: column; min-width: 0; }
.pl-card figcaption b { font-size: 14px; color: #0f172a; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-card figcaption small { font-size: 12px; color: #64748b; }
.pl-dl { margin: 8px 12px 12px; text-align: center; border-radius: 9px; padding: 7px; font-size: 13px; font-weight: 600; text-decoration: none; background: #0B1F4E; color: #fff; }
.pl-dl.off { background: #eef1f5; color: #94a3b8; }
.pl-zoom { position: fixed; right: 3vw; bottom: 4vh; width: min(520px, 46vw); background: #fff; border-radius: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.35); overflow: hidden; opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 210; }
.pl-zoom.on { opacity: 1; transform: none; }
.pl-zoom img { width: 100%; display: block; } .pl-zoom span { display: block; padding: 8px 12px; font-size: 13px; color: #334155; }
@media (max-width: 760px) { .pl-zoom { display: none; } }
@media (max-width: 560px) { .pl-win { height: 100vh; } .pl-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; } }
@media (max-width: 560px) { .cs-st em { font-size: 9.5px; } .cs-win { height: 100vh; max-height: none; } }
@media (max-width: 560px) { .rc-ov { padding: 0; } .rc-win { height: 100vh; border-radius: 0; } .rc-btn.hide-s { display: none; } }
/* Teléfonos: alto visible real (iOS) · barra del libro en una línea · campos de 16 px (sin zoom automático en iPhone) */
@supports (height: 100dvh) { @media (max-width: 560px) { .rc-win, .dc-win, .pl-win, .cs-win { height: 100dvh !important; } } }
@media (max-width: 560px) {
  .rc-nav { gap: 6px; padding: 5px 7px; font-size: 12px; white-space: nowrap; bottom: max(10px, env(safe-area-inset-bottom)); }
  .rc-nav button { width: 28px; height: 28px; }
  .rc-zp { min-width: 38px; }
  .rc-win input, .rc-win textarea, .cs-aut textarea { font-size: 16px !important; }
}
/* Decisión del jefe o encargado (enlace del correo "Aprobación necesaria") */
.cs-aut { margin-top: 12px; border: 1.5px solid #f3dca8; background: #fffaf0; border-radius: 14px; padding: 14px 16px; }
.cs-aut-h { font-weight: 700; color: #7c4a03; font-size: 15px; margin-bottom: 8px; }
.cs-aut textarea { width: 100%; min-height: 70px; resize: vertical; border: 1.5px solid #ecd9b0; border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 14px; background: #fff; box-sizing: border-box; }
.cs-aut textarea:focus { outline: none; border-color: #b45309; }
.cs-aut-b { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.cs-aut-b button { flex: 1 1 160px; border: none; border-radius: 10px; padding: 11px 14px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.cs-aut-si { background: #16a34a; color: #fff; }
.cs-aut-no { background: #fff; color: #9a3412; border: 1.5px solid #fbd3ad !important; }
.cs-aut-b button:disabled { opacity: .55; cursor: wait; }
.cs-aut-ok { background: #ecfdf3; border: 1px solid #b7ebc9; color: #166534; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.cs-aut-ok.cb { background: #fff4ea; border-color: #fbd3ad; color: #9a3412; }
.cs-aut:has(.cs-aut-ok) { border: none; background: none; padding: 0; }
/* Plantillas: agregar PowerPoint (administradores) */
.pl-top { position: relative; padding-right: 160px; }
.pl-admin { position: absolute; right: 18px; top: 16px; font-size: 12px; color: #7c5cff; text-decoration: none; font-weight: 600; }
.pl-admin:hover { text-decoration: underline; }
.pl-add { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; min-height: 220px; cursor: pointer; border: 2px dashed #c9bdff !important; background: #f7f4ff !important; box-shadow: none !important; padding: 14px; }
.pl-add:hover, .pl-add.sobre, .pl-add:focus-visible { border-color: #7c5cff !important; background: #efe9ff !important; }
.pl-add-ic { width: 46px; height: 46px; border-radius: 50%; background: #7c5cff; color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 300; margin-bottom: 4px; }
.pl-add b { color: #0B1F4E; font-size: 14px; } .pl-add small { color: #64748b; font-size: 11.5px; line-height: 1.4; }
.pl-est { font-style: normal; font-size: 11.5px; color: #7c5cff; font-weight: 600; min-height: 14px; }
@media (max-width: 560px) { .pl-top { padding-right: 18px; } .pl-admin { position: static; margin-top: 6px; } .pl-add { min-height: 160px; } }

/* Consulta · Propuesta y observaciones */
.cs-obs-btn { margin-top: 10px; width: 100%; border: 1.5px solid #c9d8f2; background: #f5f9ff; color: #0B1F4E; font: inherit; font-weight: 700; font-size: 13.5px; border-radius: 10px; padding: 9px 12px; cursor: pointer; text-align: left; }
.cs-obs-btn:hover, .cs-obs-btn.on { background: #eaf2ff; border-color: #2563eb; }
.cs-obs { margin-top: 8px; border: 1px solid #dbe5f5; background: #fbfdff; border-radius: 12px; padding: 12px 14px; }
.cs-obs-h { font-weight: 700; color: #0B1F4E; font-size: 13.5px; margin: 4px 0 8px; }
.cs-obs-h + .cs-nota { margin-bottom: 10px; }
.cs-arte { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.cs-af { margin: 0; background: #fff; border: 1px solid #e3e8f0; border-radius: 10px; overflow: hidden; }
.cs-ap { display: grid; place-items: center; height: 110px; background: #eef2f8; color: #4f46e5; font-weight: 800; text-decoration: none; }
.cs-ap img { width: 100%; height: 100%; object-fit: cover; }
.cs-af figcaption { padding: 7px 9px 9px; font-size: 12px; }
.cs-af b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #0f172a; }
.cs-af small { color: #64748b; display: block; }
.cs-aa { display: flex; gap: 10px; margin-top: 4px; } .cs-aa a { color: #2563eb; font-weight: 600; text-decoration: none; } .cs-aa a:hover { text-decoration: underline; }
.cs-hilo { background: #f6f8fb; border-radius: 10px; padding: 6px 12px; margin-bottom: 10px; }
.cs-hilo .cs-c.yo { background: #f3f9ec; border-radius: 8px; padding: 6px 8px; border-bottom: 0; margin: 4px -4px; }
.cs-obs-add label { display: block; font-size: 12.5px; color: #64748b; margin-bottom: 6px; }
.cs-obs-add select { margin-left: 6px; border: 1.5px solid #e3e8f0; border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13px; max-width: 100%; }
.cs-obs-add textarea { width: 100%; min-height: 78px; border: 1.5px solid #e3e8f0; border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 14px; resize: vertical; box-sizing: border-box; }
.cs-obs-add textarea:focus { outline: none; border-color: #2563eb; }
.cs-ok { background: #ecfdf3; color: #166534; border-radius: 8px; padding: 7px 10px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
@media (max-width: 560px) { .cs-arte { grid-template-columns: 1fr 1fr; } .cs-obs-add textarea, .cs-obs-add select { font-size: 16px; } }

/* Calendario como imagen (reemplazable por administradores) */
.rc-img { position: absolute; inset: 0 0 56px 0; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 18px; background: #eef1f5; }
.rc-img img { width: 100%; max-width: none; height: auto; display: block; border-radius: 8px; box-shadow: 0 6px 24px rgba(11,31,78,.14); cursor: zoom-in; background: #fff; }
.rc-img.zoom { justify-content: flex-start; } .rc-img.zoom img { cursor: grab; } .rc-img.drag img { cursor: grabbing; }
.rc-cambiar { background: #fff8e6; border-color: #f5c24b; color: #7a5b00; }
.rc-cambiar:hover { border-color: #b8860b; }
@media (max-width: 560px) { .rc-img { padding: 8px; } .rc-cambiar { font-size: 12px; padding: 5px 8px; } }
