/* ==========================================================================
   Urbizi — Soporte TI (tema del portal de clientes de osTicket)
   Se carga después de theme.css y lo sobrescribe. Noviembre 2026.
   Colores de marca tomados del logotipo: azul #003585, verde #7BAF1E.
   ========================================================================== */

:root {
  --urb-blue: #003585;
  --urb-blue-700: #002a6b;
  --urb-blue-50: #eef3fa;
  --urb-green: #7baf1e;
  --urb-green-700: #5f8a12;
  --urb-ink: #18202e;
  --urb-ink-2: #3d4757;
  --urb-muted: #667085;
  --urb-line: #dfe3ea;
  --urb-line-2: #eceff4;
  --urb-bg: #f4f6f9;
  --urb-surface: #ffffff;
  --urb-danger: #b42318;
  --urb-danger-bg: #fef3f2;
  --urb-warn: #8a5a00;
  --urb-warn-bg: #fff8e6;
  --urb-ok: #1f6b2c;
  --urb-ok-bg: #eff8ec;
  --urb-radius: 6px;
  --urb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --urb-wrap: 1180px;
  --urb-gutter: 32px;
}

/* --- Base ---------------------------------------------------------------- */
html { background: var(--urb-bg); -webkit-text-size-adjust: 100%; }
body.urb {
  margin: 0;
  background: var(--urb-bg);
  color: var(--urb-ink);
  font-family: var(--urb-font);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.urb *, .urb *::before, .urb *::after { box-sizing: border-box; }
.urb a, .urb .link { color: var(--urb-blue); text-decoration: none; }
.urb a:hover, .urb .link:hover { color: var(--urb-blue-700); text-decoration: underline; }
.urb a:focus-visible, .urb button:focus-visible, .urb input:focus-visible,
.urb select:focus-visible, .urb textarea:focus-visible {
  outline: 2px solid var(--urb-blue); outline-offset: 2px;
}
.urb img { max-width: 100%; height: auto; }
.urb hr { border: 0; border-top: 1px solid var(--urb-line); margin: 24px 0; }

.urb h1, .urb #content h1 {
  font-size: 28px; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em;
  color: var(--urb-ink); margin: 0 0 8px;
}
.urb h2, .urb #content h2, .urb .subject {
  font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--urb-ink); margin: 0 0 12px;
}
.urb h3, .urb #content h3 { font-size: 16px; font-weight: 600; color: var(--urb-ink); margin: 0 0 8px; }
.urb p { margin: 0 0 12px; }

.urb-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.urb-skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--urb-blue); color: #fff !important; padding: 8px 12px; border-radius: var(--urb-radius);
}
.urb-skip:focus { top: 12px; }

.urb-wrap {
  width: 100%; max-width: calc(var(--urb-wrap) + var(--urb-gutter) * 2);
  margin: 0 auto; padding-left: var(--urb-gutter); padding-right: var(--urb-gutter);
}

/* --- Encabezado ---------------------------------------------------------- */
.urb-header {
  background: var(--urb-surface);
  border-bottom: 1px solid var(--urb-line);
  position: relative; z-index: 20;
}
.urb-header::before { /* línea de marca */
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--urb-blue) 0 78%, var(--urb-green) 78% 100%);
}
.urb-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.urb-brand { display: flex; align-items: center; gap: 12px; color: var(--urb-ink) !important; text-decoration: none !important; flex-shrink: 0; }
.urb-brand img { width: 36px; height: 36px; display: block; }
.urb-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.urb-brand__text strong { font-size: 16px; font-weight: 650; color: var(--urb-ink); }
.urb-brand__text span { font-size: 12.5px; color: var(--urb-muted); }

.urb-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.urb-nav__links { display: flex; align-items: stretch; gap: 4px; margin: 0; padding: 0; list-style: none; }
.urb-nav__links li { margin: 0; padding: 0; }
.urb-nav__links a {
  display: flex; align-items: center; height: 68px; padding: 0 12px;
  color: var(--urb-ink-2); font-weight: 500; font-size: 14.5px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  text-decoration: none !important;
}
.urb-nav__links a:hover { color: var(--urb-blue); }
.urb-nav__links a[aria-current="page"] { color: var(--urb-blue); border-bottom-color: var(--urb-blue); font-weight: 600; }

.urb-nav__account { display: flex; align-items: center; gap: 12px; padding-left: 20px; border-left: 1px solid var(--urb-line); }
.urb-account__name { color: var(--urb-ink-2) !important; font-size: 14px; font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.urb-menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--urb-line); border-radius: var(--urb-radius);
  padding: 8px 12px; font: 500 14px var(--urb-font); color: var(--urb-ink); cursor: pointer;
}
.urb-menu-toggle__bars, .urb-menu-toggle__bars::before, .urb-menu-toggle__bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative;
}
.urb-menu-toggle__bars::before, .urb-menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.urb-menu-toggle__bars::before { top: -5px; }
.urb-menu-toggle__bars::after { top: 5px; }

/* --- Botones ------------------------------------------------------------- */
.urb-btn, .urb .button, .urb .btn, .urb input[type="submit"], .urb input[type="button"],
.urb input[type="reset"], .urb button[type="submit"], .urb .action-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 18px; margin: 0;
  font: 600 14px/1 var(--urb-font); letter-spacing: 0;
  color: #fff !important; background: var(--urb-blue); background-image: none;
  border: 1px solid var(--urb-blue); border-radius: var(--urb-radius);
  box-shadow: none; text-shadow: none; text-decoration: none !important;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
  width: auto; height: auto;
}
.urb-btn:hover, .urb .button:hover, .urb .btn:hover, .urb input[type="submit"]:hover,
.urb input[type="button"]:hover, .urb button[type="submit"]:hover {
  background: var(--urb-blue-700); border-color: var(--urb-blue-700); color: #fff !important;
}
.urb input[type="reset"], .urb input[type="button"], .urb-btn--ghost, .urb .button.white {
  background: var(--urb-surface); color: var(--urb-ink) !important; border-color: var(--urb-line);
}
.urb input[type="reset"]:hover, .urb input[type="button"]:hover, .urb-btn--ghost:hover {
  background: var(--urb-bg); color: var(--urb-ink) !important; border-color: #c9cfd9;
}
.urb-btn--ghost { min-height: 36px; padding: 0 14px; font-weight: 500; }
/* theme.css pinta de blanco cualquier input dentro de #clientLogin / #ticketForm */
.urb #clientLogin div input[type="submit"], .urb #ticketForm div input[type="submit"],
.urb #ticketForm input[type="submit"], .urb #clientProfile input[type="submit"], .urb #reply input[type="submit"] {
  background: var(--urb-blue); border: 1px solid var(--urb-blue); color: #fff !important;
  display: inline-flex; width: auto; min-height: 40px; padding: 0 18px; margin: 0; border-radius: var(--urb-radius);
}
.urb #clientLogin div input[type="submit"]:hover, .urb #ticketForm input[type="submit"]:hover,
.urb #clientProfile input[type="submit"]:hover, .urb #reply input[type="submit"]:hover {
  background: var(--urb-blue-700); border-color: var(--urb-blue-700);
}
.urb #ticketForm input[type="reset"], .urb #ticketForm input[type="button"],
.urb #clientProfile input[type="reset"], .urb #clientProfile input[type="button"], .urb #reply input[type="reset"] {
  background: var(--urb-surface); border: 1px solid var(--urb-line); color: var(--urb-ink) !important;
  display: inline-flex; width: auto; min-height: 40px; padding: 0 18px; margin: 0; border-radius: var(--urb-radius);
}
.urb .button.green, .urb .green.button { background: var(--urb-blue); border-color: var(--urb-blue); }
.urb .button.blue, .urb .blue.button { background: var(--urb-blue); border-color: var(--urb-blue); }

/* --- Formularios --------------------------------------------------------- */
.urb input[type="text"], .urb input[type="email"], .urb input[type="password"], .urb input[type="search"],
.urb input[type="tel"], .urb input[type="number"], .urb input[type="date"], .urb select, .urb textarea {
  font: 400 15px/1.4 var(--urb-font); color: var(--urb-ink);
  background: var(--urb-surface); border: 1px solid #c9cfd9; border-radius: var(--urb-radius);
  padding: 9px 12px; min-height: 42px; max-width: 100%;
  box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.urb textarea { min-height: 120px; }
.urb input:focus, .urb select:focus, .urb textarea:focus {
  border-color: var(--urb-blue); box-shadow: 0 0 0 3px rgba(0, 53, 133, .12); outline: none;
}
.urb ::placeholder { color: #8a93a3; }
.urb label { color: var(--urb-ink-2); }
.urb .error, .urb font.error { color: var(--urb-danger); }
.urb em { color: var(--urb-muted); }

/* --- Mensajes del sistema ------------------------------------------------ */
.urb #msg_notice, .urb #msg_warning, .urb #msg_error, .urb #msg_info {
  margin: 0 0 24px; padding: 12px 16px 12px 16px; border-radius: var(--urb-radius);
  background-image: none; border: 1px solid; font-size: 14.5px;
}
.urb #msg_notice  { color: var(--urb-ok);     background-color: var(--urb-ok-bg);     border-color: #cfe6c6; }
.urb #msg_warning { color: var(--urb-warn);   background-color: var(--urb-warn-bg);   border-color: #f3dfa8; }
.urb #msg_error   { color: var(--urb-danger); background-color: var(--urb-danger-bg); border-color: #f6cdc9; }
.urb #msg_info    { color: var(--urb-blue);   background-color: var(--urb-blue-50);   border-color: #cfdcf0; }
.urb .error_bar, .urb .warning_bar, .urb .notice_bar { padding: 10px var(--urb-gutter); font-size: 14px; text-align: center; }

/* --- Contenido ----------------------------------------------------------- */
.urb-main {
  flex: 1 0 auto;
  padding-top: 40px; padding-bottom: 64px;
  /* anula el #content de theme.css */
  width: auto; background: none; border: 0; box-shadow: none; min-height: 0;
}
.urb #content.urb-main {
  width: 100%; margin: 0 auto; min-height: 0;
  padding: 40px var(--urb-gutter) 64px;
}

/* Portada */
.urb-home { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.urb-title { font-size: 32px !important; margin-bottom: 12px !important; }
.urb-lead { font-size: 16.5px; color: var(--urb-ink-2); max-width: 680px; margin-bottom: 32px; }
.urb-lead p { margin: 0 0 10px; }
.urb-lead strong { color: var(--urb-ink); }

.urb-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.urb-action {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; background: var(--urb-surface);
  border: 1px solid var(--urb-line); border-radius: 8px;
  color: var(--urb-ink) !important; text-decoration: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.urb-action:hover { border-color: var(--urb-blue); box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .06); }
.urb-action__icon {
  flex: 0 0 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--urb-blue-50); color: var(--urb-blue); font-size: 16px;
}
.urb-action--primary { border-color: var(--urb-blue); }
.urb-action--primary .urb-action__icon { background: var(--urb-blue); color: #fff; }
.urb-action__body { display: flex; flex-direction: column; gap: 4px; }
.urb-action__title { font-size: 16.5px; font-weight: 600; color: var(--urb-ink); }
.urb-action__title::after { content: " \2192"; color: var(--urb-blue); }
.urb-action__text { font-size: 14px; color: var(--urb-muted); line-height: 1.5; }

.urb-search { display: flex; gap: 8px; margin: -16px 0 40px; }
.urb-search input[type="search"] { flex: 1; }

.urb-section { border-top: 1px solid var(--urb-line); padding-top: 28px; margin-bottom: 32px; }
.urb-steps { margin: 0; padding: 0; list-style: none; counter-reset: urb-step; display: grid; gap: 14px; }
.urb-steps li { position: relative; padding-left: 40px; color: var(--urb-ink-2); counter-increment: urb-step; }
.urb-steps li::before {
  content: counter(urb-step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--urb-line); background: var(--urb-surface);
  font-size: 13px; font-weight: 600; color: var(--urb-blue);
  display: flex; align-items: center; justify-content: center;
}
.urb-steps strong { color: var(--urb-ink); font-weight: 600; }

.urb-home__aside { display: grid; gap: 16px; }
.urb-panel { background: var(--urb-surface); border: 1px solid var(--urb-line); border-radius: 8px; padding: 20px; }
.urb-panel h2 { font-size: 13px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--urb-muted) !important; margin: 0 0 10px !important; }
.urb-panel p { margin: 0 0 10px; color: var(--urb-ink-2); font-size: 14.5px; }
.urb-panel p:last-child { margin-bottom: 0; }
.urb-strong { font-weight: 600; color: var(--urb-ink); }
.urb-link-arrow { font-weight: 600; font-size: 14.5px; }
.urb-link-arrow::after { content: " \2192"; }
.urb-list { list-style: none; margin: 0; padding: 0; }
.urb-list li { border-top: 1px solid var(--urb-line-2); }
.urb-list li:first-child { border-top: 0; }
.urb-list a { display: block; padding: 8px 0; font-size: 14.5px; }

/* Barra lateral original (base de conocimiento) */
.urb .sidebar { width: 300px; margin-left: 32px; }
.urb .sidebar .front-page-button p { margin: 0 0 8px; }
.urb .sidebar .front-page-button .button { width: 100%; }
.urb .sidebar .content { background: var(--urb-surface); border: 1px solid var(--urb-line); border-radius: 8px; padding: 16px 20px; margin-top: 8px; }
.urb .sidebar .content .header { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--urb-muted); margin: 8px 0; }
.urb .sidebar .content section div { padding: 4px 0; }
.urb .main-content { width: auto; }

/* Inicio de sesión y consulta de estado */
.urb #clientLogin {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 0;
  width: auto; max-width: 860px; margin: 24px 0 16px; padding: 0;
  background: var(--urb-surface); border: 1px solid var(--urb-line); border-radius: 8px;
  box-shadow: none; background-image: none;
}
.urb #clientLogin > div[style*="table-row"] { display: contents !important; }
.urb #clientLogin .login-box {
  display: flex; flex-direction: column; gap: 14px;
  width: auto; padding: 28px; border-right: 1px solid var(--urb-line);
  background: none; box-shadow: none;
}
.urb #clientLogin .login-box > div { margin: 0; }
.urb #clientLogin .login-box > strong, .urb #clientLogin .login-box > div > strong { color: var(--urb-danger); font-size: 14px; display: block; }
.urb #clientLogin .login-box > strong:empty, .urb #clientLogin .login-box > div:has(> strong:empty) { display: none; }
.urb #clientLogin label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--urb-ink-2); width: 100%; }
.urb #clientLogin input[type="text"], .urb #clientLogin input[type="password"], .urb #clientLogin #ticketno {
  width: 100%; margin: 0;
}
.urb #clientLogin p { margin: 4px 0 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.urb #clientLogin input[type="submit"] { min-width: 140px; }
.urb #clientLogin .instructions, .urb #clientLogin > div > div[style*="table-cell"] {
  display: block !important; padding: 28px !important; color: var(--urb-ink-2); font-size: 14.5px;
  background: #fafbfc; border-radius: 0 8px 8px 0; width: auto;
}
.urb #clientLogin .instructions::before, .urb #clientLogin > div > div[style*="table-cell"]::before {
  content: "¿Necesitas ayuda?"; display: block; font-weight: 600; color: var(--urb-ink); margin-bottom: 8px;
}
.urb #clientLogin .external-auth { margin-bottom: 12px; }
.urb #clientLogin + br { display: none; }

/* Formulario de nueva solicitud y tablas de formularios */
.urb #ticketForm, .urb form.urb-card-form {
  background: var(--urb-surface); border: 1px solid var(--urb-line); border-radius: 8px;
  padding: 8px 28px 24px; margin-top: 24px; max-width: 880px;
}
.urb #ticketForm > table, .urb #clientProfile > table, .urb #ticketForm table[width] { width: 100% !important; }
.urb #ticketForm hr { margin: 20px 0 12px; }
.urb #ticketForm td { padding: 6px 0; vertical-align: top; }
.urb #ticketForm .form-header h3 { margin-top: 4px; }
.urb #ticketForm select, .urb #ticketForm input[type="text"], .urb #ticketForm input[type="email"],
.urb #ticketForm input[type="tel"], .urb #ticketForm textarea { width: 100%; max-width: 560px; }
.urb #ticketForm label { display: block; font-weight: 500; }
.urb #ticketForm label .required, .urb .required { font-weight: 600; color: var(--urb-ink); }
.urb #ticketForm .redactor-box, .urb .redactor-box { max-width: 100%; border-radius: var(--urb-radius); }
.urb p.buttons { display: flex; gap: 10px; justify-content: flex-start !important; text-align: left !important; flex-wrap: wrap; margin-top: 8px; }
.urb .filedrop .dropzone { border-radius: var(--urb-radius); border-color: #c9cfd9; background: #fafbfc; }

/* Lista de solicitudes */
.urb #ticketTable {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--urb-surface); border: 1px solid var(--urb-line); border-radius: 8px; overflow: hidden;
}
.urb #ticketTable caption { text-align: left; font-size: 14px; color: var(--urb-muted); padding: 0 0 10px; background: none; border: 0; }
.urb #ticketTable th {
  background: #f7f8fa; border: 0; border-bottom: 1px solid var(--urb-line);
  padding: 12px 14px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--urb-muted);
  text-transform: uppercase; letter-spacing: .04em; height: auto;
}
.urb #ticketTable th a { color: var(--urb-muted); }
.urb #ticketTable td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--urb-line-2); font-size: 14.5px; background: none; }
.urb #ticketTable tr:last-child td { border-bottom: 0; }
.urb #ticketTable tr.alt td { background: none; }
.urb #ticketTable tbody tr:hover td { background: #fafbfd; }
.urb #ticketSearchForm, .urb .ticket-filter { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Vista de una solicitud */
.urb .infoTable, .urb #ticketInfo { width: 100%; }
.urb #ticketInfo table { border: 1px solid var(--urb-line); border-radius: 8px; background: var(--urb-surface); }
.urb .infoTable th { color: var(--urb-muted); font-weight: 500; text-align: left; padding: 6px 12px 6px 0; }
.urb .infoTable td { padding: 6px 0; }
.urb #ticketThread, .urb .thread-body { max-width: 100%; }
.urb .thread-entry .header { border-radius: 8px 8px 0 0; }
.urb .thread-entry .thread-body { border-radius: 0 0 8px 8px; }
.urb #reply { background: var(--urb-surface); border: 1px solid var(--urb-line); border-radius: 8px; padding: 20px 24px; margin-top: 24px; }
.urb #reply h2 { margin-top: 0; }
.urb #reply textarea { width: 100%; }

/* Información de la solicitud */
.urb #ticketInfo { width: 100% !important; border-collapse: separate; border-spacing: 0; }
.urb #ticketInfo h1 { border-bottom: 1px solid var(--urb-line); padding-bottom: 16px; margin-bottom: 16px; font-size: 24px; }
.urb #ticketInfo h1 small { color: var(--urb-muted); font-weight: 400; }
.urb #ticketInfo > tbody > tr > td { vertical-align: top; }
.urb #ticketInfo .infoTable, .urb #ticketInfo .custom-data {
  background: var(--urb-surface); border: 1px solid var(--urb-line); border-radius: 8px; border-spacing: 0;
}
.urb #ticketInfo .infoTable th, .urb #ticketInfo .custom-data th {
  background: none; border: 0; padding: 10px 14px 6px; font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--urb-muted);
}
.urb #ticketInfo .infoTable td, .urb #ticketInfo .custom-data td { padding: 6px 14px; font-size: 14.5px; vertical-align: top; }
.urb #ticketInfo .infoTable tr:first-child th { border-bottom: 0; padding-bottom: 6px; color: var(--urb-ink); }
.urb #ticketInfo .infoTable tr:last-child td, .urb #ticketInfo .infoTable tr:last-child th { padding-bottom: 14px; }
.urb #ticketInfo .infoTable td:first-child, .urb #ticketInfo .infoTable th:not(:only-child) { color: var(--urb-muted); width: 34%; }
.urb #ticketInfo .action-button, .urb #ticketInfo a.button { min-height: 36px; font-weight: 500; }

/* Conversación */
.urb .thread-entry { margin-bottom: 16px; }
.urb .thread-entry .header {
  background: #f7f8fa; border: 1px solid var(--urb-line); border-radius: 8px 8px 0 0;
  padding: 10px 16px; font-size: 14px; color: var(--urb-ink-2);
}
.urb .thread-entry.message .header { background: var(--urb-blue-50); border-color: #cfdcf0; }
.urb .thread-entry.response .header { background: #f7f8fa; }
.urb .thread-entry.avatar .header::before, .urb .thread-entry.avatar .header::after { display: none; }
.urb .thread-entry .thread-body {
  background: var(--urb-surface); border: 1px solid var(--urb-line); border-top: 0;
  border-radius: 0 0 8px 8px; padding: 14px 16px; font-size: 14.5px; line-height: 1.6; box-shadow: none;
}
.urb .thread-entry.message .thread-body { border-color: #cfdcf0; }
.urb .thread-entry > .avatar img, .urb .thread-entry > .avatar { border-radius: 50%; }
.urb .thread-event { color: var(--urb-muted); font-size: 13.5px; }
.urb .thread-event .type-icon { border-radius: 50%; border-color: var(--urb-line); background: var(--urb-surface); }
.urb #ticketThread > hr, .urb #ticketThread + hr { border-top-color: var(--urb-line); }

.urb .warning-banner {
  background: var(--urb-warn-bg); background-image: none; color: var(--urb-warn);
  border: 1px solid #f3dfa8; border-radius: var(--urb-radius); padding: 10px 14px; margin: 12px 0; font-size: 14px;
  height: auto; line-height: 1.45;
}
.urb #msg_notice, .urb #msg_warning, .urb #msg_error { height: auto; line-height: 1.45; }
.urb .warning-banner img, .urb .warning-banner .icon-warning-sign { display: none; }
.urb #reply p { text-align: left !important; }
.urb #reply .redactor-toolbar { border-radius: var(--urb-radius) var(--urb-radius) 0 0; }

/* Páginas de contenido (guías, recursos) */
.urb .urb-main > .thread-body, .urb #content > .thread-body,
.urb .faq-content, .urb #kb { max-width: 820px; }
.urb .urb-main table { max-width: 100%; }

/* --- Pie ----------------------------------------------------------------- */
.urb-footer {
  flex-shrink: 0; background: var(--urb-surface); border-top: 1px solid var(--urb-line);
  color: var(--urb-muted); font-size: 13.5px;
}
.urb-footer__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 24px; }
.urb-footer__col { display: flex; flex-direction: column; gap: 2px; }
.urb-footer__col strong { color: var(--urb-ink); font-weight: 600; font-size: 13.5px; }
.urb-footer__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 16px; padding-bottom: 20px; font-size: 12.5px;
  background: linear-gradient(var(--urb-line-2), var(--urb-line-2)) no-repeat var(--urb-gutter) 0 / calc(100% - var(--urb-gutter) * 2) 1px;
}
.urb--home .urb-footer__inner { display: none; }
.urb--home .urb-footer__legal { background: none; padding-top: 20px; }
.urb-footer__legal a { color: var(--urb-muted); }

/* --- Anulaciones del tema anterior --------------------------------------- */
.urb #container, .urb #header, .urb #nav, .urb #footer { display: none; }
.urb #landing_page #new_ticket, .urb #landing_page #check_status { all: unset; }

/* --- Escritorio ancho ---------------------------------------------------- */
@media (min-width: 1440px) {
  :root { --urb-wrap: 1240px; }
  .urb-home { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
}

/* --- Tableta ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .urb-nav__links a { padding: 0 9px; font-size: 14px; }
  .urb-home { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}

@media (max-width: 920px) {
  :root { --urb-gutter: 20px; }
  .urb-menu-toggle { display: inline-flex; }
  .urb-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--urb-surface); border-bottom: 1px solid var(--urb-line);
    box-shadow: 0 8px 16px rgba(16, 24, 40, .08); padding: 8px var(--urb-gutter) 16px;
  }
  .urb-nav.is-open { display: flex; }
  .urb-nav__links { flex-direction: column; gap: 0; }
  .urb-nav__links a { height: auto; padding: 12px 0; border-bottom: 1px solid var(--urb-line-2); margin: 0; font-size: 15px; }
  .urb-nav__links a[aria-current="page"] { border-bottom-color: var(--urb-line-2); box-shadow: inset 3px 0 0 var(--urb-blue); padding-left: 12px; }
  .urb-nav__account { border-left: 0; padding: 14px 0 0; justify-content: space-between; }

  .urb-home { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .urb-home__aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .urb .sidebar { float: none; width: auto; margin: 0 0 24px; }
  .urb #content:has(> .sidebar + .main-content) { display: flex; flex-direction: column; }
  .urb #content > .sidebar + .main-content { order: -1; margin-bottom: 24px; }
}

/* --- Móvil --------------------------------------------------------------- */
@media (max-width: 640px) {
  :root { --urb-gutter: 16px; }
  body.urb { font-size: 15px; }
  .urb-header__inner { min-height: 60px; gap: 12px; }
  .urb-brand img { width: 32px; height: 32px; }
  .urb-brand__text strong { font-size: 15px; }
  .urb-brand__text span { font-size: 12px; }
  .urb-menu-toggle__label { display: none; }
  .urb-menu-toggle { padding: 10px; }

  .urb #content.urb-main { padding-top: 24px; padding-bottom: 40px; }
  .urb h1, .urb #content h1 { font-size: 24px; }
  .urb-title { font-size: 26px !important; }
  .urb-lead { font-size: 15.5px; margin-bottom: 24px; }
  .urb-actions { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 32px; }
  .urb-action { padding: 18px; }
  .urb-home__aside { grid-template-columns: minmax(0, 1fr); }
  .urb-search { flex-direction: column; }

  .urb #clientLogin { grid-template-columns: minmax(0, 1fr); }
  .urb #clientLogin .login-box { border-right: 0; border-bottom: 1px solid var(--urb-line); padding: 20px; }
  .urb #clientLogin .instructions, .urb #clientLogin > div > div[style*="table-cell"] { padding: 20px !important; border-radius: 0 0 8px 8px; }
  .urb #clientLogin input[type="submit"] { width: 100%; }

  .urb #ticketForm { padding: 4px 16px 20px; }
  .urb #ticketForm table, .urb #ticketForm tbody, .urb #ticketForm tr, .urb #ticketForm td { display: block; width: 100% !important; }
  .urb p.buttons input { flex: 1 1 auto; }

  .urb #ticketTable { display: block; overflow-x: auto; white-space: nowrap; }
  .urb #ticketInfo, .urb #ticketInfo > tbody, .urb #ticketInfo > tbody > tr, .urb #ticketInfo > tbody > tr > td { display: block; width: 100% !important; }
  .urb #ticketInfo > tbody > tr > td { padding: 0 0 12px !important; }
  .urb #ticketInfo .infoTable th, .urb #ticketInfo .infoTable td { width: auto !important; }
  .urb #ticketInfo .infoTable th { padding: 10px 14px 0 !important; }
  .urb #ticketInfo .infoTable td { padding: 2px 14px 4px !important; }
  .urb #ticketInfo .infoTable tr:first-child th { padding-bottom: 10px !important; }
  .urb #ticketInfo .infoTable tr:last-child td { padding-bottom: 14px !important; }
  .urb #ticketInfo h1 { font-size: 21px; }
  .urb .thread-entry.avatar, .urb .thread-entry.response.avatar { margin-left: 0; margin-right: 0; }
  .urb .thread-entry > .avatar { display: none; }
  .urb .infoTable, .urb .infoTable tbody, .urb .infoTable tr { display: block; }
  .urb .infoTable th, .urb .infoTable td { display: block; padding: 2px 0; }
  .urb .infoTable td { padding-bottom: 10px; }
  .urb #reply { padding: 16px; }

  .urb-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 24px; }
  .urb-footer__legal { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .urb * { transition: none !important; }
}

/* ==========================================================================
   Capa de color (v2): encabezado y franja de marca, fondo gris azulado, pie oscuro
   ========================================================================== */
:root {
  --urb-bg: #e9eef5;
  --urb-navy-900: #0a2148;
}
html, body.urb { background: var(--urb-bg); }

/* Encabezado azul de marca */
.urb-header { background: var(--urb-blue); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.urb-header::before { display: none; }
.urb-brand__text strong { color: #fff; }
.urb-brand__text span { color: rgba(255, 255, 255, .72); }
.urb-brand img { background: #fff; border-radius: 8px; padding: 4px; width: 40px; height: 40px; }
.urb-nav__links a { color: rgba(255, 255, 255, .82); border-bottom-width: 3px; }
.urb-nav__links a:hover { color: #fff; }
.urb-nav__links a[aria-current="page"] { color: #fff; border-bottom-color: var(--urb-green); }
.urb-nav__account { border-left-color: rgba(255, 255, 255, .2); }
.urb-account__name { color: rgba(255, 255, 255, .9) !important; }
.urb-header .urb-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.urb-header .urb-btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff !important; }
.urb-menu-toggle { color: #fff; border-color: rgba(255, 255, 255, .45); }
.urb .urb-skip { background: var(--urb-green); }

/* Franja de la portada: continúa el azul del encabezado (fondo a todo lo ancho sin desbordar) */
.urb-intro {
  position: relative; color: #fff; background: var(--urb-blue);
  box-shadow: 0 0 0 100vmax var(--urb-blue); clip-path: inset(0 -100vmax);
  padding: 44px 0 96px;
}
.urb-intro__kicker { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #b9dc74; }
.urb-intro .urb-title { color: #fff !important; }
.urb-intro .urb-lead { color: rgba(255, 255, 255, .86); margin-bottom: 0; }
.urb-intro .urb-lead strong { color: #fff; }
.urb-action { box-shadow: 0 1px 2px rgba(10, 33, 72, .06), 0 8px 24px rgba(10, 33, 72, .08); border-color: transparent; }
.urb-action--primary { border-color: transparent; box-shadow: inset 0 3px 0 var(--urb-green), 0 1px 2px rgba(10, 33, 72, .06), 0 8px 24px rgba(10, 33, 72, .08); }
.urb-action--primary .urb-action__icon { background: var(--urb-green); }
.urb-action:hover { border-color: var(--urb-blue); }
.urb-section { background: var(--urb-surface); border: 1px solid var(--urb-line); border-radius: 8px; padding: 24px; }
.urb-panel { box-shadow: 0 1px 2px rgba(10, 33, 72, .05); }
.urb-panel:first-child { box-shadow: inset 0 3px 0 var(--urb-blue), 0 1px 2px rgba(10, 33, 72, .05); }

/* Pie oscuro */
.urb-footer { background: var(--urb-navy-900); border-top: 0; color: rgba(255, 255, 255, .68); }
.urb-footer__col strong { color: #fff; }
.urb-footer a { color: #bcd2ff; }
.urb-footer a:hover { color: #fff; }
.urb-footer__legal { background-image: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)); }
.urb-footer__legal a { color: rgba(255, 255, 255, .6); }

/* ==========================================================================
   Guías y recursos (contenido de Admin › Páginas, tipo "Otro")
   ========================================================================== */
.urb .main-content { overflow: hidden; }
.urb .sidebar .content { box-shadow: inset 0 3px 0 var(--urb-blue); }
.urb-doc { color: var(--urb-ink-2); }
.urb-doc__head { margin-bottom: 24px; }
.urb-doc__head h1 { margin-bottom: 6px !important; }
.urb-doc__lead { font-size: 16px; color: var(--urb-ink-2); max-width: 720px; margin: 0; }
.urb-doc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.urb-doc__card { background: var(--urb-surface); border: 1px solid var(--urb-line); border-radius: 8px; padding: 20px 22px; display: flex; flex-direction: column; }
.urb-doc__card h2 { font-size: 16.5px !important; margin: 0 0 12px !important; color: var(--urb-ink) !important; }
.urb-doc__card ol { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: urb-doc; display: grid; gap: 8px; }
.urb-doc__card li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.5; counter-increment: urb-doc; }
.urb-doc__card li::before {
  content: counter(urb-doc); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--urb-blue-50); color: var(--urb-blue); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.urb-doc__meta { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--urb-line-2); font-size: 13px; color: var(--urb-muted); }
.urb-doc__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--urb-blue); color: rgba(255, 255, 255, .85); border-radius: 8px; padding: 18px 22px;
}
.urb-doc__cta strong { color: #fff; display: block; font-size: 15.5px; }
.urb-doc__cta p { margin: 2px 0 0; font-size: 14px; }
.urb-doc__cta .urb-btn { background: #fff; color: var(--urb-blue) !important; border-color: #fff; }
.urb-doc__cta .urb-btn:hover { background: #eef3fa; color: var(--urb-blue-700) !important; }

.urb-table-wrap { overflow-x: auto; background: var(--urb-surface); border: 1px solid var(--urb-line); border-radius: 8px; }
.urb-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.urb-table th {
  position: sticky; top: 0; z-index: 1; background: #f3f6fa; text-align: left; padding: 11px 16px;
  font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--urb-muted);
  border-bottom: 1px solid var(--urb-line);
}
.urb-table td { padding: 10px 16px; border-bottom: 1px solid var(--urb-line-2); vertical-align: top; color: var(--urb-ink-2); }
.urb-table tbody tr:last-child td { border-bottom: 0; }
.urb-table tbody tr:hover td { background: #f8fafd; }
.urb-table--keys td:first-child { width: 38%; }
.urb-table--formulas td:first-child { width: 42%; }
.urb-nowrap { white-space: nowrap; }
.urb-doc__alt { color: var(--urb-muted); font-size: 13px; white-space: normal; }
.urb kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 7px; text-align: center;
  font: 600 12.5px/1.6 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; color: var(--urb-ink);
  background: #fff; border: 1px solid #c9cfd9; border-bottom-width: 2px; border-radius: 4px;
}
.urb-doc code, .urb-table code {
  font: 500 13px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  color: var(--urb-blue); background: var(--urb-blue-50); padding: 2px 6px; border-radius: 4px; word-break: break-word;
}
.urb-badge { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--urb-warn-bg); color: var(--urb-warn); }
.urb-muted { color: var(--urb-muted); }
.urb-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.urb-linkcard {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: var(--urb-surface);
  border: 1px solid var(--urb-line); border-radius: 8px; text-decoration: none !important;
}
.urb-linkcard:hover { border-color: var(--urb-blue); }
.urb-linkcard__title { font-weight: 600; color: var(--urb-ink); }
.urb-linkcard__title::after { content: " \2197"; color: var(--urb-blue); }
.urb-linkcard__url { font-size: 13.5px; color: var(--urb-muted); }
.urb-empty { background: var(--urb-surface); border: 1px dashed #c3ccd9; border-radius: 8px; padding: 32px 24px; text-align: center; }
.urb-empty strong { color: var(--urb-ink); }
.urb-empty p { margin: 4px 0 0; color: var(--urb-muted); }

@media (max-width: 920px) {
  .urb-nav { background: var(--urb-blue); border-bottom: 0; box-shadow: 0 12px 24px rgba(10, 33, 72, .25); }
  .urb-nav__links a { border-bottom-color: rgba(255, 255, 255, .12); }
  .urb-nav__links a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .12); box-shadow: inset 3px 0 0 var(--urb-green); }
  .urb .main-content { overflow: visible; }
}
@media (max-width: 640px) {
  .urb-intro { padding: 28px 0 80px; }
  .urb-section { padding: 20px; }
  .urb-doc__grid { grid-template-columns: minmax(0, 1fr); }
  .urb-doc__cta .urb-btn { width: 100%; }
  .urb-nowrap { white-space: normal; }
  .urb-table thead { display: none; }
  .urb-table, .urb-table tbody, .urb-table tr, .urb-table td { display: block; width: auto !important; }
  .urb-table tr { padding: 12px 14px; border-bottom: 1px solid var(--urb-line-2); }
  .urb-table tbody tr:last-child { border-bottom: 0; }
  .urb-table td { padding: 0; border: 0; }
  .urb-table td:first-child { margin-bottom: 6px; }
  .urb-table tbody tr:hover td { background: none; }
  .urb-table:not(.urb-table--keys):not(.urb-table--formulas) tr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .urb-table:not(.urb-table--keys):not(.urb-table--formulas) td { margin: 0 !important; }
  .urb-table:not(.urb-table--keys):not(.urb-table--formulas) td:last-child { margin-left: auto !important; font-size: 13.5px; }
}

/* ==========================================================================
   Inicio de sesión con Microsoft 365 (plugin OAuth2)
   ========================================================================== */
.urb #clientLogin .external-auth { margin: 0; }
.urb #clientLogin .external-auth a.external-sign-in { display: block; text-decoration: none !important; }
.urb #clientLogin .external-auth .external-auth-box {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 0 16px; width: 100%;
  background: #fff; border: 1px solid #8c8c8c; border-radius: 6px; box-shadow: none;
  color: #1f1f1f; font: 600 15px/1 var(--urb-font); cursor: pointer;
}
.urb #clientLogin .external-auth a:hover .external-auth-box { background: #f3f3f3; }
.urb #clientLogin .external-auth .external-auth-icon { width: 20px; height: 20px; flex: 0 0 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Crect x='1' y='1' width='9' height='9' fill='%23f25022'/%3E%3Crect x='11' y='1' width='9' height='9' fill='%237fba00'/%3E%3Crect x='1' y='11' width='9' height='9' fill='%2300a4ef'/%3E%3Crect x='11' y='11' width='9' height='9' fill='%23ffb900'/%3E%3C/svg%3E") no-repeat center / 20px 20px; border: 0; padding: 0; margin: 0; }
.urb #clientLogin .external-auth .external-auth-icon i { display: none; }
/* la traducción dice "Registrarse con": se reemplaza por el texto correcto */
.urb #clientLogin .external-auth .external-auth-name { font-size: 0; padding: 0; margin: 0; border: 0; }
.urb #clientLogin .external-auth .external-auth-name::after { content: "Iniciar sesión con Microsoft"; font-size: 15px; }
.urb #clientLogin .urb-or { display: flex; align-items: center; gap: 12px; color: var(--urb-muted); font-size: 13px; }
.urb #clientLogin .urb-or::before, .urb #clientLogin .urb-or::after { content: ""; flex: 1; height: 1px; background: var(--urb-line); }
.urb #clientLogin .external-auth + .urb-or { margin: 2px 0; }
.urb #clientLogin .external-auth .external-auth-name { display: inline-block; width: auto; max-width: none; white-space: nowrap; line-height: 1; vertical-align: middle; }
.urb #clientLogin .external-auth .external-auth-name::after { white-space: nowrap; }
.urb #clientLogin .external-auth .external-auth-box { line-height: 1; white-space: nowrap; }

/* ==========================================================================
   Portada en una pantalla (v3): rejilla alineada por filas
   ========================================================================== */
.urb-dash {
  display: grid; gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px;
  grid-template-areas: "a1 a2 hours" "tips tips wa";
  align-items: stretch;
}
.urb-dash__a1 { grid-area: a1; } .urb-dash__a2 { grid-area: a2; }
.urb-dash__hours { grid-area: hours; } .urb-dash__tips { grid-area: tips; } .urb-dash__wa { grid-area: wa; }
.urb-dash .urb-action { height: 100%; padding: 24px; }
.urb-card {
  background: var(--urb-surface); border: 1px solid var(--urb-line); border-radius: 8px;
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
  box-shadow: 0 1px 2px rgba(10, 33, 72, .05);
}
.urb-card__icon {
  flex: 0 0 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--urb-blue-50); color: var(--urb-blue); font-size: 17px;
}
.urb-card__icon--wa { background: #e8f8ee; color: #1fa855; }
.urb-card__title { font-size: 15.5px !important; font-weight: 600; color: var(--urb-ink) !important; margin: 0 0 6px !important; text-transform: none; letter-spacing: 0; }
.urb-card__text { margin: 0 0 12px; color: var(--urb-ink-2); font-size: 14.5px; line-height: 1.5; }
.urb-card__text:last-child { margin-bottom: 0; }
.urb-card__text strong { color: var(--urb-ink); }
.urb-dash__tips { flex-direction: column; gap: 16px; }
.urb-tips { list-style: none; margin: 0; padding: 0; counter-reset: urb-tip; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; }
.urb-tips li { counter-increment: urb-tip; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 2px solid var(--urb-line-2); font-size: 14px; color: var(--urb-ink-2); line-height: 1.5; }
.urb-tips li::before { content: "0" counter(urb-tip); font-size: 12.5px; font-weight: 700; color: var(--urb-green-700); letter-spacing: .04em; }
.urb-tips strong { color: var(--urb-ink); font-size: 15px; font-weight: 600; }
.urb-wa-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1px solid #1fa855; border-radius: var(--urb-radius); color: #157a3d !important;
  font-weight: 600; font-size: 14.5px; text-decoration: none !important;
}
.urb-wa-btn::after { content: "\2192"; }
.urb-wa-btn:hover { background: #e8f8ee; }

@media (max-width: 1080px) {
  .urb-dash { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a1 a2" "tips tips" "hours wa"; }
}
@media (max-width: 640px) {
  .urb-dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a1" "a2" "tips" "hours" "wa"; gap: 12px; }
  .urb-tips { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .urb-card, .urb-dash .urb-action { padding: 18px; }
}

/* ==========================================================================
   Tarjeta de acceso: login, nueva solicitud sin sesión y consultar solicitud
   ========================================================================== */
.urb-auth { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0 8px; }
.urb-auth__card {
  width: 100%; max-width: 440px; background: var(--urb-surface); border: 1px solid var(--urb-line);
  border-radius: 10px; padding: 36px 36px 24px; box-shadow: 0 1px 2px rgba(10, 33, 72, .05), 0 12px 32px rgba(10, 33, 72, .08);
  text-align: center;
}
.urb-auth__brand { display: flex; justify-content: center; margin-bottom: 18px; }
.urb-auth__brand img { width: 48px; height: 48px; }
.urb-auth__brand--icon { width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 10px; align-items: center; background: var(--urb-blue-50); color: var(--urb-blue); font-size: 20px; }
.urb .urb-auth__title, .urb #content .urb-auth__title { font-size: 22px; margin: 0 0 8px; }
.urb-auth__text { color: var(--urb-ink-2); font-size: 14.5px; margin: 0 0 24px; }
.urb-auth__error { margin: -8px 0 20px; padding: 10px 12px; border-radius: var(--urb-radius); background: var(--urb-danger-bg); border: 1px solid #f6cdc9; color: var(--urb-danger); font-size: 14px; text-align: left; }
.urb-auth__sso .external-auth { margin: 0 0 10px; }
.urb-auth__hint { font-size: 13px; color: var(--urb-muted); margin: 4px 0 0; }
.urb-auth__form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.urb-auth__form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--urb-ink-2); }
.urb-auth__form input { width: 100%; }
.urb .urb-btn--block { width: 100%; min-height: 44px; margin-top: 4px; }
.urb-auth__link { font-size: 14px; text-align: center; }
.urb-auth__foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--urb-line-2); font-size: 14px; color: var(--urb-muted); }
.urb-auth__staff {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(0, 53, 133, .06); color: var(--urb-ink-2) !important; font-size: 14px; text-decoration: none !important;
}
.urb-auth__staff:hover { background: rgba(0, 53, 133, .1); }
.urb-auth__staff strong { color: var(--urb-ink); font-weight: 600; }
.urb-auth__staff-icon { color: var(--urb-blue); }
/* botón de Microsoft dentro de la tarjeta (mismo estilo que el de #clientLogin) */
.urb-auth .external-auth a.external-sign-in { display: block; text-decoration: none !important; }
.urb-auth .external-auth .external-auth-box {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 16px; width: 100%;
  background: #fff; border: 1px solid #8c8c8c; border-radius: 6px; color: #1f1f1f; font: 600 15px/1 var(--urb-font); white-space: nowrap;
}
.urb-auth .external-auth a:hover .external-auth-box { background: #f3f3f3; }
.urb-auth .external-auth .external-auth-icon {
  width: 20px; height: 20px; flex: 0 0 20px; border: 0; padding: 0; margin: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Crect x='1' y='1' width='9' height='9' fill='%23f25022'/%3E%3Crect x='11' y='1' width='9' height='9' fill='%237fba00'/%3E%3Crect x='1' y='11' width='9' height='9' fill='%2300a4ef'/%3E%3Crect x='11' y='11' width='9' height='9' fill='%23ffb900'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
}
.urb-auth .external-auth .external-auth-icon i { display: none; }
.urb-auth .external-auth .external-auth-name { font-size: 0; display: inline-block; width: auto; white-space: nowrap; line-height: 1; padding: 0; margin: 0; border: 0; }
.urb-auth .external-auth .external-auth-name::after { content: "Iniciar sesión con Microsoft"; font-size: 15px; }
@media (max-width: 640px) {
  .urb-auth { padding-top: 8px; }
  .urb-auth__card { padding: 28px 20px 20px; }
}

/* ==========================================================================
   Nueva solicitud (open.php con sesión)
   ========================================================================== */
.urb-pagehead { margin-bottom: 24px; }
.urb-pagehead h1 { margin-bottom: 6px !important; }
.urb-pagehead p { color: var(--urb-ink-2); margin: 0; font-size: 15.5px; }
.urb-open { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.urb .urb-open #ticketForm { margin-top: 0; max-width: none; padding: 8px 32px 28px; }
.urb #ticketForm > table > tbody:first-child td { padding-top: 20px; }
.urb #ticketForm hr { border-top-color: var(--urb-line-2); }
.urb #ticketForm tr > td > hr:first-child { margin-top: 12px; }
.urb #ticketForm .form-header h3 { font-size: 16px; color: var(--urb-ink); }
.urb #ticketForm .form-header div { color: var(--urb-muted); font-size: 14px; }
.urb #ticketForm select#topicId { width: 100%; max-width: none; }
.urb #ticketForm input[type="text"], .urb #ticketForm input[type="email"], .urb #ticketForm input[type="tel"],
.urb #ticketForm textarea { max-width: none; }
.urb #ticketForm label > span.required, .urb #ticketForm label > span { font-weight: 600; color: var(--urb-ink); }
.urb #ticketForm em { font-style: normal; font-size: 13px; }
.urb #ticketForm p.buttons { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--urb-line-2); }
.urb-requester { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f6f8fb; border: 1px solid var(--urb-line-2); border-radius: 8px; font-size: 14.5px; }
.urb-requester__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--urb-blue); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 34px; }
.urb-requester strong { color: var(--urb-ink); display: block; }
.urb-requester__mail { color: var(--urb-muted); font-size: 13.5px; }
.urb-field-label { display: block; font-size: 15px; font-weight: 600 !important; color: var(--urb-ink) !important; margin: 10px 0 8px; }
.urb-open__aside { display: grid; gap: 16px; }
.urb-card--stack { flex-direction: column; gap: 14px; }
.urb-tips--stack { grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (max-width: 1080px) {
  .urb-open { grid-template-columns: minmax(0, 1fr); }
  .urb-open__aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .urb .urb-open #ticketForm { padding: 4px 16px 20px; }
  .urb-open__aside { grid-template-columns: minmax(0, 1fr); }
}
