/* ============================================================
   BQB Claims Form — Design System
   Carga DESPUÉS de /seguro/static/src/css/claims.css
   Selectores anclados a #sinisterForm o .bqb-claims-page
   ============================================================ */

/* --- Custom Properties (mobile-first) --- */
:root {
    --bqb-form-pad: 12px;
    --bqb-card-radius: 0px;
    --bqb-emoji-size: 2.5rem;
    --bqb-card-min-h: 110px;
    --bqb-input-min-h: 48px;
    --bqb-color-text: #2c3e50;
    --bqb-color-text-sec: #495057;
    --bqb-color-muted: #6c757d;
    --bqb-color-border: #e0e0e0;
    --bqb-color-border-card: #e8ecef;
    --bqb-color-bg-page: #f5f7fa;
    --bqb-color-bg-card: #ffffff;
    --bqb-color-success: #4CAF50;
    --bqb-color-warning: #FF9800;
    --bqb-color-danger: #dc3545;
    --bqb-shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
    --bqb-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --bqb-shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  /* Futuristic motion-design tokens (Premium + Corporate) */
    --bqb-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --bqb-ease-premium: cubic-bezier(0.4, 0, 0.2, 1);
    --bqb-ease-emphasis: cubic-bezier(0.05, 0.7, 0.1, 1);
    --bqb-ease-exit: cubic-bezier(0.3, 0, 1, 1);
    --bqb-tale-modal-in: 380ms;
    --bqb-claims-modal-in: 360ms;
    --bqb-claims-modal-body-in: 300ms;
    --bqb-tale-bubble-in: 280ms;
    --bqb-tale-stagger: 55ms;
    --bqb-tale-surface-in: 320ms;
    --bqb-glow-primary: 0 0 24px rgba(27, 136, 194, 0.35);
    --bqb-glow-accent: 0 0 32px rgba(14, 165, 233, 0.4);
    --bqb-glass-bg: rgba(255, 255, 255, 0.72);
    --bqb-glass-border: rgba(255, 255, 255, 0.55);
    --bqb-gradient-primary: linear-gradient(135deg, #1b88c2 0%, #0ea5e9 50%, #38bdf8 100%);
    --bqb-gradient-surface: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(232,244,252,0.85) 100%);
    --bqb-gradient-mesh: radial-gradient(ellipse 90% 60% at 10% 0%, rgba(27, 136, 194, 0.14), transparent 55%),
        radial-gradient(ellipse 70% 50% at 95% 90%, rgba(14, 165, 233, 0.12), transparent 50%);
}

@media (min-width: 768px) {
    :root {
        --bqb-form-pad: 24px;
        --bqb-card-radius: 16px;
        --bqb-emoji-size: 3rem;
        --bqb-card-min-h: 130px;
    }
}

/* --- Page & Typography --- */
body.bqb-claims-page {
    background-color: #e8f2fa !important;
    background-image: var(--bqb-gradient-mesh),
        linear-gradient(165deg, #dceaf6 0%, #eef6fc 40%, #e3eff8 100%) !important;
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body.bqb-claims-page .bqb-claims-main,
body.bqb-claims-page #wrap,
body.bqb-claims-page main {
    position: relative;
    /* Sin z-index: evita que modales dentro del form queden bajo .bqb-page-header--sticky */
}

/* --- Form container centering --- */
.bqb-claims-main .forms.width-form {
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--bqb-form-pad) 2.5rem;
}

/* --- Main form card (transparent: each .bqb-section is its own card) --- */
#sinisterForm,
#sinisterForm.bqb-claims-form {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0.5rem !important;
    border: none !important;
}

/* ============================================================
   COLLAPSIBLE SECTIONS (patron bqbit CollapsibleCard)
   ============================================================ */
.bqb-section,
#sinisterForm > .bqb-section {
    border: 2px solid var(--bqb-color-border-card);
    border-radius: 12px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--bqb-color-bg-card);
}

.bqb-section--active {
    border-color: var(--primary-bqb, #1b88c2);
    box-shadow: 0 0 0 3px rgba(27, 136, 194, 0.1);
}

.bqb-section--done {
    border-color: var(--bqb-color-success);
    position: sticky;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bqb-section--done .bqb-section-header {
    padding: 10px 16px;
}

.bqb-section--done .bqb-section-number {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
}

.bqb-section--done .bqb-section-title {
    font-size: 0.82rem;
}

.bqb-section--done .bqb-section-summary {
    font-size: 0.75rem;
}

.bqb-section--pending {
    opacity: 0.55;
}

.bqb-section-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: #fafbfc;
    border-bottom: 1px solid transparent;
    transition: background 0.2s;
    user-select: none;
    position: relative;
    z-index: 5;
}

.bqb-section--active .bqb-section-header {
    border-bottom-color: var(--bqb-color-border-card);
}

.bqb-section--done .bqb-section-header:hover {
    background: #f0faf0;
}

.bqb-section--pending .bqb-section-header.bqb-header--locked {
    cursor: default;
    opacity: 0.55;
}

.bqb-section--pending .bqb-section-header.bqb-header--reachable {
    cursor: pointer;
    opacity: 1;
}

.bqb-section-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: var(--bqb-color-border-card);
    color: var(--bqb-color-muted);
}

.bqb-section--active .bqb-section-number {
    background: var(--primary-bqb, #1b88c2);
    color: #fff;
}

.bqb-section--done .bqb-section-number {
    background: var(--bqb-color-success);
    color: #fff;
}

.bqb-section-title-wrap {
    flex: 1;
    min-width: 0;
}

.bqb-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--bqb-color-text);
    margin: 0;
    line-height: 1.3;
}

.bqb-section--active .bqb-section-title {
    color: var(--primary-bqb, #1b88c2);
}

.bqb-section--done .bqb-section-title {
    color: var(--bqb-color-success);
}

.bqb-section-summary {
    font-size: 0.8rem;
    color: var(--bqb-color-muted);
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.bqb-section-chevron {
    font-size: 1.1rem;
    color: var(--bqb-color-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
}

.bqb-section--active:not(.collapsed) .bqb-section-chevron,
.bqb-section--done:not(.collapsed) .bqb-section-chevron {
    transform: rotate(180deg);
    color: var(--primary-bqb, #1b88c2);
}

.bqb-section--done:not(.collapsed) .bqb-section-chevron {
    color: var(--bqb-color-success);
}

.bqb-section.collapsed {
    overflow: hidden;
}

.bqb-section-body {
    padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

.bqb-section-opening .bqb-section-body {
    pointer-events: none !important;
}

.bqb-section--active .bqb-section-body {
    position: relative;
    z-index: 1;
}

.bqb-section.collapsed .bqb-section-body {
    display: none !important;
    max-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.bqb-section:not(.collapsed) .bqb-section-body {
    display: block;
    max-height: none;
    padding: 16px 18px;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 767px) {
    .bqb-section-header {
        padding: 12px 14px;
        gap: 10px;
    }

    .bqb-section:not(.collapsed) .bqb-section-body {
        padding: 12px 14px;
    }

    .bqb-section-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .bqb-section-title {
        font-size: 0.85rem;
    }
}

/* (shared wrapper styles removed — sections are now fully independent) */

/* Hide redundant "Causa" h4 inside issue divs (section header says it) */
#sinisterReasonDiv > h4:first-child,
#bikeIssue > .mb-4 > h4:first-child,
#homeBussinessIssue > .mb-4 > h4:first-child,
#otherIssue > .mb-4 > h4:first-child,
#phoneReasonDiv > h4:first-child {
    display: none !important;
}

/* Hide "Datos del hecho" h4 — section header covers it */
#companyAndDate > h4:first-child {
    display: none !important;
}

/* Hide "Documentación requerida" h4 — paso 4 ya tiene título en el header */
.bqb-section[data-bqb-section="docs"] h4 {
    display: none !important;
}

.bqb-section[data-bqb-section="docs"] .bqb-doc-block:not(.d-none) + .bqb-doc-block:not(.d-none) {
    margin-top: 1rem;
}

/* Botón Continuar al final del paso activo */
.bqb-section-continue {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8ecf0;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.bqb-section--active .bqb-section-continue:not(.d-none),
.bqb-section--done:not(.collapsed) .bqb-section-continue:not(.d-none) {
    display: flex;
}

.bqb-section-continue-msg {
    width: 100%;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #c0392b;
    text-align: right;
}

.bqb-btn-continue {
    display: inline-block;
    width: auto;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    background: var(--primary-bqb, #1b88c2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: none;
}

.bqb-btn-continue:hover {
    background: var(--primary-bqb-dark, #1573a5);
}

.bqb-section-body .is-invalid,
.bqb-section-body .form-control.is-invalid {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}

/* Resumen compacto en paso Enviar — una sola card */
.bqb-claim-review {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--bqb-color-bg-card, #fff);
    border: 1px solid var(--bqb-color-border-card, #e8ecef);
    border-radius: 14px;
    box-shadow: var(--bqb-shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.06));
}

.bqb-claim-review-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bqb-color-text, #2c3e50);
}

.bqb-claim-review-hint {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    color: var(--bqb-color-muted, #6c757d);
    line-height: 1.4;
}

.bqb-review-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0.75rem 0.85rem;
    background: rgba(27, 136, 194, 0.06);
    border-radius: 10px;
}

.bqb-review-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-bqb, #1b88c2);
    background: #fff;
    border: 1px solid rgba(27, 136, 194, 0.2);
    border-radius: 999px;
}

.bqb-review-chip-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

/* Divisiones internas (misma card) */
.bqb-review-group {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--bqb-color-border-card, #e8ecef);
}

.bqb-review-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bqb-review-group:first-of-type {
    padding-top: 0.65rem;
}

.bqb-review-group-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.6rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--bqb-color-text, #2c3e50);
    letter-spacing: 0.01em;
}

.bqb-review-group-icon {
    font-size: 1rem;
    line-height: 1;
}

.bqb-review-group--docs .bqb-review-docs-list {
    margin: 0;
}

.bqb-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.bqb-review-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    padding: 0.5rem 0.6rem;
    background: #f8fafb;
    border: 1px solid #eef1f4;
    border-radius: 8px;
}

.bqb-review-item-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--bqb-color-text-sec, #495057);
    line-height: 1.35;
}

.bqb-review-item-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bqb-color-text, #2c3e50);
    line-height: 1.4;
    word-break: break-word;
}

.bqb-review-docs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.bqb-review-doc {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--bqb-color-text-sec, #495057);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.4rem 0.5rem;
    background: #f8fafb;
    border: 1px solid #eef1f4;
    border-radius: 8px;
}

.bqb-review-doc-mark {
    flex-shrink: 0;
    font-weight: 700;
}

.bqb-review-doc--done {
    color: var(--bqb-color-text, #2c3e50);
}

.bqb-review-doc--done .bqb-review-doc-mark {
    color: var(--bqb-color-success, #4caf50);
}

.bqb-review-doc--pending .bqb-review-doc-mark {
    color: var(--bqb-color-muted, #adb5bd);
}

.bqb-claim-review-empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--bqb-color-muted, #6c757d);
}

@media (max-width: 575px) {
    .bqb-review-grid,
    .bqb-review-docs-list {
        grid-template-columns: 1fr;
    }
}

/* Shell vacío: las secciones viven en #bqb-claims-steps al mismo nivel que Tipo */
#sinisterForm #main-data.bqb-main-data-shell,
#sinisterForm #main-data.box1.bqb-main-data-shell {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

#sinisterForm .bqb-claims-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

#sinisterForm .bqb-claims-steps > .bqb-section {
    margin-bottom: 12px;
}

/* ============================================================
   STEP 1: CATEGORY CARDS
   ============================================================ */
#sinisterForm .sinister-title {
    color: var(--bqb-color-text) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-top: 0.25rem !important;
    margin-bottom: 1rem !important;
}

@media (min-width: 768px) {
    #sinisterForm .sinister-title {
        font-size: 1.35rem !important;
    }
}

/* Grid layout for category buttons */
#sinisterForm .hiddenradio,
#sinisterForm .bqb-category-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    justify-content: stretch !important;
    margin: 0 0 1.5rem !important;
    flex-wrap: unset !important;
}

@media (min-width: 576px) {
    #sinisterForm .hiddenradio,
    #sinisterForm .bqb-category-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Card styling */
#sinisterForm label.sinister-btn,
#sinisterForm .bqb-category-card {
    margin: 0 !important;
    padding: 0.6rem 0.4rem 0.7rem !important;
    min-height: var(--bqb-card-min-h) !important;
    border: 2px solid var(--bqb-color-border-card) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    background: var(--bqb-color-bg-card) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s !important;
    flex: unset !important;
    cursor: pointer !important;
}

#sinisterForm label.sinister-btn:hover,
#sinisterForm .bqb-category-card:hover {
    border-color: var(--primary-bqb, #1b88c2) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
}

#sinisterForm label.sinister-btn.selected-sinister,
#sinisterForm .bqb-category-card.selected-sinister {
    border-color: var(--primary-bqb, #1b88c2) !important;
    background: var(--primary-bqb-subtle, #e8f4fc) !important;
    box-shadow: 0 4px 14px rgba(27,136,194,0.18) !important;
}

/* Hide old SVG icons */
#sinisterForm label.sinister-btn .claim-icon,
#sinisterForm .bqb-category-card .claim-icon {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

/* Emoji from XML inheritance */
#sinisterForm .bqb-category-emoji {
    flex: 1 1 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--bqb-emoji-size) + 0.5rem);
    font-size: var(--bqb-emoji-size);
    line-height: 1;
    margin-bottom: 0.25rem;
}

/* Emoji fallback via CSS if XML inheritance didn't apply */
#sinisterForm label:has(.bqb-category-emoji)::before {
    display: none !important;
    content: none !important;
}

#sinisterForm label[for="sinisterCategory1"]:not(:has(.bqb-category-emoji))::before { content: '🚗'; }
#sinisterForm label[for="sinisterCategory2"]:not(:has(.bqb-category-emoji))::before { content: '🏍️'; }
#sinisterForm label[for="sinisterCategory3"]:not(:has(.bqb-category-emoji))::before { content: '🚲'; }
#sinisterForm label[for="sinisterCategory5"]:not(:has(.bqb-category-emoji))::before { content: '🏠'; }
#sinisterForm label[for="sinisterCategory4"]:not(:has(.bqb-category-emoji))::before { content: '🏪'; }
#sinisterForm label[for="sinisterCategory6"]:not(:has(.bqb-category-emoji))::before { content: '📱'; }

#sinisterForm label.sinister-btn:not(:has(.bqb-category-emoji))::before {
    display: block;
    font-size: var(--bqb-emoji-size);
    line-height: 1;
    min-height: calc(var(--bqb-emoji-size) + 0.5rem);
    margin-bottom: 0.25rem;
    text-align: center;
}

/* Category label text */
#sinisterForm label.sinister-btn span.text-center,
#sinisterForm .bqb-category-label {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--bqb-color-text) !important;
    margin-top: 0 !important;
    text-align: center;
}

/* box1 legacy — no aplicar al shell ni a las secciones wizard */
#sinisterForm .box1:not(.bqb-main-data-shell):not(.bqb-section) {
    border-radius: 12px !important;
    padding: 1rem 1rem !important;
    margin-top: 1rem !important;
    box-shadow: none !important;
    border: 1px solid var(--bqb-color-border-card) !important;
    background: var(--bqb-color-bg-card) !important;
}

/* Section titles (h4) with left accent bar + gradient */
#sinisterForm #main-data h4,
#sinisterForm .box1 h4,
#sinisterForm .bqb-section h4 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--bqb-color-text) !important;
    margin-bottom: 1rem !important;
    padding: 0.65rem 0 0.65rem 0.85rem !important;
    border-left: 4px solid var(--primary-bqb, #1b88c2) !important;
    background: linear-gradient(to right, var(--primary-bqb-subtle, #e8f4fc), transparent) !important;
    border-radius: 4px !important;
}

@media (min-width: 768px) {
    #sinisterForm #main-data h4,
    #sinisterForm .box1 h4,
    #sinisterForm .bqb-section h4 {
        font-size: 1.05rem !important;
    }
}

/* ============================================================
   FORM GROUPS & LABELS
   ============================================================ */
#sinisterForm #main-data .form-group,
#sinisterForm .bqb-section .form-group {
    margin-bottom: 1.15rem;
}

#sinisterForm #main-data .form-group > label,
#sinisterForm #main-data label[for],
#sinisterForm #taleTheft,
#sinisterForm .box1 .form-group > label,
#sinisterForm .bqb-section .form-group > label,
#sinisterForm .bqb-section label[for] {
    display: block;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: var(--bqb-color-text) !important;
    margin-bottom: 0.45rem !important;
}

@media (min-width: 768px) {
    #sinisterForm #main-data .form-group > label,
    #sinisterForm #main-data label[for],
    #sinisterForm #taleTheft,
    #sinisterForm .box1 .form-group > label,
    #sinisterForm .bqb-section .form-group > label,
    #sinisterForm .bqb-section label[for] {
        font-size: 0.9rem !important;
    }
}

#sinisterForm #taleVehicleTheft {
    min-height: 100px;
    resize: vertical;
    cursor: text;
}

/* ============================================================
   INPUTS, SELECTS, TEXTAREAS
   ============================================================ */
#sinisterForm #main-data .form-control,
#sinisterForm #main-data select.form-control,
#sinisterForm #main-data textarea.form-control,
#sinisterForm .box1 .form-control,
#sinisterForm .bqb-section .form-control,
#sinisterForm .bqb-section select.form-control,
#sinisterForm .bqb-section textarea.form-control {
    border: 1.5px solid #d0d0d0 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    color: var(--bqb-color-text) !important;
    min-height: var(--bqb-input-min-h);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#sinisterForm #main-data .form-control:focus,
#sinisterForm .box1 .form-control:focus,
#sinisterForm .bqb-section .form-control:focus {
    border-color: var(--primary-bqb, #1b88c2) !important;
    box-shadow: 0 0 0 3px rgba(27, 136, 194, 0.12) !important;
    outline: none !important;
}

#sinisterForm #main-data .form-control:disabled,
#sinisterForm .box1 .form-control:disabled,
#sinisterForm .bqb-section .form-control:disabled {
    background: #f1f3f5 !important;
    color: var(--bqb-color-muted) !important;
    cursor: not-allowed;
}

/* datetime-local: área de clic completa + icono de calendario visible */
#sinisterForm .bqb-datetime-wrap {
    position: relative;
    display: block;
    width: 100%;
}

#sinisterForm .bqb-datetime-input {
    width: 100% !important;
    padding-right: 2.75rem !important;
    cursor: pointer !important;
    position: relative;
}

#sinisterForm .bqb-datetime-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    pointer-events: none;
    opacity: 0.65;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b88c2'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM5 8V6h14v2H5z'/%3E%3C/svg%3E");
}

#sinisterForm input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

#sinisterForm input[type="datetime-local"]::-webkit-datetime-edit {
    cursor: pointer;
}

#sinisterForm .bqb-datetime-wrap:focus-within::after {
    opacity: 1;
}

#sinisterForm .bqb-datetime-wrap:has(.bqb-datetime-input:focus) {
    outline: none;
}

#sinisterForm .bqb-datetime-wrap:has(.bqb-datetime-input:focus) .bqb-datetime-input {
    border-color: var(--primary-bqb, #1b88c2) !important;
    box-shadow: 0 0 0 3px rgba(27, 136, 194, 0.12) !important;
}

/* Error state */
#sinisterForm .custom-invalid,
#sinisterForm #main-data .custom-invalid {
    border-color: var(--bqb-color-danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Success state — green border on valid required fields that have a value */
#sinisterForm #main-data input.form-control[required]:valid:not(:focus):not(.custom-invalid),
#sinisterForm #main-data textarea.form-control[required]:valid:not(:focus):not(.custom-invalid),
#sinisterForm #main-data select.form-control[required]:valid:not(:focus):not(.custom-invalid),
#sinisterForm .box1 input.form-control[required]:valid:not(:focus):not(.custom-invalid),
#sinisterForm .box1 textarea.form-control[required]:valid:not(:focus):not(.custom-invalid),
#sinisterForm .box1 select.form-control[required]:valid:not(:focus):not(.custom-invalid),
#sinisterForm .bqb-section input.form-control[required]:valid:not(:focus):not(.custom-invalid),
#sinisterForm .bqb-section textarea.form-control[required]:valid:not(:focus):not(.custom-invalid),
#sinisterForm .bqb-section select.form-control[required]:valid:not(:focus):not(.custom-invalid) {
    border-color: var(--bqb-color-success) !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1) !important;
}

/* Success state for manually validated fields */
#sinisterForm .form-control.is-valid:not(:focus):not(.custom-invalid) {
    border-color: var(--bqb-color-success) !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1) !important;
}

/* (checkmark is now via ::before in the chip section) */

/* Error messages */
#sinisterForm .error-message {
    color: var(--bqb-color-danger);
    font-size: 0.82rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #fff0f0;
    border: 1px solid #fdd;
    border-radius: 6px;
    padding: 6px 10px;
}

#sinisterForm .error-message::before {
    content: '⚠';
    font-size: 0.9rem;
    background-image: none;
    width: auto;
    height: auto;
    margin: 0;
}

/* ============================================================
   RADIO / CHECKBOX AS CHIPS — all radios in the form
   ============================================================ */
#sinisterReasonDiv,
.bike-reason-input,
#homeReasonDiv,
#otherReasonDiv,
#phoneReasonDiv {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

#sinisterForm #main-data .form-check-inline,
#sinisterForm .bqb-section .form-check-inline {
    display: inline-flex !important;
    margin: 0 4px 4px 0 !important;
    padding: 0 !important;
}

/* Chip base para SI/NO (no aplicar a tarjetas de categoría) */
#sinisterForm #main-data .form-check-label,
#sinisterForm .bqb-section .form-check-inline .form-check-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.55rem 0.9rem !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: var(--bqb-color-text) !important;
    background: var(--bqb-color-bg-card) !important;
    border: 2px solid var(--bqb-color-border-card) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: border-color 0.2s, background 0.2s, color 0.2s !important;
    min-height: 44px;
}

#sinisterForm #main-data .form-check-label:hover,
#sinisterForm .bqb-section .form-check-inline .form-check-label:hover {
    border-color: var(--primary-bqb, #1b88c2) !important;
}

/* Seleccionado: input dentro del label (causa) o hermano (SI/NO/Desconoce) */
#sinisterForm #main-data .form-check-label:has(.form-check-input:checked),
#sinisterForm .bqb-section .form-check-label:has(.form-check-input:checked),
#sinisterForm #main-data .form-check-inline:has(.form-check-input:checked) .form-check-label,
#sinisterForm .bqb-section .form-check-inline:has(.form-check-input:checked) .form-check-label {
    border-color: var(--primary-bqb, #1b88c2) !important;
    background: var(--primary-bqb-subtle, #e8f4fc) !important;
    color: var(--primary-bqb, #1b88c2) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(27, 136, 194, 0.18) !important;
}

/* SI/NO chips: overlay solo si input es hijo directo (no radios de Causa dentro del label) */
#sinisterForm #main-data .form-check-inline,
#sinisterForm .bqb-section .form-check-inline {
    position: relative !important;
}

#sinisterForm #main-data .form-check-inline > .form-check-input,
#sinisterForm .bqb-section .form-check-inline > .form-check-input {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
}

/* Causa del siniestro: input dentro del label, sin overlay que bloquee el clic */
#sinisterForm #sinisterReasonDiv .form-check-label .form-check-input {
    position: static !important;
    width: 1.1rem !important;
    height: 1.1rem !important;
    opacity: 1 !important;
    margin: 0 0.35rem 0 0 !important;
    flex-shrink: 0;
}

/* Categorías: radio oculto clásico, el label recibe el clic (sin overlay gigante) */
#sinisterForm .hiddenradio input[type="radio"],
#sinisterForm .bqb-category-grid input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

#sinisterForm label.sinister-btn,
#sinisterForm label.bqb-category-card {
    position: relative;
    cursor: pointer;
    display: inline-flex !important;
}

/* Checkmark en chips seleccionados (ambas estructuras DOM) */
#sinisterForm #main-data .form-check-label:has(.form-check-input:checked)::before,
#sinisterForm .bqb-section .form-check-label:has(.form-check-input:checked)::before,
#sinisterForm #main-data .form-check-inline:has(.form-check-input:checked) .form-check-label::before,
#sinisterForm .bqb-section .form-check-inline:has(.form-check-input:checked) .form-check-label::before {
    content: '✓';
    color: var(--primary-bqb, #1b88c2);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}

/* ============================================================
   FILE INPUTS
   ============================================================ */
#sinisterForm .file-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#sinisterForm .file-input .image-input {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px dashed var(--bqb-color-border);
    padding: 4px;
}

@media (min-width: 768px) {
    #sinisterForm .file-input .image-input {
        max-width: 40%;
    }
}

#sinisterForm .file-input input[type="file"],
.bqb-section .file-input input[type="file"] {
    border: 2px dashed var(--bqb-color-border) !important;
    border-radius: 8px !important;
    padding: 14px !important;
    background: #fafbfc !important;
    cursor: pointer;
    min-height: var(--bqb-input-min-h);
    transition: border-color 0.2s;
}

#sinisterForm .file-input input[type="file"]:hover,
#sinisterForm .file-input input[type="file"]:focus,
.bqb-section .file-input input[type="file"]:hover,
.bqb-section .file-input input[type="file"]:focus {
    border-color: var(--primary-bqb, #1b88c2) !important;
}

/* Image preview grid */
#sinisterForm .div-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
    white-space: normal;
    padding: 8px 0;
}

#sinisterForm .image-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--bqb-color-border-card);
}

#sinisterForm .remove {
    position: relative;
    top: -34px;
    right: 20px;
    background: var(--bqb-color-danger);
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 0.75rem;
    margin-right: -14px;
    cursor: pointer;
}

/* ============================================================
   HR DIVIDERS
   ============================================================ */
#sinisterForm hr {
    border-color: var(--bqb-color-border-card);
    opacity: 0.6;
}

/* ============================================================
   COLLAPSIBLE SECTIONS (third parties, injured, witnesses)
   ============================================================ */
#sinisterForm .collapsible-container {
    border: 1px solid var(--bqb-color-border-card);
    border-radius: 10px;
    margin: 0.75rem 0;
    overflow: hidden;
}

#sinisterForm .collapsible-container-btn {
    background: #fafbfc;
    border: none;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--bqb-color-text);
    font-size: 0.9rem;
    transition: background 0.2s;
}

#sinisterForm .collapsible-container-btn:hover {
    background: var(--primary-bqb-subtle, #e8f4fc);
}

#sinisterForm .collapsible-container .content {
    padding: 0 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
/* Primary submit button */
#sinisterForm #sinisterSubmit.btn-send,
#sinisterForm .btn-send {
    background-color: var(--primary-bqb, #1b88c2) !important;
    border-color: var(--primary-bqb, #1b88c2) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    min-height: var(--bqb-input-min-h) !important;
    width: 100% !important;
    max-width: 320px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
    height: auto !important;
    margin: 0 auto !important;
}

#sinisterForm #sinisterSubmit.btn-send:hover:not(:disabled) {
    background-color: var(--primary-bqb-hover, #156a99) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27,136,194,0.2) !important;
}

#sinisterForm #sinisterSubmit.btn-send:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Secondary / add buttons */
#sinisterForm .btn-primary:not(.btn-send):not(.bqb-claims-modal-btn) {
    background-color: var(--primary-bqb, #1b88c2) !important;
    border-color: var(--primary-bqb, #1b88c2) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    min-height: 44px;
}

#sinisterForm .btn-final {
    background: var(--primary-bqb, #1b88c2) !important;
    border-color: var(--primary-bqb, #1b88c2) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    height: auto !important;
    min-height: 44px;
}

/* ============================================================
   ALERTS & ERROR BOX
   ============================================================ */
#sinisterForm #errors.alert {
    border-radius: 10px !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
    font-size: 0.9rem;
}

/* ============================================================
   CLIENT DATA SECTION (#clientData)
   ============================================================ */
#sinisterForm #clientData .form-group {
    margin-bottom: 1rem;
}

/* ============================================================
   SEND FORM SECTION (#sendForm)
   ============================================================ */
#sinisterForm #sendForm {
    text-align: center;
    padding-top: 1rem;
}

/* ============================================================
   MODALS — motion design (Premium + Corporate, todos los popups)
   exampleModal, theftModal, exampleModalBike, exampleModalPhone,
   bqbTaleAssistantModal
   ============================================================ */
@keyframes bqb-claims-modal-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.968);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bqb-claims-modal-body-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bqb-claims-modal-shimmer {
    0%, 100% { transform: translateX(-120%); }
    45%, 55% { transform: translateX(120%); }
}

@keyframes bqb-claims-modal-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.bqb-claims-page .modal-dialog-styles {
    max-width: 95% !important;
    width: 640px !important;
}

.bqb-claims-modal {
    border: none !important;
    border-radius: 18px !important;
    overflow: hidden;
    background: var(--bqb-glass-bg) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(186, 230, 253, 0.42) !important;
    box-shadow: 0 24px 64px rgba(15, 60, 90, 0.22), var(--bqb-glow-primary) !important;
    will-change: transform, opacity;
}

body.bqb-claims-page .modal.show .bqb-claims-modal {
    animation: bqb-claims-modal-in var(--bqb-claims-modal-in) var(--bqb-ease-emphasis) both;
}

.bqb-claims-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.bqb-claims-modal-header--info {
    background: linear-gradient(135deg, #0f3d5c 0%, #1b88c2 50%, #0ea5e9 100%) !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(186, 230, 253, 0.35);
}

.bqb-claims-modal-header--info::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.14) 50%, transparent 62%);
    animation: bqb-claims-modal-shimmer 5.5s ease-in-out infinite;
    pointer-events: none;
}

.bqb-claims-modal-header--warning {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc3545 55%, #ef4444 100%) !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(254, 202, 202, 0.35);
}

.bqb-claims-modal-header--warning::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    animation: bqb-claims-modal-shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

.bqb-claims-modal-header .modal-title {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
}

.bqb-claims-modal-icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 10px;
    position: relative;
    z-index: 1;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    filter: drop-shadow(0 0 8px rgba(186, 230, 253, 0.45));
}

.bqb-claims-modal-icon--tale {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H9l-4 4V5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H9l-4 4V5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bqb-claims-modal-icon--docs {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 3h7l5 5v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm7 1.5V9h4.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 3h7l5 5v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm7 1.5V9h4.5'/%3E%3C/svg%3E");
}

.bqb-claims-modal-icon--warning {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3 2 21h20L12 3zm0 5 6.5 11h-13L12 8zm-1 3h2v5h-2v-5zm0 6h2v2h-2v-2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3 2 21h20L12 3zm0 5 6.5 11h-13L12 8zm-1 3h2v5h-2v-5zm0 6h2v2h-2v-2z'/%3E%3C/svg%3E");
}

.bqb-claims-modal-icon--bike {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M5 18a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm14 0a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM12 7l3 4h3l-2 3H9l-2-3h3l2-4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M5 18a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm14 0a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM12 7l3 4h3l-2 3H9l-2-3h3l2-4z'/%3E%3C/svg%3E");
}

.bqb-claims-modal-icon--phone {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 3h8a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm0 2v14h8V5H8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 3h8a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm0 2v14h8V5H8z'/%3E%3C/svg%3E");
}

.bqb-claims-modal-header--warning .bqb-claims-modal-icon {
    animation: bqb-claims-modal-icon-pulse 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(254, 202, 202, 0.55));
}

.bqb-claims-modal-close {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.15s var(--bqb-ease-out-expo), background 0.2s ease;
    padding: 0;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.bqb-claims-modal-close:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}

.bqb-claims-modal-close:active {
    transform: scale(0.94);
}

.bqb-claims-modal-body {
    padding: 20px 24px !important;
    font-size: 0.92rem;
    color: var(--bqb-color-text);
    line-height: 1.6;
}

.bqb-claims-modal-body--animate > * {
    animation: bqb-claims-modal-body-in var(--bqb-claims-modal-body-in) var(--bqb-ease-out-expo) both;
}

.bqb-claims-modal-body--animate > *:nth-child(1) { animation-delay: 0ms; }
.bqb-claims-modal-body--animate > *:nth-child(2) { animation-delay: 55ms; }
.bqb-claims-modal-body--animate > *:nth-child(3) { animation-delay: 110ms; }
.bqb-claims-modal-body--animate > *:nth-child(4) { animation-delay: 165ms; }
.bqb-claims-modal-body--animate > *:nth-child(5) { animation-delay: 220ms; }
.bqb-claims-modal-body--animate > *:nth-child(n+6) { animation-delay: 275ms; }

.bqb-claims-modal-body .documentation-info-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bqb-color-text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.bqb-claims-modal-body .documentation-info {
    font-weight: 700;
    color: var(--bqb-color-text);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.bqb-claims-modal-body ul {
    padding-left: 1.2rem;
    margin-bottom: 0.75rem;
}

.bqb-claims-modal-body li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.bqb-claims-modal-alert {
    border-radius: 10px;
    margin-bottom: 0.5rem;
    padding: 10px 14px;
    list-style: none;
    background: rgba(227, 242, 253, 0.75) !important;
    border: 1px solid rgba(144, 202, 249, 0.55) !important;
    backdrop-filter: blur(6px);
}

.bqb-claims-modal-footer {
    padding: 12px 24px 20px !important;
    border-top: 1px solid rgba(186, 230, 253, 0.25) !important;
    display: flex !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.35);
}

.bqb-claims-modal-btn {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    background: var(--bqb-gradient-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 20px !important;
    width: 100% !important;
    max-width: 360px;
    min-height: 48px;
    box-shadow: var(--bqb-glow-primary), 0 4px 16px rgba(27, 136, 194, 0.32);
    transition: transform 0.15s var(--bqb-ease-out-expo), box-shadow 0.2s ease !important;
    cursor: pointer;
}

.bqb-claims-modal-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--bqb-glow-accent), 0 8px 22px rgba(27, 136, 194, 0.38) !important;
}

.bqb-claims-modal-btn:active {
    transform: scale(0.97);
    transition-duration: 0.08s;
}

.bqb-claims-modal-header--warning ~ .bqb-claims-modal-footer .bqb-claims-modal-btn {
    background: linear-gradient(135deg, #b91c1c 0%, #dc3545 55%, #ef4444 100%) !important;
    box-shadow: 0 0 22px rgba(220, 53, 69, 0.35), 0 4px 16px rgba(185, 28, 28, 0.28);
}

.bqb-claims-modal-header--warning ~ .bqb-claims-modal-footer .bqb-claims-modal-btn:hover {
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.45), 0 8px 22px rgba(185, 28, 28, 0.35) !important;
}

@media (max-width: 767px) {
    .bqb-claims-page .modal-dialog-styles {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        min-height: 100vh;
        display: flex !important;
        align-items: stretch !important;
    }

    .bqb-claims-modal {
        border-radius: 0 !important;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .bqb-claims-modal-body {
        flex: 1;
        overflow-y: auto;
    }
}

/* ============================================================
   SEND FORM — reCAPTCHA + botón (no fixed, fluye con el form)
   ============================================================ */
#sinisterForm #sendForm {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

#sinisterForm #sendForm .g-recaptcha {
    display: inline-block;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    #sinisterForm #sendForm .btn-send {
        max-width: 100% !important;
    }
}

/* ============================================================
   SUCCESS BOX OVERRIDE (match design system)
   ============================================================ */
.bqb-claims-page .success-box {
    border-radius: 16px;
    border: 1px solid var(--bqb-color-border-card);
    box-shadow: var(--bqb-shadow-sm);
}

.bqb-claims-page .success-box .btn-primary {
    background-color: var(--primary-bqb, #1b88c2) !important;
    border-radius: 8px;
    font-weight: 600;
}

.bqb-claims-page .success-box .btn-primary:hover {
    background-color: var(--primary-bqb-hover, #156a99) !important;
}

/* ============================================================
   WAIT / LOADING MESSAGE
   ============================================================ */
#sinisterForm .wait-message {
    color: var(--primary-bqb, #1b88c2);
    font-weight: 600;
    text-align: center;
    margin: 1rem auto;
    padding: 0.75rem 1rem;
}

/* ============================================================
   MISC OVERRIDES
   ============================================================ */

/* (hiddenradio radios — ver reglas de categorías arriba) */

/* Checkbox alignment */
#sinisterForm input[type="checkbox"] {
    accent-color: var(--primary-bqb, #1b88c2);
    width: 1.1rem;
    height: 1.1rem;
    vertical-align: middle;
    margin-right: 0.3rem;
}

/* Quote message */
#sinisterForm .quoteMessage {
    color: var(--primary-bqb, #1b88c2);
    font-weight: 600;
    text-align: center;
}

/* Injured data modal specifics */
#sinisterForm .addInjuredData,
#sinisterForm .addChainVehicle {
    margin-top: 0.75rem;
}

/* Third party summary cards */
#sinisterForm #summaryCardsContainer .card,
#sinisterForm #vehicleFormsContainer .card {
    border-radius: 10px;
    border: 1px solid var(--bqb-color-border-card);
    margin-bottom: 0.75rem;
}

/* ============================================================
   PRINT (hide wizard, fixed elements)
   ============================================================ */
@media print {
    .bqb-wizard-bar,
    .bqb-wizard-mini {
        display: none !important;
    }
}

/* ============================================================
   Paso Relato + asistente chat
   ============================================================ */
.bqb-tale-intro {
    margin-bottom: 1rem;
    color: var(--bqb-color-text-sec);
}

.bqb-tale-context-panel,
.bqb-tale-preview-panel {
    background: var(--bqb-color-bg-card);
    border: 1px solid var(--bqb-color-border-card);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.bqb-tale-preview-text {
    white-space: pre-wrap;
    margin: 0;
    font-size: 0.95rem;
    color: var(--bqb-color-text);
}

.bqb-open-tale-assistant {
    width: 100%;
    max-width: 420px;
}

.bqb-narrative-field-hidden {
    display: none !important;
}

.bqb-tale-chat-status {
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    margin: 0.65rem 0.75rem 0;
    font-size: 0.88rem;
}

.bqb-tale-chat-status--ok {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

.bqb-tale-chat-status--error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #b71c1c;
}

.bqb-tale-chat-status--checking {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #0d47a1;
}

.bqb-tale-chat-compose--disabled textarea,
.bqb-tale-chat-compose--disabled button {
    opacity: 0.55;
    pointer-events: none;
}

.bqb-tale-assistant-modal .bqb-tale-chat-dialog {
    max-width: 760px;
    width: calc(100% - 1rem);
    height: min(96vh, 920px);
    margin: 0.5rem auto;
}

.bqb-tale-assistant-modal .bqb-tale-chat-modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bqb-tale-assistant-modal .bqb-tale-chat-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    background: #f0f2f5;
}

.bqb-tale-assistant-modal .bqb-tale-chat-messages,
.bqb-tale-assistant-modal .bqb-tale-chat-bubble,
.bqb-tale-assistant-modal .bqb-wa-compose-input {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.bqb-tale-assistant-modal .bqb-tale-chat-hint {
    flex-shrink: 0;
    font-size: 0.78rem;
    margin: 0.65rem auto 0.35rem !important;
    padding: 0.45rem 0.85rem;
    max-width: 92%;
    text-align: center;
    color: #54656f !important;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
}

.bqb-tale-chat-messages {
    flex: 1 1 auto;
    min-height: min(58vh, 520px);
    overflow-y: auto;
    padding: 0.75rem 1rem 1rem;
    background-color: #efeae2;
    background-image:
        radial-gradient(circle at 20% 18%, rgba(0, 128, 105, 0.04) 0, transparent 42%),
        radial-gradient(circle at 82% 72%, rgba(0, 128, 105, 0.05) 0, transparent 38%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23d4cdc4' fill-opacity='0.45'%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3Ccircle cx='62' cy='28' r='1'/%3E%3Ccircle cx='98' cy='54' r='1.2'/%3E%3Ccircle cx='34' cy='88' r='1'/%3E%3Ccircle cx='88' cy='96' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.bqb-tale-chat-messages::before {
    display: none;
}

.bqb-tale-chat-bubble--typing {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #667781;
    font-style: normal;
    font-size: 0.88rem;
    min-height: 2.2rem;
}

.bqb-tale-chat-row {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.bqb-tale-chat-row--user {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.bqb-tale-chat-avatar {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    background: #fff;
    border: none;
    box-shadow: 0 1px 2px rgba(11, 20, 26, 0.12);
}

.bqb-tale-chat-avatar--pulse {
    animation: bqb-wa-avatar-pulse 1.4s ease-in-out infinite;
}

@keyframes bqb-wa-avatar-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.88; }
}

.bqb-tale-chat-meta {
    margin-bottom: 0.3rem;
}

.bqb-tale-chat-name {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #008069;
}

.bqb-tale-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bqb-tale-typing-dots i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8696a0;
    box-shadow: none;
    animation: bqb-tale-typing-bounce 1.2s infinite ease-in-out;
}

.bqb-tale-typing-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.bqb-tale-typing-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes bqb-tale-typing-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.45;
    }
    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.bqb-tale-chat-bubble {
    position: relative;
    padding: 0.45rem 0.65rem 0.5rem;
    max-width: min(78%, 520px);
    flex: 0 1 auto;
    font-size: 0.9375rem;
    line-height: 1.35;
    will-change: transform, opacity;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    word-wrap: break-word;
}

.bqb-tale-chat-row--user .bqb-tale-chat-bubble {
    margin-left: auto;
    border-radius: 12px 0 12px 12px;
}

.bqb-tale-chat-row--assistant .bqb-tale-chat-bubble {
    margin-right: auto;
    border-radius: 0 12px 12px 12px;
}

.bqb-tale-chat-bubble--enter {
    animation: bqb-tale-bubble-in var(--bqb-tale-bubble-in) var(--bqb-ease-out-expo) both;
}

.bqb-tale-chat-bubble--user {
    background: #d9fdd3;
    color: #111b21;
    border: none;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.bqb-tale-chat-bubble--assistant {
    background: #fff;
    border: none;
    color: #111b21;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.bqb-tale-chat-preview {
    background: #f0faf0;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.bqb-tale-chat-preview p {
    white-space: pre-wrap;
    margin: 0.5rem 0 0;
}

.bqb-tale-chat-preview-hint {
    line-height: 1.4;
}

.bqb-tale-chat-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bqb-tale-chat-compose {
    flex-shrink: 0;
    background: #f0f2f5;
    border-top: 1px solid #e9edef;
    padding: 0.55rem 0.75rem 0.65rem;
    margin-top: 0;
}

.bqb-wa-compose-bar {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.bqb-wa-compose-input {
    flex: 1 1 auto;
    min-height: 42px;
    max-height: 120px;
    resize: none;
    border: none !important;
    border-radius: 24px !important;
    background: #fff !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: #111b21;
    box-shadow: none !important;
    outline: none;
}

.bqb-wa-compose-input:focus {
    box-shadow: none !important;
    border: none !important;
}

.bqb-wa-compose-input:invalid {
    border: none !important;
    box-shadow: none !important;
}

.bqb-wa-send-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #008069;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
    padding: 0;
}

.bqb-wa-send-btn:hover:not(:disabled) {
    background: #006e5a;
}

.bqb-wa-send-btn:active:not(:disabled) {
    transform: scale(0.94);
}

.bqb-wa-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bqb-wa-send-icon {
    display: block;
    font-size: 1.05rem;
    line-height: 1;
    transform: translateX(1px);
}

.bqb-tale-chat-actions-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.25rem;
    padding: 0.15rem 0.35rem 0;
}

.bqb-tale-chat-compose--disabled .bqb-wa-compose-input,
.bqb-tale-chat-compose--disabled .bqb-wa-send-btn {
    opacity: 0.55;
    pointer-events: none;
}

.bqb-tale-chat-embed-bar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    margin: 0;
    background: #f0f2f5;
    border-top: 1px solid #e9edef;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--bqb-tale-surface-in) var(--bqb-ease-out-expo),
        transform var(--bqb-tale-surface-in) var(--bqb-ease-out-expo);
}

.bqb-tale-chat-embed-bar--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bqb-tale-chat-embed-bar .btn-success {
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.35);
    transition: transform 0.15s var(--bqb-ease-out-expo), box-shadow 0.2s ease;
}

.bqb-tale-chat-embed-bar .btn-success:hover {
    transform: translateY(-1px) scale(1.02);
}

@media (min-width: 576px) {
    .bqb-tale-chat-embed-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.bqb-tale-assistant-modal .modal-footer {
    flex-shrink: 0;
}

/* ============================================================
   MOBILE-FIRST WIZARD POLISH (full claims page)
   Trust & Authority · touch ≥44px · Corporate motion
   ============================================================ */

/* --- Section hints (claims_wizard.js) --- */
.bqb-section-hint {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--bqb-color-text-sec);
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafb;
    border-left: 3px solid var(--primary-bqb, #1b88c2);
    border-radius: 0 8px 8px 0;
}

.bqb-section-hint--tale {
    margin-bottom: 0.75rem;
}

/* --- Fase 0: shell global --- */
#sinisterForm .bqb-claims-steps {
    gap: 10px;
}

@media (max-width: 767px) {
    .bqb-section--done {
        position: static;
        z-index: auto;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .bqb-section-continue {
        align-items: stretch;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .bqb-section-continue-msg {
        text-align: left;
        font-size: 0.8125rem;
        padding: 0.5rem 0.65rem;
        background: #fff5f5;
        border-radius: 8px;
        border: 1px solid #f5c6cb;
    }

    .bqb-btn-continue {
        width: 100%;
        min-height: 48px;
        padding: 12px 18px;
        font-size: 0.9375rem;
        text-align: center;
        touch-action: manipulation;
    }

    #sinisterForm #errors {
        font-size: 0.875rem;
        line-height: 1.4;
        text-align: left;
        margin-bottom: 1rem;
        padding: 0.75rem;
        border-radius: 8px;
        word-break: break-word;
    }

    #sinisterForm #errors:not(.d-none) {
        background: #fff5f5;
        border: 1px solid #f5c6cb;
    }
}

/* --- Fase 1: type + cause --- */
@media (max-width: 767px) {
    #sinisterForm label.sinister-btn:active,
    #sinisterForm .bqb-category-card:active {
        transform: translateY(-1px);
        border-color: var(--primary-bqb, #1b88c2) !important;
    }

    #sinisterForm .bqb-category-emoji {
        font-size: 2.1rem;
        min-height: calc(2.1rem + 0.35rem);
    }
}

.bqb-section[data-bqb-section="cause"] .form-check-label {
    min-height: 48px;
    padding: 0.65rem 1rem !important;
    touch-action: manipulation;
}

.bqb-section[data-bqb-section="cause"] #sinisterReasonDiv,
.bqb-section[data-bqb-section="cause"] .bike-reason-input,
.bqb-section[data-bqb-section="cause"] #homeReasonDiv,
.bqb-section[data-bqb-section="cause"] #otherReasonDiv,
.bqb-section[data-bqb-section="cause"] #phoneReasonDiv {
    gap: 10px !important;
}

/* --- Fase 2: details --- */
.bqb-section[data-bqb-section="details"] .bqb-section-body {
    overflow-x: hidden;
}

@media (max-width: 767px) {
    .bqb-section[data-bqb-section="details"] .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .bqb-section[data-bqb-section="details"] .box1 {
        padding: 0.75rem 0 !important;
        margin-top: 0.5rem !important;
    }
}

/* --- Fase 3: tale --- */
@media (max-width: 767px) {
    .bqb-section[data-bqb-section="tale"] .bqb-tale-context-panel,
    .bqb-section[data-bqb-section="tale"] .bqb-tale-preview-panel {
        padding: 0.85rem;
    }

    .bqb-section[data-bqb-section="tale"] .bqb-open-tale-assistant {
        max-width: none;
        width: 100%;
        min-height: 48px;
    }

    .bqb-tale-assistant-modal .bqb-tale-chat-dialog {
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 100%;
        margin: 0;
    }

    .bqb-tale-assistant-modal .bqb-tale-chat-messages {
        min-height: min(42vh, 360px);
    }

    .bqb-tale-chat-bubble {
        max-width: 88%;
        font-size: 0.9rem;
    }

    .bqb-tale-chat-avatar {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 0.95rem;
    }

    .bqb-wa-compose-input {
        font-size: 16px;
    }
}

/* --- Fase 4: docs (priority) --- */
.bqb-section[data-bqb-section="docs"] .bqb-doc-block hr.my-4 {
    margin: 0.75rem 0;
    opacity: 0.35;
}

.bqb-section[data-bqb-section="docs"] .bqb-doc-block .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 768px) {
    .bqb-section[data-bqb-section="docs"] .bqb-doc-block .row {
        grid-template-columns: 1fr 1fr;
    }
}

.bqb-section[data-bqb-section="docs"] .bqb-doc-block .row > .col-md-6,
.bqb-section[data-bqb-section="docs"] .bqb-doc-block .row > [class*="col-"] {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.bqb-section[data-bqb-section="docs"] .bqb-doc-block .row > .col-md-6:has(input[type="file"][multiple]),
.bqb-section[data-bqb-section="docs"] .bqb-doc-block .row > [class*="col-"]:has(input[type="file"][multiple]) {
    grid-column: 1 / -1;
}

.bqb-section[data-bqb-section="docs"] .file-input {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0 !important;
    padding: 1rem;
    background: var(--bqb-color-bg-card);
    border: 1px solid var(--bqb-color-border-card);
    border-radius: 12px;
    box-sizing: border-box;
}

.bqb-section[data-bqb-section="docs"] .file-input > label {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
}

.bqb-section[data-bqb-section="docs"] .file-input:has(input[required]) > label::after {
    content: ' *';
    color: var(--bqb-color-danger);
    font-weight: 700;
}

.bqb-section[data-bqb-section="docs"] .file-input .image-input {
    margin: 0 !important;
    max-width: 100% !important;
    max-height: 108px;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #f5f7fa;
    border: 1px dashed var(--bqb-color-border-card) !important;
    border-radius: 8px;
    padding: 6px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .bqb-section[data-bqb-section="docs"] .file-input .image-input {
        max-height: 112px;
        max-width: 55% !important;
    }
}

.bqb-section[data-bqb-section="docs"] .file-input input[type="file"]:not(.bqb-docs-file-input-sr) {
    width: 100% !important;
    min-height: 52px !important;
    padding: 14px 12px !important;
    border: 2px dashed var(--bqb-color-border) !important;
    border-radius: 10px !important;
    background: #fafbfc !important;
    font-size: 0.875rem !important;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bqb-section[data-bqb-section="docs"] .file-input input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.45rem 0.85rem;
    border: none;
    border-radius: 6px;
    background: var(--primary-bqb, #1b88c2);
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
}

.bqb-section[data-bqb-section="docs"] .file-input input[type="file"]:focus-visible {
    outline: none;
    border-color: var(--primary-bqb, #1b88c2) !important;
    box-shadow: 0 0 0 3px rgba(27, 136, 194, 0.15) !important;
}

.bqb-section[data-bqb-section="docs"] .div-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 8px;
    padding: 4px 0 0;
    margin-top: 0.25rem;
}

@media (min-width: 480px) {
    .bqb-section[data-bqb-section="docs"] .div-preview {
        grid-template-columns: repeat(4, minmax(72px, 1fr));
    }
}

.bqb-section[data-bqb-section="docs"] .div-container {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    max-width: 88px;
}

.bqb-section[data-bqb-section="docs"] .image-preview {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--bqb-color-border-card);
}

.bqb-section[data-bqb-section="docs"] .remove {
    position: absolute;
    top: 4px;
    right: 4px;
    margin: 0;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    line-height: 26px;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    touch-action: manipulation;
}

/* ============================================================
   DOCS: zona táctil interactiva (motion-design Corporate)
   ============================================================ */
@keyframes bqb-docs-photo-enter {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bqb-docs-success-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(76, 175, 80, 0);
    }
}

@keyframes bqb-docs-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes bqb-docs-border-breathe {
    0%, 100% {
        border-color: rgba(27, 136, 194, 0.35);
        box-shadow: inset 0 0 0 0 rgba(27, 136, 194, 0);
    }
    50% {
        border-color: rgba(14, 165, 233, 0.65);
        box-shadow: inset 0 0 24px rgba(14, 165, 233, 0.08);
    }
}

@keyframes bqb-docs-icon-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes bqb-docs-ripple {
    from {
        opacity: 0.45;
        transform: scale(0.2);
    }
    to {
        opacity: 0;
        transform: scale(2.2);
    }
}

@keyframes bqb-docs-success-pop {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }
    60% {
        opacity: 1;
        transform: scale(1.12);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bqb-docs-card-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bqb-section[data-bqb-section="docs"] .file-input[data-bqb-docs-zone] input[type="file"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    min-height: 0 !important;
}

.bqb-section[data-bqb-section="docs"] .file-input.bqb-docs-card-enter {
    animation: bqb-docs-card-enter 0.32s cubic-bezier(0.05, 0.7, 0.1, 1) both;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-height: 168px;
    margin: 0;
    padding: 0.5rem;
    border: 2px dashed rgba(27, 136, 194, 0.45);
    border-radius: 12px;
    background: linear-gradient(160deg, #f8fbfe 0%, #e8f4fc 100%);
    cursor: pointer;
    overflow: hidden;
    touch-action: manipulation;
    transition: transform 0.12s cubic-bezier(0.2, 0, 0, 1),
        box-shadow 0.24s cubic-bezier(0.2, 0, 0, 1),
        border-color 0.22s ease;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone[data-state="idle"] {
    animation: bqb-docs-border-breathe 3.2s ease-in-out infinite;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone:hover {
    border-color: rgba(14, 165, 233, 0.75);
    box-shadow: 0 8px 24px rgba(27, 136, 194, 0.14);
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone:active {
    transform: scale(0.98);
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone:focus-visible {
    outline: none;
    border-color: var(--primary-bqb, #1b88c2);
    box-shadow: 0 0 0 3px rgba(27, 136, 194, 0.22);
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone--dragover {
    border-color: var(--primary-bqb, #1b88c2);
    transform: scale(1.015);
    box-shadow: var(--bqb-glow-primary, 0 0 24px rgba(27, 136, 194, 0.35));
    animation: none;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: bqb-docs-shimmer 1s ease-in-out infinite;
    pointer-events: none;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone--success {
    animation: bqb-docs-success-pulse 0.65s cubic-bezier(0.2, 0, 0, 1);
    border-color: var(--bqb-color-success, #4caf50);
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-photo-stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 128px;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-photo-layer {
    width: 100%;
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.34s cubic-bezier(0.2, 0, 0, 1),
        transform 0.38s cubic-bezier(0.05, 0.7, 0.1, 1);
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-photo-layer--visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
    inset: auto;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-photo-layer--example .image-input {
    display: block;
    margin: 0 auto !important;
    max-width: 100% !important;
    max-height: 132px !important;
    width: auto !important;
    object-fit: contain;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(to top, rgba(15, 60, 90, 0.78), rgba(15, 60, 90, 0.06));
    color: #fff;
    pointer-events: none;
    text-align: center;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-icon {
    display: block;
    width: 32px;
    height: 32px;
    animation: bqb-docs-icon-float 2.6s ease-in-out infinite;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 15.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4z'/%3E%3Cpath d='M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z'/%3E%3C/svg%3E");
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-text {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-sub {
    font-size: 0.6875rem;
    font-weight: 500;
    opacity: 0.88;
    line-height: 1.2;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-ripple {
    position: absolute;
    z-index: 2;
    border-radius: 50%;
    background: rgba(27, 136, 194, 0.28);
    pointer-events: none;
    animation: bqb-docs-ripple 0.55s cubic-bezier(0.2, 0, 0, 1) forwards;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-success-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bqb-color-success, #4caf50);
    color: #fff;
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.45);
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-success-badge--pop {
    animation: bqb-docs-success-pop 0.42s cubic-bezier(0.05, 0.7, 0.1, 1) both;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-change-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 42%;
    min-height: 2.75rem;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.55rem;
    background: linear-gradient(to top, rgba(15, 60, 90, 0.72), rgba(15, 60, 90, 0));
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone--filled:hover .bqb-docs-change-overlay,
.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone--filled:focus-within .bqb-docs-change-overlay {
    opacity: 1;
}

@media (hover: none) {
    /* En touch: sin overlay sobre la foto; se usa el botón "Cambiar foto" debajo */
    .bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone--filled .bqb-docs-change-overlay {
        display: none;
    }
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone .div-preview {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 8px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-photo-layer--preview {
    width: 100%;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-photo-layer--preview.bqb-docs-photo-layer--visible {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-photo-layer--preview:not(.bqb-docs-photo-layer--visible) .div-preview:empty {
    display: none;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone--filled .div-preview {
    width: 100%;
    min-height: 132px;
}

.bqb-section[data-bqb-section="docs"] .file-input:has(input[type="file"][multiple]) .bqb-docs-upload-zone--filled .div-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 8px;
    align-content: center;
    min-height: 0;
}

.bqb-section[data-bqb-section="docs"] .file-input:not(:has(input[type="file"][multiple])) .bqb-docs-upload-zone--filled .div-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bqb-section[data-bqb-section="docs"] .file-input:not(:has(input[type="file"][multiple])) .bqb-docs-upload-zone--filled .div-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 132px;
    aspect-ratio: auto;
}

#sinisterForm.bqb-claims-form .bqb-section[data-bqb-section="docs"] .file-input:not(:has(input[type="file"][multiple])) .bqb-docs-upload-zone--filled .image-preview,
.bqb-section[data-bqb-section="docs"] .file-input:not(:has(input[type="file"][multiple])) .bqb-docs-upload-zone--filled .image-preview {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 132px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: #fff;
    border: 2px solid rgba(27, 136, 194, 0.35) !important;
    border-radius: 10px;
    padding: 4px;
    box-sizing: border-box;
}

.bqb-section[data-bqb-section="docs"] .file-input:has(input[type="file"][multiple]) .bqb-docs-upload-zone--filled .div-container {
    max-width: 88px;
    min-height: 0;
    aspect-ratio: 1;
}

.bqb-section[data-bqb-section="docs"] .file-input:has(input[type="file"][multiple]) .bqb-docs-upload-zone--filled .image-preview {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 1;
    object-fit: cover;
    padding: 0;
}

#sinisterForm.bqb-claims-form .bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone--filled .remove,
.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone--filled .remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 8;
    margin: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    line-height: 30px;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    touch-action: manipulation;
    cursor: pointer;
}

.bqb-section[data-bqb-section="docs"] .file-input:not(:has(input[type="file"][multiple])) .bqb-docs-upload-zone--filled .div-container {
    max-width: 100%;
    width: 100%;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone .image-preview.bqb-docs-photo-enter {
    animation: bqb-docs-photo-enter 0.38s cubic-bezier(0.05, 0.7, 0.1, 1) both;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-file-input-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    min-height: 0 !important;
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-change-photo {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin: 0.4rem 0 0;
    padding: 0.4rem 0.7rem;
    border: none;
    border-radius: 8px;
    background: rgba(27, 136, 194, 0.12);
    color: var(--primary-bqb, #1b88c2);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.15s ease, transform 0.1s cubic-bezier(0.2, 0, 0, 1);
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-change-photo:hover {
    background: rgba(27, 136, 194, 0.2);
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-change-photo:active {
    transform: scale(0.97);
}

.bqb-section[data-bqb-section="docs"] .bqb-docs-card--filled {
    border-color: rgba(76, 175, 80, 0.45) !important;
}

@media (prefers-reduced-motion: reduce) {
    .bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone,
    .bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone[data-state="idle"],
    .bqb-section[data-bqb-section="docs"] .bqb-docs-upload-icon,
    .bqb-section[data-bqb-section="docs"] .bqb-docs-photo-layer,
    .bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone .image-preview.bqb-docs-photo-enter,
    .bqb-section[data-bqb-section="docs"] .file-input.bqb-docs-card-enter {
        animation: none !important;
        transition: none !important;
    }

    .bqb-section[data-bqb-section="docs"] .bqb-docs-upload-zone--loading::after {
        animation: none !important;
        opacity: 0.35;
    }
}

/* --- Fase 5: insured + send --- */
@media (max-width: 767px) {
    .bqb-section[data-bqb-section="insured"] .row > [class*="col-md"],
    .bqb-section[data-bqb-section="insured"] .row > [class*="col-lg"],
    .bqb-section[data-bqb-section="insured"] .row > [class*="col-sm"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .bqb-section[data-bqb-section="insured"] #clientData,
    .bqb-section[data-bqb-section="insured"] #injuredContainer,
    .bqb-section[data-bqb-section="insured"] #witnessContainer {
        margin-bottom: 0.5rem;
    }

    .bqb-section[data-bqb-section="send"] #sinisterSubmit.btn-send,
    .bqb-section[data-bqb-section="send"] .btn-send {
        width: 100%;
        min-height: 52px;
        font-size: 1rem;
        padding: 14px 20px;
    }

    .bqb-section[data-bqb-section="send"] #sendForm .g-recaptcha {
        display: flex;
        justify-content: center;
        overflow-x: auto;
        max-width: 100%;
    }

    .bqb-claim-review {
        padding: 0.85rem;
        max-height: min(55vh, 420px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Fase 6: motion (Premium + Energetic — motion-design) --- */
@keyframes bqb-section-enter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes bqb-doc-card-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bqb-glow-pulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(27, 136, 194, 0.35), 0 0 0 0 rgba(14, 165, 233, 0.2);
    }
    50% {
        box-shadow: 0 0 22px rgba(27, 136, 194, 0.55), 0 0 0 6px rgba(14, 165, 233, 0.12);
    }
}

@keyframes bqb-border-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bqb-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.bqb-section--active:not(.collapsed) > .bqb-section-body {
    animation: bqb-section-enter 0.42s var(--bqb-ease-out-expo) both;
}

.bqb-section[data-bqb-section="docs"] .bqb-doc-block:not(.d-none) .file-input {
    animation: bqb-doc-card-enter 0.32s var(--bqb-ease-out-expo) both;
}

.bqb-section[data-bqb-section="docs"] .bqb-doc-block:not(.d-none) .row > *:nth-child(1) .file-input {
    animation-delay: 0ms;
}

.bqb-section[data-bqb-section="docs"] .bqb-doc-block:not(.d-none) .row > *:nth-child(2) .file-input {
    animation-delay: 35ms;
}

.bqb-section[data-bqb-section="docs"] .bqb-doc-block:not(.d-none) .row > *:nth-child(3) .file-input {
    animation-delay: 70ms;
}

.bqb-section[data-bqb-section="docs"] .bqb-doc-block:not(.d-none) .row > *:nth-child(4) .file-input {
    animation-delay: 105ms;
}

.bqb-section[data-bqb-section="docs"] .bqb-doc-block:not(.d-none) .row > *:nth-child(5) .file-input {
    animation-delay: 140ms;
}

.bqb-section[data-bqb-section="docs"] .bqb-doc-block:not(.d-none) .row > *:nth-child(6) .file-input {
    animation-delay: 175ms;
}

.bqb-section-body .custom-invalid,
.bqb-section-body .form-control.is-invalid {
    animation: bqb-field-shake 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bqb-field-shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-6px);
    }
    40%, 80% {
        transform: translateX(6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bqb-section--active:not(.collapsed) > .bqb-section-body,
    .bqb-section[data-bqb-section="docs"] .bqb-doc-block:not(.d-none) .file-input,
    .bqb-section-body .custom-invalid,
    .bqb-section-body .form-control.is-invalid {
        animation: none !important;
        filter: none !important;
    }

    #sinisterForm label.sinister-btn:hover,
    #sinisterForm .bqb-category-card:hover {
        transform: none;
    }

    .bqb-section--active .bqb-section-number,
    .bqb-section[data-bqb-section="docs"] .file-input::before {
        animation: none !important;
    }
}

/* ============================================================
   MOTION-DESIGN: superficie futurista (glass + glow + gradient)
   Personalidad: Premium base + acentos Energetic en estados activos
   ============================================================ */

/* --- Wizard cards: glassmorphism --- */
#sinisterForm > .bqb-section,
.bqb-section {
    background: var(--bqb-glass-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--bqb-glass-border) !important;
    box-shadow: 0 8px 32px rgba(15, 60, 90, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
    transition: border-color 0.35s var(--bqb-ease-premium),
        box-shadow 0.35s var(--bqb-ease-premium),
        transform 0.25s var(--bqb-ease-out-expo) !important;
}

.bqb-section--active {
    border-color: rgba(27, 136, 194, 0.45) !important;
    box-shadow: var(--bqb-glow-primary), 0 12px 40px rgba(27, 136, 194, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
}

.bqb-section--active .bqb-section-header {
    background: linear-gradient(90deg, rgba(232, 244, 252, 0.95) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
}

.bqb-section--active .bqb-section-number {
    background: var(--bqb-gradient-primary) !important;
    color: #fff !important;
    border: none !important;
    animation: bqb-glow-pulse 2.5s ease-in-out infinite;
}

.bqb-section-header {
    background: rgba(250, 251, 252, 0.85) !important;
}

/* Hints: panel futurista */
.bqb-section-hint {
    background: linear-gradient(90deg, rgba(27, 136, 194, 0.1) 0%, rgba(255, 255, 255, 0.55) 100%) !important;
    border-left: 3px solid #0ea5e9 !important;
    border-radius: 10px !important;
    box-shadow: inset 0 0 24px rgba(27, 136, 194, 0.08), 0 2px 12px rgba(27, 136, 194, 0.06);
}

/* --- Tipo: cards con glow al seleccionar --- */
#sinisterForm label.sinister-btn,
#sinisterForm .bqb-category-card {
    background: var(--bqb-gradient-surface) !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(186, 230, 253, 0.8) !important;
    transition: transform 0.22s var(--bqb-ease-out-expo),
        box-shadow 0.22s var(--bqb-ease-out-expo),
        border-color 0.2s ease !important;
}

#sinisterForm label.sinister-btn:hover,
#sinisterForm .bqb-category-card:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: var(--bqb-glow-accent), 0 12px 28px rgba(27, 136, 194, 0.15) !important;
    border-color: rgba(14, 165, 233, 0.7) !important;
}

#sinisterForm label.sinister-btn.selected-sinister,
#sinisterForm .bqb-category-card.selected-sinister {
    transform: scale(1.03) !important;
    border-color: transparent !important;
    background: linear-gradient(145deg, #e8f4fc 0%, #ffffff 100%) padding-box,
        var(--bqb-gradient-primary) border-box !important;
    border: 2px solid transparent !important;
    box-shadow: var(--bqb-glow-primary), 0 8px 24px rgba(27, 136, 194, 0.2) !important;
}

/* --- Causa: chips neón suave --- */
.bqb-section[data-bqb-section="cause"] .form-check-label:has(.form-check-input:checked) {
    background: linear-gradient(135deg, rgba(27, 136, 194, 0.15) 0%, rgba(14, 165, 233, 0.08) 100%) !important;
    box-shadow: 0 0 16px rgba(27, 136, 194, 0.25), inset 0 0 0 1px rgba(27, 136, 194, 0.2) !important;
    transform: scale(1.02);
}

/* --- Inputs: focus glow --- */
#sinisterForm .bqb-section .form-control:focus,
#sinisterForm #main-data .form-control:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2), 0 0 20px rgba(27, 136, 194, 0.15) !important;
}

/* --- Documentación: cards con borde animado --- */
.bqb-section[data-bqb-section="docs"] .file-input {
    position: relative;
    overflow: hidden;
    background: var(--bqb-gradient-surface) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(186, 230, 253, 0.6) !important;
    box-shadow: 0 4px 20px rgba(15, 60, 90, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: box-shadow 0.3s var(--bqb-ease-out-expo), transform 0.25s var(--bqb-ease-out-expo) !important;
}

.bqb-section[data-bqb-section="docs"] .file-input::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(120deg, #1b88c2, #0ea5e9, #38bdf8, #1b88c2);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bqb-section[data-bqb-section="docs"] .file-input:focus-within::before {
    opacity: 1;
    animation: bqb-border-flow 4s linear infinite;
}

.bqb-section[data-bqb-section="docs"] .file-input:focus-within {
    box-shadow: var(--bqb-glow-primary), 0 8px 28px rgba(27, 136, 194, 0.12) !important;
    transform: translateY(-2px);
}

.bqb-section[data-bqb-section="docs"] .file-input input[type="file"]:not(.bqb-docs-file-input-sr) {
    position: relative;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.95) 0%, rgba(232, 244, 252, 0.9) 100%) !important;
    border: 2px dashed rgba(27, 136, 194, 0.35) !important;
    overflow: hidden;
}

.bqb-section[data-bqb-section="docs"] .file-input:hover input[type="file"] {
    border-color: rgba(14, 165, 233, 0.55) !important;
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.08);
}

.bqb-section[data-bqb-section="docs"] .file-input input[type="file"]::file-selector-button {
    background: var(--bqb-gradient-primary) !important;
    box-shadow: 0 2px 12px rgba(27, 136, 194, 0.35);
    transition: transform 0.15s var(--bqb-ease-out-expo), box-shadow 0.15s ease;
}

.bqb-section[data-bqb-section="docs"] .file-input input[type="file"]::file-selector-button:hover {
    transform: scale(1.04);
    box-shadow: var(--bqb-glow-accent);
}

.bqb-section[data-bqb-section="docs"] .file-input .image-input {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
    box-shadow: inset 0 0 16px rgba(27, 136, 194, 0.06);
}

.bqb-section[data-bqb-section="docs"] .image-preview {
    border: 2px solid rgba(27, 136, 194, 0.3);
    box-shadow: 0 4px 12px rgba(27, 136, 194, 0.15);
    transition: transform 0.2s var(--bqb-ease-out-expo);
}

.bqb-section[data-bqb-section="docs"] .div-container:hover .image-preview {
    transform: scale(1.05);
}

/* --- Relato: chat modal — motion design (específico del chat) --- */
@keyframes bqb-tale-bubble-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bqb-tale-ambient-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes bqb-tale-status-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bqb-section[data-bqb-section="tale"] .bqb-tale-context-panel,
.bqb-section[data-bqb-section="tale"] .bqb-tale-preview-panel {
    background: var(--bqb-glass-bg) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(186, 230, 253, 0.5) !important;
    box-shadow: 0 4px 24px rgba(27, 136, 194, 0.08);
}

.bqb-section[data-bqb-section="tale"] .bqb-open-tale-assistant {
    background: var(--bqb-gradient-primary) !important;
    border: none !important;
    box-shadow: var(--bqb-glow-primary), 0 6px 20px rgba(27, 136, 194, 0.3) !important;
    transition: transform 0.2s var(--bqb-ease-out-expo), box-shadow 0.2s ease !important;
}

.bqb-section[data-bqb-section="tale"] .bqb-open-tale-assistant:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--bqb-glow-accent), 0 10px 28px rgba(27, 136, 194, 0.35) !important;
}

.bqb-tale-assistant-modal .bqb-tale-chat-modal-content {
    overflow: hidden;
    border-radius: 16px;
}

.bqb-tale-assistant-modal .bqb-wa-chat-header {
    background: #008069 !important;
    border: none !important;
    padding: 0.85rem 1rem !important;
}

.bqb-tale-assistant-modal .bqb-wa-chat-header::after {
    display: none !important;
}

.bqb-tale-assistant-modal .bqb-wa-chat-header-main {
    gap: 0.65rem;
}

.bqb-tale-assistant-modal .bqb-wa-chat-header-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}

.bqb-tale-assistant-modal .bqb-wa-chat-header .modal-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    text-shadow: none;
}

.bqb-tale-assistant-modal .bqb-wa-chat-header-status {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.2;
}

.bqb-tale-assistant-modal .bqb-wa-chat-header .bqb-claims-modal-close {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.bqb-tale-assistant-modal .bqb-wa-chat-footer {
    background: #f0f2f5;
    border-top: 1px solid #e9edef;
    padding: 0.5rem 1rem !important;
}

.bqb-tale-assistant-modal .bqb-wa-close-link {
    color: #008069;
    text-decoration: none;
    padding-left: 0;
}

.bqb-tale-assistant-modal .modal-title {
    text-shadow: none;
}

.bqb-tale-chat-status:not(.d-none) {
    animation: bqb-tale-status-in 0.28s var(--bqb-ease-out-expo) both;
}

.bqb-tale-chat-status--ok {
    background: rgba(232, 245, 233, 0.92) !important;
    border: 1px solid rgba(129, 199, 132, 0.65) !important;
    backdrop-filter: blur(8px);
}

.bqb-tale-chat-status--error {
    background: rgba(255, 235, 238, 0.94) !important;
    border: 1px solid rgba(239, 154, 154, 0.7) !important;
    backdrop-filter: blur(8px);
}

.bqb-tale-chat-status--checking {
    background: rgba(227, 242, 253, 0.94) !important;
    border: 1px solid rgba(144, 202, 249, 0.7) !important;
    backdrop-filter: blur(8px);
}

.bqb-tale-typing-dots i {
    background: #8696a0 !important;
    box-shadow: none !important;
}

.bqb-tale-chat-bubble--typing {
    color: #667781 !important;
}

.bqb-tale-assistant-modal #bqbTaleChatConfirm:not(.d-none) {
    animation: bqb-tale-bubble-in 0.35s var(--bqb-ease-emphasis) both;
    box-shadow: 0 0 22px rgba(76, 175, 80, 0.35);
}

body.bqb-claims-page.modal-open .modal-backdrop.show {
    backdrop-filter: blur(6px);
    background-color: rgba(12, 25, 41, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    body.bqb-claims-page .modal.show .bqb-claims-modal,
    .bqb-claims-modal-body--animate > *,
    .bqb-claims-modal-header--info::after,
    .bqb-claims-modal-header--warning::after,
    .bqb-claims-modal-header--warning .bqb-claims-modal-icon,
    .bqb-tale-chat-bubble--enter,
    .bqb-tale-chat-embed-bar,
    .bqb-tale-chat-embed-bar--visible,
    .bqb-tale-chat-status:not(.d-none),
    .bqb-tale-assistant-modal #bqbTaleChatConfirm:not(.d-none),
    .bqb-tale-chat-messages::before {
        animation: none !important;
        transition: none !important;
    }

    .bqb-tale-chat-embed-bar {
        opacity: 1;
        transform: none;
    }
}

/* --- Botones CTA futuristas --- */
.bqb-btn-continue,
#sinisterForm #sinisterSubmit.btn-send,
#sinisterForm .btn-send {
    background: var(--bqb-gradient-primary) !important;
    border: none !important;
    box-shadow: var(--bqb-glow-primary), 0 4px 16px rgba(27, 136, 194, 0.35) !important;
    transition: transform 0.2s var(--bqb-ease-out-expo), box-shadow 0.2s ease !important;
}

.bqb-btn-continue:hover,
#sinisterForm #sinisterSubmit.btn-send:hover:not(:disabled),
#sinisterForm .btn-send:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--bqb-glow-accent), 0 8px 24px rgba(27, 136, 194, 0.4) !important;
}

/* --- Resumen enviar --- */
.bqb-claim-review {
    background: var(--bqb-gradient-surface) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(186, 230, 253, 0.5) !important;
    box-shadow: 0 8px 32px rgba(27, 136, 194, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.bqb-review-chip {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(186, 230, 253, 0.6) !important;
    box-shadow: 0 2px 8px rgba(27, 136, 194, 0.08);
    transition: transform 0.15s var(--bqb-ease-out-expo);
}

.bqb-review-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 136, 194, 0.15);
}

/* ============================================================
   Z-INDEX: modales y backdrops por encima del header sticky
   (header ~50; Bootstrap modal 1050+)
   ============================================================ */
body.bqb-claims-page .bqb-page-header--sticky {
    z-index: 50;
}

body.bqb-claims-page .modal-backdrop {
    z-index: 1040 !important;
}

body.bqb-claims-page .modal {
    z-index: 1050 !important;
}

body.bqb-claims-page .modal.show {
    z-index: 1050 !important;
}

body.bqb-claims-page .bqb-tale-assistant-modal {
    z-index: 1060 !important;
}

body.bqb-claims-page .bqb-tale-assistant-modal.show {
    z-index: 1060 !important;
}

/* Evitar que pasos sticky tapen el overlay */
body.bqb-claims-page.modal-open .bqb-section--done,
body.bqb-claims-page.modal-open .bqb-section--active {
    z-index: auto;
}

body.bqb-claims-page.modal-open .bqb-page-header--sticky {
    z-index: 40;
}
