.chat-fab {
    position: fixed;
    right: 24px;
    bottom: 26px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(134, 201, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eaf6ff;
    font-size: 24px;
    text-decoration: none;
    z-index: 1600;
    background: linear-gradient(145deg, rgba(8, 34, 84, 0.94), rgba(20, 88, 166, 0.92));
    box-shadow: 0 14px 30px rgba(4, 23, 58, 0.35), inset 0 1px 0 rgba(188, 227, 255, 0.28);
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    transition: transform .3s ease, opacity .3s ease, box-shadow .3s ease;
}

.chat-icon-svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex-shrink: 0;
}

.chat-fab i,
.chat-fab .chat-icon-svg {
    color: #eef7ff !important;
    transition: color .2s ease;
}

.chat-fab::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(41, 171, 255, 0.28);
    animation: chatPulse 2.4s ease-out infinite;
}

.chat-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 34px rgba(4, 23, 58, 0.42), 0 0 18px rgba(34, 162, 255, 0.38);
    color: #eef7ff !important;
}

.chat-fab:hover i,
.chat-fab:focus i,
.chat-fab:hover .chat-icon-svg,
.chat-fab:focus .chat-icon-svg {
    color: #ffffff !important;
}

.chat-fab.chat-fab-hidden {
    transform: translateY(8px);
    opacity: 0.78;
}

.chat-fab.chat-fab-open {
    transform: scale(.82);
    opacity: 0;
    pointer-events: none;
}

.chat-widget-overlay {
    position: fixed;
    inset: 0;
    z-index: 1588;
    background: rgba(4, 14, 30, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: min(430px, calc(100vw - 30px));
    height: min(720px, calc(100vh - 90px));
    border-radius: 26px;
    overflow: hidden;
    z-index: 1590;
    background: #eceef2;
    box-shadow: 0 26px 64px rgba(6, 16, 32, 0.32), 0 8px 20px rgba(9, 27, 56, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(26px) scale(.94);
    transform-origin: bottom right;
    transition:
        transform .55s cubic-bezier(.22, 1, .36, 1),
        opacity .32s ease,
        visibility .32s ease,
        width .62s cubic-bezier(.22, 1, .36, 1),
        height .62s cubic-bezier(.22, 1, .36, 1),
        right .62s cubic-bezier(.22, 1, .36, 1),
        bottom .62s cubic-bezier(.22, 1, .36, 1),
        border-radius .62s cubic-bezier(.22, 1, .36, 1),
        box-shadow .62s cubic-bezier(.22, 1, .36, 1);
    --chat-nav-height: 74px;
}

.chat-widget.is-expanded {
    right: 18px;
    bottom: 18px;
    width: min(1120px, calc(100vw - 36px));
    height: min(900px, calc(100vh - 34px));
    border-radius: 30px;
    background:
        radial-gradient(circle at 14% 10%, rgba(74, 176, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 88% 18%, rgba(48, 130, 243, 0.22) 0%, transparent 46%),
        linear-gradient(145deg, #040f26 0%, #08214a 52%, #0a3a75 100%);
    box-shadow: 0 36px 84px rgba(2, 10, 24, 0.58), 0 14px 36px rgba(7, 29, 66, 0.42);
}

.chat-widget.is-help-active {
    background:
        radial-gradient(circle at 14% 10%, rgba(74, 176, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 88% 18%, rgba(48, 130, 243, 0.22) 0%, transparent 46%),
        linear-gradient(145deg, #040f26 0%, #08214a 52%, #0a3a75 100%);
}

.chat-widget-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: 16px;
}

.chat-widget,
.chat-widget * {
    transition: background-color .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.chat-widget.is-open,
.chat-widget-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.chat-widget.is-open {
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-widget-overlay.is-open {
    pointer-events: auto;
}

.chat-widget-header {
    position: relative;
    min-height: 252px;
    padding: 26px 24px 20px;
    color: #ffffff;
    background:
        radial-gradient(circle at 14% 10%, rgba(74, 176, 255, 0.34) 0%, transparent 38%),
        radial-gradient(circle at 84% 22%, rgba(40, 124, 247, 0.28) 0%, transparent 46%),
        linear-gradient(132deg, #041025 0%, #082451 48%, #0d4a92 100%);
    overflow: hidden;
}

.chat-widget-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(155, 219, 255, 0.12) 0%, rgba(8, 36, 82, 0) 62%);
    opacity: 0.5;
}

.chat-widget-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(108, 197, 255, 0.34) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(115deg, transparent 0%, rgba(0, 0, 0, 0.95) 28%, rgba(0, 0, 0, 0.95) 72%, transparent 100%);
    mask-image: linear-gradient(115deg, transparent 0%, rgba(0, 0, 0, 0.95) 28%, rgba(0, 0, 0, 0.95) 72%, transparent 100%);
}

.chat-brand {
    position: relative;
    z-index: 1;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-brand-logo {
    width: clamp(160px, 40vw, 228px);
    height: auto;
    display: block;
    filter: drop-shadow(0 0 14px rgba(98, 189, 255, 0.18));
}

.chat-brand-logo.is-hidden {
    display: none;
}

.chat-brand-name {
    display: none;
    font-size: 24px;
    line-height: 1.1;
    font-family: RobotoMedium, sans-serif;
    color: #eef7ff;
    text-shadow: 0 6px 16px rgba(2, 12, 34, 0.38);
}

.chat-brand.has-no-logo .chat-brand-name {
    display: block;
}

.chat-widget-close,
.chat-widget-theme {
    position: absolute;
    top: 20px;
    z-index: 2;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background .2s ease, color .2s ease;
}

.chat-widget-close {
    right: 18px;
}

.chat-widget-theme {
    right: 56px;
}

.chat-widget-close:hover,
.chat-widget-theme:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.chat-hero-text {
    position: relative;
    z-index: 1;
    margin-top: 56px;
    font-family: RobotoMedium, sans-serif;
}

.chat-hero-text .saludo {
    display: block;
    font-size: 22px;
    color: #f3f8ff;
    text-shadow: 0 0 8px rgba(130, 201, 255, 0.26), 0 0 1px rgba(255, 255, 255, 0.55);
}

.chat-hero-text .pregunta {
    display: block;
    margin-top: 4px;
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #eef7ff;
    text-shadow: 0 6px 16px rgba(2, 12, 34, 0.38), 0 0 9px rgba(76, 168, 255, 0.18), 0 0 1px rgba(255, 255, 255, 0.48);
}

.chat-widget-body {
    margin-top: 12px;
    padding: 0 12px 12px;
    background: #eceef2;
}

.chat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 6px 18px rgba(15, 24, 36, 0.08);
    margin-bottom: 12px;
}

.chat-card h4 {
    margin: 0 0 12px;
    font-family: RobotoMedium, sans-serif;
    font-size: 18px;
    color: #1c1f24;
}

.chat-recent-trigger {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    position: relative;
    transform: translateY(0);
    color: #20242d;
}

#chat-recent-heading {
    font-size: 16px;
    margin-bottom: 10px;
    font-family: RobotoRegular, sans-serif;
    font-weight: 400;
    color: inherit !important;
}

.chat-recent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chat-recent-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.chat-recent-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: #ffffff;
    background: linear-gradient(145deg, #1f4aa1, #2ea2ea);
    box-shadow: 0 6px 16px rgba(10, 33, 76, 0.28);
}

.chat-recent-meta {
    min-width: 0;
}

.chat-message-main {
    font-size: 15px;
    color: #1f2633;
    font-family: RobotoMedium, sans-serif;
}

.chat-recent-preview-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-message-sub {
    font-size: 14px;
    color: #606977;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.chat-time {
    font-size: 14px;
    color: #6f7480;
    flex-shrink: 0;
}

.chat-recent-unread-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ef2f2f;
    box-shadow: 0 0 0 3px rgba(239, 47, 47, 0.14);
    opacity: 1;
    transition: opacity .2s ease, transform .2s ease;
}

.chat-recent-unread-dot.is-hidden {
    opacity: 0;
    transform: scale(.6);
}

.chat-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    color: #20242d;
    font-family: RobotoMedium, sans-serif;
}

.chat-action i,
.chat-action .chat-icon-svg {
    color: #1682e8;
}

.chat-send-trigger {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    position: relative;
    transform: translateY(0);
}

.chat-send-trigger:hover {
    box-shadow: 0 10px 24px rgba(11, 33, 72, 0.16);
}

.chat-recent-trigger:hover {
    box-shadow: 0 12px 26px rgba(11, 33, 72, 0.18);
}

.chat-send-trigger:active,
.chat-send-trigger.is-pressed,
.chat-recent-trigger:active,
.chat-recent-trigger.is-pressed {
    transform: scale(.985);
    box-shadow: 0 5px 12px rgba(11, 33, 72, 0.16);
}

.chat-send-trigger:focus-visible,
.chat-recent-trigger:focus-visible {
    outline: 2px solid rgba(45, 138, 255, 0.45);
    outline-offset: 2px;
}

.chat-search {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: #ececef;
    padding: 0 20px;
    font-size: 16px;
    color: #1d2330;
    caret-color: #1d2330;
    outline: none;
}

.chat-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-list-empty {
    margin: 12px 4px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #6b7280;
}

.chat-list-empty.is-hidden {
    display: none;
}

.chat-list-item {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: RobotoRegular, sans-serif;
    width: 100%;
    border-radius: 12px;
    background: transparent;
    padding: 10px 10px;
    text-align: left;
    cursor: pointer;
    color: #626873;
    font-size: 15px;
    line-height: 1.4;
    transition: background-color .2s ease, color .2s ease;
}

.chat-list-item span {
    color: inherit;
}

.chat-list-item i,
.chat-list-item .chat-icon-svg {
    color: #1784e9;
    margin-top: 0;
    transition: color .2s ease;
}

.chat-list-item:hover {
    background: rgba(26, 133, 239, 0.1);
    color: #2b3548;
}

.chat-list-item.is-pressed {
    background: rgba(26, 133, 239, 0.12);
    color: #2b3548;
}

.chat-list-item:hover i {
    color: #2a8df2;
}

.chat-list-item.is-pressed i {
    color: #2a8df2;
}

.chat-list-item:focus-visible {
    outline: 2px solid rgba(45, 138, 255, 0.45);
    outline-offset: 2px;
}

.chat-widget-nav {
    margin: 0;
    border-top: 1px solid #d4d8de;
    background: #f4f5f7;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 14px 12px 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.chat-nav-item {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: center;
    color: #757b85;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}

.chat-nav-item i,
.chat-nav-item .chat-icon-svg {
    font-size: 21px;
}

.chat-nav-item.active {
    color: #1682e8;
    font-family: RobotoMedium, sans-serif;
}

.chat-messages-panel {
    position: absolute;
    inset: 0 0 var(--chat-nav-height) 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px) scale(.985);
    transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, visibility .22s ease;
    background:
        radial-gradient(circle at 14% 6%, rgba(76, 184, 255, 0.2) 0%, transparent 36%),
        radial-gradient(circle at 86% 16%, rgba(35, 116, 235, 0.19) 0%, transparent 42%),
        linear-gradient(145deg, #05122a 0%, #08224d 56%, #0a3f7e 100%);
}

.chat-messages-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(124, 171, 236, 0.22);
}

.chat-messages-title {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.01em;
    color: #f2f8ff;
    text-shadow: 0 0 10px rgba(97, 181, 255, 0.18);
    font-family: RobotoMedium, sans-serif;
}

.chat-messages-close {
    border: 0;
    background: transparent;
    color: #b8cee9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.chat-messages-close:hover {
    color: #f3f9ff;
    background: rgba(151, 208, 255, 0.14);
}

.chat-messages-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-messages-empty {
    margin: 20px 6px 0;
    color: #c6d9f4;
    font-size: 16px;
    line-height: 1.45;
}

.chat-message-row {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    border-radius: 18px;
    background: rgba(9, 26, 58, 0.82);
    border: 1px solid rgba(91, 146, 221, 0.2);
    padding: 12px 12px 11px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.chat-message-row:hover {
    border-color: rgba(121, 184, 255, 0.42);
    background: rgba(12, 34, 74, 0.92);
    box-shadow: 0 10px 20px rgba(1, 10, 24, 0.32);
}

.chat-message-row.is-pressed {
    transform: scale(.988);
    border-color: rgba(131, 193, 255, 0.46);
}

.chat-message-row-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    background: linear-gradient(145deg, #2150ac, #2ea2ea);
    box-shadow: 0 8px 18px rgba(4, 16, 40, 0.3);
}

.chat-recent-avatar .chat-icon-svg,
.chat-message-row-avatar .chat-icon-svg,
.chat-room-avatar .chat-icon-svg {
    width: 22px;
    height: 22px;
}

.chat-message-row-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.chat-message-row-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.chat-message-row-title {
    min-width: 0;
    font-size: 18px;
    line-height: 1.2;
    color: #edf5ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: RobotoMedium, sans-serif;
}

.chat-message-row-time {
    flex-shrink: 0;
    font-size: 14px;
    color: #a8bdd9;
}

.chat-message-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-message-row-preview {
    min-width: 0;
    font-size: 15px;
    line-height: 1.35;
    color: #c1d2ea;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-message-row-unread-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ef2f2f;
    box-shadow: 0 0 0 3px rgba(239, 47, 47, 0.16);
    opacity: 1;
    transition: opacity .2s ease, transform .2s ease;
}

.chat-message-row-unread-dot.is-hidden {
    opacity: 0;
    transform: scale(.6);
}

.chat-messages-footer {
    padding: 8px 12px 10px;
    border-top: 1px solid rgba(124, 171, 236, 0.2);
    background: linear-gradient(180deg, rgba(7, 24, 55, 0) 0%, rgba(7, 24, 55, 0.6) 45%, rgba(7, 24, 55, 0.88) 100%);
}

.chat-messages-cta {
    width: min(86%, 320px);
    margin: 0 auto;
    border: 0;
    min-height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    color: #ffffff;
    font-size: 18px;
    font-family: RobotoMedium, sans-serif;
    letter-spacing: 0.005em;
    background: linear-gradient(145deg, #245fca, #2ea5f0);
    box-shadow: 0 12px 22px rgba(2, 18, 44, 0.38);
    transform: translateY(0);
}

.chat-messages-cta:hover {
    filter: brightness(1.06);
    box-shadow: 0 14px 24px rgba(2, 18, 44, 0.42);
}

.chat-messages-cta:active,
.chat-messages-cta.is-pressed {
    transform: scale(.988);
}

.chat-messages-cta i {
    font-size: 18px;
}

.chat-help-menu-panel {
    position: absolute;
    inset: 0 0 var(--chat-nav-height) 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px) scale(.985);
    transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, visibility .22s ease;
    background:
        radial-gradient(circle at 14% 6%, rgba(76, 184, 255, 0.2) 0%, transparent 36%),
        radial-gradient(circle at 86% 16%, rgba(35, 116, 235, 0.19) 0%, transparent 42%),
        linear-gradient(145deg, #05122a 0%, #08224d 56%, #0a3f7e 100%);
}

.chat-help-menu-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-help-menu-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
}

.chat-help-menu-card {
    margin: 0;
    background: rgba(12, 29, 63, 0.78);
    border: 1px solid rgba(86, 143, 219, 0.22);
    box-shadow: 0 12px 28px rgba(2, 12, 30, 0.34);
}

.chat-help-menu-panel .chat-list-empty {
    color: #d6e5fb;
}

.chat-help-menu-heading {
    margin-bottom: 14px;
}

.chat-help-menu-panel .chat-action,
.chat-help-menu-panel .chat-list-item {
    color: #d6e5fb;
}

.chat-help-menu-panel .chat-action i,
.chat-help-menu-panel .chat-list-item i,
.chat-help-menu-panel .chat-action .chat-icon-svg,
.chat-help-menu-panel .chat-list-item .chat-icon-svg {
    color: #1e94ff;
}

.chat-help-menu-panel .chat-search {
    background: rgba(2, 19, 48, 0.92);
    border: 1px solid rgba(75, 136, 216, 0.42);
    color: #ffffff;
    caret-color: #ffffff;
}

.chat-help-menu-panel .chat-search::placeholder {
    color: rgba(213, 230, 255, 0.72);
}

.chat-help-menu-panel .chat-list {
    margin-top: 16px;
    gap: 10px;
}

.chat-help-menu-panel .chat-list-item {
    min-height: 56px;
    padding: 14px 12px;
    border-radius: 14px;
}

.chat-help-menu-panel .chat-list-item:hover {
    background: rgba(30, 148, 255, 0.12);
    color: #e7f2ff;
}

.chat-help-menu-panel .chat-list-item.is-pressed {
    background: rgba(30, 148, 255, 0.17);
    color: #e7f2ff;
}

.chat-room {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    background: #f2f4f8;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(22px) scale(.98);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, visibility .22s ease;
}

.chat-room.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.chat-help-panel {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 12% 6%, rgba(88, 189, 255, 0.2) 0%, transparent 36%),
        radial-gradient(circle at 88% 12%, rgba(66, 132, 255, 0.18) 0%, transparent 42%),
        linear-gradient(145deg, #040f26 0%, #081d44 56%, #0a3368 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(24px) scale(.975);
    transition:
        transform .52s cubic-bezier(.22, 1, .36, 1),
        opacity .2s ease,
        visibility .2s ease;
    will-change: transform, opacity;
}

.chat-help-panel,
.chat-help-panel * {
    transition-property: none !important;
}

.chat-help-panel {
    transition:
        transform .52s cubic-bezier(.22, 1, .36, 1) !important,
        opacity .2s ease !important,
        visibility .2s ease !important;
}

.chat-help-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-help-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
    flex-shrink: 0;
}

.chat-help-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-help-icon-btn {
    border: 0;
    background: transparent;
    color: #afc5e7;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.chat-help-icon-btn:hover {
    background: rgba(141, 199, 255, 0.14);
    color: #e5f1ff;
}

.chat-help-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 34px 34px;
    color: #dce9ff;
}

.chat-help-title {
    margin: 18px 0 10px;
    font-size: clamp(32px, 5.3vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(96, 186, 255, 0.2);
    font-family: RobotoMedium, sans-serif;
    transition: none !important;
}

.chat-widget:not(.is-expanded) .chat-help-title {
    font-size: clamp(24px, 3.2vw, 38px);
    line-height: 1.1;
    text-shadow: 0 0 8px rgba(96, 186, 255, 0.14);
}

.chat-help-meta {
    margin: 0 0 18px;
    font-size: 16px;
    color: #ffffff !important;
    opacity: 0.9;
    transition: none !important;
}

.chat-help-toc {
    width: 100%;
    border: 1px solid rgba(104, 155, 220, 0.48);
    border-radius: 14px;
    background: rgba(4, 26, 60, 0.5);
    color: #e1efff;
    min-height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17px;
    cursor: pointer;
}

.chat-help-panel-body p {
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #d5e4ff;
}

.chat-help-panel-body h3 {
    margin: 10px 0 8px;
    font-size: 34px;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(96, 186, 255, 0.14);
    font-family: RobotoMedium, sans-serif;
    transition: none !important;
}

.chat-help-panel-body ul {
    margin: 10px 0 0;
    padding-left: 24px;
}

.chat-help-panel-body li {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.6;
    color: #d5e4ff;
}

.chat-room-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #d8dde6;
    background: #ffffff;
}

.chat-room-icon-btn {
    border: 0;
    background: transparent;
    color: #6d7481;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-room-icon-btn:hover {
    background: #eef2f8;
    color: #3a4351;
}

.chat-room-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.chat-room-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    background: linear-gradient(150deg, #1a3f8a, #2f72dd);
}

.chat-room-agent-meta {
    min-width: 0;
}

.chat-room-name {
    font-size: 17px;
    line-height: 1.2;
    color: #1a1f28;
    font-family: RobotoMedium, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-room-online {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #21b04b;
    box-shadow: 0 0 0 2px rgba(33, 176, 75, 0.2);
}

.chat-room-status {
    font-size: 13px;
    color: #6e7684;
}

.chat-room-thread {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 14px 8px;
    background: #f2f4f8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    max-width: 84%;
    padding: 11px 14px;
    border-radius: 16px;
    line-height: 1.45;
    font-size: 15px;
    white-space: pre-line;
}

.chat-bubble.bot {
    background: #ffffff;
    color: #1c2230;
    border-top-left-radius: 6px;
    align-self: flex-start;
    box-shadow: 0 5px 16px rgba(20, 28, 42, 0.08);
}

.chat-bubble.user {
    background: linear-gradient(140deg, #1f4aa1, #2c83f4);
    color: #ffffff;
    border-top-right-radius: 6px;
    align-self: flex-end;
    box-shadow: 0 8px 18px rgba(16, 57, 124, 0.26);
}

.chat-contact-card {
    align-self: flex-start;
    max-width: 88%;
    background: #ffffff;
    border: 1px solid #d5deeb;
    border-radius: 14px;
    padding: 11px;
    box-shadow: 0 5px 16px rgba(20, 28, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-contact-label {
    font-size: 12px;
    color: #5f6775;
    font-family: RobotoMedium, sans-serif;
    letter-spacing: 0.02em;
}

.chat-contact-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-contact-actions {
    display: flex;
}

.chat-contact-input {
    min-width: 0;
    height: 38px;
    border: 1px solid #c6d3e5;
    border-radius: 10px;
    background: #ffffff;
    color: #1b2533;
    padding: 0 11px;
    font-size: 14px;
    outline: none;
}

.chat-contact-input:focus {
    border-color: #2f83ef;
    box-shadow: 0 0 0 2px rgba(47, 131, 239, 0.14);
}

.chat-contact-submit {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 13px;
    font-family: RobotoMedium, sans-serif;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: linear-gradient(145deg, #1f4aa1, #2f83ef);
    cursor: pointer;
}

.chat-contact-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.chat-contact-feedback {
    min-height: 16px;
    margin: 0;
    font-size: 12px;
    color: #6f7786;
    line-height: 1.3;
}

.chat-contact-feedback.is-error {
    color: #c84545;
}

.chat-contact-feedback.is-success {
    color: #1d9b52;
}

.chat-link-row {
    align-self: flex-start;
}

.chat-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-family: RobotoMedium, sans-serif;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: linear-gradient(145deg, #1f4aa1, #2f83ef);
    box-shadow: 0 6px 14px rgba(16, 57, 124, 0.2);
}

.chat-link-btn:hover {
    color: #ffffff;
    text-decoration: none;
    filter: brightness(1.05);
}

.chat-link-btn:visited {
    color: #ffffff;
}

.chat-bubble.typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
}

.chat-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7f899b;
    opacity: 0.45;
    animation: chatTyping 1.1s infinite ease-in-out;
}

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

.chat-typing-dot:nth-child(3) {
    animation-delay: .3s;
}

.chat-room-composer {
    border-top: 1px solid #d8dde6;
    background: #ffffff;
    padding: 10px 12px 12px;
}

.chat-room-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd4e2;
    border-radius: 18px;
    padding: 6px 8px 6px 12px;
}

.chat-room-input {
    border: 0;
    outline: 0;
    background: transparent;
    min-width: 0;
    width: 100%;
    font-size: 16px;
    color: #1c2433;
}

.chat-room-send {
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1f4aa1, #2f83ef);
    color: #ffffff;
    cursor: pointer;
}

.chat-widget-close .chat-icon-svg,
.chat-widget-theme .chat-icon-svg,
.chat-room-icon-btn .chat-icon-svg,
.chat-help-icon-btn .chat-icon-svg,
.chat-messages-close .chat-icon-svg,
.chat-room-send .chat-icon-svg {
    width: 18px;
    height: 18px;
}

.chat-room-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-widget[data-theme="dark"] {
    background: #0a1324;
}

.chat-widget[data-theme="dark"] .chat-widget-header {
    background:
        radial-gradient(circle at 14% 8%, rgba(66, 172, 255, 0.28) 0%, transparent 38%),
        radial-gradient(circle at 86% 18%, rgba(37, 122, 244, 0.24) 0%, transparent 46%),
        linear-gradient(132deg, #030c1e 0%, #061d41 48%, #0b3d79 100%);
}

.chat-widget[data-theme="dark"] .chat-widget-body,
.chat-widget[data-theme="dark"] .chat-room,
.chat-widget[data-theme="dark"] .chat-room-thread {
    background: #0a1324;
}

.chat-widget[data-theme="dark"] .chat-card,
.chat-widget[data-theme="dark"] .chat-bubble.bot {
    background: #111d34;
    color: #e4ecff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.chat-widget[data-theme="dark"] .chat-card h4,
.chat-widget[data-theme="dark"] .chat-message-main,
.chat-widget[data-theme="dark"] .chat-action,
.chat-widget[data-theme="dark"] .chat-room-name {
    color: #e5efff;
}

.chat-widget[data-theme="dark"] .chat-list-empty {
    color: #aab7cb;
}

.chat-widget[data-theme="dark"] .chat-recent-trigger {
    color: #e5efff;
}

.chat-widget[data-theme="dark"] .chat-message-sub,
.chat-widget[data-theme="dark"] .chat-time,
.chat-widget[data-theme="dark"] .chat-list-item,
.chat-widget[data-theme="dark"] .chat-room-status,
.chat-widget[data-theme="dark"] .chat-nav-item,
.chat-widget[data-theme="dark"] .chat-room-icon-btn {
    color: #aab7cb;
}

.chat-widget[data-theme="dark"] .chat-list-item:hover {
    background: rgba(40, 139, 245, 0.15);
    color: #dce9ff;
}

.chat-widget[data-theme="dark"] .chat-list-item.is-pressed {
    background: rgba(40, 139, 245, 0.2);
    color: #dce9ff;
}

.chat-widget[data-theme="dark"] .chat-list-item:hover i {
    color: #55b1ff;
}

.chat-widget[data-theme="dark"] .chat-list-item.is-pressed i {
    color: #55b1ff;
}

.chat-widget[data-theme="dark"] .chat-search,
.chat-widget[data-theme="dark"] .chat-room-composer,
.chat-widget[data-theme="dark"] .chat-room-header,
.chat-widget[data-theme="dark"] .chat-widget-nav {
    background: #0d172a;
}

.chat-widget[data-theme="dark"] .chat-search {
    color: #ffffff;
    caret-color: #ffffff;
}

.chat-widget[data-theme="dark"] .chat-search::placeholder {
    color: rgba(215, 231, 255, 0.65);
}

.chat-widget[data-theme="dark"] .chat-search,
.chat-widget[data-theme="dark"] .chat-room-input-wrap {
    border: 1px solid rgba(78, 134, 214, 0.35);
}

.chat-widget[data-theme="dark"] .chat-room-input {
    color: #e4ecff;
}

.chat-widget[data-theme="dark"] .chat-contact-card {
    background: #111d34;
    border-color: rgba(84, 137, 219, 0.32);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.chat-widget[data-theme="dark"] .chat-contact-label {
    color: #aebed7;
}

.chat-widget[data-theme="dark"] .chat-contact-input {
    background: #0a1a35;
    border-color: rgba(84, 137, 219, 0.38);
    color: #e6eeff;
}

.chat-widget[data-theme="dark"] .chat-contact-input:focus {
    border-color: rgba(74, 158, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(46, 121, 228, 0.25);
}

.chat-widget[data-theme="dark"] .chat-contact-feedback {
    color: #a7b5cb;
}

.chat-widget[data-theme="dark"] .chat-contact-feedback.is-error {
    color: #ff9393;
}

.chat-widget[data-theme="dark"] .chat-contact-feedback.is-success {
    color: #86e0aa;
}

.chat-widget[data-theme="dark"] .chat-link-btn {
    background: linear-gradient(145deg, #2358bf, #2a96ff);
    box-shadow: 0 8px 18px rgba(4, 20, 56, 0.45);
}

.chat-widget[data-theme="dark"] .chat-typing-dot {
    background: #b5c6e8;
}

.chat-widget[data-theme="dark"] .chat-nav-item.active {
    color: #3ea2ff;
}

@keyframes chatPulse {
    0% { transform: scale(1); opacity: 0.75; }
    100% { transform: scale(1.24); opacity: 0; }
}

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

@media (max-width: 767px) {
    .chat-fab {
        right: 16px;
        bottom: 16px;
        width: 58px;
        height: 58px;
        font-size: 22px;
    }

    .chat-widget {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        border-radius: 20px;
        --chat-nav-height: 66px;
    }

    .chat-widget.is-expanded {
        right: 8px;
        bottom: 8px;
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        border-radius: 20px;
    }

    .chat-widget-header {
        min-height: 214px;
        padding: 20px 18px 14px;
    }

    .chat-hero-text {
        margin-top: 40px;
    }

    .chat-hero-text .saludo {
        font-size: 20px;
    }

    .chat-hero-text .pregunta {
        font-size: 28px;
    }

    .chat-card h4 {
        font-size: 16px;
    }

    .chat-message-sub {
        max-width: 160px;
    }

    .chat-message-main,
    .chat-message-sub,
    .chat-time,
    .chat-action,
    .chat-search,
    .chat-list-item {
        font-size: 16px;
    }

    .chat-widget-nav {
        padding-top: 10px;
    }

    .chat-messages-header {
        padding: 14px 14px 10px;
    }

    .chat-messages-title {
        font-size: 30px;
    }

    .chat-message-row {
        border-radius: 16px;
    }

    .chat-message-row-title {
        font-size: 16px;
    }

    .chat-message-row-time {
        font-size: 13px;
    }

    .chat-message-row-preview {
        font-size: 14px;
    }

    .chat-messages-cta {
        width: min(88%, 290px);
        min-height: 44px;
        font-size: 16px;
    }

    .chat-help-menu-scroll {
        padding: 10px;
    }

    .chat-help-menu-panel .chat-list-item {
        min-height: 52px;
        padding: 12px 10px;
    }

    .chat-room-name {
        font-size: 15px;
    }

    .chat-bubble {
        max-width: 92%;
        font-size: 14px;
    }

    .chat-help-panel-header {
        padding: 12px 12px 8px;
    }

    .chat-help-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 19px;
    }

    .chat-help-panel-body {
        padding: 6px 18px 22px;
    }

    .chat-help-title {
        margin-top: 12px;
        font-size: 40px;
    }

    .chat-help-meta {
        font-size: 15px;
    }

    .chat-help-toc {
        min-height: 48px;
        font-size: 16px;
    }

    .chat-help-panel-body p,
    .chat-help-panel-body li {
        font-size: 15px;
    }

    .chat-help-panel-body h3 {
        font-size: 30px;
    }
}
