/* ===== Temas visuales (2026-10-16) =====
   Se activan con <html data-tema="turno"> o <html data-tema="claro">.
   Solo cambian colores, letra, espacios y formas; la lógica es la misma. */

/* ---------- Tema "Turno": cabina de operación ---------- */
html[data-tema="turno"] {
  --bg: #edf1f2;
  --surface: #ffffff;
  --surface-2: #f4f7f8;
  --border: #d9e1e4;
  --ink: #10232b;
  --ink-soft: #5a6e76;
  --accent: #0a8f98;
  --accent-ink: #ffffff;
  --accent-soft: #dff0f1;
  --danger: #cf3f34;
  --warn: #b97800;
  --ok: #1f8a4c;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(16,35,43,.04), 0 2px 6px rgba(16,35,43,.04);
  --petroleo: #0e2f3a;
  --petroleo-2: #164150;
}
html[data-tema="turno"] body { font-family: 'Instrument Sans', system-ui, sans-serif; font-feature-settings: "tnum"; letter-spacing: -0.003em; }
html[data-tema="turno"] header.topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: .7rem 1.5rem; }
html[data-tema="turno"] header.topbar .brand-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
html[data-tema="turno"] .panel { border: 1px solid var(--border); box-shadow: var(--shadow); padding: 1.5rem; }
html[data-tema="turno"] .panel h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
html[data-tema="turno"] .panel h3 { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink); font-weight: 600; }
html[data-tema="turno"] label { font-weight: 600; font-size: .85rem; }
html[data-tema="turno"] input, html[data-tema="turno"] select, html[data-tema="turno"] textarea { border-radius: 10px; border-color: #cfd9dd; padding: .62rem .8rem; }
html[data-tema="turno"] input:focus, html[data-tema="turno"] select:focus, html[data-tema="turno"] textarea:focus { outline: 3px solid rgba(10,143,152,.18); border-color: var(--accent); }
html[data-tema="turno"] button.btn, html[data-tema="turno"] label.btn { border-radius: 10px; font-weight: 600; }
html[data-tema="turno"] button.btn:not(.secondary):not(.danger) { background: var(--petroleo); }
html[data-tema="turno"] button.btn:not(.secondary):not(.danger):hover { background: var(--petroleo-2); filter: none; }
html[data-tema="turno"] #btn-submit-ticket { background: var(--accent); }
html[data-tema="turno"] th { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); }
html[data-tema="turno"] td { padding-top: .75rem; padding-bottom: .75rem; }
html[data-tema="turno"] tr:hover td { background: #f7fafa; }
html[data-tema="turno"] .badge { border-radius: 6px; font-weight: 600; padding: .2rem .5rem; }
html[data-tema="turno"] .badge.danger { background: #fbe4e1; }
/* pestañas públicas */
html[data-tema="turno"] nav.tabs { background: var(--petroleo); border-bottom: 0; padding: .55rem 1.5rem; }
html[data-tema="turno"] nav.tabs button { color: #b6cdd4; border-radius: 8px; font-weight: 600; }
html[data-tema="turno"] nav.tabs button:not(.active):hover { background: var(--petroleo-2); color: #fff; }
html[data-tema="turno"] nav.tabs button.active { background: #ffffff; color: var(--petroleo); }
/* menú lateral (personal) */
html[data-tema="turno"] body.con-menu nav.tabs { background: var(--petroleo); border-right: 0; padding-top: 18px; }
html[data-tema="turno"] body.con-menu nav.tabs .menu-titulo { color: #e6f0f2; }
html[data-tema="turno"] body.con-menu nav.tabs .menu-titulo svg { color: #7fb3bd; }
html[data-tema="turno"] body.con-menu nav.tabs .menu-titulo:hover { background: var(--petroleo-2); }
html[data-tema="turno"] body.con-menu nav.tabs .chev { border-color: #7fb3bd; }
html[data-tema="turno"] body.con-menu nav.tabs .menu-items button { color: #a9c3ca; background: transparent; }
html[data-tema="turno"] body.con-menu nav.tabs .menu-items button:not(.active):hover { background: var(--petroleo-2); color: #fff; }
html[data-tema="turno"] body.con-menu nav.tabs .menu-items button.active { background: rgba(10,143,152,.28); color: #fff; box-shadow: inset 3px 0 0 #3cc7cf; border-radius: 6px 8px 8px 6px; }
html[data-tema="turno"] body.con-menu nav.tabs .menu-grupo.solo:has(button[data-tab].active) .menu-titulo { background: rgba(10,143,152,.28); color: #fff; box-shadow: inset 3px 0 0 #3cc7cf; }
/* Reportar */
html[data-tema="turno"] section[data-panel="reportar"] .panel > h2:first-child { font-size: 1.8rem; letter-spacing: -0.03em; }
html[data-tema="turno"] .chips button { border-radius: 10px; font-weight: 600; border-color: #cfd9dd; padding: .55rem 1rem; }
html[data-tema="turno"] .chips button.on { background: var(--petroleo); border-color: var(--petroleo); color: #fff; }
html[data-tema="turno"] .chips-campana button { height: 96px; border-radius: 14px; }
html[data-tema="turno"] .chips-campana button.on { background: #fff; color: var(--ink); border: 2px solid var(--petroleo); box-shadow: 0 0 0 3px rgba(14,47,58,.10); }
html[data-tema="turno"] .problema-btn { border-radius: 14px; min-height: 72px; border-color: #cfd9dd; font-size: .95rem; }
html[data-tema="turno"] .problema-btn.on { background: var(--petroleo); border-color: var(--petroleo); color: #fff; }
html[data-tema="turno"] .problema-btn.urgente { background: #fff; border-color: #f0c1bb; color: #b3362c; box-shadow: inset 4px 0 0 var(--danger); }
html[data-tema="turno"] .problema-btn.urgente.on { background: var(--danger); color: #fff; border-color: var(--danger); }
html[data-tema="turno"] .chat-fab { background: var(--petroleo); }
html[data-tema="turno"] .chat-head { background: var(--petroleo); color: #fff; }
html[data-tema="turno"] .chat-head .hint, html[data-tema="turno"] .chat-head .chat-x, html[data-tema="turno"] .chat-head .chat-back { color: #c6dbe0; }
html[data-tema="turno"] .msg.mio .burbuja { background: var(--petroleo); border-color: var(--petroleo); }
html[data-tema="turno"] .kpi { background: #fff; border: 1px solid var(--border); }

/* ---------- Tema "Claro": amplio y suave ---------- */
html[data-tema="claro"] {
  --bg: #f6f8f9;
  --surface: #ffffff;
  --surface-2: #f1f4f5;
  --border: #e3e8ea;
  --ink: #17242a;
  --ink-soft: #64757b;
  --accent: #0b9aa2;
  --accent-ink: #ffffff;
  --accent-soft: #e3f4f5;
  --danger: #d9453b;
  --warn: #c07f00;
  --ok: #23955a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(23,36,42,.04), 0 8px 24px rgba(23,36,42,.05);
}
html[data-tema="claro"] body { font-family: 'Figtree', system-ui, sans-serif; }
html[data-tema="claro"] header.topbar { border-bottom: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); padding: .8rem 1.5rem; }
html[data-tema="claro"] header.topbar .brand-title { font-weight: 700; }
html[data-tema="claro"] .panel { border: 0; padding: 1.75rem; }
html[data-tema="claro"] .panel h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
html[data-tema="claro"] .panel h3 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 1.02rem; }
html[data-tema="claro"] input, html[data-tema="claro"] select, html[data-tema="claro"] textarea { border-radius: 12px; background: var(--surface-2); border-color: transparent; padding: .7rem .9rem; }
html[data-tema="claro"] input:focus, html[data-tema="claro"] select:focus, html[data-tema="claro"] textarea:focus { background: #fff; border-color: var(--accent); outline: 3px solid var(--accent-soft); }
html[data-tema="claro"] button.btn, html[data-tema="claro"] label.btn { border-radius: 999px; font-weight: 700; padding-left: 1.3rem; padding-right: 1.3rem; }
html[data-tema="claro"] button.btn.btn-sm, html[data-tema="claro"] label.btn.btn-sm { padding: .4rem .9rem; }
html[data-tema="claro"] button.btn.secondary { background: #fff; }
html[data-tema="claro"] th { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .8rem; border-bottom-color: var(--border); }
html[data-tema="claro"] td { border-bottom-color: #eef2f3; padding-top: .8rem; padding-bottom: .8rem; }
html[data-tema="claro"] .badge { padding: .25rem .65rem; }
html[data-tema="claro"] nav.tabs { background: transparent; border-bottom: 0; justify-content: center; padding-top: .2rem; }
html[data-tema="claro"] nav.tabs button { font-size: .9rem; }
html[data-tema="claro"] nav.tabs button.active { box-shadow: 0 4px 14px rgba(11,154,162,.28); }
html[data-tema="claro"] body.con-menu nav.tabs { background: #fff; border-right: 1px solid var(--border); justify-content: flex-start; }
html[data-tema="claro"] body.con-menu nav.tabs .menu-items button.active { border-radius: 999px; }
html[data-tema="claro"] section[data-panel="reportar"] .panel > h2:first-child { font-size: 2rem; letter-spacing: -0.03em; }
html[data-tema="claro"] .chips button { border-radius: 999px; background: var(--surface-2); border-color: transparent; font-weight: 600; }
html[data-tema="claro"] .chips button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
html[data-tema="claro"] .chips-campana button { border-radius: 18px; height: 100px; background: var(--surface-2); }
html[data-tema="claro"] .chips-campana button.on { background: #fff; color: var(--ink); border: 2px solid var(--accent); box-shadow: 0 6px 18px rgba(11,154,162,.18); }
html[data-tema="claro"] .problema-btn { border-radius: 18px; background: var(--surface-2); border-color: transparent; min-height: 74px; }
html[data-tema="claro"] .problema-btn.on { background: var(--accent-soft); border-color: var(--accent); color: #076c72; }
html[data-tema="claro"] .problema-btn.urgente { background: #fdf0ee; border-color: transparent; }
html[data-tema="claro"] .problema-btn.urgente.on { border-color: var(--danger); }
html[data-tema="claro"] .chat-panel { border-radius: 22px; }
html[data-tema="claro"] .problema-btn.urgente.on { background: #fbe0dc; color: #a33a31; }
html[data-tema="turno"] .folio, html[data-tema="turno"] td.mono { font-size: .82rem; }

/* ===== Elementos nuevos (todas las versiones) ===== */
.rep-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 2.4rem 2rem 4.2rem; margin: -0.5rem 0 0; border-radius: 22px; color: #fff;
  background-color: #0e2f3a;
  background-image: repeating-radial-gradient(circle at 105% 120%, rgba(60,199,207,.16) 0 2px, transparent 2px 34px);
}
.rep-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.rep-hero p { margin: 0; max-width: 46ch; color: #bcd3d9; font-size: 1rem; line-height: 1.5; }
.rep-hero-estado { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .88rem; font-weight: 600; }
.rep-hero-estado .punto { width: 9px; height: 9px; border-radius: 50%; background: #5fe3a1; box-shadow: 0 0 0 4px rgba(95,227,161,.18); }
.rep-hero-estado.off .punto { background: #a7b6bb; box-shadow: none; }
.panel-reporte { position: relative; margin-top: -2.6rem; }
.panel-reporte > h2 { display: none; }
html:not([data-tema]) .rep-hero { display: none; }
html:not([data-tema]) .panel-reporte { margin-top: 0; }
html:not([data-tema]) .panel-reporte > h2 { display: block; }
@media (max-width: 640px) {
  .rep-hero { padding: 1.6rem 1.2rem 3.4rem; border-radius: 16px; }
  .panel-reporte { margin-top: -2rem; }
}

.tk-resumen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin: .2rem 0 1.1rem; }
.tk-resumen[hidden] { display: none; }
.tk-res { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .75rem .9rem; box-shadow: inset 0 3px 0 var(--accent); }
.tk-res.danger { box-shadow: inset 0 3px 0 var(--danger); }
.tk-res.warn { box-shadow: inset 0 3px 0 #e2a400; }
.tk-res.neutral { box-shadow: inset 0 3px 0 #8fa3aa; }
.tk-res.info { box-shadow: inset 0 3px 0 #5b7cfa; }
.tk-res:hover { border-color: #b9c8cd; }
.tk-res.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tk-res.on .tk-res-l { color: #c9d7db; }
.tk-res-n { font-size: 1.7rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.tk-res-l { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.tk-res.danger:not(.on) .tk-res-n { color: var(--danger); }
@media (max-width: 760px) { .tk-resumen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tickets-table tr.sla-danger td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
.tickets-table tr.sla-warn td:first-child { box-shadow: inset 4px 0 0 #e2a400; }
.tickets-table tr.sla-neutral td:first-child { box-shadow: inset 4px 0 0 #8fa3aa; }
.tickets-table tr.sla-ok td:first-child { box-shadow: inset 4px 0 0 #2bb673; }

.menu-usuario { display: none; }
body.con-menu .menu-usuario:not(:empty) { display: flex; align-items: center; gap: .65rem; margin-top: auto; padding: .8rem .6rem .2rem; border-top: 1px solid var(--border); }
.mu-ini { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; background: var(--accent); color: #fff; flex-shrink: 0; }
.mu-txt { display: flex; flex-direction: column; min-width: 0; font-size: .85rem; }
.mu-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-txt span { color: var(--ink-soft); font-size: .76rem; }
html[data-tema="turno"] body.con-menu .menu-usuario { border-top-color: rgba(255,255,255,.12); color: #fff; }
html[data-tema="turno"] .mu-txt span { color: #9fbac2; }

/* Turno: más acabado */
html[data-tema="turno"] header.topbar { box-shadow: 0 1px 0 var(--border); }
html[data-tema="turno"] .panel-reporte { box-shadow: 0 10px 30px rgba(14,47,58,.10); border: 0; }
html[data-tema="turno"] section[data-panel="tickets"] > .panel, html[data-tema="turno"] section[data-panel="inventario"] > .panel { border-radius: 16px; }
html[data-tema="turno"] .seg button.active { background: var(--petroleo); }
html[data-tema="turno"] .tickets-table td { border-bottom-color: #e8eef0; }
html[data-tema="turno"] .badge.ok { background: #e2f5ea; color: #17804a; }
html[data-tema="turno"] .badge.warn { background: #fff2cf; color: #9a6400; }
html[data-tema="turno"] .modal { border-radius: 18px; }
html[data-tema="turno"] .modal h2 { letter-spacing: -0.02em; }
html[data-tema="claro"] .rep-hero { background-color: #0b9aa2; background-image: repeating-radial-gradient(circle at 105% 120%, rgba(255,255,255,.16) 0 2px, transparent 2px 34px); }
html[data-tema="claro"] .rep-hero p { color: #e2f6f7; }
html[data-tema="claro"] .tk-res { border: 0; background: #fff; box-shadow: 0 1px 2px rgba(23,36,42,.05), inset 0 3px 0 var(--accent); }
/* La categoría ya va en el título ("Hardware — Diadema"): se quita la columna repetida */
html[data-tema] .tickets-table th:nth-child(3), html[data-tema] .tickets-table td:nth-child(3) { display: none; }
@media (max-width: 640px) {
  html[data-tema] header.topbar .brand-title, html[data-tema] header.topbar .brand-sub { display: none; }
  html[data-tema] header.topbar { padding: .6rem 1rem; }
  html[data-tema] #user-chip > span { display: none; }
  html[data-tema] .chat-fab small { display: none; }
  html[data-tema] .tk-res { padding: .6rem .7rem; }
  html[data-tema] .tk-res-n { font-size: 1.4rem; }
}

/* ===== Campaña de ciberseguridad en la portada de Reportar ===== */
.rep-hero { align-items: stretch; }
.rep-hero-txt { flex: 1 1 340px; display: flex; flex-direction: column; justify-content: flex-end; gap: .9rem; }
.rep-hero-txt .rep-hero-estado { align-self: flex-start; }
.ciber { flex: 0 1 400px; position: relative; background: #fff; color: #10232b; border-radius: 16px; padding: 1rem 1.15rem 2.2rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); min-height: 290px; }
.ciber-cab { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; color: #b3362c; margin-bottom: .55rem; }
.ciber-slide { display: none; }
.ciber-slide.on { display: block; animation: ciberEntra .35s ease; }
@keyframes ciberEntra { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ciber-slide.on { animation: none; } }
.ciber h2 { margin: 0 0 .35rem; font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.015em; }
.ciber p { margin: 0 0 .65rem; font-size: .86rem; line-height: 1.45; color: #3f545c; }
.ciber-dominios { list-style: none; margin: 0 0 .7rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.ciber-dominios li { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .6rem; border-radius: 8px; background: #e2f5ea; color: #17673e; font-weight: 700; font-size: .84rem; font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.ciber-correo, .ciber-chat { display: flex; flex-direction: column; gap: .3rem; padding: .55rem .7rem; border-radius: 10px; background: #fdf1ef; border: 1px dashed #e7a79f; }
.ciber-de { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .74rem; color: #4a2f2c; word-break: break-all; }
.ciber-de mark { background: #f8c9c2; color: #8e241b; padding: 0 2px; border-radius: 3px; }
.ciber-tag { font-size: .74rem; font-weight: 700; color: #b3362c; }
.ciber-burbuja { align-self: flex-start; background: #fff; border: 1px solid #ecd3cf; border-radius: 12px 12px 12px 4px; padding: .4rem .65rem; font-size: .82rem; }
.ciber-btn { border: 0; background: #b3362c; color: #fff; font: inherit; font-weight: 700; font-size: .86rem; border-radius: 10px; padding: .55rem .9rem; cursor: pointer; }
.ciber-btn:hover { background: #962b22; }
.ciber-puntos { position: absolute; left: 1.15rem; bottom: .8rem; display: flex; gap: .35rem; }
.ciber-puntos button { width: 22px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: #d5dfe2; cursor: pointer; }
.ciber-puntos button.on { background: #10232b; width: 30px; }
@media (max-width: 860px) { .ciber { flex-basis: 100%; } }

/* ===== Bandeja más clara + ficha del ticket ===== */
.tk-orienta { margin: -.4rem 0 1rem; font-size: 1rem; color: var(--ink); }
.tk-orienta .t-danger { color: var(--danger); }
.tk-orienta .t-warn { color: #9a6400; }
.link-folio { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); font-weight: 700; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: rgba(10,143,152,.35); text-underline-offset: 3px; }
.link-folio:hover { text-decoration-color: currentColor; }
/* En los estilos nuevos la tabla muestra lo esencial; lo demás está en la ficha */
html[data-tema] .tickets-table th:nth-child(5), html[data-tema] .tickets-table td:nth-child(5),
html[data-tema] .tickets-table th:nth-child(9), html[data-tema] .tickets-table td:nth-child(9) { display: none; }
.ficha-cab { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ficha-titulo { margin: .7rem 0 .3rem; font-size: 1.15rem; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.ficha-desc { margin: 0 0 .6rem; white-space: pre-wrap; color: var(--ink-soft); }
.ficha-datos { margin: .8rem 0; border-top: 1px solid var(--border); }
.ficha-fila { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.ficha-fila > span { color: var(--ink-soft); font-weight: 600; }
.ficha-sub { margin: 1rem 0 .5rem; font-size: .95rem; }
.ficha .espera-info { max-width: none; }

/* ===== Toque tecnológico (Turno) ===== */
html[data-tema="turno"] .rep-hero h1, html[data-tema="turno"] .tk-res-n { font-family: 'Space Grotesk', 'Instrument Sans', sans-serif; }
html[data-tema="turno"] .rep-hero::before { content: ""; }
html[data-tema="turno"] .rep-hero { position: relative; overflow: hidden;
  background-image: linear-gradient(rgba(60,199,207,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(60,199,207,.07) 1px, transparent 1px), repeating-radial-gradient(circle at 105% 120%, rgba(60,199,207,.15) 0 2px, transparent 2px 34px);
  background-size: 28px 28px, 28px 28px, auto; }
html[data-tema="turno"] .rep-hero-estado { font-family: 'IBM Plex Mono', monospace; font-size: .8rem; letter-spacing: .01em; }
.ciber-pie { position: absolute; left: 1.15rem; right: 1.15rem; bottom: .7rem; display: flex; align-items: center; justify-content: space-between; }
.ciber-pie .ciber-puntos { position: static; }
.ciber-otro { border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 700; color: #0a8f98; cursor: pointer; padding: .2rem 0; }
.ciber-otro:hover { text-decoration: underline; }
.ciber-teclas { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: #3f545c; }
.ciber-teclas kbd { font-family: 'IBM Plex Mono', monospace; font-size: .95rem; padding: .45rem .8rem; border-radius: 8px; background: #f1f5f6; border: 1px solid #cfd9dd; box-shadow: inset 0 -2px 0 #cfd9dd; color: #10232b; }
.ciber-puntos button { width: 18px; }
.ciber-puntos button.on { width: 26px; }
.tickets-table .link-folio { white-space: nowrap; font-size: .8rem; }

/* ===== Centro de seguridad: "Que no te engañen" ===== */
.seg-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: end; padding: 2.4rem 2rem; border-radius: 22px; margin-bottom: 1.25rem; color: #fff;
  background-color: #2a0f12; background-image: linear-gradient(rgba(255,120,100,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,120,100,.07) 1px, transparent 1px); background-size: 28px 28px; }
.seg-hero h1 { margin: 0 0 .6rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; letter-spacing: -0.04em; font-family: 'Space Grotesk', 'Instrument Sans', sans-serif; }
.seg-hero p { margin: 0 0 1.2rem; color: #f0cfc9; max-width: 48ch; line-height: 1.5; }
.seg-hero-acciones { display: flex; flex-wrap: wrap; gap: .6rem; }
.seg-cta { display: inline-flex; align-items: center; border: 0; border-radius: 10px; padding: .7rem 1.1rem; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; background: #e5483b; color: #fff; text-decoration: none; }
.seg-cta:hover { background: #c93b2f; }
.seg-cta.sec { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.seg-hero .seg-cta.sec { color: #fff; }
.seg-hero-dominios { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.seg-mini { font-size: .82rem; color: #f0cfc9; }
.seg-hero .ciber-dominios { margin: 0; }
.seg-bloque h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.seg-anatomia { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.4rem; align-items: start; }
.seg-mail { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(16,35,43,.08); }
.seg-mail-cab { background: var(--surface-2); padding: .8rem 1rem; font-size: .88rem; display: flex; flex-direction: column; gap: .35rem; border-bottom: 1px solid var(--border); }
.seg-k { color: var(--ink-soft); font-weight: 600; margin-right: .2rem; }
.seg-mail-cuerpo { padding: .4rem 1rem 1rem; font-size: .92rem; line-height: 1.5; }
.seg-marca { font: inherit; color: inherit; background: #fde2de; border: 0; border-bottom: 2px solid #e5483b; padding: 0 .2rem; border-radius: 3px; cursor: pointer; }
.seg-marca.on { background: #e5483b; color: #fff; }
.seg-boton-falso { background: #1f6feb; color: #fff; border: 0; border-radius: 8px; padding: .5rem 1rem; font-weight: 700; outline: 3px dashed #e5483b; outline-offset: 3px; }
.seg-boton-falso.on { background: #e5483b; }
.seg-senales { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: .5rem; }
.seg-senales li { counter-increment: s; position: relative; padding: .7rem .9rem .7rem 2.8rem; border-radius: 12px; border: 1px solid var(--border); font-size: .9rem; line-height: 1.45; cursor: pointer; background: var(--surface); }
.seg-senales li::before { content: counter(s); position: absolute; left: .8rem; top: .7rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fde2de; color: #b3362c; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.seg-senales li.on { border-color: #e5483b; background: #fff6f4; }
.seg-senales li.on::before { background: #e5483b; color: #fff; }
.seg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.seg-grid > .panel { margin-bottom: 0; }
.seg-grid + .panel { margin-top: 1.25rem; }
.seg-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.seg-check li { position: relative; padding-left: 1.9rem; line-height: 1.45; font-size: .93rem; }
.seg-check li::before { content: ""; position: absolute; left: 0; top: .1rem; width: 1.2rem; height: 1.2rem; border-radius: 6px; background: #e2f5ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317804a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat; }
.seg-cai { background: #fff6f4; border-color: #f3cdc7; }
.seg-pasos { margin: 0 0 1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; line-height: 1.45; font-size: .93rem; }
.seg-quiz { max-width: 640px; }
.quiz-msg { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; background: var(--surface-2); }
.quiz-tipo { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.quiz-de { font-family: 'IBM Plex Mono', monospace; font-size: .85rem; margin: .35rem 0; word-break: break-all; }
.quiz-msg p { margin: .2rem 0 0; line-height: 1.5; }
.quiz-opc { display: flex; gap: .6rem; margin: .8rem 0; }
.quiz-b { flex: 1; border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: .8rem; font: inherit; font-weight: 700; cursor: pointer; }
.quiz-b:hover:not(:disabled) { border-color: var(--ink); }
.quiz-b.bien { background: #e2f5ea; border-color: #2bb673; }
.quiz-b.mal { background: #fde2de; border-color: #e5483b; }
.quiz-res { padding: .8rem 1rem; border-radius: 12px; line-height: 1.5; font-size: .92rem; }
.quiz-res.bien { background: #e9f8ef; }
.quiz-res.mal { background: #fff1ee; }
.quiz-res .seg-cta { margin-left: .4rem; padding: .35rem .8rem; font-size: .85rem; }
.quiz-fin strong { font-size: 2.2rem; font-family: 'Space Grotesk', sans-serif; }
@media (max-width: 820px) { .seg-hero, .seg-anatomia, .seg-grid { grid-template-columns: 1fr; } .seg-hero { padding: 1.6rem 1.2rem; } }
.chat-sonido { font-size: 16px; }
body:not(.con-menu) nav.tabs button[data-tab] { order: 4; }
body:not(.con-menu) nav.tabs button[data-tab="reportar"] { order: 1; }
body:not(.con-menu) nav.tabs button[data-tab="consultar"] { order: 2; }
body:not(.con-menu) nav.tabs button[data-tab="seguridad"] { order: 3; }
.ciber-dominios li small { font-family: inherit; font-weight: 600; font-size: .7rem; opacity: .75; margin-left: .25rem; }

/* ===== Avisos en Teams (Administración) ===== */
.teams-estado { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 .8rem; }
.teams-pasos { margin: 0 0 1rem; background: var(--surface-2); border-radius: 10px; padding: .6rem .9rem; }
.teams-pasos summary { cursor: pointer; font-weight: 700; }
.teams-pasos ol { margin: .6rem 0 .2rem; padding-left: 1.2rem; line-height: 1.6; font-size: .92rem; }
.teams-eventos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .4rem .9rem; }
.teams-ev { display: flex; align-items: center; gap: .5rem; font-weight: 500; margin: 0; cursor: pointer; }
.teams-ev input { width: auto; margin: 0; }

/* ===== Mejoras 2026-10-18 ===== */
#info-modal { z-index: 1000; }
.t-danger { color: var(--danger); }
/* Avisos generales */
.avisos-publicos { display: grid; gap: .6rem; margin: 0 0 1rem; }
.aviso-pub { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: #fff7e0; border: 1px solid #ecd9a0; color: #4a3b10; }
.aviso-pub.tuyo { border-color: #d9a400; box-shadow: 0 0 0 3px rgba(217,164,0,.18); }
.aviso-pub p { margin: .2rem 0 .3rem; color: #2c2408; }
.aviso-pub .hint { color: #6b5a25; }
.aviso-ico { font-size: 1.3rem; line-height: 1.2; }
.tk-cab { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; }
.tk-cab h2 { margin: 0 !important; }
.avisos-staff { display: grid; gap: .4rem; margin-bottom: .9rem; }
.aviso-staff { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .75rem; border-radius: 10px; background: #fff7e0; border: 1px solid #ecd9a0; font-size: .9rem; }
.aviso-form .grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
/* Foto al reportar y duplicado */
.adjunto-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.adjunto-mini { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; vertical-align: middle; margin-right: .3rem; border: 1px solid var(--border); }
.rep-duplicado { margin: .8rem 0; padding: .9rem 1rem; border-radius: 14px; background: #eef6ff; border: 1px solid #bcd6f2; }
.rep-duplicado p { margin: .3rem 0 .6rem; }
/* Ficha: foto, notas internas */
.ficha-foto img { max-width: 220px; max-height: 160px; border-radius: 10px; border: 1px solid var(--border); display: block; }
.nota-form { margin-top: 1rem; display: grid; gap: .4rem; }
.nota-form textarea { width: 100%; }
/* Chat: acciones de soporte y asistencia remota */
.chat-soporte-acc { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.msg.remota { max-width: 92%; }
.remota-card { background: #eaf6f7; border: 1px solid #b7dfe2; border-radius: 14px; padding: .7rem .85rem; font-size: .88rem; color: var(--ink); }
.msg.mio .remota-card { background: #e3f1f2; }
.remota-card p { margin: .3rem 0; }
.remota-card ol { margin: .3rem 0 .3rem 1.1rem; padding: 0; }
.remota-card li { margin: .2rem 0; }
.remota-card kbd, .remota-pasos kbd { display: inline-block; padding: 0 .35rem; border: 1px solid #b9c6cc; border-bottom-width: 2px; border-radius: 5px; background: #fff; font: 600 .78rem system-ui, sans-serif; }
.remota-codigo { display: inline-block; font: 700 1.25rem ui-monospace, Menlo, monospace; letter-spacing: .08em; background: #fff; border: 1px solid #b7dfe2; border-radius: 8px; padding: .05rem .5rem; }
.remota-card.vencida { opacity: .6; }
.remota-card.vencida .remota-codigo { text-decoration: line-through; }
.remota-pasos { margin: 0 0 1rem 1.1rem; padding: 0; line-height: 1.6; }
.ct-form .grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* Reportes */
.rp-filtros { align-items: center; margin-bottom: 1rem; }
.rp-label { display: flex; align-items: center; gap: .4rem; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 1.5rem; }
.sla-dias { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.sla-dia { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border: 1px solid var(--border); border-radius: 999px; font-weight: 500 !important; }
@media (max-width: 640px) {
  .aviso-staff { flex-direction: column; align-items: flex-start; }
  .rp-grid { grid-template-columns: 1fr; }
}
