:root {
    --bucs-blue: #1336C0;
    --bucs-blue-dark: #0f2a99;
    --bucs-gray: #64748B;
    --bucs-border: #E2E8F0;
}

.bucs-widget {
    max-width: 480px;
    margin: 0 auto;
    font-family: "Poppins Font", "Plus Jakarta Sans", sans-serif;
}

.bucs-card {
    background: #fff;
    border: 1px solid var(--bucs-border);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 12px 40px rgba(19, 54, 192, 0.08);
}

.bucs-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--bucs-blue);
    margin: 0 0 8px 0;
}

.bucs-subtitle {
    font-size: 14px;
    color: var(--bucs-gray);
    margin: 0 0 24px 0;
}

/* ---------- SELECT ---------- */
.bucs-select-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.bucs-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #0F172A;
    background: #F8FAFC;
    border: 2px solid var(--bucs-border);
    border-radius: 12px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s;
}

.bucs-select:focus {
    outline: none;
    border-color: var(--bucs-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(19, 54, 192, 0.1);
}

.bucs-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--bucs-gray);
    pointer-events: none;
}

/* ---------- SEPARADOR OR ---------- */
.bucs-or-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.bucs-or-badge {
    width: 32px;
    height: 32px;
    background: var(--bucs-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.bucs-or-text {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
}

/* ---------- BÚSQUEDA ---------- */
.bucs-search-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.bucs-search {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #0F172A;
    background: #F8FAFC;
    border: 2px solid var(--bucs-border);
    border-radius: 12px;
    transition: all 0.3s;
}

.bucs-search:focus {
    outline: none;
    border-color: var(--bucs-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(19, 54, 192, 0.1);
}

.bucs-search::placeholder {
    color: #94A3B8;
}

/* Resultados desplegables */
.bucs-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--bucs-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(19, 54, 192, 0.15);
    max-height: 260px;
    overflow-y: auto;
    z-index: 99;
}

.bucs-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #0F172A;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    cursor: pointer;
}

.bucs-result-item:hover {
    background: var(--bucs-blue);
    color: #fff;
}

.bucs-result-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    background: #F8FAFC;
    flex-shrink: 0;
}

.bucs-result-empty {
    padding: 14px;
    font-size: 14px;
    color: var(--bucs-gray);
    text-align: center;
}

/* ---------- BOTÓN CONFIRM ---------- */
.bucs-widget .bucs-confirm,
.bucs-confirm {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    padding: 16px 24px !important;
    background: #1336C0 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    font-family: inherit;
    letter-spacing: 1px;
    line-height: 1 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(19, 54, 192, 0.25);
}

/* Texto y flecha perfectamente centrados */
.bucs-confirm span {
    display: block;
    line-height: 1;
}

.bucs-confirm svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    flex-shrink: 0;
    vertical-align: middle;
    transition: transform 0.3s ease;
    stroke: #ffffff !important;
}

/* ============================================ */
/* HOVER - Azul oscuro elegante                 */
/* ============================================ */
.bucs-widget .bucs-confirm:hover,
.bucs-confirm:hover {
    background: #0f2a99 !important;
    color: #ffffff !important;
    border: none !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(19, 54, 192, 0.4) !important;
}

.bucs-confirm:hover svg {
    transform: translateX(4px);
}

.bucs-confirm:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(19, 54, 192, 0.3) !important;
}

/* Focus visible para accesibilidad */
.bucs-confirm:focus-visible {
    outline: 3px solid rgba(19, 54, 192, 0.4);
    outline-offset: 2px;
}

/* ---------- ERROR ---------- */
.bucs-error {
    display: none;
    margin: 12px 0 0 0;
    font-size: 13px;
    color: #DC2626;
    text-align: center;
}

.bucs-error.show {
    display: block;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
    .bucs-card {
        padding: 28px 20px;
    }

    .bucs-title {
        font-size: 20px;
    }
}