/* ═══════════════════════════════════════════════════════
   Video Chatbot AI — Widget CSS v3
   Panel ocupa desde header hasta bottom. Video full.
   Basado en referencia visual ChipBot.
   ═══════════════════════════════════════════════════════ */

:root {
    --vcb-primary:    #6A3EF5;
    --vcb-accent:     #FF4D6D;
    --vcb-black:      #111111;
    --vcb-bg:         #ffffff;
    --vcb-surface:    #f7f7f7;
    --vcb-border:     #e8e8e8;
    --vcb-text:       #1a1a1a;
    --vcb-text-soft:  #777777;
    --vcb-shadow:     0 8px 40px rgba(0,0,0,.20);
    --vcb-tab-h:      48px;
    --vcb-footer-h:   36px;
    --vcb-z:          999998;

    /* Panel width by size */
    --vcb-w: 380px;
}

/* ── Reset inside widget ── */
.vcb-root *, .vcb-root *::before, .vcb-root *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Root ─────────────────────────────────────────────── */
.vcb-root {
    position: fixed;
    z-index: var(--vcb-z);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.vcb-pos-bottom-right { bottom: 20px; right: 20px; }
.vcb-pos-bottom-left  { bottom: 20px; left: 20px; align-items: flex-start; }
.vcb-pos-top-right    { top: 20px;    right: 20px; }
.vcb-pos-top-left     { top: 20px;    left: 20px; align-items: flex-start; }

.vcb-size-small  { --vcb-w: 340px; }
.vcb-size-medium { --vcb-w: 380px; }
.vcb-size-large  { --vcb-w: 430px; }

/* ═══════════════════════════════════════════════════════
   ① MINI PLAYER
   ═══════════════════════════════════════════════════════ */
.vcb-mini {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: vcb-pop .35s cubic-bezier(.34,1.56,.64,1) both;
}

.vcb-mini__video-wrap {
    width: 130px;
    height: 231px;   /* 9:16 → 130 × 16/9 ≈ 231 */
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--vcb-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    display: block;
    border: none;
    background: #000;
}
.vcb-mini__video-wrap:hover { transform: translateY(-3px) scale(1.02); }
.vcb-mini__video-wrap:focus-visible { outline: 3px solid var(--vcb-primary); outline-offset: 3px; }

.vcb-mini__video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay con pulso */
.vcb-mini__overlay {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,.35) 100%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 14px;
    pointer-events: none;
}
.vcb-mini__pulse {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    display: flex; align-items: center; justify-content: center;
    animation: vcb-pulse 2s ease-in-out infinite;
}
.vcb-mini__pulse::after {
    content: '';
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--vcb-primary);
    display: block;
}
@keyframes vcb-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
    70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.vcb-mini__bubble {
    width: 155px; height: 64px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--vcb-primary), #8A5CF7);
    color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px; font-weight: 600;
    box-shadow: var(--vcb-shadow);
    transition: transform .2s;
}
.vcb-mini__bubble:hover { transform: scale(1.04); }

/* Botón cerrar mini — sin label debajo */
.vcb-mini__close {
    position: absolute;
    top: -7px; right: -7px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #000;
    border: none;
    color: #fff;
    font-size: 18px; line-height: 0;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.30);
    transition: background .15s;
    z-index: 2;
}
.vcb-mini__close:hover { background: #333; }

/* ═══════════════════════════════════════════════════════
   ② BOTÓN AYUDA
   ═══════════════════════════════════════════════════════ */
.vcb-help-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--vcb-primary), #8A5CF7);
    color: #fff; border: none; cursor: pointer;
    font-size: 13.5px; font-weight: 700;
    box-shadow: var(--vcb-shadow);
    animation: vcb-pop .3s cubic-bezier(.34,1.56,.64,1) both;
    transition: transform .2s, box-shadow .2s;
}
.vcb-help-btn:hover { transform: translateY(-2px) scale(1.04); }

/* ── Overlay tenue ── */
.vcb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .18);
    z-index: calc(var(--vcb-z) - 2);   /* debajo del panel y del root */
    animation: vcb-fade-in .25s ease both;
    pointer-events: auto;               /* clic en overlay cierra el panel */
}
.vcb-overlay[hidden] { display: none !important; }
@keyframes vcb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   ③ PANEL — ocupa desde el tab-bar hasta el bottom
   ═══════════════════════════════════════════════════════ */
.vcb-panel {
    width: var(--vcb-w);
    /* height se asigna por JS; dvh se adapta al teclado virtual en móvil */
    height: calc(100dvh - 80px);
    max-height: calc(100dvh - 80px);
    background: var(--vcb-bg);
    border-radius: 0;
    box-shadow: var(--vcb-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: vcb-slide-up .28s cubic-bezier(.22,1,.36,1) both;
}

/* ── Tabs nav (menú superior) ── */
.vcb-tabs {
    display: flex;
    align-items: center;
    background: var(--vcb-bg);
    border-bottom: 1px solid var(--vcb-border);
    height: var(--vcb-tab-h);
    flex-shrink: 0;
    padding: 0 4px;
    position: relative;
}

.vcb-tab {
    flex: 1;
    height: 100%;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--vcb-text-soft);
    font-size: 12.5px; font-weight: 600;
    cursor: pointer;
    transition: color .15s;
    padding: 0 6px;
    white-space: nowrap;
}
.vcb-tab:hover { color: var(--vcb-text); }
.vcb-tab--on,
.vcb-tab[aria-selected="true"] {
    color: var(--vcb-text);
    background: rgba(0,0,0,.05);
    border-radius: 6px 6px 0 0;
}

/* Botón X dentro del nav */
.vcb-panel__close {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--vcb-text-soft);
    font-size: 22px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
    flex-shrink: 0;
    margin-left: 4px;
}
.vcb-panel__close:hover { background: #f0f0f0; color: var(--vcb-text); }

/* ── Panes ── */
/* Todos los panes: ocultos por defecto con visibility, no display:none */
.vcb-pane {
    flex: 0 0 0 !important;
    display: flex !important;   /* siempre flex, nunca none */
    flex-direction: column !important;
    overflow: hidden !important;
    min-height: 0 !important;
    height: 0 !important;
    position: relative;
    visibility: hidden;
    pointer-events: none;
}
/* Pane activo ocupa todo el espacio disponible */
.vcb-pane--on {
    flex: 1 1 auto !important;
    height: auto !important;
    visibility: visible;
    pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════
   PANE VIDEO
   ═══════════════════════════════════════════════════════ */
.vcb-video-fullpane {
    position: relative;
    flex: 1;
    background: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vcb-panel__video {
    width: 100%;
    flex: 1;
    object-fit: cover;
    display: block;
    /* Sin controles nativos */
}

/* Botón bocina — esquina superior derecha */
.vcb-mute-btn {
    position: absolute;
    top: 12px; right: 12px;
    width: 38px; height: 38px;
    border-radius: 8px;
    background: rgba(0,0,0,.50);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    z-index: 10;
}
.vcb-mute-btn:hover { background: rgba(0,0,0,.70); }

/* CTAs sobre el video — ancho completo, bordes cuadrados, apilados */
.vcb-cta-video {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;               /* espacio entre botones */
    padding: 0 10px 10px;   /* margen izq, der y abajo */
}
.vcb-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: var(--vcb-black);
    color: #fff !important;
    border: none;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    text-align: center;
    letter-spacing: .01em;
    transition: background .15s, filter .15s;
    border-radius: 4px;
}
.vcb-cta-btn:hover,
.vcb-cta-btn:focus,
.vcb-cta-btn:active,
.vcb-cta-btn:visited { color: #fff !important; text-decoration: none !important; }
.vcb-cta-btn:hover { background: #222; }
.vcb-cta-btn[style*="background"]:hover { filter: brightness(1.1); background: unset; }

/* ═══════════════════════════════════════════════════════
   PANE CHAT — ENCABEZADO DE MARCA
   ═══════════════════════════════════════════════════════ */
.vcb-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--vcb-border);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    flex-shrink: 0;
    gap: 12px;
}
.vcb-chat-header__info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 1;
}
.vcb-chat-header__brand {
    font-size: 17px;
    font-weight: 800;
    color: var(--vcb-text);
    line-height: 1.2;
    letter-spacing: -.01em;
    font-family: 'DM Sans', sans-serif;
}
.vcb-chat-header__sub {
    font-size: 12px;
    color: var(--vcb-text-soft);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.vcb-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: vcb-pulse-dot 2s ease-in-out infinite;
}
@keyframes vcb-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.8); }
}
.vcb-chat-header__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--vcb-primary);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.vcb-chat-header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════
   PANE CHAT
   ═══════════════════════════════════════════════════════ */
.vcb-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    scroll-behavior: auto;
    min-height: 0;
    background: #eef1f5;
}
.vcb-bubble {
    max-width: 92%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    word-break: break-word;
    line-height: 1.5;
}
.vcb-bubble--user {
    background: linear-gradient(135deg, var(--vcb-primary), #8A5CF7);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.vcb-bubble--bot {
    background: var(--vcb-surface);
    color: var(--vcb-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* URL links inside bot bubbles */
.vcb-link-btn {
    display: inline-block;
    margin: 4px 0 2px;
    padding: 5px 12px;
    background: var(--vcb-primary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 16px;
    font-size: 12.5px;
    font-weight: 600;
    transition: background .15s;
    word-break: break-all;
}
.vcb-link-btn:hover { background: #5530d4; }

.vcb-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid var(--vcb-border);
    flex-shrink: 0;
}
.vcb-input {
    flex: 1;
    border: 1.5px solid var(--vcb-border);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13.5px;
    outline: none;
    background: var(--vcb-bg);
    color: var(--vcb-text);
    transition: border-color .15s;
}
.vcb-input:focus { border-color: var(--vcb-primary); }
.vcb-send {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--vcb-primary);
    border: none; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}
.vcb-send:hover   { background: #5530d4; }
.vcb-send:disabled { background: #c0bcd8; cursor: not-allowed; }

/* Botón atención whatsapp */
.vcb-live-row {
    padding: 4px 12px 10px;
    flex-shrink: 0;
}
.vcb-live-btn {
    width: 100%;
    padding: 10px;
    border: 1.5px solid var(--vcb-border);
    border-radius: 8px;
    background: #fff;
    color: #25D366;
    font-size: 13px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    transition: background .15s, border-color .15s;
}
.vcb-live-btn:hover { background: #f0fff5; border-color: #25D366; }

/* Formulario live chat — pantalla completa dentro del PANE (position:relative) */
.vcb-live-form {
    position: absolute;
    inset: 0;             /* cubre todo el pane desde arriba hasta abajo */
    background: var(--vcb-bg);
    display: flex;
    flex-direction: column;
    z-index: 20;
    overflow-y: auto;
}
.vcb-lf__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--vcb-border);
    background: #25D366;
    color: #fff;
    flex-shrink: 0;
}
.vcb-lf__header span { flex: 1; font-weight: 700; font-size: 15px; }
.vcb-lf__back {
    background: rgba(255,255,255,.2);
    border: none; color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.vcb-lf__back:hover { background: rgba(255,255,255,.35); }

.vcb-lf__body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vcb-lf__body input,
.vcb-lf__body textarea {
    width: 100%;
    border: 1.5px solid var(--vcb-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    background: var(--vcb-bg);
    color: var(--vcb-text);
}
.vcb-lf__body input:focus,
.vcb-lf__body textarea:focus { border-color: #25D366; }
.vcb-lf__body textarea { resize: vertical; min-height: 90px; }
.vcb-lf__submit {
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    margin-top: auto;
}
.vcb-lf__submit:hover { background: #1ebe5d; }

/* ═══════════════════════════════════════════════════════
   PANE FAQs — nuevo diseño
   ═══════════════════════════════════════════════════════ */

/* Pane FAQs ocupa toda la altura y organiza sus hijos en columna */
.vcb-pane--faqs {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ── Header: título + buscador ── */
.vcb-faqs__head {
    flex-shrink: 0;
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--vcb-border);
    background: var(--vcb-surface);
}
.vcb-faqs__title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--vcb-text);
    margin: 0 0 10px;
}
.vcb-faqs__title svg { color: var(--vcb-primary); flex-shrink: 0; }

/* Searchbox: input + botón lupa lado a lado */
.vcb-faqs__searchbox {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--vcb-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s;
}
.vcb-faqs__searchbox:focus-within { border-color: var(--vcb-primary); }
.vcb-faqs__searchbox input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    background: transparent;
    color: var(--vcb-text);
    min-width: 0;
}
.vcb-faqs__searchbox input::placeholder { color: #aaa; }
.vcb-faqs__search-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: var(--vcb-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .15s;
}
.vcb-faqs__search-btn:hover { background: #5530d4; }

/* ── Lista FAQ scrollable ── */
.vcb-faqs {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    min-height: 0;
}
.vcb-faqs__loading {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}
.vcb-faqs__empty {
    text-align: center;
    color: var(--vcb-text-soft);
    padding: 30px 16px;
    font-size: 13px;
}
.vcb-faqs__noresult {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--vcb-text-soft);
    text-align: center;
    flex-shrink: 0;
}

/* ── Cada FAQ: card estilo lista con preview de respuesta ── */
.vcb-faq-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--vcb-border);
    cursor: pointer;
    transition: background .12s;
    overflow: visible;
    word-break: break-word;
}
.vcb-faq-item:last-child { border-bottom: none; }
.vcb-faq-item:hover { background: #f5f3ff; }
.vcb-faq-q {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--vcb-primary);
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    margin-bottom: 3px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}
.vcb-faq-q svg { display: none; } /* remove old chevron */
.vcb-faq-preview {
    font-size: 12px;
    color: var(--vcb-text-soft);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vcb-faq-category {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}
.vcb-faq-category svg { flex-shrink: 0; }

/* Respuesta expandida */
.vcb-faq-a {
    display: none;
    font-size: 12.5px;
    color: var(--vcb-text);
    line-height: 1.55;
    padding-top: 8px;
    border-top: 1px solid var(--vcb-border);
    margin-top: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}
.vcb-faq-item.open .vcb-faq-a { display: block; }
.vcb-faq-item.open { background: #f5f3ff; }
.vcb-faq-item.open .vcb-faq-preview { display: none; }

/* ── Banner Contáctanos ── */
.vcb-faqs__banner {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--vcb-border);
    background: var(--vcb-surface);
}
.vcb-faqs__banner svg { flex-shrink: 0; color: var(--vcb-primary); }
.vcb-faqs__banner > span {
    flex: 1;
    font-size: 12px;
    color: var(--vcb-text-soft);
    line-height: 1.4;
}
.vcb-faqs__contact-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--vcb-primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s;
}
.vcb-faqs__contact-btn:hover { background: #5530d4; }

/* ── Vista de formulario de contacto ── */
.vcb-contact-view {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    z-index: 10;
    animation: vcb-slide-in .2s ease both;
}
@keyframes vcb-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
.vcb-contact-view[hidden] { display: none !important; }
.vcb-contact-view__head {
    flex-shrink: 0;
    padding: 12px 14px;
    border-bottom: 1px solid var(--vcb-border);
    background: var(--vcb-surface);
}
.vcb-contact-view__back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--vcb-text);
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.vcb-contact-view__back:hover { color: var(--vcb-primary); }
.vcb-contact-view__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(160deg, #f0edff 0%, #fff 60%);
}
.vcb-contact-view__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--vcb-text);
    margin: 0 0 4px;
    line-height: 1.3;
}
.vcb-contact-view__desc {
    font-size: 12.5px;
    color: var(--vcb-text-soft);
    margin: 0 0 10px;
    line-height: 1.5;
}
.vcb-cf__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--vcb-text);
    margin-bottom: 2px;
}
.vcb-cf__field {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--vcb-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: var(--vcb-text);
    transition: border-color .15s;
    resize: vertical;
}
.vcb-cf__field:focus { border-color: var(--vcb-primary); }
textarea.vcb-cf__field { min-height: 80px; }
.vcb-cf__submit {
    width: 100%;
    padding: 11px;
    background: var(--vcb-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    margin-top: 4px;
}
.vcb-cf__submit:hover { background: #5530d4; }
.vcb-cf__status {
    text-align: center;
    font-size: 12px;
    padding: 8px;
    border-radius: 6px;
}
.vcb-cf__status--ok  { background: #e6f4ea; color: #2e7d32; }
.vcb-cf__status--err { background: #fce8e8; color: #c62828; }

/* ── Typing dots ── */
.vcb-dots span {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--vcb-primary);
    border-radius: 50%; margin: 0 2px;
    animation: vcb-bounce .8s infinite;
}
.vcb-dots span:nth-child(2) { animation-delay: .15s; }
.vcb-dots span:nth-child(3) { animation-delay: .30s; }
@keyframes vcb-bounce {
    0%,80%,100% { transform: translateY(0); }
    40%         { transform: translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════
   FOOTER IMPULZO
   ═══════════════════════════════════════════════════════ */
.vcb-footer {
    height: var(--vcb-footer-h);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--vcb-border);
    background: var(--vcb-bg);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}
/* Badge: cápsula con fondo gris claro */
.vcb-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 6px 12px;
    background: #ffffff !important;
    border-radius: 20px;
    text-decoration: none;
    line-height: 1;
    transition: background .15s;
}
.vcb-footer__badge:hover { background: #f5f5f5 !important; }
.vcb-footer__label {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
    line-height: 1;
}
.vcb-root .vcb-footer .vcb-footer__badge img.vcb-footer__logo,
.vcb-root .vcb-footer .vcb-footer__badge img.vcb-footer__logo:not([class*="size"]) {
    display: block !important;
    height: 15px !important;
    max-height: 15px !important;
    width: auto !important;
    max-width: 90px !important;
    min-height: unset !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    mix-blend-mode: normal !important;
    filter: none !important;
}

/* ── Animations ── */
@keyframes vcb-pop {
    from { opacity: 0; transform: scale(.8); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes vcb-slide-up {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .vcb-size-small .vcb-panel,
    .vcb-size-medium .vcb-panel,
    .vcb-size-large .vcb-panel {
        width: calc(100vw - 24px);  /* 12px margen cada lado */
        height: calc(100dvh - 100px);
        max-height: calc(100dvh - 100px);
    }
    .vcb-pos-bottom-right { right: 12px; left: auto; bottom: 16px; }
    .vcb-pos-bottom-left  { left: 12px;  right: auto; bottom: 16px; }
    .vcb-mini__video-wrap { width: 112px; height: 199px; }
    /* Input row fijo para que el botón enviar siempre sea visible */
    .vcb-input-row {
        position: relative;
        flex-shrink: 0;
        padding: 8px 10px;
    }
    .vcb-input {
        font-size: 16px; /* evita zoom automático en iOS */
    }
}
