:root {
    --akb-primary: #8b7740;
    --akb-primary-dark: #6f5d2f;
    --akb-primary-soft: #efe7d1;
    --akb-accent: #2f6f61;
    --akb-accent-soft: #dceee9;
    --akb-surface: #fffdf8;
    --akb-surface-strong: #ffffff;
    --akb-border: rgba(139, 119, 64, 0.22);
    --akb-text: #2d2616;
    --akb-text-soft: #6b6250;
    --akb-shadow: 0 20px 60px rgba(43, 31, 10, 0.22);
    --akb-radius-xl: 26px;
    --akb-radius-lg: 18px;
    --akb-radius-md: 14px;
    --akb-radius-sm: 10px;
    --akb-font: "Segoe UI", "Trebuchet MS", sans-serif;
}

.akb-root.akb-theme-oceano {
    --akb-primary: #2364aa;
    --akb-primary-dark: #174a7c;
    --akb-primary-soft: #dcecff;
    --akb-accent: #16a6a0;
    --akb-accent-soft: #d9f4f2;
    --akb-surface: #f7fbff;
    --akb-border: rgba(35, 100, 170, 0.22);
    --akb-text: #10263f;
    --akb-text-soft: #52677d;
    --akb-shadow: 0 20px 60px rgba(16, 38, 63, 0.22);
}

.akb-root.akb-theme-bosque {
    --akb-primary: #2f6f4e;
    --akb-primary-dark: #214d38;
    --akb-primary-soft: #dff0e7;
    --akb-accent: #b78b2f;
    --akb-accent-soft: #f2ead7;
    --akb-surface: #fbfdf9;
    --akb-border: rgba(47, 111, 78, 0.24);
    --akb-text: #173324;
    --akb-text-soft: #5b6f62;
    --akb-shadow: 0 20px 60px rgba(23, 51, 36, 0.22);
}

.akb-root.akb-theme-vino {
    --akb-primary: #8f2d56;
    --akb-primary-dark: #66203d;
    --akb-primary-soft: #f3dce7;
    --akb-accent: #d17a22;
    --akb-accent-soft: #f7eadc;
    --akb-surface: #fff8fb;
    --akb-border: rgba(143, 45, 86, 0.22);
    --akb-text: #3a1425;
    --akb-text-soft: #76586a;
    --akb-shadow: 0 20px 60px rgba(58, 20, 37, 0.22);
}

.akb-root.akb-theme-carbon {
    --akb-primary: #30343f;
    --akb-primary-dark: #1f232c;
    --akb-primary-soft: #e3e6eb;
    --akb-accent: #d9a441;
    --akb-accent-soft: #f4ecd9;
    --akb-surface: #f8f9fb;
    --akb-border: rgba(48, 52, 63, 0.22);
    --akb-text: #171a20;
    --akb-text-soft: #626977;
    --akb-shadow: 0 20px 60px rgba(23, 26, 32, 0.24);
}

.akb-root.akb-theme-solar {
    --akb-primary: #c45127;
    --akb-primary-dark: #8f371a;
    --akb-primary-soft: #f8e2d7;
    --akb-accent: #2e8f78;
    --akb-accent-soft: #dcefe9;
    --akb-surface: #fffaf6;
    --akb-border: rgba(196, 81, 39, 0.22);
    --akb-text: #3c1d12;
    --akb-text-soft: #7c6155;
    --akb-shadow: 0 20px 60px rgba(60, 29, 18, 0.22);
}

/* LMGA 2026-07-08: paleta Central Hoteles — flat, sin degradados */
.akb-root.akb-theme-ch {
    --akb-primary:      #363738;
    --akb-primary-dark: #1a1b1c;
    --akb-primary-soft: #d0c7b8;
    --akb-accent:       #878c90;
    --akb-accent-soft:  #f0eeeb;
    --akb-surface:      #ffffff;
    --akb-border:       rgba(54, 55, 56, 0.18);
    --akb-text:         #363738;
    --akb-text-soft:    #707070;
    --akb-shadow:       0 4px 16px rgba(54, 55, 56, 0.10);
}

/* LMGA 2026-07-08: flat overrides para tema CH — elimina todos los degradados */
.akb-root.akb-theme-ch .akb-launcher,
.akb-root.akb-theme-ch .akb-message-row.user .akb-bubble {
    background: var(--akb-primary) !important;
}
.akb-root.akb-theme-ch .akb-send {
    background: var(--akb-primary) !important;
}
.akb-root.akb-theme-ch .akb-panel,
.akb-root.akb-theme-ch.voice-mode .akb-panel,
.akb-root.akb-theme-ch.voice-mode .akb-body {
    background: var(--akb-surface) !important;
}
.akb-root.akb-theme-ch .akb-header,
.akb-root.akb-theme-ch.voice-mode .akb-header {
    background: var(--akb-primary) !important;
}
.akb-root.akb-theme-ch .akb-mode-card {
    background: var(--akb-surface) !important;
    border-color: var(--akb-border);
}
.akb-root.akb-theme-ch .akb-live-orb {
    background: var(--akb-primary) !important;
}
.akb-root.akb-theme-ch .akb-live-orb::before {
    background: none !important;
}
.akb-root.akb-theme-ch .akb-message-row.bot .akb-bubble {
    background: var(--akb-surface) !important;
}
.akb-root.akb-theme-ch .akb-booking-entry {
    background: var(--akb-primary) !important;
}
.akb-root.akb-theme-ch.booking-mode .akb-booking-entry {
    background: var(--akb-accent) !important;
}
.akb-root.akb-theme-ch .akb-mic {
    background: var(--akb-surface) !important;
}

.akb-root,
.akb-root * {
    box-sizing: border-box;
    font-family: var(--akb-font);
}

.akb-root {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147482000;
    color: var(--akb-text);
}

.akb-launcher {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.45), transparent 28%),
        linear-gradient(135deg, var(--akb-primary) 0%, #ad9661 70%, var(--akb-accent) 100%);
    color: #fff;
    box-shadow: var(--akb-shadow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.akb-launcher img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}

.akb-teaser {
    position: absolute;
    right: 76px;
    bottom: 8px;
    width: min(280px, calc(100vw - 112px));
    padding: 13px 38px 13px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(31, 41, 55, 0.12);
    color: #2d3748;
    box-shadow: 0 12px 34px rgba(20, 28, 40, 0.18);
    font-size: 14px;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.akb-teaser-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.akb-teaser-close {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #667085;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    line-height: 1;
}

.akb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-style: normal;
    font-weight: 700;
}

.akb-launcher:hover {
    transform: translateY(-2px);
}

.akb-panel {
    width: min(390px, calc(100vw - 24px));
    height: min(700px, calc(100vh - 32px));
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.75), transparent 38%),
        linear-gradient(180deg, #f8f2df 0%, #f6f0e1 22%, #fffdf8 100%);
    border: 1px solid var(--akb-border);
    border-radius: var(--akb-radius-xl);
    box-shadow: var(--akb-shadow);
    display: none;
    overflow: hidden;
}

.akb-root.akb-open .akb-panel {
    display: flex;
    flex-direction: column;
}

.akb-root.akb-open .akb-launcher {
    display: none;
}

.akb-header {
    padding: 12px 14px 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(255,255,255,0.22), transparent 28%),
        linear-gradient(135deg, rgba(139, 119, 64, 0.96) 0%, rgba(173, 150, 97, 0.96) 72%, rgba(47, 111, 97, 0.92) 100%);
    color: #fff;
    position: relative;
}

.akb-header::after {
    content: "";
    position: absolute;
    inset: auto 18px 0 18px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.akb-header-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.akb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 auto;
}

.akb-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}

.akb-header-text {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.akb-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.akb-subtitle {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
}

.akb-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.akb-mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-transform: none;
    letter-spacing: normal;
    min-width: unset;
    box-shadow: none;
    white-space: nowrap;
}

.akb-mode-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9df0a7;
    flex-shrink: 0;
}

.akb-close {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.akb-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 11px;
    color: rgba(255,255,255,0.92);
}

.akb-status-info-icon {
    font-style: normal;
    font-size: 13px;
    opacity: 0.7;
}

.akb-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 14px 12px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.akb-root.voice-mode .akb-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 18px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.75), transparent 38%),
        linear-gradient(180deg, #f8f2df 0%, #f6f0e1 22%, #fffdf8 100%);
}

.akb-root.voice-mode .akb-panel {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.75), transparent 38%),
        linear-gradient(180deg, #f8f2df 0%, #f6f0e1 22%, #fffdf8 100%);
}

.akb-root.voice-mode .akb-header {
    background:
        radial-gradient(circle at 10% 0%, rgba(255,255,255,0.22), transparent 28%),
        linear-gradient(135deg, rgba(139, 119, 64, 0.96) 0%, rgba(173, 150, 97, 0.96) 72%, rgba(47, 111, 97, 0.92) 100%);
    color: #fff;
    padding-bottom: 14px;
}

.akb-root.voice-mode .akb-status,
.akb-root.voice-mode .akb-mode-pill,
.akb-root.voice-mode .akb-helper {
    display: none;
}

.akb-root.voice-mode .akb-header::after {
    display: block;
}

.akb-root.voice-mode .akb-avatar {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.akb-root.voice-mode .akb-close {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.akb-root.voice-mode .akb-input {
    display: none;
}

.akb-root.voice-mode .akb-send {
    display: none;
}

.akb-root.voice-mode .akb-input-wrap {
    justify-content: center;
}

.akb-root.voice-mode .akb-action-column {
    flex-direction: column; /* LMGA 2026-07-05 */
    width: 100%;
    align-items: center;
}

.akb-root.voice-mode .akb-booking-entry {
    margin: 0 0 14px;
}

.akb-root.voice-mode .akb-mic {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    font-size: 22px;
}

.akb-root.voice-mode .akb-composer-card {
    padding: 12px;
    border: none;
    box-shadow: none;
    background: transparent;
}

.akb-root.voice-mode .akb-helper {
    text-align: center;
}

.akb-message-row {
    display: flex;
    margin-bottom: 6px;
}

.akb-message-row.user {
    justify-content: flex-end;
}

.akb-bubble {
    max-width: 86%;
    border-radius: 20px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.42;
    white-space: normal;
    word-break: break-word;
}

.akb-message-row.bot .akb-bubble {
    border-top-left-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,253,248,0.96));
    border: 1px solid rgba(139, 119, 64, 0.16);
    color: var(--akb-text);
    box-shadow: 0 10px 25px rgba(57, 45, 16, 0.07);
}

.akb-message-row.user .akb-bubble {
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, var(--akb-primary) 0%, #a28b54 74%, var(--akb-accent) 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(139, 119, 64, 0.2);
}

.akb-meta {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.2;
    opacity: 0.7;
}

.akb-helper {
    margin: 0 14px 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(139, 119, 64, 0.08);
    color: var(--akb-text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.akb-live-card {
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
}

.akb-mode-card {
    width: 100%;
    max-width: 100%;
    padding: 18px 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.96), rgba(255,255,255,0.9)),
        linear-gradient(180deg, rgba(239,231,209,0.88), rgba(255,253,248,0.98));
    border: 1px solid rgba(139, 119, 64, 0.14);
    box-shadow: 0 16px 45px rgba(66, 49, 17, 0.08);
    text-align: center;
}

.akb-mode-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--akb-text);
}

.akb-mode-subtitle {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--akb-text-soft);
}

.akb-mode-note {
    margin: -6px 0 18px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(47, 111, 97, 0.08);
    color: var(--akb-accent);
    font-size: 12px;
    line-height: 1.5;
}

.akb-mode-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.akb-mode-btn {
    width: 100%;
    border: 1px solid rgba(139, 119, 64, 0.18);
    border-radius: 20px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.92);
    color: var(--akb-text);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.akb-mode-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 119, 64, 0.34);
    box-shadow: 0 12px 26px rgba(66, 49, 17, 0.08);
}

.akb-mode-btn.secondary {
    background: rgba(255,253,248,0.72);
    border-color: rgba(47, 111, 97, 0.18);
}

.akb-mode-btn strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.akb-mode-btn span {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--akb-text-soft);
}

/* LMGA 2026-07-05: botón para cambiar de voz a texto desde la UI de voz activa */
.akb-switch-to-text {
    background: none;
    border: none;
    color: var(--akb-text-soft);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 12px;
    padding: 4px 8px;
}
.akb-switch-to-text:hover {
    color: var(--akb-text);
}

.akb-live-orb {
    width: 136px;
    height: 136px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 24% 20%, rgba(255,255,255,0.88), transparent 24%),
        radial-gradient(circle at 76% 28%, rgba(255,236,174,0.96), transparent 23%),
        radial-gradient(circle at 34% 72%, rgba(139,119,64,0.96), transparent 47%),
        radial-gradient(circle at 76% 74%, rgba(47,111,97,0.78), transparent 44%),
        linear-gradient(150deg, #fff4cd 0%, #c8ad68 48%, #6f5d2f 100%);
    box-shadow:
        0 28px 60px rgba(87, 68, 25, 0.24),
        0 0 0 1px rgba(139, 119, 64, 0.1);
    position: relative;
    transform: translateZ(0);
    animation: akb-orb-breathe 3.2s ease-in-out infinite;
}

.akb-live-orb::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 999px;
    border: 1px solid rgba(139, 119, 64, 0.24);
    opacity: 0.9;
}

.akb-live-orb::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: inherit;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.42), transparent 24%),
        radial-gradient(circle at 64% 74%, rgba(47,111,97,0.18), transparent 34%);
    filter: blur(8px);
    animation: akb-orb-cloud 6s ease-in-out infinite alternate;
}

.akb-live-card.connecting .akb-live-orb,
.akb-live-card.thinking .akb-live-orb {
    animation-duration: 1.7s;
}

.akb-live-card.listening .akb-live-orb {
    box-shadow:
        0 30px 64px rgba(87, 68, 25, 0.25),
        0 0 0 12px rgba(139, 119, 64, 0.1);
}

.akb-live-card.speaking .akb-live-orb {
    animation-duration: 1.15s;
    box-shadow:
        0 30px 66px rgba(87, 68, 25, 0.28),
        0 0 0 16px rgba(47, 111, 97, 0.12);
}

.akb-live-title {
    margin: 0 0 5px;
    font-size: 21px;
    font-weight: 700;
    color: #111111;
}

.akb-live-subtitle {
    margin: 0 0 20px;
    font-size: 13px;
    color: #7b7f86;
    line-height: 1.5;
}

.akb-live-response {
    min-height: 64px;
    max-height: 158px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 300px;
    font-size: 15px;
    line-height: 1.55;
    color: #171717;
}

.akb-live-caption {
    margin-top: 16px;
    font-size: 12px;
    color: #8b9098;
}

.akb-composer {
    padding: 0 8px 8px;
}

.akb-composer-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--akb-border);
    border-radius: 20px;
    padding: 5px;
    box-shadow: 0 14px 30px rgba(55, 42, 12, 0.08);
}

.akb-booking-entry {
    width: 100%;
    min-height: 34px;
    margin: 0 0 6px;
    border: none;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(139, 119, 64, 0.98) 0%, rgba(196, 160, 70, 0.98) 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(139, 119, 64, 0.20);
}

.akb-root.booking-mode .akb-booking-entry {
    background:
        linear-gradient(135deg, rgba(47, 111, 97, 0.98) 0%, rgba(139, 119, 64, 0.98) 100%);
}

.akb-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.akb-action-column {
    display: flex;
    gap: 8px;
    flex: 0 0 auto; /* LMGA 2026-07-05 */
}

.akb-input {
    width: 100%;
    min-height: 38px;
    max-height: 110px;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    color: var(--akb-text);
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 6px;
}

.akb-input::placeholder {
    color: #8a8372;
}

.akb-send {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--akb-primary) 0%, #a99156 100%);
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 18px;
}

.akb-send[disabled] {
    opacity: 0.55;
    cursor: default;
}

.akb-mic {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(139, 119, 64, 0.18);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffaf0, var(--akb-accent-soft));
    color: var(--akb-accent);
    cursor: pointer;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-size: 16px;
}

.akb-mic.btn-danger {
    background: #d15e4b;
    color: #fff;
    border-color: #d15e4b;
}

.akb-mic-status {
    display: none;
    margin: 8px 4px 0;
    color: var(--akb-primary-dark);
    font-size: 11px;
    font-weight: 600;
}

.akb-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    color: var(--akb-text-soft);
    font-size: 10px;
}

/* LMGA 2026-06-26: agrupa el disclaimer y la liga de términos y condiciones en la misma columna del footer. */
.akb-footer-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* LMGA 2026-06-26: liga a términos y condiciones — mismo estilo pequeño/gris que el disclaimer, con subrayado para distinguirla como enlace. */
.akb-footer-terms {
    color: var(--akb-text-soft);
    font-size: 10px;
    text-decoration: underline;
}

.akb-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.akb-brand img {
    height: 18px;
    width: auto;
    opacity: 0.95;
}

.akb-booking-card {
    display: grid;
    gap: 14px;
    margin: 10px 0 14px;
    padding: 16px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(139, 119, 64, 0.16);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.akb-booking-card label {
    display: grid;
    gap: 7px;
    color: var(--akb-text-soft);
    font-size: 13px;
}

.akb-booking-input {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(107, 114, 128, 0.24);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--akb-text);
    background: #fff;
}

/* LMGA 2026-07-17: formulario de datos pre-chat */
.akb-prechat-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(139, 119, 64, 0.16);
    box-shadow: 0 4px 16px rgba(31, 41, 55, 0.08);
    margin: 8px 0;
}

.akb-prechat-form h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--akb-text);
    margin: 0 0 4px;
}

.akb-prechat-form p {
    font-size: 13px;
    color: var(--akb-text-soft);
    margin: 0 0 8px;
}

.akb-prechat-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--akb-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--akb-text);
    background: var(--akb-surface);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

.akb-prechat-input:focus {
    border-color: var(--akb-primary);
}

.akb-prechat-input.akb-input-error {
    border-color: #e53e3e;
}

.akb-prechat-error {
    font-size: 11px;
    color: #e53e3e;
    margin-top: -8px;
    display: none;
}

.akb-prechat-error.visible {
    display: block;
}

.akb-prechat-skip {
    background: none;
    border: none;
    color: var(--akb-text-soft);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    align-self: center;
    padding: 4px;
}

.akb-booking-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.akb-booking-chip {
    border: 1px solid var(--akb-primary);
    border-radius: 999px;
    background: #fff;
    color: var(--akb-primary-dark);
    padding: 9px 14px;
    cursor: pointer;
}

.akb-booking-primary {
    border: none;
    border-radius: 999px;
    background: var(--akb-primary);
    color: #fff;
    padding: 7px 16px;
    font-weight: 700;
    cursor: pointer;
}

.akb-booking-secondary {
    border: 1px solid rgba(107, 114, 128, 0.28);
    border-radius: 999px;
    background: #fff;
    color: var(--akb-text-soft);
    padding: 9px 16px;
    font-weight: 700;
    cursor: pointer;
}

/* LMGA 2026-07-05: fila de botones Back/Cancel lado a lado en el carrusel */
.akb-carousel-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.akb-booking-back {
    flex: 1;
    border: 1px solid rgba(107, 114, 128, 0.35);
    border-radius: 999px;
    background: #fff;
    color: var(--akb-text-soft);
    padding: 9px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
}
.akb-booking-back:hover {
    background: rgba(107, 114, 128, 0.06);
}

/* LMGA 2026-07-05: estilos del carrusel de disponibilidad */

.akb-carousel-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.akb-carousel-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--akb-text);
    margin: 6px 0 2px;
    line-height: 1.3;
}

.akb-carousel-board {
    font-size: 12px;
    color: var(--akb-text-soft);
    margin-bottom: 4px;
}

.akb-carousel-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--akb-text);
}

.akb-carousel-price-per-night {
    font-size: 12px;
    color: var(--akb-text-soft);
    margin-bottom: 6px;
}

.akb-carousel-cancel-policy {
    font-size: 11px;
    color: var(--akb-text-soft);
    margin-bottom: 8px;
}

.akb-carousel-select {
    width: 100%;
    border: none;
    border-radius: 999px;
    background: var(--akb-primary);
    color: #fff;
    padding: 9px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s;
}
.akb-carousel-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.akb-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
.akb-carousel-prev,
.akb-carousel-next {
    background: none;
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: var(--akb-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.akb-carousel-prev:hover,
.akb-carousel-next:hover {
    background: rgba(107, 114, 128, 0.08);
}
.akb-carousel-nav span {
    font-size: 12px;
    color: var(--akb-text-soft);
    min-width: 36px;
    text-align: center;
}

.akb-verify-loading {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--akb-text-soft);
    padding: 10px 0;
}

.akb-room-card {
    overflow: hidden;
    margin: 10px 0 16px 48px;
    border-radius: 8px;
    background: #f4f6f9;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.10);
}

.akb-room-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.akb-room-content {
    display: grid;
    gap: 5px;
    padding: 12px 14px 14px;
    color: #667085;
    font-size: 13px;
}

.akb-room-content strong {
    color: #4b5563;
    font-size: 15px;
}

.akb-room-content b {
    color: #4b5563;
    font-size: 14px;
}

.akb-room-content .akb-booking-primary {
    margin-top: 8px;
    width: 100%;
    background: #c5cbd3;
}

.akb-typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.akb-typing span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(139, 119, 64, 0.55);
    animation: akb-bounce 1.2s infinite ease-in-out;
}

.akb-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.akb-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes akb-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes akb-orb-breathe {
    0%, 100% {
        transform: scale(0.98);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes akb-orb-cloud {
    0% {
        transform: translate3d(-4px, -2px, 0) scale(0.98);
        opacity: 0.72;
    }
    100% {
        transform: translate3d(5px, 4px, 0) scale(1.06);
        opacity: 0.95;
    }
}

.akb-root[class*="akb-theme-"] .akb-launcher,
.akb-root[class*="akb-theme-"] .akb-message-row.user .akb-bubble {
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.45), transparent 28%),
        linear-gradient(135deg, var(--akb-primary) 0%, var(--akb-primary-dark) 72%, var(--akb-accent) 100%);
}

.akb-root[class*="akb-theme-"] .akb-panel,
.akb-root[class*="akb-theme-"].voice-mode .akb-panel,
.akb-root[class*="akb-theme-"].voice-mode .akb-body {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.75), transparent 38%),
        linear-gradient(180deg, var(--akb-primary-soft) 0%, var(--akb-accent-soft) 26%, var(--akb-surface) 100%);
}

.akb-root[class*="akb-theme-"] .akb-header,
.akb-root[class*="akb-theme-"].voice-mode .akb-header {
    background:
        radial-gradient(circle at 10% 0%, rgba(255,255,255,0.22), transparent 28%),
        linear-gradient(135deg, var(--akb-primary) 0%, var(--akb-primary-dark) 72%, var(--akb-accent) 100%);
}

.akb-root[class*="akb-theme-"] .akb-mode-card {
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.96), rgba(255,255,255,0.9)),
        linear-gradient(180deg, var(--akb-primary-soft), var(--akb-surface));
    border-color: var(--akb-border);
}

.akb-root[class*="akb-theme-"] .akb-live-orb {
    background:
        radial-gradient(circle at 24% 20%, rgba(255,255,255,0.88), transparent 24%),
        radial-gradient(circle at 76% 28%, var(--akb-primary-soft), transparent 23%),
        radial-gradient(circle at 34% 72%, var(--akb-primary), transparent 47%),
        radial-gradient(circle at 76% 74%, var(--akb-accent), transparent 44%),
        linear-gradient(150deg, var(--akb-primary-soft) 0%, var(--akb-primary) 48%, var(--akb-primary-dark) 100%);
}

@media (max-width: 640px) {
    .akb-root {
        right: 12px;
        left: auto;
        bottom: 12px;
        width: auto;
        display: flex;
        justify-content: flex-end;
    }

    .akb-panel {
        width: min(390px, calc(100vw - 24px));
        height: min(78vh, 680px);
    }

    .akb-root.akb-open .akb-launcher {
        display: none;
    }

    .akb-bubble {
        max-width: 92%;
    }

    .akb-mobile.akb-open {
        left: 12px;
        right: 12px;
        width: auto;
        display: block;
    }

    .akb-mobile.akb-open .akb-panel {
        width: 100%;
    }

    .akb-live-orb {
        width: 148px;
        height: 148px;
    }

    .akb-live-response {
        max-width: 280px;
        font-size: 16px;
    }

    .akb-teaser {
        right: 72px;
        width: min(250px, calc(100vw - 104px));
    }

    .akb-room-card {
        margin-left: 18px;
    }
}

/* Botón "Hablar con una persona" en el header */
.akb-human-btn {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.akb-human-btn::before {
    content: '|';
    margin-right: 6px;
    opacity: 0.4;
}

.akb-human-btn:hover {
    opacity: 1;
}

/* Panel de contacto humano */
.akb-support-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 20px;
    height: 100%;
    text-align: center;
}

.akb-support-panel h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--akb-text);
    margin: 0;
}

.akb-support-btn {
    display: block;
    width: 100%;
    max-width: 260px;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--akb-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.akb-support-btn:hover {
    opacity: 0.85;
}

.akb-support-back {
    margin-top: 4px;
    background: none;
    border: none;
    color: var(--akb-text-soft);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
