.sb-wa-wrapper {
    max-width: 1080px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0B1220;
}
.sb-wa-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 860px) {
    .sb-wa-grid { grid-template-columns: 1fr; }
}
.sb-wa-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 25px rgba(11, 18, 32, 0.08);
}
.sb-wa-badge {
    display: inline-block;
    background: #0B1220;
    color: #F5B400;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}
.sb-wa-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #0B1220;
}
.sb-wa-subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    color: #475569;
}
.sb-wa-field {
    margin-bottom: 18px;
}
.sb-wa-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0B1220;
}
.sb-wa-phone-group {
    display: flex;
    gap: 8px;
}
.sb-wa-phone-group select {
    width: 165px;
    padding: 11px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    background: #f8fafc;
    color: #0B1220;
}
.sb-wa-phone-group input,
.sb-wa-field textarea,
.sb-wa-field input[type="text"],
.sb-wa-field input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.sb-wa-phone-group input:focus,
.sb-wa-field textarea:focus,
.sb-wa-field input:focus {
    outline: none;
    border-color: #F5B400;
}
.sb-wa-templates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #64748b;
}
.sb-tpl-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #0B1220;
    transition: all 0.15s;
}
.sb-tpl-btn:hover {
    background: #0B1220;
    color: #F5B400;
    border-color: #0B1220;
}
.sb-wa-short-box {
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
}
.sb-wa-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #0B1220;
}
.sb-wa-short-fields {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.sb-wa-slug-preview {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding-left: 12px;
}
.sb-wa-slug-preview span {
    font-size: 13px;
    font-weight: 700;
    color: #0B1220;
    white-space: nowrap;
}
.sb-wa-slug-preview input {
    border: none !important;
    padding-left: 4px !important;
}
.sb-wa-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 520px) {
    .sb-wa-lead-grid { grid-template-columns: 1fr; }
}
.sb-wa-btn-primary {
    width: 100%;
    background: #F5B400;
    color: #0B1220;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 180, 0, 0.35);
    transition: all 0.2s;
}
.sb-wa-btn-primary:hover {
    background: #fcb800;
    transform: translateY(-1px);
}
.sb-wa-feedback {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
}
.sb-wa-feedback.error { color: #dc2626; }
.sb-wa-feedback.success { color: #16a34a; }

/* MOCKUP TELÉFONO */
.sb-wa-phone-mockup {
    background: #efeae2;
    border: 8px solid #0B1220;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(11, 18, 32, 0.16);
}
.sb-wa-phone-header {
    background: #075e54;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sb-wa-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0B1220;
    color: #F5B400;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}
.sb-wa-contact-name { font-size: 14px; font-weight: 700; }
.sb-wa-contact-status { font-size: 11px; opacity: 0.85; }
.sb-wa-chat-body {
    min-height: 170px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.sb-wa-bubble {
    align-self: flex-end;
    background: #dcf8c6;
    color: #111b21;
    padding: 10px 14px;
    border-radius: 12px 0 12px 12px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
    word-wrap: break-word;
    white-space: pre-wrap;
}
.sb-wa-chat-footer {
    background: #f0f2f5;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #667781;
}
.sb-wa-send-icon {
    background: #00a884;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* RESULTADOS Y QR */
.sb-wa-result-box {
    margin-top: 20px;
    background: #ffffff;
    border: 2px solid #F5B400;
    border-radius: 16px;
    padding: 20px;
}
.sb-wa-result-box h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #0B1220;
}
.sb-wa-copy-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.sb-wa-copy-row input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    background: #f8fafc;
    color: #0B1220;
    font-weight: 600;
}
.sb-wa-copy-row button {
    background: #0B1220;
    color: #F5B400;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
}
.sb-wa-qr-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
#sb-wa-qrcode {
    padding: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.sb-wa-qr-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.sb-wa-btn-secondary,
.sb-wa-btn-outline {
    display: block;
    text-align: center;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.sb-wa-btn-secondary {
    background: #0B1220;
    color: #ffffff;
    border: none;
}
.sb-wa-btn-outline {
    background: #ffffff;
    color: #0B1220;
    border: 1px solid #0B1220;
}
.sb-wa-promo-banner {
    background: #0B1220;
    color: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12.5px;
}
.sb-wa-promo-banner strong {
    color: #F5B400;
    display: block;
    margin-bottom: 4px;
}
.sb-wa-promo-banner p {
    margin: 0 0 8px;
    color: #e2e8f0;
}
.sb-wa-promo-link {
    font-weight: 700;
    color: #F5B400;
    text-decoration: none;
}
