:root {
  --red: #ed1c24;
  --red-2: #df1722;
  --red-dark: #bc1e2d;
  --red-soft: #fff0f1;
  --top: #344151;
  --top-dark: #26313e;
  --text: #202733;
  --muted: #6c7480;
  --line: #e5e5e5;
  --panel: #ffffff;
  --bg: #f8f8f8;
  --shadow: 0 22px 50px rgba(18, 25, 35, .11);
  --radius: 14px;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1530px, calc(100% - 72px));
  margin: 0 auto;
}

.top-line {
  height: 4px;
  background: var(--red);
}

.top-info {
  background: linear-gradient(180deg, var(--top), var(--top-dark));
  color: #fff;
  font-size: 14px;
}

.top-info-inner {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.language span { opacity: .6; }

.contact-strip {
  display: flex;
  gap: 15px;
  align-items: center;
}

.contact-strip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
  margin-left: 8px;
}

.pin,
.phone {
  color: #fff;
  font-size: 13px;
}

.main-header {
  background: var(--red);
  color: white;
  position: relative;
  overflow: hidden;
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 70px;
  z-index: 2;
}

.logo img {
  width: 92px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 45px;
  z-index: 2;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 400;
  letter-spacing: .02em;
}

.nav a:hover { text-decoration: underline; }

.nav-button {
  border: 1px solid rgba(255,255,255,.55);
  padding: 10px 16px;
  border-radius: 3px;
  font-weight: 700 !important;
}

.watermark-b {
  position: absolute;
  right: -12px;
  bottom: -44px;
  width: 112px;
  opacity: .17;
}

.service-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.service-grid {
  height: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-grid article {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  border-right: 1px solid #e6e6e6;
  transform: skewX(-8deg);
}

.service-grid article > * {
  transform: skewX(8deg);
}

.service-grid article:first-child {
  border-left: 1px solid #e6e6e6;
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 10px;
  background: var(--red);
  color: white;
  font-weight: 900;
  font-size: 12px;
}

.service-icon.b {
  font-size: 32px;
  line-height: 1;
}

.service-icon.bso {
  font-size: 11px;
  background: linear-gradient(140deg, var(--red) 55%, #1485c8 55%);
}

.service-grid strong {
  display: block;
  font-size: 15px;
  color: #1e2630;
  margin-bottom: 7px;
}

.service-grid small {
  display: block;
  color: #4d5560;
  font-size: 14px;
}

.page {
  min-height: calc(100vh - 218px);
  padding: 42px 0 44px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,248,248,.96)),
    url("../img/Fons.jpg") center/cover fixed;
}

.layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

.sidebar {
  padding: 12px 0 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.sparkles {
  color: var(--red);
  font-size: 52px;
  line-height: 1;
}

.brand-block h1 {
  margin: 0;
  color: var(--red);
  font-size: 34px;
  letter-spacing: .01em;
}

.brand-block p {
  margin: 6px 0 0;
  color: #2d343d;
  font-size: 16px;
}

hr {
  border: 0;
  border-top: 1px solid #dedede;
  margin: 0 0 28px;
}

.programs h2 {
  margin: 0 0 18px;
  font-size: 16px;
  color: #111822;
}

.program-card {
  position: relative;
  width: 100%;
  min-height: 130px;
  display: grid;
  grid-template-columns: 86px 1fr 26px;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 26px rgba(15, 20, 30, .04);
  transition: border .18s ease, transform .18s ease, box-shadow .18s ease;
}

.program-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 8px;
  background: transparent;
  border-radius: 10px 0 0 10px;
}

.program-card.active,
.program-card:hover {
  border-color: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(237, 28, 36, .11);
}

.program-card.active::before {
  background: var(--red);
}

.program-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.program-logo img {
  width: 82px;
  max-height: 82px;
  object-fit: contain;
}

.program-logo.gest img {
  width: 70px;
  max-height: 70px;
  border-radius: 14px;
}

.program-text strong {
  display: block;
  color: var(--red);
  font-size: 20px;
  margin-bottom: 8px;
}

.program-text small {
  display: block;
  color: #2d3540;
  font-size: 15px;
  line-height: 1.55;
}

.arrow {
  font-size: 38px;
  color: #1f2733;
}

.benefits {
  display: grid;
  gap: 22px;
  margin: 42px 0;
}

.benefit {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  color: #2f3844;
  font-size: 15px;
}

.benefit span {
  width: 24px;
  height: 24px;
  border: 1.7px solid var(--red);
  color: var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.tip-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  border: 1px solid #ffd5d7;
  background: linear-gradient(180deg, #fff, #fff7f7);
  border-radius: 10px;
  padding: 20px;
}

.tip-icon {
  color: var(--red);
  font-size: 26px;
}

.tip-card strong {
  color: var(--red);
}

.tip-card p {
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.55;
  font-size: 14px;
}

.chat-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 780px;
  overflow: hidden;
}

.chat-header {
  height: 82px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--red), #db101b);
  color: white;
  font-size: 24px;
  box-shadow: 0 10px 22px rgba(237,28,36,.22);
}

.chat-title h2 {
  margin: 0;
  color: var(--red);
  font-size: 25px;
}

.chat-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 700;
}

.online-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.chat-body {
  position: relative;
  background:
    radial-gradient(circle at 70% 20%, rgba(237,28,36,.025), transparent 28%),
    #fff;
  overflow: hidden;
}

.day-pill {
  margin: 28px auto 12px;
  width: 82px;
  text-align: center;
  padding: 6px 0;
  background: #eef0f3;
  color: #606a77;
  border-radius: 999px;
  font-size: 14px;
}

.chat-window {
  height: calc(100vh - 410px);
  min-height: 520px;
  max-height: 720px;
  overflow-y: auto;
  padding: 8px 28px 28px;
}

.message {
  display: flex;
  gap: 16px;
  margin: 0 0 22px;
  align-items: flex-start;
}

.message.user {
  justify-content: flex-end;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--red), #df1320);
  color: white;
  font-weight: 900;
  flex: 0 0 auto;
  box-shadow: 0 10px 18px rgba(237,28,36,.18);
}

.message.user .avatar {
  display: none;
}

.bubble {
  max-width: min(760px, 72%);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  line-height: 1.58;
  color: #17202c;
  box-shadow: 0 8px 24px rgba(20,27,38,.035);
}

.message.user .bubble {
  background: #fff0f1;
  border-color: #ffd0d4;
  box-shadow: none;
}

.message.assistant .bubble strong,
.message.assistant .bubble b {
  color: var(--red);
}

.bubble p {
  margin: 0 0 10px;
}

.bubble p:last-child {
  margin-bottom: 0;
}

.timestamp {
  display: block;
  color: #929aa5;
  font-size: 13px;
  margin-top: 12px;
}

.composer {
  min-height: 104px;
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(20,27,38,.06);
}

.composer-tools {
  display: flex;
  gap: 10px;
  padding-bottom: 7px;
}

.composer-tools button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 22px;
  cursor: pointer;
}

textarea {
  min-height: 56px;
  max-height: 180px;
  resize: none;
  border: 0;
  outline: 0;
  font: inherit;
  padding: 12px 0;
  color: var(--text);
}

.send-button {
  border: 0;
  border-radius: 9px;
  background: var(--red);
  color: white;
  min-width: 118px;
  height: 52px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(237,28,36,.2);
}

.send-button span {
  margin-left: 8px;
}

.footer {
  background: var(--top-dark);
  color: white;
  padding: 26px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer img {
  width: 82px;
  filter: none;
}

.footer p {
  margin: 4px 0;
  color: #d7dde5;
}

@media (max-width: 1120px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .service-grid article {
    min-height: 82px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding-right: 0;
  }

  .chat-panel {
    min-height: 680px;
  }

  .chat-window {
    height: 56vh;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 24px, 1530px);
  }

  .top-info-inner,
  .header-inner {
    height: auto;
    padding: 12px 0;
    display: block;
  }

  .contact-strip,
  .nav {
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo img {
    width: 82px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    transform: none;
  }

  .service-grid article > * {
    transform: none;
  }

  .page {
    padding-top: 18px;
  }

  .program-card {
    grid-template-columns: 72px 1fr auto;
  }

  .chat-header {
    height: auto;
    padding: 18px;
    display: block;
  }

  .online-pill {
    margin-top: 12px;
  }

  .chat-window {
    min-height: 420px;
    padding: 8px 18px 18px;
  }

  .bubble {
    max-width: 90%;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .composer-tools {
    order: 2;
  }

  .send-button {
    width: 100%;
  }

  .footer-grid {
    display: block;
  }
}



/* =========================================================
   V8 - Layout compacto de pantalla completa
   ========================================================= */

body {
  overflow: hidden;
}

.top-info {
  display: none;
}

.main-header {
  height: 68px;
}

.header-inner {
  height: 68px;
}

.logo {
  height: 68px;
}

.logo img {
  width: 82px;
}

.nav {
  gap: 28px;
}

.service-bar {
  display: none;
}

.page {
  height: calc(100vh - 72px);
  min-height: 0;
  padding: 14px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,248,248,.98)),
    url("../img/Fons.jpg") center/cover fixed;
  overflow: hidden;
}

.container {
  width: min(100% - 28px, 1500px);
}

.layout {
  height: calc(100vh - 100px);
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.sidebar {
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.brand-block {
  gap: 14px;
  margin-bottom: 14px;
}

.sparkles {
  font-size: 36px;
}

.brand-block h1 {
  font-size: 27px;
}

.brand-block p {
  font-size: 14px;
}

hr {
  margin: 0 0 16px;
}

.programs h2 {
  margin-bottom: 12px;
  font-size: 15px;
}

.program-card {
  min-height: 92px;
  grid-template-columns: 62px 1fr 18px;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 9px;
}

.program-logo {
  width: 54px;
  height: 54px;
}

.program-logo img {
  width: 62px;
  max-height: 62px;
}

.program-logo.gest img {
  width: 50px;
  max-height: 50px;
}

.program-text strong {
  font-size: 18px;
  margin-bottom: 4px;
}

.program-text small {
  font-size: 13px;
  line-height: 1.35;
}

.arrow {
  font-size: 28px;
}

.benefits {
  gap: 12px;
  margin: 20px 0;
}

.benefit {
  grid-template-columns: 28px 1fr;
  gap: 10px;
  font-size: 13px;
}

.benefit span {
  width: 22px;
  height: 22px;
  font-size: 10px;
}

.tip-card {
  margin-top: auto;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 14px;
}

.tip-icon {
  font-size: 21px;
}

.tip-card p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
}

.chat-panel {
  height: 100%;
  min-height: 0;
  border-radius: 14px;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) auto;
}

.chat-header {
  height: 68px;
  padding: 0 22px;
}

.ai-icon {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.chat-title h2 {
  font-size: 22px;
}

.chat-title p {
  font-size: 13px;
}

.online-pill {
  padding: 8px 12px;
  font-size: 13px;
}

.chat-body {
  min-height: 0;
  overflow: hidden;
}

.day-pill {
  margin: 14px auto 8px;
  padding: 5px 0;
  font-size: 12px;
}

.chat-window {
  height: calc(100% - 44px);
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 8px 24px 16px;
}

.message {
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  width: 34px;
  height: 34px;
}

.bubble {
  max-width: min(720px, 78%);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.52;
  border-radius: 11px;
}

.timestamp {
  margin-top: 8px;
  font-size: 12px;
}

.composer {
  min-height: 78px;
  margin: 0 14px 14px;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
}

.composer-tools {
  gap: 6px;
  padding-bottom: 6px;
}

.composer-tools button {
  font-size: 18px;
}

textarea {
  min-height: 42px;
  max-height: 110px;
  padding: 9px 0;
  font-size: 15px;
}

.send-button {
  min-width: 104px;
  height: 44px;
  font-size: 14px;
}

.footer {
  display: none;
}

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .page {
    height: auto;
    min-height: calc(100vh - 68px);
    overflow: visible;
  }

  .layout {
    height: auto;
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    overflow: visible;
  }

  .chat-panel {
    height: 72vh;
    min-height: 560px;
  }
}

@media (max-width: 780px) {
  .main-header,
  .header-inner {
    height: auto;
  }

  .page {
    padding: 10px 0;
  }

  .container {
    width: min(100% - 18px, 1500px);
  }

  .nav {
    gap: 10px;
  }

  .chat-panel {
    height: 78vh;
    min-height: 520px;
  }

  .chat-header {
    height: auto;
    padding: 14px;
  }

  .bubble {
    max-width: 92%;
  }

  .composer {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   V9 - Mejoras de producto
   ========================================================= */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select,
.small-action,
.cancel-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  height: 36px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
}

.small-action,
.cancel-button {
  cursor: pointer;
  font-weight: 700;
}

.small-action:hover,
.cancel-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.cancel-button {
  color: var(--red);
  background: var(--red-soft);
  min-width: 92px;
}

.typing-message .bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  opacity: .35;
  animation: typingPulse 1.1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: .15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: .3s;
}

.typing-label {
  color: var(--muted);
  font-size: 13px;
}

@keyframes typingPulse {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.bubble ul,
.bubble ol {
  margin: 0 0 10px 20px;
  padding: 0;
}

.bubble li {
  margin: 5px 0;
}

.bubble a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.bubble a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.bubble table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.bubble th,
.bubble td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
}

.bubble th {
  background: #fafafa;
  color: var(--red);
}

.bubble tr:last-child td {
  border-bottom: 0;
}

.copy-btn {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.copy-btn:hover {
  color: var(--red);
  border-color: var(--red);
}

@media (max-width: 780px) {
  .header-actions {
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .language-select,
  .small-action,
  .online-pill {
    height: 34px;
    font-size: 12px;
  }
}


/* =========================================================
   V10 - Cuadro de escritura limpio
   ========================================================= */

.composer {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 74px;
  padding: 10px 12px 10px 18px;
}

.composer textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 0;
}

.composer-tools {
  display: none !important;
}

.cancel-button,
.send-button {
  align-self: center;
}

@media (max-width: 780px) {
  .composer {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .cancel-button,
  .send-button {
    width: 100%;
  }
}


/* =========================================================
   V11 - Adjuntos y arrastrar/soltar
   ========================================================= */

.composer {
  display: block;
  position: relative;
  padding: 10px 12px 8px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.composer.drag-active {
  border-color: var(--red);
  background: #fff8f8;
  box-shadow: 0 0 0 4px rgba(237, 28, 36, .08);
}

.composer.drag-active::after {
  content: "Suelta aquí los archivos";
  position: absolute;
  inset: 8px;
  z-index: 6;
  display: grid;
  place-items: center;
  border: 2px dashed var(--red);
  border-radius: 10px;
  background: rgba(255, 248, 248, .96);
  color: var(--red);
  font-weight: 800;
  pointer-events: none;
}

.composer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.attach-wrap {
  position: relative;
}

.attach-button {
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 9px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.attach-button:hover,
.attach-button[aria-expanded="true"] {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-soft);
}

.attach-plus {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}

.attach-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: 290px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(18, 25, 35, .18);
}

.attach-menu[hidden] {
  display: none;
}

.attach-menu button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.attach-menu button:hover {
  background: var(--red-soft);
}

.attach-menu button > span:first-child {
  font-size: 22px;
}

.attach-menu strong,
.attach-menu small {
  display: block;
}

.attach-menu strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.attach-menu small {
  color: var(--muted);
  font-size: 12px;
}

.attachment-preview {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 9px;
}

.attachment-preview.has-files {
  display: flex;
}

.attachment-chip {
  min-width: 190px;
  max-width: 270px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 26px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px 9px;
}

.attachment-chip-icon {
  font-size: 20px;
}

.attachment-chip-info {
  min-width: 0;
}

.attachment-chip-info strong,
.attachment-chip-info small {
  display: block;
}

.attachment-chip-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}

.attachment-chip-info small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.attachment-remove {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.attachment-remove:hover {
  color: var(--red);
  background: var(--red-soft);
}

.attachment-note {
  margin: 7px 4px 0;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 780px) {
  .composer-row {
    grid-template-columns: 1fr;
  }

  .attach-button,
  .cancel-button,
  .send-button {
    width: 100%;
    justify-content: center;
  }

  .attach-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .attachment-chip {
    min-width: 170px;
  }
}


/* =========================================================
   V13 - Tercer agente BIM Informática
   ========================================================= */

.program-logo.bimweb {
  background: #fff;
}

.program-logo.bimweb img {
  width: 58px;
  max-height: 48px;
  object-fit: contain;
}

@media (min-width: 1121px) {
  .program-card {
    min-height: 82px;
    margin-bottom: 9px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .program-logo {
    width: 50px;
    height: 50px;
  }

  .program-logo img {
    max-height: 54px;
  }

  .program-text strong {
    font-size: 17px;
  }

  .program-text small {
    font-size: 12.5px;
  }

  .benefits {
    margin: 14px 0;
    gap: 9px;
  }
}


/* =========================================================
   V14 - Páginas individuales por agente
   ========================================================= */

.single-agent-page .programs h2 {
  margin-bottom: 12px;
}

.single-agent-page .fixed-agent-card {
  cursor: default;
  pointer-events: none;
}

.single-agent-page .fixed-agent-card .arrow {
  display: none;
}

.single-agent-page .sidebar {
  justify-content: flex-start;
}

.single-agent-page .programs {
  margin-bottom: 12px;
}

.single-agent-page .benefits {
  margin-top: 16px;
}

@media (min-width: 1121px) {
  .single-agent-page .layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}
