/* ==========================================================
   Plataforma unificada del Cuerpo de Bomberos del Cantón Paute
   (Aula Virtual, Portal de Transparencia, Noticias y Asistente virtual)
   Se carga DESPUÉS de main.css: usa la paleta y la tipografía del tema
   (rojo institucional #800b01, negro #0f0f0f, DM Sans).
   ========================================================== */
:root {
  --cbp-red: #800b01;
  --cbp-red-dark: #5a0801;
  --cbp-black: #0f0f0f;
  --text-3: #585959;
}
.cbp-enfasis { color: var(--cbp-red); }
[data-bs-theme="dark"] .cbp-enfasis { color: #ff6b5e; }

/* ==========================================================
   Portal de Transparencia
   ========================================================== */
.tp-barra { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.tp-migas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.tp-migas a, .tp-migas span { color: var(--text-3); }
.tp-migas a:hover { color: var(--cbp-red); }
.tp-migas > * + *::before { content: "/"; margin: 0 8px 0 2px; color: var(--cbp-red); }
.tp-migas span { color: var(--cbp-black); font-weight: 600; }
.tp-migas i { color: var(--cbp-red); }
.tp-buscar { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 420px; max-width: 560px; }
.tp-buscar > i { position: absolute; left: 20px; color: #9a9ea8; }
.tp-buscar input {
  flex: 1; min-width: 0; height: 54px; padding: 0 18px 0 48px;
  border: 1.5px solid rgba(15, 15, 15, .14); border-radius: 40px; background: #fff;
  font: 500 15px "DM Sans", sans-serif; color: var(--cbp-black);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.tp-buscar input:focus { outline: 0; border-color: var(--cbp-red); box-shadow: 0 0 0 4px rgba(128, 11, 1, .12); }
.tp-buscar .theme-btn { height: 54px; padding: 0 26px; }

.tp-categorias-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 34px; scrollbar-width: thin; }
.tp-categorias-nav a {
  flex: 0 0 auto; padding: 9px 18px; border-radius: 30px; border: 1px solid rgba(15, 15, 15, .12);
  background: #fff; color: var(--cbp-black); font-weight: 600; font-size: 14px; white-space: nowrap; transition: all .25s ease;
}
.tp-categorias-nav a:hover { border-color: var(--cbp-red); color: var(--cbp-red); }
.tp-categorias-nav a.is-activa { background: var(--cbp-red); border-color: var(--cbp-red); color: #fff; }

.tp-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tp-cifras > div { position: relative; overflow: hidden; padding: 28px; border-radius: 24px; background: var(--cbp-black); color: rgba(255, 255, 255, .75); }
.tp-cifras > div::after {
  content: ""; position: absolute; right: -40px; bottom: -50px; width: 160px; height: 160px; background: #fff; opacity: .05;
  -webkit-mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat;
}
.tp-cifras > div:nth-child(3n+2)::after { -webkit-mask-image: url(../imgs/marca/ovalo-silueta.png); mask-image: url(../imgs/marca/ovalo-silueta.png); }
.tp-cifras > div:nth-child(3n)::after { -webkit-mask-image: url(../imgs/marca/ovalo-silueta.png); mask-image: url(../imgs/marca/ovalo-silueta.png); }
.tp-cifras > div:first-child { background: linear-gradient(135deg, var(--cbp-red), var(--cbp-red-dark)); color: rgba(255, 255, 255, .85); }
.tp-cifras strong { display: block; font-size: clamp(36px, 4vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.tp-cifras span { display: block; margin-top: 8px; font-weight: 600; }

.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.tp-cat {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 28px;
  border-radius: 24px; background: #fff; border: 1px solid rgba(15, 15, 15, .1); color: var(--text-3);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.tp-cat:hover { transform: translateY(-6px); border-color: var(--cbp-red); box-shadow: 0 26px 50px -30px rgba(128, 11, 1, .55); }
.tp-cat__marca {
  position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; background: var(--cbp-red); opacity: .06;
  -webkit-mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat;
  transition: transform .8s ease, opacity .4s ease;
}
.tp-cat:nth-child(4n+2) .tp-cat__marca { -webkit-mask-image: url(../imgs/marca/hacha-silueta.png); mask-image: url(../imgs/marca/ovalo-silueta.png); }
.tp-cat:nth-child(4n+3) .tp-cat__marca { -webkit-mask-image: url(../imgs/marca/ovalo-silueta.png); mask-image: url(../imgs/marca/ovalo-silueta.png); }
.tp-cat:nth-child(4n) .tp-cat__marca { -webkit-mask-image: url(../imgs/marca/ovalo-silueta.png); mask-image: url(../imgs/marca/ovalo-silueta.png); }
.tp-cat:hover .tp-cat__marca { transform: translate(-12px, 12px) rotate(-10deg); opacity: .14; }
.tp-cat__num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--cbp-red); }
.tp-cat h3 { margin: 0; font-size: 24px; color: var(--cbp-black); }
.tp-cat p { margin: 0; font-size: 15px; line-height: 1.5; text-align: left; }
.tp-cat__anios { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-cat__anios span { padding: 3px 10px; border-radius: 20px; background: #f4f3f3; color: var(--cbp-black); font-size: 12px; font-weight: 700; }
.tp-cat__pie { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.tp-cat__pie i { color: var(--cbp-red); }
.tp-cat__ir { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f4f3f3; transition: all .3s ease; }
.tp-cat:hover .tp-cat__ir { background: var(--cbp-red); }
.tp-cat:hover .tp-cat__ir i { color: #fff; }

.tp-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tp-sub {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 20px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(15, 15, 15, .1); transition: all .3s ease;
}
.tp-sub__nombre { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--cbp-black); line-height: 1.1; }
.tp-sub__docs { font-size: 14px; color: var(--text-3); }
.tp-sub > i { position: absolute; right: 20px; top: 24px; color: var(--cbp-red); transition: transform .3s ease; }
.tp-sub:hover { background: var(--cbp-red); border-color: var(--cbp-red); transform: translateY(-4px); }
.tp-sub:hover .tp-sub__nombre, .tp-sub:hover .tp-sub__docs, .tp-sub:hover > i { color: #fff; }
.tp-sub:hover > i { transform: translateX(4px); }

.tp-panel { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid rgba(15, 15, 15, .1); }
.tp-panel__cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tp-panel .section-title { margin: 0; }
.tp-enlace { border: 0; background: none; color: var(--cbp-red); font-weight: 600; }
.tp-intro { padding: 22px 26px; border-radius: 20px; background: #f4f3f3; color: var(--cbp-black); text-align: justify; }
.tp-vacio { padding: 40px 20px; text-align: center !important; color: var(--text-3); }
.tp-vacio i { display: block; font-size: 38px; color: var(--cbp-red); margin-bottom: 10px; }
.tp-vacio-mini { margin: 6px 0; font-size: 14px; color: #9a9ea8; }
.tp-resultados { font-weight: 600; color: var(--cbp-black); }

/* Documento */
.tp-doc { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid rgba(15, 15, 15, .08); }
.tp-doc:last-child { border-bottom: 0; }
.tp-doc.is-no-disponible { opacity: .6; }
.tp-doc__icono { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(128, 11, 1, .08); color: var(--cbp-red); }
.tp-ext--xls .tp-doc__icono, .tp-doc__icono.tp-ext--xls, .tp-doc__icono.tp-ext--xlsx, .tp-doc__icono.tp-ext--csv { background: rgba(31, 140, 80, .1); color: #1f8c50; }
.tp-doc__icono.tp-ext--doc, .tp-doc__icono.tp-ext--docx { background: rgba(40, 90, 200, .1); color: #2a5ac8; }
.tp-doc__icono--carpeta { background: rgba(240, 170, 30, .14); color: #d18b00; }
.tp-doc__info { flex: 1; min-width: 0; }
.tp-doc__info h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--cbp-black); overflow-wrap: anywhere; }
.tp-doc__info h4 a { color: inherit; }
.tp-doc__info h4 a:hover { color: var(--cbp-red); }
.tp-doc__info p { margin: 0 0 4px; font-size: 14px; color: var(--text-3); text-align: left; }
.tp-doc__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #868b96; }
.tp-doc__meta span:first-child { font-weight: 700; color: var(--cbp-black); }
.tp-doc__cat { color: var(--cbp-red) !important; }
.tp-doc__acciones { display: flex; gap: 8px; flex: 0 0 auto; }
.tp-doc__aviso { font-size: 13px; color: #9a9ea8; }
.tp-doc--grande .tp-doc__info h4 { font-size: 20px; }
.tp-btn-icono {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(15, 15, 15, .14); background: #fff; color: var(--cbp-black);
  display: inline-flex; align-items: center; justify-content: center; transition: all .25s ease;
}
.tp-btn-icono:hover { border-color: var(--cbp-black); background: var(--cbp-black); color: #fff; }
.tp-btn-icono--rojo { background: var(--cbp-red); border-color: var(--cbp-red); color: #fff; }
.tp-doc__check { position: relative; flex: 0 0 22px; cursor: pointer; margin: 0; }
.tp-doc__check input { position: absolute; opacity: 0; }
.tp-doc__check span { display: block; width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(15, 15, 15, .25); transition: all .2s ease; }
.tp-doc__check input:checked + span { background: var(--cbp-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' stroke='white' stroke-width='2.2' fill='none'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--cbp-red); }
.tp-doc__check input:focus-visible + span { outline: 2px solid var(--cbp-red); outline-offset: 2px; }

/* Carpetas */
.tp-carpeta { margin-left: calc(var(--nivel, 0) * 22px); border-bottom: 1px solid rgba(15, 15, 15, .08); }
.tp-carpeta summary {
  display: flex; align-items: center; gap: 12px; padding: 16px 4px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--cbp-black);
}
.tp-carpeta summary::-webkit-details-marker { display: none; }
.tp-carpeta summary > i.fa-folder, .tp-carpeta summary > i.fa-folder-open { font-size: 20px; color: #e0a020; }
.tp-carpeta__abierta, .tp-carpeta[open] .tp-carpeta__cerrada { display: none; }
.tp-carpeta[open] .tp-carpeta__abierta { display: inline-block; }
.tp-carpeta summary span { flex: 1; }
.tp-carpeta summary em { font-style: normal; font-size: 13px; font-weight: 500; color: #868b96; }
.tp-carpeta__flecha { color: var(--cbp-red); transition: transform .3s ease; }
.tp-carpeta[open] > summary .tp-carpeta__flecha { transform: rotate(180deg); }
.tp-carpeta summary:hover span { color: var(--cbp-red); }
.tp-carpeta__contenido { padding: 0 0 8px 32px; border-left: 2px solid rgba(128, 11, 1, .15); margin-left: 12px; }
.tp-carpeta__desc { font-size: 14px; color: var(--text-3); text-align: left; }

/* Banner informativo de la subcategoría */
.tp-info { position: relative; overflow: hidden; padding: 34px; border-radius: 24px; background: var(--cbp-black); color: rgba(255, 255, 255, .82); }
.tp-info__marca { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; background: #fff; opacity: .05;
  -webkit-mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; }
.tp-info h2 { position: relative; color: #fff; font-size: 30px; margin: 0 0 14px; }
.tp-info__texto { position: relative; }
.tp-info__texto p, .tp-info__texto li { color: rgba(255, 255, 255, .82); }
.tp-info__texto a { color: #ff6b73; }
.tp-info__adjuntos { position: relative; margin-top: 22px; padding: 6px 20px; border-radius: 18px; background: #fff; }
.tp-info__adjuntos h3 { margin: 16px 0 4px; font-size: 16px; color: var(--cbp-black); }
.tp-info__adjuntos h3 i { color: var(--cbp-red); }

/* Barra de selección múltiple */
.tp-seleccion {
  position: fixed; left: 50%; bottom: 24px; z-index: 900; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 24px; border-radius: 40px;
  background: var(--cbp-black); color: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  animation: tp-sube .35s ease;
}
.tp-seleccion[hidden] { display: none; }
.tp-seleccion strong { color: #fff; }
.tp-seleccion__limpiar { border: 0; background: none; color: rgba(255, 255, 255, .7); font-weight: 600; }
.tp-seleccion__limpiar:hover { color: #fff; }
@keyframes tp-sube { from { transform: translate(-50%, 30px); opacity: 0; } }

/* Visor de PDF */
.tp-visor { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.tp-visor[hidden] { display: none; }
.tp-visor__fondo { position: absolute; inset: 0; background: rgba(14, 11, 11, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tp-visor__caja { position: relative; width: min(1100px, 100%); height: min(88vh, 1000px); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; }
.tp-visor__cab { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 22px; border-bottom: 1px solid rgba(15, 15, 15, .1); }
.tp-visor__cab strong { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cbp-black); }
.tp-visor iframe, .tp-pdf { flex: 1; width: 100%; border: 0; }
.tp-pdf { height: 80vh; margin-top: 16px; border-radius: 16px; border: 1px solid rgba(15, 15, 15, .1); }

@media (max-width: 767px) {
  .tp-cifras { grid-template-columns: 1fr; }
  .tp-panel, .tp-info { padding: 20px; }
  .tp-buscar .theme-btn { padding: 0 18px; }
  .tp-doc { flex-wrap: wrap; }
  .tp-doc__info { flex-basis: calc(100% - 110px); }
  .tp-doc__acciones { margin-left: auto; }
  .tp-carpeta__contenido { padding-left: 14px; margin-left: 6px; }
  .tp-carpeta { margin-left: 0; }
  .tp-seleccion { left: 12px; right: 12px; transform: none; padding-left: 16px; gap: 10px; font-size: 14px; }
  .tp-seleccion .theme-btn { padding: 0 16px; }
  @keyframes tp-sube { from { transform: translateY(30px); opacity: 0; } }
}
.tp-sub__nombre.is-largo { font-size: 17px; font-weight: 700; letter-spacing: 0; line-height: 1.35; padding-right: 26px; }
.tp-subs:has(.is-largo) { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ==========================================================
   Aula Virtual (público y estudiantes)
   ========================================================== */
.au-estrecho { max-width: 900px; }
.au-estrecho--chico { max-width: 620px; }
.sub-title-mini { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cbp-red); margin-bottom: 8px; }
.pn-cruz-sitio { width: 14px; height: 14px; background: var(--cbp-red); -webkit-mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; }
.au-tarjeta { position: relative; padding: 32px; border-radius: 24px; background: #fff; border: 1px solid rgba(15, 15, 15, .1); box-shadow: 0 30px 70px -50px rgba(15, 15, 15, .45); }
.au-tarjeta--chica { padding: 20px; border-radius: 20px; }
.au-h3 { font-size: 24px; margin-bottom: 18px; }
.au-aviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; margin-bottom: 20px; font-weight: 500; }
.au-aviso i { margin-top: 4px; }
.au-aviso--ok { background: rgba(31, 180, 99, .1); color: #1d6e43; }
.au-aviso--error { background: rgba(128, 11, 1, .08); color: var(--cbp-red-dark); }
.au-aviso--info { background: rgba(15, 15, 15, .06); color: var(--cbp-black); }
.au-aviso a { color: inherit; text-decoration: underline; }

/* Formularios */
.au-form { display: flex; flex-direction: column; gap: 16px; }
.au-form--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.au-campo { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.au-campo--ancho { grid-column: 1 / -1; }
.au-campo > span { font-size: 14px; font-weight: 600; color: var(--cbp-black); }
.au-campo input, .au-campo select, .au-campo textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid rgba(15, 15, 15, .14); border-radius: 14px; background: #fff;
  font: 500 15px "DM Sans", sans-serif; color: var(--cbp-black); transition: border-color .25s ease, box-shadow .25s ease;
}
.au-campo input:focus { outline: 0; border-color: var(--cbp-red); box-shadow: 0 0 0 4px rgba(128, 11, 1, .12); }
.au-campo small { font-size: 13px; min-height: 1em; color: var(--text-3); }
.au-campo small.is-ok { color: #1d8a4e; }
.au-campo small.is-error { color: var(--cbp-red); }
.au-form__acciones { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.au-requisitos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.au-requisitos li { padding: 4px 12px; border-radius: 20px; background: #f4f3f3; font-size: 13px; color: var(--text-3); transition: all .2s ease; }
.au-requisitos li.is-ok { background: rgba(31, 180, 99, .12); color: #1d6e43; }
.au-requisitos li.is-ok::before { content: "✓ "; }
.au-btn-borde { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 40px; border: 1.5px solid rgba(15, 15, 15, .2); background: #fff; color: var(--cbp-black); font-weight: 600; transition: all .25s ease; }
.au-btn-borde:hover { border-color: var(--cbp-black); background: var(--cbp-black); color: #fff; }
.au-pestanas { display: flex; gap: 6px; padding: 5px; border-radius: 40px; background: #f4f3f3; margin-bottom: 18px; }
.au-pestanas button { flex: 1; border: 0; padding: 10px; border-radius: 30px; background: transparent; font-weight: 600; color: var(--cbp-black); }
.au-pestanas button.is-activa { background: var(--cbp-red); color: #fff; }
.au-volver { margin: 22px 0 0; }

/* Inicio del Aula */
.au-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.au-cifras > div { padding: 20px; border-radius: 20px; background: #f4f3f3; }
.au-cifras > div:first-child { background: var(--cbp-red); color: rgba(255, 255, 255, .85); }
.au-cifras > div:first-child strong { color: #fff; }
.au-cifras strong { display: block; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--cbp-black); }
.au-cifras span { font-size: 14px; font-weight: 600; }
.au-pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.au-pasos li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(15, 15, 15, .1); }
.au-pasos li > span { font-size: 26px; font-weight: 800; color: var(--cbp-red); line-height: 1; }
.au-pasos strong { display: block; color: var(--cbp-black); }
.au-pasos small { color: var(--text-3); font-size: 14px; }
.au-acceso { position: sticky; top: 120px; overflow: hidden; padding: 34px; border-radius: 28px; background: var(--cbp-black); color: rgba(255, 255, 255, .8); box-shadow: 0 40px 80px -40px rgba(15, 15, 15, .7); }
.au-acceso__marca { position: absolute; right: -70px; top: -70px; width: 230px; height: 230px; background: #fff; opacity: .05; -webkit-mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; }
.au-acceso h3 { color: #fff; font-size: 32px; margin-bottom: 20px; }
.au-acceso .au-campo > span { color: rgba(255, 255, 255, .8); }
.au-acceso .au-campo input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.au-acceso__links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.au-acceso__links a { color: rgba(255, 255, 255, .7); }
.au-acceso__links a:hover { color: #fff; }
.au-acceso__registro { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #fff; }
.au-acceso__registro:hover { background: var(--cbp-red); color: #fff; }

/* Cursos */
.au-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.au-curso { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid rgba(15, 15, 15, .1); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.au-curso:hover { transform: translateY(-6px); border-color: var(--cbp-red); box-shadow: 0 26px 50px -30px rgba(128, 11, 1, .5); }
.au-curso__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f4f3f3; }
.au-curso__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.au-curso:hover .au-curso__img img { transform: scale(1.05); }
.au-curso__nivel { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 20px; background: var(--cbp-red); color: #fff; font-size: 12px; font-weight: 700; }
.au-curso__nivel.is-ok { background: #1d8a4e; }
.au-curso__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.au-curso__body h3 { margin: 0; font-size: 21px; line-height: 1.3; }
.au-curso__body p { margin: 0; font-size: 15px; color: var(--text-3); text-align: left; }
.au-curso__datos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-3); }
.au-curso__datos i { color: var(--cbp-red); }
.au-curso__body .cbp-link, .au-curso__body form, .au-curso__acciones { margin-top: auto; }
.au-curso__acciones { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.au-progreso { height: 10px; border-radius: 10px; background: #f0eeee; overflow: hidden; margin: 6px 0; }
.au-progreso span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--cbp-red-dark), var(--cbp-red)); transition: width .4s ease; }
.au-progreso__texto { font-size: 14px !important; }
.au-verificar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border-radius: 22px; background: #f4f3f3; }
.au-verificar > div { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; }
.au-verificar > div > i { font-size: 34px; color: var(--cbp-red); }
.au-verificar strong { display: block; color: var(--cbp-black); }
.au-verificar small { color: var(--text-3); }
.au-verificar input { flex: 2 1 260px; height: 52px; padding: 0 18px; border-radius: 30px; border: 1.5px solid rgba(15, 15, 15, .14); font: 500 15px "DM Sans", sans-serif; }
.au-verificar input:focus { outline: 0; border-color: var(--cbp-red); }

/* Barra del estudiante */
.au-barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; padding: 12px 14px; border-radius: 22px; background: #fff; border: 1px solid rgba(15, 15, 15, .1); box-shadow: 0 20px 50px -40px rgba(15, 15, 15, .5); }
.au-barra__yo { display: flex; align-items: center; gap: 12px; }
.au-barra__yo img, .au-barra__yo > span { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--cbp-red); color: #fff; font-weight: 700; }
.au-barra__yo small { display: block; font-size: 12px; color: var(--text-3); }
.au-barra__yo strong { color: var(--cbp-black); }
.au-barra__links { display: flex; gap: 4px; flex-wrap: wrap; }
.au-barra__links a { padding: 10px 16px; border-radius: 14px; color: var(--cbp-black); font-weight: 600; font-size: 14px; }
.au-barra__links a i { color: var(--cbp-red); margin-right: 4px; }
.au-barra__links a:hover { background: #f4f3f3; }
.au-barra__links a.is-activo { background: var(--cbp-black); color: #fff; }
.au-barra__links a.is-activo i { color: #ff5a63; }
.au-barra__salir { color: var(--text-3) !important; }

/* Ver curso */
.au-curso-vista { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.au-curso-vista__lado { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
.au-player { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .7); }
.au-player:fullscreen { border-radius: 0; aspect-ratio: auto; }
.au-player__marco { position: absolute; inset: 0; overflow: hidden; }
.au-player__marco iframe { position: absolute; left: 0; top: -16.5%; width: 100%; height: 133% !important; border: 0; pointer-events: none; }
.au-player__escudo { position: absolute; inset: 0 0 60px; z-index: 2; cursor: pointer; }
.au-player__portada { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); cursor: pointer; transition: opacity .3s ease; }
.au-player__portada span { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cbp-red); color: #fff; font-size: 26px; box-shadow: 0 0 0 0 rgba(128, 11, 1, .5); animation: cbp-pulse 2s infinite; }
.au-player__portada span i { margin-left: 4px; }
.au-player.is-playing .au-player__portada { opacity: 0; pointer-events: none; }
.au-player__barra { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 24px 16px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8)); color: #fff; }
.au-player.is-playing:not(:hover) .au-player__barra { opacity: 0; transition: opacity .3s ease; }
.au-player__barra button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.au-player__barra button:hover { background: var(--cbp-red); }
.au-player__tiempo { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.au-player__progreso { position: relative; flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); cursor: pointer; }
.au-player__progreso::before { content: ""; position: absolute; inset: -10px 0; }
.au-player__visto, .au-player__lleno { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; }
.au-player__visto { background: rgba(255, 255, 255, .35); }
.au-player__lleno { background: var(--cbp-red); }
.au-player__aviso { position: absolute; left: 50%; top: 18px; z-index: 6; transform: translateX(-50%); padding: 10px 18px; border-radius: 30px; background: rgba(15, 15, 15, .9); color: #fff; font-size: 14px; font-weight: 600; text-align: center; max-width: 90%; }
.au-player__siguiente { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(14, 11, 11, .9); color: rgba(255, 255, 255, .8); text-align: center; padding: 20px; }
.au-player__siguiente strong { font-size: 64px; font-weight: 800; color: #fff; line-height: 1; }
.au-player__siguiente span { font-size: 18px; color: #fff; font-weight: 600; }
.au-player__siguiente div { display: flex; gap: 10px; margin-top: 10px; }
.au-video-info { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.au-video-info small { color: var(--cbp-red); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.au-video-info h2 { font-size: 28px; margin: 4px 0 8px; }
.au-video-info p { color: var(--text-3); max-width: 640px; text-align: left; }
.au-video-info__nav { display: flex; gap: 10px; align-items: flex-start; }
.cbp-plat .theme-btn.is-bloqueado { opacity: .45; }
.au-material { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: #f4f3f3; border: 1px dashed rgba(15, 15, 15, .2); }
.au-material > i { font-size: 30px; color: #9a9ea8; }
.au-material > div { flex: 1; }
.au-material strong { display: block; color: var(--cbp-black); }
.au-material small { color: var(--text-3); }
.au-material:not(.is-libre) .theme-btn { opacity: .45; }
.au-material.is-libre { background: rgba(31, 180, 99, .08); border-style: solid; border-color: rgba(31, 180, 99, .3); }
.au-material.is-libre > i { color: var(--cbp-red); }
.au-pct { font-size: 28px; font-weight: 800; color: var(--cbp-red); }
.au-lista-videos { list-style: none; margin: 0; padding: 8px; border-radius: 20px; background: #fff; border: 1px solid rgba(15, 15, 15, .1); max-height: 460px; overflow-y: auto; }
.au-lista-videos a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--cbp-black); }
.au-lista-videos a[href]:hover { background: #f4f3f3; }
.au-lista-videos strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.au-lista-videos small { color: var(--text-3); font-size: 12px; }
.au-lista-videos__estado { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f0eeee; color: var(--text-3); font-size: 12px; }
.au-lista-videos li.is-visto .au-lista-videos__estado { background: rgba(31, 180, 99, .14); color: #1d8a4e; }
.au-lista-videos li.is-actual a { background: rgba(128, 11, 1, .08); }
.au-lista-videos li.is-actual .au-lista-videos__estado { background: var(--cbp-red); color: #fff; }
.au-lista-videos li.is-bloqueado a { opacity: .5; cursor: not-allowed; }
.au-eval h3 { font-size: 20px; margin: 4px 0 10px; }
.au-eval ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; color: var(--text-3); }
.au-eval ul li { padding: 4px 0; }
.au-eval__nota { margin: 0; padding: 12px; border-radius: 12px; background: #f4f3f3; font-size: 14px; }
.au-eval.is-aprobada { border-color: rgba(31, 180, 99, .4); }

/* Evaluación */
.au-eval-cab { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px; border-radius: 24px; background: var(--cbp-black); color: rgba(255, 255, 255, .8); }
.au-eval-cab h2 { color: #fff; font-size: 30px; margin: 0 0 6px; }
.au-eval-cab p { color: rgba(255, 255, 255, .75); text-align: left; margin: 0; }
.au-eval-cab ul { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.au-eval-cab li { padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); text-align: center; }
.au-eval-cab li strong { display: block; color: #fff; font-size: 24px; font-weight: 800; }
.au-eval-cab li span { font-size: 12px; }
.au-eval-avance { position: sticky; top: 96px; z-index: 5; display: flex; align-items: center; gap: 16px; margin: 20px 0; padding: 12px 18px; border-radius: 18px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(15, 15, 15, .1); font-size: 14px; }
.au-eval-avance .au-progreso { flex: 1; margin: 0; }
.au-pregunta { margin: 0 0 18px; padding: 24px; border-radius: 22px; border: 1.5px solid rgba(15, 15, 15, .1); background: #fff; transition: border-color .25s ease; }
.au-pregunta.is-respondida { border-color: rgba(31, 180, 99, .45); }
.au-pregunta legend { float: none; display: flex; gap: 12px; font-size: 18px; font-weight: 600; color: var(--cbp-black); line-height: 1.45; margin: 0 0 6px; }
.au-pregunta legend > span { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cbp-red); color: #fff; font-size: 15px; }
.au-pregunta__tipo { font-size: 13px; color: var(--text-3); margin: 0 0 14px 46px; text-align: left !important; }
.au-opcion { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 8px 46px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid rgba(15, 15, 15, .1); cursor: pointer; transition: all .2s ease; }
.au-opcion:hover { border-color: rgba(128, 11, 1, .4); }
.au-opcion input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cbp-red); flex: 0 0 auto; }
.au-opcion:has(input:checked) { border-color: var(--cbp-red); background: rgba(128, 11, 1, .05); }
.au-resultado { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; padding: 32px; border-radius: 28px; background: #fff; border: 1px solid rgba(15, 15, 15, .1); }
.au-resultado__aro { --color: #1d8a4e; width: 180px; height: 180px; flex: 0 0 180px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(closest-side, #fff 78%, transparent 80%), conic-gradient(var(--color) calc(var(--pct) * 1%), #f0eeee 0); }
.au-resultado.is-reprobado .au-resultado__aro { --color: var(--cbp-red); }
.au-resultado__aro strong { font-size: 38px; font-weight: 800; color: var(--color); line-height: 1; }
.au-resultado__aro small { color: var(--text-3); }
.au-resultado__texto { flex: 1 1 300px; }
.au-resultado__texto h2 { font-size: 30px; }
.au-resultado__texto ul { list-style: none; padding: 0; margin: 0 0 18px; color: var(--text-3); }
.au-revision { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.au-revision li { display: flex; gap: 14px; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid rgba(15, 15, 15, .1); }
.au-revision li > i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.au-revision li.is-ok > i { background: rgba(31, 180, 99, .14); color: #1d8a4e; }
.au-revision li.is-mal > i { background: rgba(128, 11, 1, .1); color: var(--cbp-red); }
.au-revision strong { display: block; color: var(--cbp-black); font-weight: 600; }
.au-revision small { color: var(--text-3); }

/* Certificados */
.au-certificados { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.au-cert { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, var(--cbp-black), #3a2a2a); color: rgba(255, 255, 255, .8); }
.au-cert__marca { position: absolute; right: -50px; bottom: -60px; width: 200px; height: 200px; background: #fff; opacity: .06; -webkit-mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; }
.au-cert__icono { font-size: 36px; color: #ff5a63; }
.au-cert h3 { color: #fff; font-size: 22px; margin: 0; }
.au-cert dl { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.au-cert dl div { display: flex; justify-content: space-between; gap: 10px; }
.au-cert dt { font-weight: 500; }
.au-cert dd { margin: 0; color: #fff; text-align: right; overflow-wrap: anywhere; }
.au-cert .cbp-link { color: #ff8a90; }
.au-certificado-ok, .au-certificado-no { display: flex; gap: 22px; align-items: flex-start; margin-top: 24px; padding: 30px; border-radius: 24px; }
.au-certificado-ok { background: rgba(31, 180, 99, .08); border: 1px solid rgba(31, 180, 99, .3); }
.au-certificado-ok__sello { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #1d8a4e; color: #fff; font-size: 26px; }
.au-certificado-ok h2 { font-size: 30px; margin: 4px 0 6px; }
.au-certificado-ok dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0 0; }
.au-certificado-ok dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.au-certificado-ok dd { margin: 0; font-weight: 600; color: var(--cbp-black); overflow-wrap: anywhere; }
.au-certificado-no { background: rgba(128, 11, 1, .06); border: 1px solid rgba(128, 11, 1, .2); }
.au-certificado-no > i { font-size: 46px; color: var(--cbp-red); }
.au-certificado-no h2 { font-size: 24px; }
.au-perfil { text-align: center; }
.au-perfil__foto { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; background: var(--cbp-red); color: #fff; font-size: 40px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.au-perfil__foto img { width: 100%; height: 100%; object-fit: cover; }
.au-perfil p { text-align: center !important; color: var(--text-3); }
.au-perfil__cifras { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.au-perfil__cifras li { padding: 12px 6px; border-radius: 14px; background: #f4f3f3; }
.au-perfil__cifras strong { display: block; font-size: 22px; color: var(--cbp-black); }
.au-perfil__cifras span { font-size: 12px; color: var(--text-3); }
.au-perfil .au-form { text-align: left; }

@media (max-width: 1199px) {
  .au-curso-vista { grid-template-columns: 1fr; }
  .au-curso-vista__lado { position: static; }
  .au-acceso { position: static; }
}
@media (max-width: 767px) {
  .au-form--grid { grid-template-columns: 1fr; }
  .au-cifras { grid-template-columns: 1fr; }
  .au-tarjeta, .au-acceso { padding: 22px; border-radius: 20px; }
  .au-pregunta { padding: 18px; }
  .au-pregunta__tipo, .au-opcion { margin-left: 0; }
  .au-resultado { padding: 22px; justify-content: center; text-align: center; }
  .au-certificado-ok, .au-certificado-no { flex-direction: column; padding: 22px; }
  .au-eval-cab ul { width: 100%; }
  .au-eval-cab li { flex: 1; }
  .au-player { border-radius: 16px; }
  .au-player__tiempo { display: none; }
}

/* ==========================================================
   Asistente virtual (widget del sitio)
   ========================================================== */
.cbp-asis { position: fixed; right: 24px; bottom: 24px; z-index: 9990; font-family: "DM Sans", sans-serif; }
.cbp-asis__boton { position: relative; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--cbp-red); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px rgba(128, 11, 1, .4); cursor: pointer; transition: transform .3s ease, background-color .3s ease; }
.cbp-asis__boton::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(128, 11, 1, .35); animation: cbpAsisPulso 2.4s ease-out infinite; }
.cbp-asis__boton:hover { transform: scale(1.06); background: var(--cbp-red-dark); }
.cbp-asis__boton:focus-visible { outline: 3px solid var(--cbp-black); outline-offset: 3px; }
.cbp-asis__icono-cerrar { display: none; }
.cbp-asis.is-abierto .cbp-asis__icono-abrir { display: none; }
.cbp-asis.is-abierto .cbp-asis__icono-cerrar { display: inline-block; }
.cbp-asis.is-abierto .cbp-asis__boton { background: var(--cbp-black); box-shadow: 0 14px 34px rgba(15, 15, 15, .35); }
.cbp-asis.is-abierto .cbp-asis__boton::before { display: none; }
.cbp-asis__aviso { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--cbp-black); border: 2px solid #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cbp-asis__aviso[hidden], .cbp-asis__burbuja[hidden], .cbp-asis__calificar[hidden] { display: none !important; }
@keyframes cbpAsisPulso { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

.cbp-asis__burbuja { position: absolute; right: 0; bottom: 80px; width: 270px; padding: 18px 40px 18px 20px; border-radius: 20px 20px 4px 20px; background: #fff; box-shadow: 0 18px 44px rgba(15, 15, 15, .18); cursor: pointer; animation: cbpAsisEntra .5s ease both; }
.cbp-asis__burbuja strong { display: block; font-size: 16px; font-weight: 800; color: var(--cbp-black); margin-bottom: 4px; }
.cbp-asis__burbuja span { font-size: 14px; line-height: 1.5; color: #5d6270; }
.cbp-asis__burbuja::before { content: ""; position: absolute; left: 18px; top: 18px; width: 4px; height: 22px; border-radius: 2px; background: var(--cbp-red); display: none; }
.cbp-asis__burbuja-cerrar { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #f4f3f3; color: var(--cbp-black); font-size: 12px; display: flex; align-items: center; justify-content: center; }
@keyframes cbpAsisEntra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cbp-asis__ventana { position: absolute; right: 0; bottom: 84px; width: 390px; height: min(640px, calc(100vh - 130px)); display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(15, 15, 15, .25); opacity: 0; visibility: hidden; transform: translateY(20px) scale(.96); transform-origin: bottom right; transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s; }
.cbp-asis.is-abierto .cbp-asis__ventana { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cbp-asis__cab { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px 18px 20px; background: var(--cbp-black); color: #fff; overflow: hidden; }
.cbp-asis__cab::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; background: rgba(255, 255, 255, .06); -webkit-mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; pointer-events: none; }
.cbp-asis__avatar { flex: 0 0 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--cbp-red); font-size: 18px; }
.cbp-asis__avatar img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cbp-asis__titulo { flex: 1; min-width: 0; }
.cbp-asis__titulo strong { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbp-asis__titulo small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.cbp-asis__punto-vivo { width: 8px; height: 8px; border-radius: 50%; background: #1fb463; box-shadow: 0 0 0 3px rgba(31, 180, 99, .25); }
.cbp-asis__cab-btn { position: relative; z-index: 1; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background-color .25s ease; }
.cbp-asis__cab-btn:hover { background: var(--cbp-red); }
.cbp-asis__emergencia { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; background: var(--cbp-red); color: #fff; font-size: 13px; font-weight: 600; }
.cbp-asis__emergencia:hover { color: #fff; background: var(--cbp-red-dark); }
.cbp-asis__mensajes { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: #f6f5f5; }
.cbp-asis__msg { max-width: 86%; display: flex; flex-direction: column; gap: 4px; }
.cbp-asis__msg time { font-size: 11px; color: #9a9ea8; padding: 0 6px; }
.cbp-asis__texto { padding: 12px 16px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; word-wrap: break-word; text-align: left; }
.cbp-asis__texto a { color: inherit; text-decoration: underline; font-weight: 600; word-break: break-word; }
.cbp-asis__msg--bot { align-self: flex-start; }
.cbp-asis__msg--bot .cbp-asis__texto { background: #fff; color: var(--cbp-black); border-bottom-left-radius: 6px; box-shadow: 0 2px 10px rgba(15, 15, 15, .05); }
.cbp-asis__msg--yo { align-self: flex-end; align-items: flex-end; }
.cbp-asis__msg--yo .cbp-asis__texto { background: var(--cbp-red); color: #fff; border-bottom-right-radius: 6px; }
.cbp-asis__msg.is-emergencia .cbp-asis__texto { background: #fff2f3; border: 1.5px solid var(--cbp-red); color: var(--cbp-red-dark); font-weight: 600; }
.cbp-asis__punto { display: block; position: relative; padding-left: 16px; }
.cbp-asis__punto::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cbp-red); }
.cbp-asis__msg--yo .cbp-asis__punto::before { background: #fff; }
.cbp-asis__sugerencias { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-left: 4px; }
.cbp-asis__sugerencias button { border: 1.5px solid rgba(128, 11, 1, .35); background: #fff; color: var(--cbp-red); border-radius: 18px; padding: 8px 14px; font-size: 13px; font-weight: 600; text-align: left; line-height: 1.35; transition: background-color .2s ease, color .2s ease; }
.cbp-asis__sugerencias button:hover { background: var(--cbp-red); color: #fff; }
.cbp-asis__escribiendo .cbp-asis__texto { display: flex; gap: 5px; padding: 16px 18px; }
.cbp-asis__escribiendo span { width: 8px; height: 8px; border-radius: 50%; background: var(--cbp-red); animation: cbpAsisPunto 1.2s infinite ease-in-out; }
.cbp-asis__escribiendo span:nth-child(2) { animation-delay: .15s; }
.cbp-asis__escribiendo span:nth-child(3) { animation-delay: .3s; }
@keyframes cbpAsisPunto { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.cbp-asis__calificar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid rgba(15, 15, 15, .08); font-size: 13px; font-weight: 600; color: var(--cbp-black); }
.cbp-asis__calificar .fa-heart { color: var(--cbp-red); }
.cbp-asis__estrellas { display: flex; gap: 2px; }
.cbp-asis__estrellas button { border: 0; background: none; padding: 2px; color: #d4d6db; font-size: 17px; transition: color .15s ease, transform .15s ease; }
.cbp-asis__estrellas:hover button { color: #f5b400; }
.cbp-asis__estrellas button:hover ~ button { color: #d4d6db; }
.cbp-asis__estrellas button.is-on { color: #f5b400; }
.cbp-asis__estrellas button:hover { transform: scale(1.15); }
.cbp-asis__form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px 6px; border-top: 1px solid rgba(15, 15, 15, .08); background: #fff; }
.cbp-asis__form textarea { flex: 1; resize: none; border: 1.5px solid rgba(15, 15, 15, .12); border-radius: 22px; padding: 11px 16px; font: 500 14.5px "DM Sans", sans-serif; color: var(--cbp-black); max-height: 120px; line-height: 1.4; outline: 0; transition: border-color .2s ease; }
.cbp-asis__form textarea:focus { border-color: var(--cbp-red); }
.cbp-asis__form button { flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cbp-red); color: #fff; font-size: 16px; transition: background-color .2s ease, opacity .2s ease; }
.cbp-asis__form button:hover { background: var(--cbp-red-dark); }
.cbp-asis__form button:disabled { opacity: .5; }
.cbp-asis__nota { margin: 0; padding: 4px 16px 10px; background: #fff; font-size: 11px; color: #9a9ea8; text-align: center; }

@media (max-width: 575px) {
  .cbp-asis { right: 16px; bottom: 16px; }
  .cbp-asis__boton { width: 58px; height: 58px; font-size: 23px; }
  .cbp-asis__burbuja { width: calc(100vw - 32px); max-width: 300px; bottom: 72px; }
  .cbp-asis__ventana { position: fixed; inset: 0; width: auto; height: 100%; height: 100dvh; border-radius: 0; transform: translateY(30px); }
  .cbp-asis.is-abierto .cbp-asis__boton { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cbp-asis__boton::before { animation: none; }
  .cbp-asis__ventana, .cbp-asis__burbuja { transition: none; animation: none; }
}
.cbp-asis__titulo small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cbp-asis__titulo small .cbp-asis__punto-vivo { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.cbp-asis br { display: inline !important; }

/* ==========================================================
   Noticias administradas desde el panel (archivo, contenido, galería)
   ========================================================== */
.cbp-noticias-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 30px; }
.cbp-noticias-filtros input, .cbp-noticias-filtros select { height: 50px; border: 1.5px solid rgba(15, 15, 15, .12); border-radius: 30px; padding: 0 20px; font: 500 15px "DM Sans", sans-serif; color: var(--cbp-black); background: #fff; outline: 0; }
.cbp-noticias-filtros input { flex: 1 1 260px; }
.cbp-noticias-filtros input:focus, .cbp-noticias-filtros select:focus { border-color: var(--cbp-red); }
.cbp-noticias-filtros .theme-btn { height: 50px; padding: 0 22px; }
.cbp-noticias-vacio { padding: 40px; text-align: center; border-radius: 20px; background: #f6f5f5; font-weight: 600; }
.cbp-paginas { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.cbp-paginas a { min-width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(15, 15, 15, .12); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--cbp-black); }
.cbp-paginas a.is-activo, .cbp-paginas a:hover { background: var(--cbp-red); border-color: var(--cbp-red); color: #fff; }
.cbp-noticia-texto { font-size: 17px; line-height: 1.8; }
.cbp-noticia-texto p { margin-bottom: 1.1em; }
.cbp-noticia-texto h3, .cbp-noticia-texto h4 { margin: 1.4em 0 .6em; }
.cbp-noticia-texto ul, .cbp-noticia-texto ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.cbp-noticia-texto li { margin-bottom: .4em; }
.cbp-noticia-texto a { color: var(--cbp-red); text-decoration: underline; }
.cbp-noticia-texto blockquote { border-left: 4px solid var(--cbp-red); padding: 6px 0 6px 20px; font-style: italic; color: var(--cbp-black); }
.cbp-noticia-video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.cbp-noticia-video iframe, .cbp-noticia-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cbp-noticia-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cbp-noticia-galeria__item { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.cbp-noticia-galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cbp-noticia-galeria__item:hover img { transform: scale(1.05); }
.cbp-noticia-galeria__item picture { display: contents; }
.cbp-noticia__img picture { display: contents; }
@media (max-width: 575px) { .cbp-noticias-filtros select { flex: 1 1 45%; } .cbp-noticia-texto { font-size: 16px; } }
/* Formulario de contacto: campo trampa invisible para personas, visible para robots */
.cbp-trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cbp-alert--ok { background: rgba(31, 180, 99, .1) !important; color: #1d6e43 !important; border-color: rgba(31, 180, 99, .3) !important; }
.cbp-alert--ok i { color: #1fb463 !important; }

/* Aula Virtual: zona que cambia sin recargar (aula/aula-nav.js) */
.au-vista { scroll-margin-top: 110px; outline: 0; transition: opacity .2s ease; }
.au-vista.is-cargando { opacity: .45; pointer-events: none; }
@media (max-width: 991px) { .au-vista { scroll-margin-top: 84px; } }

/* Aula: los 4 pasos en una fila simétrica a todo el ancho (debajo del título y el acceso) */
.au-pasos--fila { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; counter-reset: paso; }
.au-pasos--fila li { position: relative; flex-direction: column; gap: 14px; padding: 26px 24px; border-radius: 22px; background: #fff; transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.au-pasos--fila li:hover { border-color: rgba(128, 11, 1, .35); transform: translateY(-4px); box-shadow: 0 24px 50px -36px rgba(15, 15, 15, .45); }
.au-pasos--fila li > span { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 16px; font-size: 20px; background: rgba(128, 11, 1, .08); }
.au-pasos--fila li:last-child > span { background: var(--cbp-red); color: #fff; }
.au-pasos--fila strong { font-size: 18px; margin-bottom: 6px; }
.au-pasos--fila small { display: block; line-height: 1.55; }
/* Flecha entre pasos (solo cuando están en una fila) */
.au-pasos--fila li:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -13px; width: 10px; height: 10px; border-top: 2px solid rgba(128, 11, 1, .45); border-right: 2px solid rgba(128, 11, 1, .45); transform: rotate(45deg); }
@media (max-width: 1199px) { .au-pasos--fila { grid-template-columns: repeat(2, 1fr); } .au-pasos--fila li::after { display: none; } }
@media (max-width: 575px) { .au-pasos--fila { grid-template-columns: 1fr; margin-top: 32px; } .au-pasos--fila li { flex-direction: row; padding: 18px; } .au-pasos--fila li > span { width: 46px; height: 46px; flex: none; font-size: 17px; } }
.au-acceso { position: relative; top: auto; }
@media (max-width: 575px) {
  .au-cifras { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .au-cifras > div { padding: 14px 8px; text-align: center; border-radius: 16px; }
  .au-cifras strong { font-size: 24px; }
  .au-cifras span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.25; }
}

/* ---------- Historia: retrato del fundador + relato ---------- */
.cbp-historia__retrato { margin: 0; position: relative; border-radius: 28px; overflow: hidden; background: #e9e7e7; box-shadow: 0 40px 80px -50px rgba(15, 15, 15, .6); }
.cbp-historia__retrato img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; filter: contrast(1.04); }
.cbp-historia__retrato figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px 18px; border-radius: 18px; background: rgba(15, 15, 15, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: rgba(255, 255, 255, .8); line-height: 1.35; }
.cbp-historia__retrato figcaption strong { display: block; color: #fff; font-size: 16px; }
.cbp-historia__retrato figcaption span { font-size: 13px; }
.cbp-historia__texto h3, .cbp-historia__por-que h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--cbp-black); margin: 30px 0 12px; }
.cbp-historia__texto h3:first-child { margin-top: 0; }
.cbp-historia__texto p, .cbp-historia__por-que p { color: #4f5566; font-size: 16.5px; line-height: 1.75; margin-bottom: 14px; text-align: left; }
.cbp-historia__por-que { margin-top: 64px; padding-top: 56px; border-top: 1px solid rgba(15, 15, 15, .1); }
.cbp-historia__por-que h3 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 24px; }
.cbp-historia__columnas { column-count: 2; column-gap: 48px; }
.cbp-historia__columnas p { orphans: 3; widows: 3; }
.cbp-historia__dia { display: flex; align-items: center; gap: 22px; margin-top: 28px; padding: 22px 26px; border-radius: 22px; background: var(--cbp-black); }
.cbp-historia__dia p { margin: 0; color: rgba(255, 255, 255, .82); }
.cbp-historia__dia p strong { color: #fff; }
.cbp-historia__fecha { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 20px; background: var(--cbp-red); color: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.cbp-historia__fecha strong { font-size: 36px; line-height: 1; color: #fff; letter-spacing: -0.03em; }
@media (max-width: 991px) {
  .cbp-historia__retrato { max-width: 520px; margin: 0 auto; }
  .cbp-historia__columnas { column-count: 1; }
  .cbp-historia__por-que { margin-top: 40px; padding-top: 40px; }
}
@media (max-width: 575px) {
  .cbp-historia__dia { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .cbp-historia__fecha { width: 72px; height: 72px; }
  .cbp-historia__fecha strong { font-size: 30px; }
}
.cbp-historia .section-title h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }

/* Pantalla de carga: oculta si ya se mostró en esta visita (partials/layout-top.php) */
.cbp-sin-intro .preloader { display: none !important; }

/* Botón "Aula Virtual" del menú superior (acompaña al de Emergencias) */
.cbp-nav-aula {
  display: inline-flex; align-items: center; gap: 8px; margin-right: 10px;
  padding: 10px 20px; border-radius: 40px; background: var(--cbp-black); color: #fff !important;
  font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color .3s ease, transform .3s ease;
}
.cbp-nav-aula:hover, .cbp-nav-aula.is-activo { background: var(--cbp-red-dark); transform: translateY(-1px); }
.cbp-nav-aula--movil { width: 42px; height: 42px; padding: 0; justify-content: center; margin-right: 8px; align-self: center; font-size: 16px; }
@media (min-width: 1200px) and (max-width: 1499px) { .cbp-nav-aula { padding: 9px 16px; font-size: 14px; } }
@media (min-width: 1200px) and (max-width: 1499px) {
  .cbp-nav-aula:not(.cbp-nav-aula--movil) { width: 42px; height: 42px; padding: 0; justify-content: center; font-size: 16px; }
  .cbp-nav-aula__txt { display: none; }
}
/* Espacio del menú superior: el botón del Aula muestra su texto solo en pantallas muy anchas */
@media (min-width: 1200px) and (max-width: 1799px) {
  .cbp-nav-aula:not(.cbp-nav-aula--movil) { width: 42px; height: 42px; padding: 0; justify-content: center; font-size: 16px; }
  .cbp-nav-aula__txt { display: none; }
  .cbp-nav-hora { display: none; }
}
@media (min-width: 1200px) and (max-width: 1279px) {
  .header-1 .main-menu ul li { margin-inline-end: 16px !important; }
  .header-1 .main-menu ul li a { font-size: 14.5px; }
}
/* Desde 1340 px el botón del Aula muestra su texto; entre 1500 y 1799 se ocultan redes (siguen en el pie) */
@media (min-width: 1340px) and (max-width: 1799px) {
  .cbp-nav-aula:not(.cbp-nav-aula--movil) { width: auto; height: auto; padding: 9px 16px; font-size: 14px; }
  .cbp-nav-aula__txt { display: inline; }
}
@media (min-width: 1500px) and (max-width: 1799px) { .header-1 .infu .social-icon { display: none !important; } }

/* Mi perfil: la tarjeta izquierda ocupa el mismo alto que las dos de la derecha */
@media (min-width: 992px) {
  .au-perfil { height: 100%; display: flex; flex-direction: column; }
  .au-perfil > form { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(15, 15, 15, .08); }
}
.au-perfil h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin-bottom: 8px; }
.au-perfil__cifras { margin-top: 6px; margin-bottom: 24px; }
.au-perfil .au-btn-borde { margin-top: 4px; }
/* Mi perfil (2): dos tarjetas a la izquierda alineadas con las dos de la derecha */
@media (min-width: 992px) {
  .au-perfil-col { display: flex; flex-direction: column; gap: 24px; }
  .au-perfil-col .au-perfil { flex: 1; height: auto; justify-content: center; }
}
.au-perfil-col .au-perfil > form { margin-top: 0; padding-top: 0; border-top: 0; }
.au-perfil-col .au-perfil .au-perfil__cifras { margin-bottom: 0; }
.au-perfil-foto .au-h3 { margin-bottom: 18px; }
@media (max-width: 991px) { .au-perfil-foto { margin-top: 24px; } }

/* Acceso discreto al panel institucional (pie de página) */
.cbp-acceso-panel { display: inline-flex; align-items: center; gap: 5px; margin: 6px 0 0; font-size: 12.5px; color: inherit !important; opacity: .45; transition: opacity .25s ease, color .25s ease; }
.cbp-acceso-panel:hover, .cbp-acceso-panel:focus-visible { opacity: 1; color: var(--cbp-red) !important; }
@media (max-width: 575px) { .cbp-acceso-panel { display: flex; justify-content: center; margin: 8px 0 0; } }

/* ---------- Trámites: relato al desplazarse (foto fija que cambia con cada trámite) ---------- */
.cbp-trs__item { position: relative; padding: 0 0 56px 28px; margin-bottom: 56px; border-left: 2px solid rgba(15, 15, 15, .08); transition: opacity .4s ease, border-color .4s ease; }
.cbp-trs__item:last-child { margin-bottom: 0; padding-bottom: 0; }
.cbp-trs__item::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: #d9d7d7; transition: background-color .4s ease, box-shadow .4s ease; }
.cbp-trs__item.is-activo { border-left-color: var(--cbp-red); }
.cbp-trs__item.is-activo::before { background: var(--cbp-red); box-shadow: 0 0 0 6px rgba(128, 11, 1, .15); }
@media (min-width: 992px) { .cbp-trs__item:not(.is-activo) { opacity: .45; } }
.cbp-trs__foto-movil { display: none; }
.cbp-trs__cab { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.cbp-trs__cod { flex: none; font-size: 15px; font-weight: 800; letter-spacing: .05em; color: var(--cbp-red); }
.cbp-trs__cab h3 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; color: var(--cbp-black); }
.cbp-trs__cab h3 small { font-size: .55em; font-weight: 500; color: #6b7180; }
.cbp-trs__lema { margin: 0 0 16px; font-size: 19px; line-height: 1.55; font-weight: 600; color: var(--cbp-black); text-align: left !important; }
.cbp-trs__legal { display: flex; gap: 10px; margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; background: #f6f5f5; font-size: 13.5px; line-height: 1.55; color: #5b6170; text-align: left !important; }
.cbp-trs__legal i { color: var(--cbp-red); margin-top: 3px; }
.cbp-trs__pasos { list-style: none; counter-reset: paso; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.cbp-trs__pasos li { counter-increment: paso; position: relative; padding-left: 44px; font-size: 16px; line-height: 1.65; color: #3f4555; text-align: left !important; }
.cbp-trs__pasos li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--cbp-red); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.cbp-trs__pasos.is-uno li::before { content: ""; background: rgba(128, 11, 1, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e30613' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / 16px no-repeat; }
.cbp-trs__pasos a { color: var(--cbp-red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cbp-trs__grupo { margin-bottom: 12px; padding: 20px 22px; border-radius: 20px; background: #f6f5f5; }
.cbp-trs__grupo h4 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--cbp-black); display: flex; align-items: center; gap: 8px; }
.cbp-trs__grupo h4 i { color: var(--cbp-red); }
.cbp-trs__grupo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cbp-trs__grupo li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.55; color: #4f5566; text-align: left !important; }
.cbp-trs__grupo li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--cbp-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }
.cbp-trs__nota { display: flex; gap: 12px; margin: 8px 0 0; padding: 15px 18px; border-radius: 16px; background: #fff6e0; border: 1px solid #f3dca3; color: #5c4508 !important; font-size: 14.5px; line-height: 1.6; text-align: left !important; }
.cbp-trs__nota i { color: #b37b00; margin-top: 3px; font-size: 17px; }
.cbp-trs__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cbp-trs__btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 40px; background: var(--cbp-red); color: #fff !important; font-size: 15px; font-weight: 600; transition: background-color .25s ease, transform .25s ease, color .25s ease; }
.cbp-trs__btn:hover { background: var(--cbp-black); transform: translateY(-2px); }
.cbp-trs__btn.is-borde { background: transparent; color: var(--cbp-black) !important; border: 1.5px solid rgba(15, 15, 15, .2); }
.cbp-trs__btn.is-borde:hover { background: var(--cbp-black); color: #fff !important; border-color: var(--cbp-black); }

/* Visor fijo de la derecha */
.cbp-trs__fotos { position: relative; aspect-ratio: 4 / 4.4; max-height: calc(100vh - 290px); width: 100%; border-radius: 28px; overflow: hidden; background: #1b1717; box-shadow: 0 40px 80px -50px rgba(15, 15, 15, .6); }
.cbp-trs__foto { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s ease; }
.cbp-trs__foto.is-activo { opacity: 1; transform: scale(1); }
.cbp-trs__foto img { width: 100%; height: 100%; object-fit: cover; }
.cbp-trs__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 11, 11, 0) 45%, rgba(14, 11, 11, .8) 100%); }
.cbp-trs__foto figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #fff; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.cbp-trs__foto figcaption span { display: inline-block; margin-bottom: 8px; padding: 3px 11px; border-radius: 20px; background: var(--cbp-red); font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.cbp-trs__foto figcaption span { display: table; }
.cbp-trs__indice { display: grid; gap: 4px; margin-top: 16px; }
.cbp-trs__indice a { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #8a8f9c; transition: background-color .25s ease, color .25s ease; }
.cbp-trs__indice a span { flex: none; width: 38px; font-weight: 800; color: #c3c6cd; transition: color .25s ease; }
.cbp-trs__indice a:hover { color: var(--cbp-black); background: #f6f5f5; }
.cbp-trs__indice a.is-activo { color: var(--cbp-black); background: #f6f5f5; }
.cbp-trs__indice a.is-activo span { color: var(--cbp-red); }

@media (max-width: 991px) {
  .cbp-trs__item { padding-left: 0; border-left: 0; margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(15, 15, 15, .08); }
  .cbp-trs__item::before { display: none; }
  .cbp-trs__foto-movil { display: block; margin-bottom: 18px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; }
  .cbp-trs__foto-movil img { width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 575px) {
  .cbp-trs__lema { font-size: 17px; }
  .cbp-trs__grupo { padding: 18px; }
  .cbp-trs__btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Anuncio emergente al entrar (Panel › Portal web › Anuncios) ---------- */
.cbp-anuncio { position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(14, 11, 11, 0); transition: background-color .3s ease; }
.cbp-anuncio[hidden] { display: none; }
.cbp-anuncio.is-abierto { background: rgba(14, 11, 11, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cbp-anuncio__caja { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; width: min(880px, 100%); max-height: calc(100vh - 40px); overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1.15); }
.cbp-anuncio.is-abierto .cbp-anuncio__caja { opacity: 1; transform: none; }
.cbp-anuncio__caja.is-sin-imagen { grid-template-columns: 1fr; width: min(520px, 100%); }
.cbp-anuncio__img { min-height: 100%; background: #1b1717; }
.cbp-anuncio__img img { width: 100%; height: 100%; max-height: calc(100vh - 40px); object-fit: cover; display: block; }
.cbp-anuncio__cuerpo { display: flex; flex-direction: column; justify-content: center; padding: 42px 38px; overflow-y: auto; }
.cbp-anuncio__marca { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cbp-red); }
.cbp-anuncio__cuerpo h2 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; color: var(--cbp-black); }
.cbp-anuncio__cuerpo p { margin: 0 0 22px; font-size: 16px; line-height: 1.65; color: #4f5566; text-align: left !important; }
.cbp-anuncio__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cbp-anuncio__despues { border: 0; background: none; padding: 8px 4px; font: inherit; font-size: 15px; font-weight: 600; color: #6b7180; cursor: pointer; }
.cbp-anuncio__despues:hover { color: var(--cbp-black); }
.cbp-anuncio__cerrar { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--cbp-black); font-size: 18px; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.cbp-anuncio__cerrar:hover { background: var(--cbp-red); color: #fff; transform: rotate(90deg); }
.cbp-anuncio__cerrar:focus-visible, .cbp-anuncio__despues:focus-visible { outline: 3px solid rgba(128, 11, 1, .4); outline-offset: 2px; }
html.cbp-anuncio-abierto { overflow: hidden; }
@media (max-width: 767px) {
  .cbp-anuncio { align-items: flex-end; padding: 12px; }
  .cbp-anuncio__caja { grid-template-columns: 1fr; max-height: calc(100vh - 24px); overflow-y: auto; border-radius: 24px; }
  .cbp-anuncio__img img { max-height: 46vh; }
  .cbp-anuncio__cuerpo { padding: 26px 22px 24px; }
  .cbp-anuncio__acciones .theme-btn { flex: 1 1 100%; justify-content: center; }
  .cbp-anuncio__despues { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .cbp-anuncio__caja, .cbp-anuncio { transition: none; } }

/* Botón del asistente: la B institucional con una burbuja de chat */
.cbp-asis__icono-abrir { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.cbp-asis__marca {
  width: 28px; height: 34px; background: #fff; transform: translate(-3px, -3px);
  -webkit-mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat;
  transition: transform .3s ease;
}
.cbp-asis__globo {
  position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--cbp-red);
  background: #fff; color: var(--cbp-red); font-size: 11px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 15, 15, .25);
}
.cbp-asis__boton:hover .cbp-asis__marca { transform: translate(-3px, -3px) scale(1.08) rotate(-4deg); }
@media (max-width: 575px) {
  .cbp-asis__marca { width: 25px; height: 30px; }
  .cbp-asis__globo { width: 22px; height: 22px; font-size: 10px; }
}


/* ==========================================================
   Compatibilidad con el tema de Paute
   Las plantillas portadas usan algunas clases genéricas (theme-btn, section-title,
   sub-title, section-padding, cbp-link): aquí toman el aspecto de main.css
   (botón .at-btn redondeado, etiquetas en mayúsculas con flecha, DM Sans).
   ========================================================== */
.au-pagina, .tp-pagina, .cbp-noticias-pagina { font-family: var(--at-ff-body, "DM Sans", sans-serif); }
.cbp-plat .section-padding { padding-top: 100px; padding-bottom: 120px; }
@media (max-width: 991px) { .cbp-plat .section-padding { padding-top: 70px; padding-bottom: 80px; } }

.cbp-plat .theme-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 26px; border: 0; border-radius: 50px; cursor: pointer;
  background: var(--cbp-red); color: #fefefe !important;
  font: 600 16px/1 var(--at-ff-body, "DM Sans", sans-serif); letter-spacing: -0.03em; text-decoration: none;
  transition: background-color .3s ease, transform .3s ease;
}
.cbp-plat .theme-btn:hover { background: var(--at-neutral-900, #1d1d1d); color: #fefefe; }
.cbp-plat .theme-btn.style-2, .cbp-plat .theme-btn.theme-btn--borde, .cbp-plat .theme-btn.borde { background: transparent; color: var(--cbp-black) !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.cbp-plat .theme-btn.style-2:hover, .cbp-plat .theme-btn.theme-btn--borde:hover { background: var(--cbp-black); color: #fefefe !important; box-shadow: none; }
.au-acceso .theme-btn:hover, .tp-info .theme-btn:hover { background: #fefefe; color: var(--cbp-red) !important; }

.cbp-plat .section-title h2 { font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; font-size: clamp(32px, 4vw, 56px); margin: 0; }
.cbp-plat .section-title .sub-title {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--at-neutral-900, #1d1d1d);
}
.cbp-plat .section-title .sub-title .dot {
  width: 14px; height: 14px; flex: 0 0 14px; border-radius: 0; background: currentColor;
  -webkit-mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat;
}
.cbp-plat .pn-cruz-sitio {
  display: inline-block; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat; mask: url(../imgs/marca/ovalo-silueta.png) center / contain no-repeat;
}
.cbp-plat .cbp-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cbp-black); text-decoration: underline; text-underline-offset: 4px; }
.cbp-plat .cbp-link:hover { color: var(--cbp-red); }
.au-titulo { font-size: clamp(44px, 6vw, 96px); line-height: 1; letter-spacing: -0.05em; }
.au-banner img { aspect-ratio: 21 / 8; object-fit: cover; object-position: center 30%; }
.cbp-plat .wow { visibility: visible !important; }

/* Modo oscuro del tema */
[data-bs-theme="dark"] .au-curso, [data-bs-theme="dark"] .au-tarjeta, [data-bs-theme="dark"] .tp-cat,
[data-bs-theme="dark"] .au-pasos li, [data-bs-theme="dark"] .cbp-noticia { background: var(--at-neutral-dark-50, #141414); color: #eaeaea; }
[data-bs-theme="dark"] .cbp-plat .section-title .sub-title, [data-bs-theme="dark"] .cbp-plat .cbp-link { color: #eaeaea; }
.tp-pagina .tp-cifras { margin-bottom: 56px; }

/* ==========================================================
   PIEL PAUTE — aspecto definitivo de Aula, Transparencia y Noticias
   Mismo lenguaje que las páginas del tema (Capacitaciones, Contacto):
   tarjetas blancas de radio 8 px sobre #F2F2F2, numeración gris [01],
   listas con "—", formularios de línea inferior, botón píldora negro,
   rojo solo como acento. La marca gráfica sale del logo institucional
   (assets/imgs/marca/): óvalo del escudo, hacha, escalera, pitón.
   ========================================================== */
:root {
  --p-fondo: #f2f2f2;
  --p-tinta: #1d1d1d;
  --p-gris: #585959;
  --p-gris-claro: #b7b7b7;
  --p-borde: #dfdfdf;
  --p-radio: 8px;
}
/* Marca: el óvalo del escudo reemplaza a flechas y asteriscos */
.cbp-plat .section-title .sub-title .dot, .cbp-plat .pn-cruz-sitio, .sub-title-mini .pn-cruz-sitio {
  width: 9px; height: 12px; flex: 0 0 9px; border-radius: 50%; background: var(--cbp-red);
  -webkit-mask: none; mask: none;
}
.tp-cat__marca, .au-acceso__marca, .tp-info__marca, .tp-cifras > div::after { display: none !important; }
.sub-title-mini { color: var(--p-tinta); font-weight: 600; letter-spacing: .02em; font-size: 13px; }

/* Botones: píldora negra del tema (.at-btn); el rojo queda para el hover */
.cbp-plat .theme-btn { background: var(--p-tinta); border-radius: 50px; font-size: 15px; padding: 15px 26px; }
.cbp-plat .theme-btn:hover { background: var(--cbp-red); }
.au-btn-borde { border-radius: 50px !important; }

/* Tarjetas */
.cbp-plat .au-tarjeta, .cbp-plat .tp-panel { border-radius: var(--p-radio); border: 0; box-shadow: none; background: #fff; }
.cbp-plat .au-tarjeta--chica { border-radius: var(--p-radio); background: var(--p-fondo); }
.au-pagina .au, .tp-pagina .tp { background: transparent; }

/* ---------- Aula: acceso de estudiantes (como el formulario de Contacto) ---------- */
.cbp-plat .au-acceso {
  position: sticky; top: 120px; padding: 40px 36px; border-radius: var(--p-radio);
  background: var(--p-fondo); color: var(--p-gris); box-shadow: none; border: 0;
}
.cbp-plat .au-acceso h3 { color: var(--p-tinta); font-size: 34px; font-weight: 600; letter-spacing: -0.04em; margin: 6px 0 24px; }
.cbp-plat .au-acceso .sub-title-mini { color: var(--p-tinta); }
.cbp-plat .au-campo > span, .cbp-plat .au-acceso .au-campo > span { color: var(--p-gris); font-size: 13px; font-weight: 500; }
.cbp-plat .au-campo input, .cbp-plat .au-campo select, .cbp-plat .au-campo textarea,
.cbp-plat .au-acceso .au-campo input {
  height: 46px; padding: 0; border: 0; border-bottom: 1px solid var(--p-gris-claro); border-radius: 0;
  background: transparent; color: var(--p-tinta); box-shadow: none;
}
.cbp-plat .au-campo textarea { height: auto; padding-top: 8px; }
.cbp-plat .au-campo input:focus, .cbp-plat .au-campo select:focus, .cbp-plat .au-campo textarea:focus { border-bottom-color: var(--p-tinta); box-shadow: none; outline: 0; }
.cbp-plat .au-acceso__links a { color: var(--p-gris); text-decoration: underline; text-underline-offset: 3px; }
.cbp-plat .au-acceso__links a:hover { color: var(--cbp-red); }
.cbp-plat .au-acceso__registro { background: transparent; border: 1px solid var(--p-tinta); border-radius: 50px; color: var(--p-tinta); }
.cbp-plat .au-acceso__registro strong { color: var(--p-tinta); }
.cbp-plat .au-acceso__registro:hover { background: var(--p-tinta); color: #fff; }
.cbp-plat .au-acceso__registro:hover strong { color: #fff; }

/* Cifras: números grandes sobre línea fina, sin cuadros de color */
.cbp-plat .au-cifras, .cbp-plat .tp-cifras { gap: 0; border-top: 1px solid var(--p-borde); }
.cbp-plat .au-cifras > div, .cbp-plat .au-cifras > div:first-child,
.cbp-plat .tp-cifras > div, .cbp-plat .tp-cifras > div:first-child {
  padding: 22px 20px 0 0; border-radius: 0; background: none; color: var(--p-gris); overflow: visible;
}
.cbp-plat .au-cifras > div + div, .cbp-plat .tp-cifras > div + div { padding-left: 20px; border-left: 1px solid var(--p-borde); }
.cbp-plat .au-cifras strong, .cbp-plat .au-cifras > div:first-child strong, .cbp-plat .tp-cifras strong {
  color: var(--p-tinta); font-weight: 600; letter-spacing: -0.05em; font-size: clamp(40px, 4.4vw, 64px);
}
.cbp-plat .au-cifras span, .cbp-plat .tp-cifras span { font-weight: 500; font-size: 14px; color: var(--p-gris); }

/* Pasos: tarjetas con numeración gris [01] como las de Capacitaciones */
.cbp-plat .au-pasos li { border: 0; border-radius: var(--p-radio); background: var(--p-fondo); padding: 26px 24px; flex-direction: column; gap: 14px; }
.cbp-plat .au-pasos li > span { font-size: 18px; font-weight: 600; color: var(--p-gris-claro); background: none !important; width: auto; height: auto; padding: 0; }
.cbp-plat .au-pasos li > span::before { content: "["; }
.cbp-plat .au-pasos li > span::after { content: "]"; }
.cbp-plat .au-pasos strong { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.cbp-plat .au-pasos--fila li::after, .cbp-plat .au-pasos--fila li + li::before { display: none !important; }

/* Cursos: como .capacitacion-card */
.cbp-plat .au-curso { border: 0; border-radius: var(--p-radio); background: #fff; box-shadow: 0 0 0 1px var(--p-borde); transition: transform .4s ease; }
.cbp-plat .au-curso:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--p-borde); border: 0; }
.cbp-plat .au-curso__nivel { background: #fff; color: var(--p-tinta); border-radius: 50px; font-weight: 600; }
.cbp-plat .au-curso__body h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.04em; text-transform: none; }
.cbp-plat .au-curso__datos { gap: 4px 0; flex-direction: column; color: var(--p-tinta); font-size: 14px; }
.cbp-plat .au-curso__datos i { display: none; }
.cbp-plat .au-curso__datos li::before { content: "— "; }
.cbp-plat .au-cursos { counter-reset: curso; }
.cbp-plat .au-curso__body::before { counter-increment: curso; content: "[" counter(curso, decimal-leading-zero) "]"; font-size: 18px; font-weight: 600; color: var(--p-gris-claro); }

/* Barra del estudiante */
.cbp-plat .au-barra { border-radius: 50px; background: var(--p-fondo); border: 0; box-shadow: none; }
.cbp-plat .au-barra__links a { border-radius: 50px; }
.cbp-plat .au-barra__links a.is-activo { background: var(--p-tinta); color: #fff; }
.cbp-plat .au-barra__yo span { background: var(--cbp-red); }

/* Verificar certificado */
.cbp-plat .au-verificar { border-radius: var(--p-radio); background: var(--p-fondo); border: 0; }
.cbp-plat .au-verificar input { border-radius: 0; border: 0; border-bottom: 1px solid var(--p-gris-claro); background: transparent; }

/* Clase programada */
.au-programada { padding: 56px 40px; border-radius: var(--p-radio); background: var(--p-fondo); text-align: center; }
.au-programada > i { font-size: 40px; color: var(--cbp-red); }
.au-programada small { display: block; margin-top: 14px; color: var(--p-gris); text-transform: uppercase; font-weight: 600; font-size: 13px; }
.au-programada h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; margin: 8px 0 12px; }
.au-programada p { max-width: 520px; margin: 0 auto 22px; color: var(--p-gris); text-align: center; }

/* ---------- Transparencia ---------- */
.cbp-plat .tp-categorias-nav a { border: 1px solid var(--p-tinta); border-radius: 50px; color: var(--p-tinta); background: transparent; font-weight: 500; text-transform: none; }
.cbp-plat .tp-categorias-nav a:hover { border-color: var(--cbp-red); color: var(--cbp-red); }
.cbp-plat .tp-categorias-nav a.is-activa { background: var(--p-tinta); border-color: var(--p-tinta); color: #fff; }
.cbp-plat .tp-buscar input { border-radius: 0; border: 0; border-bottom: 1px solid var(--p-gris-claro); background: transparent; }
.cbp-plat .tp-cat { border: 0; border-radius: var(--p-radio); background: var(--p-fondo); box-shadow: none; padding: 28px 26px; }
.cbp-plat .tp-cat:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 0 0 1px var(--p-borde); border: 0; }
.cbp-plat .tp-cat__num { font-size: 18px; font-weight: 600; color: var(--p-gris-claro); }
.cbp-plat .tp-cat__num::before { content: "["; }
.cbp-plat .tp-cat__num::after { content: "]"; }
.cbp-plat .tp-cat h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.04em; text-transform: none; }
.cbp-plat .tp-cat__anios span { background: #fff; border-radius: 50px; font-weight: 500; }
.cbp-plat .tp-cat__ir { background: var(--p-tinta); }
.cbp-plat .tp-cat__ir i, .cbp-plat .tp-cat__pie i { color: #fff; }
.cbp-plat .tp-cat__pie > span:first-child i { color: var(--p-gris); }
.cbp-plat .tp-cat:hover .tp-cat__ir { background: var(--cbp-red); }
.cbp-plat .tp-sub { border: 0; border-radius: var(--p-radio); background: var(--p-fondo); }
.cbp-plat .tp-sub:hover { background: var(--p-tinta); }
.cbp-plat .tp-sub__nombre { font-weight: 600; letter-spacing: -0.04em; }
.cbp-plat .tp-panel { background: var(--p-fondo); padding: 30px; }
.cbp-plat .tp-doc { border-bottom-color: var(--p-borde); }
.cbp-plat .tp-doc__icono { border-radius: 50%; background: #fff !important; color: var(--p-tinta) !important; }
.cbp-plat .tp-doc__cat { color: var(--p-gris) !important; }
.cbp-plat .tp-btn-icono { border-radius: 50%; }
.cbp-plat .tp-btn-icono--rojo { background: var(--p-tinta); }
.cbp-plat .tp-btn-icono--rojo:hover { background: var(--cbp-red); }
.cbp-plat .tp-info { background: var(--p-fondo); color: var(--p-gris); border-radius: var(--p-radio); }
.cbp-plat .tp-info h2 { color: var(--p-tinta); }
.cbp-plat .tp-info__texto a { color: var(--cbp-red); }
.cbp-plat .tp-carpeta > summary { border-radius: var(--p-radio); }

/* ---------- Asistente virtual con el lenguaje del tema de Paute ---------- */
.cbp-asis { font-family: var(--at-ff-body, "DM Sans", sans-serif); }
.cbp-asis__boton { background: #fff; border: 1px solid var(--p-borde); box-shadow: 0 12px 30px rgba(15, 15, 15, .16); }
.cbp-asis__boton:hover { background: #fff; transform: translateY(-3px); }
.cbp-asis__boton::before { border: 1px solid rgba(15, 15, 15, .18); }
.cbp-asis__escudo { width: 34px; height: auto; display: block; }
.cbp-asis__marca { display: none !important; }
.cbp-asis__globo { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff;
  background: var(--p-tinta); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.cbp-asis.is-abierto .cbp-asis__boton { background: var(--p-tinta); border-color: var(--p-tinta); color: #fff; }
.cbp-asis__aviso { background: var(--cbp-red); }

.cbp-asis__burbuja { border-radius: var(--p-radio); border: 1px solid var(--p-borde); box-shadow: 0 16px 40px rgba(15, 15, 15, .12); }
.cbp-asis__burbuja strong { font-weight: 600; letter-spacing: -0.02em; color: var(--p-tinta); }
.cbp-asis__burbuja span { color: var(--p-gris); }
.cbp-asis__burbuja-cerrar { background: var(--p-fondo); color: var(--p-tinta); }

.cbp-asis__ventana { border-radius: 12px; border: 1px solid var(--p-borde); box-shadow: 0 30px 70px rgba(15, 15, 15, .2); }
.cbp-asis__cab { background: #fff; color: var(--p-tinta); border-bottom: 1px solid var(--p-borde); }
.cbp-asis__cab::after { display: none; }
.cbp-asis__avatar { background: none; border-radius: 0; flex-basis: 34px; height: 44px; }
.cbp-asis__avatar img { padding: 0; }
.cbp-asis__titulo strong { font-weight: 600; letter-spacing: -0.02em; color: var(--p-tinta); }
.cbp-asis__titulo small { color: var(--p-gris); }
.cbp-asis__cab-btn { background: var(--p-fondo); color: var(--p-tinta); }
.cbp-asis__cab-btn:hover { background: var(--p-tinta); color: #fff; }
.cbp-asis__emergencia { background: var(--p-fondo); color: var(--p-tinta); font-weight: 500; border-bottom: 1px solid var(--p-borde); }
.cbp-asis__emergencia i, .cbp-asis__emergencia strong { color: var(--cbp-red); }
.cbp-asis__emergencia:hover { background: var(--p-tinta); color: #fff; }
.cbp-asis__emergencia:hover i, .cbp-asis__emergencia:hover strong { color: #fff; }
.cbp-asis__mensajes { background: #fff; }
.cbp-asis__msg--bot .cbp-asis__texto { background: var(--p-fondo); color: var(--p-tinta); box-shadow: none; border-radius: 14px 14px 14px 4px; }
.cbp-asis__msg--yo .cbp-asis__texto { background: var(--p-tinta); color: #fff; border-radius: 14px 14px 4px 14px; }
.cbp-asis__msg.is-emergencia .cbp-asis__texto { background: #fff; border: 1px solid var(--cbp-red); color: var(--p-tinta); }
.cbp-asis__punto::before { background: var(--p-tinta); }
.cbp-asis__sugerencias button { border: 1px solid var(--p-tinta); color: var(--p-tinta); border-radius: 50px; font-weight: 500; }
.cbp-asis__sugerencias button:hover { background: var(--p-tinta); color: #fff; }
.cbp-asis__escribiendo span { background: var(--p-gris-claro); }
.cbp-asis__form { align-items: center; }
.cbp-asis__form textarea { border: 0; border-bottom: 1px solid var(--p-gris-claro); border-radius: 0; padding: 10px 2px; }
.cbp-asis__form textarea:focus { border-bottom-color: var(--p-tinta); }
.cbp-asis__form button { background: var(--p-tinta); }
.cbp-asis__form button:hover { background: var(--cbp-red); }
.cbp-asis__calificar .fa-heart { color: var(--p-tinta); }

/* Esquina inferior derecha: asistente abajo, "subir" encima y el sello de reCAPTCHA más arriba */
.grecaptcha-badge { bottom: 150px !important; }
@media (max-width: 575px) {
  .cbp-asis__burbuja { max-width: 230px; padding: 14px 36px 14px 16px; bottom: 70px; }
  .cbp-asis__burbuja strong { font-size: 15px; }
  .cbp-asis__burbuja span { font-size: 13px; }
  .cbp-asis__boton { width: 54px; height: 54px; }
  .cbp-asis__escudo { width: 28px; }
}
