/* ==========================================================================
   CAC - Centro de Atencion Comercial | AXA COLPATRIA
   ========================================================================== */

:root {
  /* -- Nucleo de marca. Hex exactos del Manual de Identidad Corporativa AXA
     COLPATRIA 2025 (fuente de verdad unica para color en todo el CAC). -- */
  --axa-blue: #00008f;
  --axa-white: #ffffff;
  --axa-red: #ff1721;

  --axa-blue-tint-1: #e2efff;
  --axa-blue-tint-2: #6574f8;
  --axa-blue-tint-3: #0c0e45;

  --axa-red-tint-1: #ffeaea;
  --axa-red-tint-2: #ff4e56;
  --axa-red-tint-3: #750707;

  --axa-grey-light: #e6e6e6;
  --axa-grey-dark: #999999;
  --axa-black: #0e0e0e;

  /* -- Paleta de datos (seccion 24-25 del manual): solo para graficos y
     dashboards. Nunca para botones, navegacion o fondos de la interfaz. -- */
  --data-cotton-candy: #ffb4ce;
  --data-coral: #ff9c62;
  --data-sunshine: #fff06c;
  --data-leaf: #58c645;
  --data-mint: #81eebb;
  --data-sky: #74bde8;
  --data-cherry: #a30245;
  --data-teal: #0f717f;
  --data-grape: #614fe8;

  /* -- Alias funcionales que usan los componentes. -- */
  --azul: var(--axa-blue);
  --azul-claro: var(--axa-blue-tint-2);
  --azul-tenue: var(--axa-blue-tint-1);
  --rojo: var(--axa-red);
  --texto: var(--axa-black);
  /* Dark Grey de marca (#999) no cumple AA como texto sobre blanco (seccion 28);
     este tono conserva su rol de "texto secundario" cumpliendo contraste. */
  --texto-suave: #5c6270;
  --borde: var(--axa-grey-light);
  --fondo: #f4f5f7;
  --panel: var(--axa-white);

  /* El semaforo de SLA (seccion 27) exige verde/ambar/rojo; el manual no fija
     un verde/ambar de interfaz, asi que se derivan del matiz de Leaf/Coral de
     la paleta de datos, ajustados para cumplir contraste de texto AA. */
  --verde: #1f7a34;
  --verde-oscuro: #155526;
  --verde-tenue: #e9f7ec;
  --ambar: #b45309;
  --ambar-vivido: #f0a500;
  --ambar-tenue: #fff3e6;
  --rojo-tenue: var(--axa-red-tint-1);
  --rojo-oscuro: var(--axa-red-tint-3);
  --gris-tenue: #f1f3f7;
  --gris-medio: #9aa3b2;

  --radio: 8px;
  --sombra: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);

  /* -- Tipografia (seccion 29-31): Publico Headline y Source Sans son fuentes
     de pago de la marca; no hay archivos licenciados en este proyecto ni
     autorizacion para cargarlos desde un CDN externo. Se documenta la
     desviacion y se usa un fallback tecnico hasta que TI entregue los
     archivos oficiales para autohospedarlos. -- */
  --fuente-titular: "Publico Headline", Georgia, "Times New Roman", serif;
  --fuente-base: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* -- Tema oscuro (opcional, activado por el usuario). El manual pide claro
   por defecto (seccion 59); esto respeta esa base y solo cambia si la
   persona activa el interruptor. Los tokens de header/login (--axa-blue,
   --axa-blue-tint-3) no cambian: esas superficies son navy en ambos temas. -- */
:root[data-theme="dark"] {
  --azul: #6574f8;
  --azul-claro: #8b97fa;
  --azul-tenue: #1a2340;
  --texto: #eef1f7;
  --texto-suave: #9aa3b8;
  --borde: #262b3a;
  --fondo: #0b0e14;
  --panel: #12161f;
  --verde: #3ddc7a;
  --verde-oscuro: #2bb866;
  --verde-tenue: #12301f;
  --ambar: #ffb648;
  --ambar-vivido: #ffb648;
  --ambar-tenue: #3a2a12;
  --rojo-tenue: #3a1416;
  --rojo-oscuro: #ff6b70;
  --gris-tenue: #1a1e28;
  --gris-medio: #6b7385;
  --sombra: 0 1px 3px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
}

/* -- Interruptor de tema -------------------------------------------------- */
.interruptor-tema {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.interruptor-tema:hover { background: rgba(255, 255, 255, .18); }

* { box-sizing: border-box; }
img { max-width: 100%; }

html { overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
  font-family: var(--fuente-base);
  background: var(--fondo);
  color: var(--texto);
  font-size: 14px;
  line-height: 1.55;
}

a { color: var(--azul); }

/* -- Encabezado ----------------------------------------------------------- */

.barra {
  background: var(--axa-blue);
  color: #fff;
  border-bottom: 4px solid var(--rojo);
}

.barra-interna {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* El logo oficial (icono + AXA COLPATRIA) no se reconstruye: se usa el
   archivo de marca completo, solo escalado a su altura minima (seccion 36). */
.marca { display: flex; align-items: center; gap: 14px; line-height: 1.2; }
.marca img { display: block; height: 46px; width: auto; }
.marca .texto { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); }
.marca strong { font-size: 14px; letter-spacing: .3px; font-weight: 600; }
.marca span { font-size: 11px; color: #9fb4ff; letter-spacing: 1.3px; text-transform: uppercase; }

.menu { display: flex; gap: 4px; margin-left: 24px; flex-wrap: wrap; }

.menu button {
  background: transparent;
  border: 0;
  color: #c9d4ff;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13.5px;
  font-family: inherit;
}
.menu button:hover { background: rgba(255,255,255,.12); color: #fff; }
.menu button.activo { background: #fff; color: var(--azul); font-weight: 600; }

.sesion { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; }
.sesion .quien { text-align: right; line-height: 1.3; }
.sesion .quien small { display: block; color: #9fb4ff; font-size: 11px; }

/* -- Estructura ----------------------------------------------------------- */

.contenido { max-width: 1400px; margin: 0 auto; padding: 24px; }

.titulo-seccion {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
}
.titulo-seccion h1 { font-family: var(--fuente-titular); font-size: 26px; margin: 0; font-weight: 400; }
.titulo-seccion p { margin: 0; color: var(--texto-suave); font-size: 13px; }
.titulo-seccion .antetitulo {
  margin: 0 0 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.titulo-tablero h1 { font-size: 30px; margin: 2px 0 6px; }

.tarjeta {
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 20px;
  margin-bottom: 18px;
}

.tarjeta > h2 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--borde);
}

.rejilla { display: grid; gap: 16px; }
.rejilla.dos { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rejilla.tres { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* -- Indicadores ---------------------------------------------------------- */

.indicadores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.indicador {
  background: var(--panel);
  border: 1px solid var(--borde);
  border-left: 4px solid var(--azul);
  border-radius: var(--radio);
  padding: 14px 16px;
  box-shadow: var(--sombra);
  /* La rejilla no debe estirarse por un contenido largo. */
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.indicador .valor {
  font-family: var(--fuente-titular);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
/* Valores con unidad ("23,5 h", "4,8 / 5") caben mejor un poco mas pequenos. */
.indicador .valor.compacto { font-size: 23px; }
.indicador .etiqueta {
  font-size: 11.5px;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.indicador.alerta { border-left-color: var(--rojo); }
.indicador.alerta .valor { color: var(--rojo-oscuro); }
.indicador.aviso { border-left-color: var(--ambar-vivido); }
.indicador.aviso .valor { color: var(--ambar); }
.indicador.bien { border-left-color: var(--verde); }
.indicador.clicable { cursor: pointer; transition: box-shadow .12s, transform .12s; }
.indicador.clicable:hover {
  box-shadow: 0 4px 12px rgba(16, 24, 40, .12);
  transform: translateY(-1px);
}

/* -- Barras de distribucion ------------------------------------------------ */

.barras { display: flex; flex-direction: column; gap: 11px; }

.barras .fila { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.barras .nombre {
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.barras .conteo { font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; }
.barras .pista {
  grid-column: 1 / -1;
  height: 7px;
  background: var(--gris-tenue);
  border-radius: 999px;
  overflow: hidden;
}
.barras .pista > span { display: block; height: 100%; background: var(--azul); border-radius: 999px; }
.barras .pista.verde > span { background: var(--verde); }
.barras .pista.ambar > span { background: var(--ambar-vivido); }
.barras .pista.roja > span { background: var(--rojo); }
.barras .pista.gris > span { background: var(--gris-medio); }
/* Paleta de datos (seccion 24-25): para distribuciones neutrales por
   categoria (area, tipo...) que no tienen un significado semaforo. */
.barras .pista.dato-1 > span { background: var(--data-sky); }
.barras .pista.dato-2 > span { background: var(--data-grape); }
.barras .pista.dato-3 > span { background: var(--data-coral); }
.barras .pista.dato-4 > span { background: var(--data-mint); }
.barras .pista.dato-5 > span { background: var(--data-cherry); }
.barras .pista.dato-6 > span { background: var(--data-teal); }
.barras .pista.dato-7 > span { background: var(--data-cotton-candy); }
.barras .pista.dato-8 > span { background: var(--data-leaf); }
.barras .pista.dato-9 > span { background: var(--data-sunshine); }
.barras .fila.clicable { cursor: pointer; }
.barras .fila.clicable:hover .nombre { color: var(--azul); }

/* -- Formularios ---------------------------------------------------------- */

.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.campo .ayuda { font-size: 12px; color: var(--texto-suave); margin-top: 4px; }
.campo .obligatorio { color: var(--rojo); }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=search], select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--texto);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(0, 0, 143, .16);
}
textarea { resize: vertical; min-height: 92px; }

.boton {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--azul);
  color: #fff;
  border: 1px solid var(--azul);
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}
.boton:hover:not(:disabled) { background: var(--azul-claro); border-color: var(--azul-claro); }
.boton:disabled { opacity: .55; cursor: not-allowed; }
.boton.secundario { background: #fff; color: var(--azul); }
.boton.secundario:hover:not(:disabled) { background: var(--azul-tenue); }
.boton.peligro { background: var(--rojo); border-color: var(--rojo); }
.boton.peligro:hover:not(:disabled) { background: var(--rojo-oscuro); border-color: var(--rojo-oscuro); }
.boton.exito { background: var(--verde); border-color: var(--verde); }
.boton.exito:hover:not(:disabled) { background: var(--verde-oscuro); border-color: var(--verde-oscuro); }
.boton.pequeno { padding: 6px 12px; font-size: 12.5px; }

.acciones { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* -- Tablas --------------------------------------------------------------- */

.tabla-envoltura { overflow-x: auto; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--panel); }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
thead th {
  background: var(--gris-tenue);
  text-align: left;
  padding: 10px 12px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--texto-suave);
  border-bottom: 1px solid var(--borde);
  white-space: nowrap;
}
tbody td { padding: 11px 12px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clicable { cursor: pointer; }
tbody tr.clicable:hover { background: var(--azul-tenue); }

.radicado {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--azul);
  white-space: nowrap;
}

/* -- Etiquetas de estado --------------------------------------------------- */

.etiqueta {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.etiqueta.azul { background: var(--azul-tenue); color: var(--azul); border-color: #c7d2fe; }
.etiqueta.verde { background: var(--verde-tenue); color: var(--verde); border-color: #b6e3c8; }
.etiqueta.ambar { background: var(--ambar-tenue); color: var(--ambar); border-color: #fcd995; }
.etiqueta.roja { background: var(--rojo-tenue); color: var(--rojo-oscuro); border-color: #f8c7c2; }
.etiqueta.gris { background: var(--gris-tenue); color: var(--texto-suave); border-color: var(--borde); }

.punto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.punto.verde { background: var(--verde); }
.punto.amarillo { background: var(--ambar-vivido); }
.punto.rojo { background: var(--rojo); }
.punto.gris { background: var(--gris-medio); }

/* -- Barra de SLA --------------------------------------------------------- */

.barra-sla { height: 6px; background: var(--gris-tenue); border-radius: 999px; overflow: hidden; min-width: 70px; }
.barra-sla > span { display: block; height: 100%; background: var(--verde); }
.barra-sla.amarillo > span { background: var(--ambar-vivido); }
.barra-sla.rojo > span { background: var(--rojo); }
.barra-sla.gris > span { background: var(--gris-medio); }

/* -- Bitacora ------------------------------------------------------------- */

.bitacora { list-style: none; margin: 0; padding: 0; }
.bitacora li {
  border-left: 3px solid var(--borde);
  padding: 0 0 20px 18px;
  margin-left: 8px;
  position: relative;
}
.bitacora li:last-child { padding-bottom: 0; }
.bitacora li::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--azul);
  border: 2px solid #fff;
}
.bitacora li.interna { border-left-color: var(--ambar-vivido); }
.bitacora li.interna::before { background: var(--ambar-vivido); }
.bitacora li.final { border-left-color: var(--verde); }
.bitacora li.final::before { background: var(--verde); }
.bitacora .cabecera { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 5px; }
.bitacora .cabecera strong { font-size: 13.5px; }
.bitacora .cabecera time { font-size: 12px; color: var(--texto-suave); }
.bitacora .mensaje { white-space: pre-wrap; background: var(--gris-tenue); padding: 10px 12px; border-radius: 6px; }
.bitacora li.interna .mensaje { background: var(--ambar-tenue); }
.bitacora li.final .mensaje { background: var(--verde-tenue); }

/* -- Ficha de datos ------------------------------------------------------- */

.ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px 20px; }
.ficha div { padding: 7px 0; border-bottom: 1px dashed var(--borde); }
.ficha dt { font-size: 11.5px; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .4px; }
.ficha dd { margin: 2px 0 0; font-size: 14px; }

/* -- Avisos --------------------------------------------------------------- */

.aviso { padding: 11px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 13.5px; border: 1px solid transparent; }
.aviso.error { background: var(--rojo-tenue); color: var(--rojo-oscuro); border-color: #f8c7c2; }
.aviso.ok { background: var(--verde-tenue); color: var(--verde); border-color: #b6e3c8; }
.aviso.info { background: var(--azul-tenue); color: var(--azul); border-color: #c7d2fe; }
.aviso.alerta { background: var(--ambar-tenue); color: var(--ambar); border-color: #fcd995; }
.aviso ul { margin: 6px 0 0; padding-left: 20px; }

.vacio { text-align: center; padding: 44px 20px; color: var(--texto-suave); }

/* -- Login ---------------------------------------------------------------- */

.pantalla-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  /* Degradado autorizado (seccion 51): solo AXA Blue + Blue Tint 3, uso
     limitado a portadas/login. */
  background: linear-gradient(150deg, var(--axa-blue) 0%, var(--axa-blue-tint-3) 100%);
}
.caja-login {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 18px 44px rgba(0, 0, 40, .3);
}
.caja-login .logo {
  text-align: center;
  margin: -34px -34px 26px;
  padding: 30px 34px;
  background: linear-gradient(150deg, var(--axa-blue) 0%, var(--axa-blue-tint-3) 100%);
  border-radius: 12px 12px 0 0;
}
.caja-login .logo img { height: 56px; width: auto; }
.caja-login .logo span {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  color: #c9d4ff;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.caja-login .boton { width: 100%; justify-content: center; margin-top: 6px; }
.caja-login .pie { margin-top: 20px; text-align: center; font-size: 12px; color: var(--texto-suave); }

/* Subtitulo del login (bajo la banda azul, sobre el cuerpo blanco). */
.subtitulo-login {
  font-family: var(--fuente-titular);
  font-size: 19px;
  color: var(--azul);
  text-align: center;
  margin: 0 0 22px;
}

/* -- Pagina de contacto ----------------------------------------------------- */
.lista-contacto { display: flex; flex-direction: column; gap: 18px; margin: 22px 0 26px; }
.item-contacto { display: flex; gap: 14px; align-items: flex-start; }
.icono-contacto {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--azul-tenue);
  color: var(--azul);
  display: flex; align-items: center; justify-content: center;
}
.icono-contacto svg { width: 19px; height: 19px; }
.item-contacto strong { display: block; font-size: 13px; margin-bottom: 2px; }
.item-contacto a, .item-contacto span { font-size: 13.5px; color: var(--texto-suave); }
.item-contacto a { color: var(--azul); text-decoration: none; }
.item-contacto a:hover { text-decoration: underline; }

/* -- Asistente virtual flotante --------------------------------------------- */
.asistente-cac { position: fixed; right: 22px; bottom: 22px; z-index: 500; }

.asistente-boton {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #fff;
  color: var(--axa-blue);
  border: 2.5px solid var(--axa-blue);
  box-shadow: 0 10px 28px rgba(0, 0, 40, .4), 0 0 0 5px rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.asistente-boton:hover { background: var(--axa-blue); color: #fff; transform: translateY(-2px) scale(1.04); }
.asistente-boton svg { width: 27px; height: 27px; }

.asistente-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: 70vh;
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 30, .3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.asistente-panel.oculto { display: none; }

.asistente-cabecera {
  background: linear-gradient(150deg, var(--axa-blue) 0%, var(--axa-blue-tint-3) 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.asistente-cabecera strong { display: block; font-size: 13.5px; }
.asistente-cabecera span { display: block; font-size: 11px; color: #c9d4ff; margin-top: 1px; }
.asistente-acciones-cabecera { display: flex; align-items: center; gap: 4px; flex: none; }
.asistente-cabecera button {
  background: transparent; border: 0; color: #fff;
  cursor: pointer; opacity: .85; padding: 4px 8px;
}
.asistente-cabecera button:hover { opacity: 1; }
#asistente-menu {
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: 4px 10px;
}
#asistente-reinicio {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
}
#asistente-reinicio svg { width: 13px; height: 13px; }
#asistente-cerrar { font-size: 20px; line-height: 1; padding: 2px 4px; }

.asistente-mensajes {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--fondo);
}
.asistente-msj {
  max-width: 84%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-line;
}
.asistente-msj.bot { align-self: flex-start; background: var(--azul-tenue); border: 1px solid #c7d2fe; color: var(--texto); border-bottom-left-radius: 3px; }
.asistente-msj.propio { align-self: flex-end; background: var(--azul); color: #fff; border-bottom-right-radius: 3px; }

.asistente-sugerencias { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.asistente-chip {
  border: 1px solid var(--borde);
  background: var(--panel);
  color: var(--azul);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
  text-align: left;
}
.asistente-chip:hover { background: var(--azul-tenue); }

.asistente-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--borde); }
.asistente-form input {
  flex: 1;
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--texto);
  background: #fff;
}
.asistente-form input:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0, 0, 143, .14); }
.asistente-form button {
  width: 36px; flex: none;
  border: 0; border-radius: 8px;
  background: var(--azul); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.asistente-form button svg { width: 16px; height: 16px; }
.asistente-form button:hover { background: var(--azul-claro); }

@media (max-width: 600px) {
  .asistente-cac { right: 12px; bottom: 12px; }
  /* En celular el panel se fija a los bordes en vez de crecer desde el
     boton: as no se "come" la pantalla y se ve el contexto de la pagina. */
  .asistente-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 84px;
    width: auto;
    max-width: none;
    height: min(56vh, 420px);
    max-height: min(56vh, 420px);
  }
  .asistente-msj { max-width: 88%; }
}

/* -- Filtros -------------------------------------------------------------- */

.filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.filtros .campo { margin-bottom: 0; min-width: 0; }

.cabecera-filtros {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  cursor: pointer;
  user-select: none;
  border: 1.5px solid var(--azul);
  border-radius: 10px;
  padding: 11px 16px;
  background: var(--azul-tenue);
  transition: background-color .15s ease, box-shadow .15s ease;
}
.cabecera-filtros:hover { background: var(--azul-tenue); box-shadow: 0 0 0 3px rgba(0, 0, 143, .12); }
.cabecera-filtros h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--azul); border: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.resumen-filtros { font-size: 12.5px; color: var(--azul); opacity: .8; margin-left: auto; }

/* Panel de filtros desplegable: la cabecera siempre se ve (con borde azul
   para que se identifique rapido como control), el cuerpo (los campos y
   los chips) se abre o se cierra para no ocupar tanto espacio. */
.chevron-filtros {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; color: var(--azul);
  transition: transform .15s ease;
}
.panel-filtros.abierto .chevron-filtros { transform: rotate(180deg); }
.panel-filtros.abierto .cabecera-filtros { border-radius: 10px 10px 0 0; margin-bottom: 14px; }
.cuerpo-filtros { display: none; padding-top: 4px; }
.panel-filtros.abierto .cuerpo-filtros { display: block; }

/* Chips de filtros activos */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--azul-tenue);
  color: var(--azul);
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 3px 6px 3px 11px;
  font-size: 12px;
}
.chip button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 3px;
  font-family: inherit;
}
.chip button:hover { color: var(--rojo); }

/* Botonera de acciones dentro de una tabla */
.acciones-fila { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }

.paginacion { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 14px; font-size: 13px; }

/* -- Modal ---------------------------------------------------------------- */

.velo {
  position: fixed; inset: 0;
  background: rgba(12, 18, 35, .55);
  display: grid; place-items: center;
  padding: 20px;
  z-index: 50;
}
.modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.modal h2 { margin: 0 0 16px; font-size: 17px; }

.oculto { display: none !important; }

.credito-desarrollador {
  align-self: flex-start;
  font-size: 10px;
  color: #fff;
  opacity: .6;
  letter-spacing: .2px;
}

/* -- Pie de pagina institucional (seccion Legales del manual de marca +
   redes sociales), presente en todas las pantallas. ------------------- */
.pie-sitio {
  /* Mismo degradado exacto que el fondo de las pantallas de acceso
     (.pantalla-login), rectangular y sin bordes, para que se sienta
     continuacion de esa misma superficie y no un recorte aparte. */
  background: linear-gradient(150deg, var(--axa-blue) 0%, var(--axa-blue-tint-3) 100%);
  color: #c9d4ff;
  padding: 22px 24px 24px;
}
.pie-sitio-interno {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.pie-sitio-legal {
  font-size: 11px;
  line-height: 1.6;
  color: #9fb0e8;
  max-width: 760px;
}
.pie-sitio-redes {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pie-sitio-redes a:not(.pie-sitio-marca) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background-color .15s ease;
}
.pie-sitio-redes a:not(.pie-sitio-marca):hover { background: rgba(255, 255, 255, .24); }
.pie-sitio-redes a:not(.pie-sitio-marca) svg { width: 14px; height: 14px; }
.pie-sitio-marca {
  display: flex;
  align-items: center;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .22);
  text-decoration: none;
}
.pie-sitio-marca strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #fff;
  white-space: nowrap;
}
.pie-sitio-marca:hover strong { text-decoration: underline; }

@media (max-width: 640px) {
  .pie-sitio-redes { gap: 6px; }
  .pie-sitio-marca { margin-left: 0; padding-left: 0; border-left: 0; }
}

@media (max-width: 860px) {
  .barra-interna { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .menu { margin-left: 0; order: 3; width: 100%; }
  .sesion { margin-left: auto; }
  .contenido { padding: 16px; }
}

/* -- Pantallas publicas de cuenta ------------------------------------------ */

.caja-login.ancha { max-width: 620px; }

.enlaces-login {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--borde);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.enlaces-login a { color: var(--azul); text-decoration: none; font-weight: 500; }
.enlaces-login a:hover { text-decoration: underline; }

/* Requisitos de la contrasena, se marcan en verde al cumplirse */
.requisitos { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; }
.requisitos li { color: var(--texto-suave); padding: 2px 0 2px 18px; position: relative; }
.requisitos li::before { content: "○"; position: absolute; left: 2px; }
.requisitos li.cumplido { color: var(--verde); }
.requisitos li.cumplido::before { content: "●"; }

.seccion-form {
  margin: 22px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--borde);
  font-size: 13px;
  font-weight: 600;
  color: var(--azul);
}
.seccion-form:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.solo-comercial.oculto { display: none; }

.resultado-cuenta { text-align: center; padding: 10px 0; }
.resultado-cuenta .icono { font-size: 46px; line-height: 1; margin-bottom: 12px; }
.resultado-cuenta h1 { font-size: 19px; margin: 0 0 10px; }
.resultado-cuenta p { color: var(--texto-suave); margin: 0 0 8px; }
