/* Burbuja de contacto (ver assets/chat/chat.js). Colores fijos para verse igual en todos los temas. */
.chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 85;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: 'Inter', system-ui, sans-serif;
}

.chat-fab {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #041014;
    background: linear-gradient(135deg, #00f3ff, #22c55e);
    border: 0;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(0, 243, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-fab:hover { transform: translateY(-2px) scale(1.05); }
.chat-fab svg { width: 30px; height: 30px; }
.chat-fab-open svg circle { fill: #00c2cc; }
.chat-fab-close { display: none; }
.chat-widget.is-open .chat-fab-open { display: none; }
.chat-widget.is-open .chat-fab-close { display: flex; }

html.oliver .chat-fab,
html[data-theme="oliver"] .chat-fab { background: linear-gradient(135deg, #ff8a1f, #2dd4bf); color: #1a0d02; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(255, 138, 31, 0.2); }

.chat-panel {
    width: 290px;
    padding: 16px;
    border-radius: 18px;
    color: #f4f4f5;
    background: #111418;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: chat-in 0.2s ease;
}

.chat-panel[hidden] { display: none; }

@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

html.light .chat-panel,
html[data-theme="light"] .chat-panel { color: #0f172a; background: #fff; border-color: rgba(15, 23, 42, 0.1); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18); }

.chat-head { display: flex; align-items: center; gap: 10px; }
.chat-avatar { position: relative; flex-shrink: 0; }
.chat-avatar img { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chat-avatar i { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #111418; }
html.light .chat-avatar i, html[data-theme="light"] .chat-avatar i { border-color: #fff; }
.chat-title { margin: 0; font-size: 16px; font-weight: 900; }
.chat-sub { margin: 1px 0 0; font-size: 12px; opacity: 0.7; }
.chat-bubble { margin: 12px 0 6px; padding: 10px 12px; border-radius: 4px 14px 14px 14px; font-size: 14px; line-height: 1.4; background: rgba(127, 127, 127, 0.14); }

.chat-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    padding: 9px 10px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: rgba(127, 127, 127, 0.08);
    border: 1px solid rgba(127, 127, 127, 0.14);
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.chat-option:hover { transform: translateX(2px); background: rgba(127, 127, 127, 0.16); border-color: var(--chat-c); }
.chat-option-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: var(--chat-c);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--chat-c) 40%, transparent);
}
.chat-option-icon svg { width: 21px; height: 21px; }
.chat-option-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.chat-option-text b { font-size: 15px; font-weight: 800; }
.chat-option-text small { font-size: 12px; font-weight: 500; opacity: 0.7; }
.chat-option-go svg { width: 18px; height: 18px; opacity: 0.45; transition: opacity 0.2s ease, transform 0.2s ease; }
.chat-option:hover .chat-option-go svg { opacity: 0.9; transform: translateX(2px); }
.chat-option--wa { --chat-c: #25D366; }
.chat-option--call { --chat-c: #3b82f6; }
.chat-option--email { --chat-c: #EA4335; }
.chat-option--book { --chat-c: #0891b2; }

@media (max-width: 640px) {
    .chat-widget { right: 14px; bottom: 14px; }
    .chat-fab { width: 54px; height: 54px; }
}

@media print { .chat-widget { display: none !important; } }
