#formulario-asesoria, #formulario-proyecto, #seminar-registration-form { scroll-margin-top: 110px; }
.well-chat {
    --well-navy: #07162d;
    --well-gold: #f2d06b;
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: calc(22px + var(--well-obstacle, 0px));
    z-index: 1200;
    font: 14px/1.5 Lato, "Segoe UI", Arial, sans-serif;
    color: #ecf1f8;
}
.well-chat *, .well-chat *::before, .well-chat *::after { box-sizing: border-box; }
.well-chat [hidden] { display: none !important; }
.well-chat button, .well-chat input { font: inherit; }
.well-chat button, .well-chat a { -webkit-tap-highlight-color: transparent; }
.well-chat button { cursor: pointer; }
.well-chat :focus-visible { outline: 3px solid var(--well-gold); outline-offset: 3px; }
.well-launcher {
    display: flex; align-items: center; gap: 10px;
    min-height: 58px; padding: 10px 18px 10px 11px;
    border: 1px solid #ad9150; border-radius: 999px;
    background: var(--well-navy); color: #fff;
    box-shadow: 0 8px 30px #030c1b40; text-align: left;
}
.well-launcher strong { display: block; font-size: 15px; letter-spacing: .02em; }
.well-launcher small { display: block; font-size: 11px; color: #d6dfed; }
.well-avatar {
    display: grid; place-items: center; width: 38px; height: 38px;
    flex: 0 0 38px; border-radius: 13px; background: var(--well-gold); color: var(--well-navy);
}
.well-avatar svg { width: 24px; height: 24px; }
.well-invite {
    position: absolute; right: 0; bottom: 72px; width: 260px;
    padding: 15px 38px 15px 16px; border: 1px solid #dce3ed;
    border-radius: 16px 16px 4px 16px; background: #fff;
    color: #24344b; box-shadow: 0 8px 30px #030c1b26;
}
.well-invite p { margin: 0 0 7px; font-size: 13px; color: #24344b; }
.well-invite button[data-well-open] { border: 0; background: none; color: #07162d; padding: 0; font-weight: 700; text-decoration: underline; }
.well-icon-button {
    display: grid; place-items: center; width: 34px; min-height: 34px;
    border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 22px;
}
.well-icon-button:hover { background: #ffffff15; }
.well-invite .well-icon-button { position: absolute; top: 4px; right: 4px; }
.well-panel {
    position: absolute; right: 0; bottom: 72px; width: min(390px, calc(100vw - 32px));
    height: min(590px, calc(100dvh - 125px - var(--well-obstacle, 0px)));
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid #31435d; border-radius: 20px; background: #f5f7fb;
    box-shadow: 0 20px 60px #030c1b55;
}
.well-header { display: flex; gap: 10px; align-items: center; padding: 16px; background: var(--well-navy); }
.well-heading { flex: 1; min-width: 0; }
.well-heading h2 { font: 700 17px/1.4 Montserrat, "Segoe UI", sans-serif; margin: 0; color: #fff; }
.well-heading p { font-size: 11px; margin: 2px 0 0; color: #c6d3e6; }
.well-heading p::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #75d3ac; }
.well-messages { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.well-message { max-width: 92%; padding: 12px 14px; border-radius: 3px 15px 15px; background: #fff; color: #26354b; border: 1px solid #e2e7ef; overflow-wrap: anywhere; }
.well-message p { font-size: 13px; line-height: 1.6; color: inherit; margin: 0; white-space: pre-line; }
.well-message-label { display: block; color: #68768b; font-size: 10px; font-weight: 700; margin-bottom: 4px; }
.well-message-user { align-self: flex-end; border: 0; border-radius: 15px 3px 15px 15px; background: #102b50; color: #fff; }
.well-message-user .well-message-label { color: #ccd9ea; }
.well-source { display: inline-block; margin-top: 8px; color: #163e71; font-size: 11px; font-weight: 700; text-decoration: underline; }
.well-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.well-suggestions button { padding: 7px 10px; min-height: 34px; border: 1px solid #c6d2e3; border-radius: 20px; color: #17385f; background: #f8faff; font-size: 11px; }
.well-suggestions button:hover { background: #eaf0fa; }
.well-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 12px 14px; border-top: 1px solid #dde4ef; background: #fff; }
.well-actions a { display: flex; justify-content: center; align-items: center; min-height: 40px; border: 1px solid #d5dfeb; border-radius: 9px; color: #102b50; font-size: 11px; font-weight: 700; text-decoration: none; text-align: center; }
.well-actions .well-primary { background: var(--well-gold); border-color: var(--well-gold); }
.well-composer { display: flex; gap: 8px; padding: 0 14px 10px; background: #fff; }
.well-composer input { min-width: 0; flex: 1; height: 44px; padding: 10px 12px; border: 1px solid #cbd6e5; border-radius: 10px; color: #172e4a; background: #f8faff; }
.well-composer button { width: 44px; flex: 0 0 44px; border: 0; border-radius: 10px; background: #102b50; color: #fff; font-size: 22px; }
.well-footnote { margin: 0; padding: 0 14px 10px; background: #fff; color: #627087; font-size: 10px; }
.well-footnote a { color: #163e71; text-decoration: underline; }
@media (max-width: 767px) {
    .well-chat { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom) + var(--well-obstacle, 0px)); }
    .well-panel { width: calc(100vw - 24px); bottom: 66px; height: min(570px, calc(100dvh - 104px - env(safe-area-inset-bottom) - var(--well-obstacle, 0px))); border-radius: 16px; }
    .well-launcher { min-height: 52px; padding: 8px 14px 8px 9px; }
    .well-launcher small { display: none; }
    .well-invite { bottom: 66px; }
}
@media (max-height: 540px) {
    .well-panel { position: fixed; top: 8px; right: 8px; bottom: 8px; height: auto; }
    .well-header { padding: 8px 12px; }
}
