/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
    --wpt-orange: #f97316;
    --wpt-orange-dk: #ea580c;
    --wpt-dark: #0f172a;
    --wpt-dark2: #1e3a5f;
    --wpt-surface: #ffffff;
    --wpt-text: #0f172a;
    --wpt-muted: #6b7280;
    --wpt-border: #e2e8f0;
    --wpt-radius: 20px;
    --wpt-shadow: 0 40px 80px rgba(0,0,0,.35);
    --wpt-font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Widget Flotante ────────────────────────────────────────────────────── */
.wpt-try-bar {
    position: fixed;
    left: 24px;
    bottom: 36px;
    z-index: 9999;
    font-family: var(--wpt-font);
}

.wpt-widget__card {
    width: 255px;
    background: #fff;
    border-radius: var(--wpt-radius);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 8px 32px rgba(0,0,0,0.12),
        0 2px 8px rgba(0,0,0,0.06);
    animation: wpt-rise .45s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes wpt-rise {
    from { opacity: 0; transform: translateY(40px) scale(.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.wpt-widget__header {
    background: linear-gradient(135deg, var(--wpt-dark) 0%, var(--wpt-dark2) 100%);
    padding: 16px 18px 14px;
    position: relative;
    overflow: hidden;
}

.wpt-widget__header::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(249,115,22,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.wpt-widget__header::after {
    content: '';
    position: absolute;
    bottom: -30px; left: 20px;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.wpt-try-bar__dismiss {
    position: absolute;
    top: 10px; right: 12px;
    background: rgba(255,255,255,0.12) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 22px; height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.6) !important;
    font-size: 13px;
    line-height: 1;
    transition: background .15s, color .15s !important;
    z-index: 2;
    padding: 0 !important;
    box-shadow: none !important;
}

.wpt-try-bar__dismiss:hover {
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

.wpt-widget__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(249,115,22,0.15);
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fb923c;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.wpt-widget__pill-dot {
    width: 6px; height: 6px;
    background: #f97316;
    border-radius: 50%;
    animation: wpt-pulse 1.8s ease-in-out infinite;
}

@keyframes wpt-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.7); }
}

.wpt-widget__title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.wpt-widget__sub {
    font-size: 11.5px;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Body */
.wpt-widget__body {
    padding: 14px 18px 18px;
}

.wpt-widget__features {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.wpt-widget__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
}

.wpt-widget__feature-icon {
    width: 20px; height: 20px;
    background: #f0fdf4;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

/* Button */
.wpt-try-bar__btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    background: linear-gradient(135deg, var(--wpt-orange), var(--wpt-orange-dk)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    font-family: var(--wpt-font) !important;
    letter-spacing: .01em;
    transition: transform .15s, box-shadow .15s !important;
    box-shadow: 0 4px 14px rgba(249,115,22,.35) !important;
    text-align: center;
    box-sizing: border-box !important;
}

.wpt-try-bar__btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(249,115,22,.45) !important;
}

.wpt-try-bar__btn:active { transform: translateY(0) !important; }

.wpt-try-bar__btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px; height: 12px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wpt-spin .7s linear infinite;
    vertical-align: middle;
    margin-left: 7px;
}

@keyframes wpt-spin { to { transform: rotate(360deg); } }

.wpt-widget__timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* Tab colapsado */
.wpt-widget__tab {
    display: none;
    background: linear-gradient(135deg, var(--wpt-dark), var(--wpt-dark2));
    border-radius: 12px 12px 0 0;
    padding: 10px 16px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    transition: background .2s;
}

.wpt-widget__tab:hover {
    background: linear-gradient(135deg, #1e293b, #2d4a6e);
}

.wpt-widget__tab-text {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.wpt-widget__tab-badge {
    background: var(--wpt-orange);
    color: #fff;
    border-radius: 50px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
}

/* ── Modal Backdrop ─────────────────────────────────────────────────────── */
.wpt-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    font-family: var(--wpt-font);
}

.wpt-modal.is-open { display: flex; }

.wpt-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,10,20,.88);
    backdrop-filter: blur(6px);
}

/* ── Modal Box ──────────────────────────────────────────────────────────── */
.wpt-modal__box {
    position: relative;
    background: var(--wpt-surface);
    border-radius: 24px;
    padding: 40px 36px;
    width: min(460px, calc(100vw - 32px));
    box-shadow: var(--wpt-shadow);
    text-align: center;
    z-index: 1;
    animation: wpt-pop .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes wpt-pop {
    from { opacity: 0; transform: scale(.85) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.wpt-modal__close {
    position: absolute;
    top: 16px; right: 18px;
    background: #f3f4f6;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #9ca3af;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.wpt-modal__close:hover { background: #e5e7eb; color: #374151; }

.wpt-modal__icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--wpt-dark), var(--wpt-dark2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(15,23,42,.25);
}

.wpt-modal__state h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--wpt-text);
    margin: 0 0 8px;
}

.wpt-modal__sub {
    color: var(--wpt-muted);
    font-size: 14px;
    margin: 0 0 24px;
}

/* Steps */
.wpt-steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }
.wpt-step { height: 4px; width: 32px; border-radius: 99px; background: #e5e7eb; transition: background .4s, width .3s; }
.wpt-step.active { background: var(--wpt-orange); width: 48px; }
.wpt-step.done   { background: var(--wpt-dark); }

/* Progress */
.wpt-progress-wrap { margin-bottom: 8px; }
.wpt-progress-bar { height: 6px; background: #f3f4f6; border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.wpt-progress-fill { height: 100%; background: linear-gradient(90deg, var(--wpt-orange), #fb923c); border-radius: 99px; width: 0%; transition: width .6s ease; }
.wpt-progress-info { display: flex; justify-content: space-between; font-size: 12px; color: #9ca3af; }

/* Badge */
.wpt-badge { display: inline-flex; align-items: center; gap: 6px; background: #f0fdf4; color: #059669; border: 1px solid #a7f3d0; border-radius: 50px; padding: 7px 18px; font-size: 13px; font-weight: 700; margin: 16px 0; }

/* Credentials */
.wpt-credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; text-align: left; }
.wpt-cred-box { background: #f8fafc; border: 1px solid var(--wpt-border); border-radius: 12px; padding: 12px 14px; position: relative; }
.wpt-cred-box label { display: block; font-size: 9px; font-weight: 800; letter-spacing: .1em; color: #94a3b8; text-transform: uppercase; margin-bottom: 5px; }
.wpt-cred-box span { font-size: 14px; font-weight: 700; color: var(--wpt-text); font-family: 'Courier New', monospace; word-break: break-all; }
.wpt-copy-btn { position: absolute; top: 8px; right: 8px; background: none; border: none; cursor: pointer; color: var(--wpt-muted); font-size: 16px; padding: 2px; border-radius: 4px; transition: background .15s, color .15s; }
.wpt-copy-btn:hover { background: #e5e7eb; color: var(--wpt-text); }
.wpt-copy-btn.copied { color: #059669; }

/* Buttons */
.wpt-btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--wpt-orange), var(--wpt-orange-dk)); color: #fff !important; text-decoration: none !important; border: none; border-radius: 12px; padding: 14px 24px; font-size: 15px; font-weight: 800; cursor: pointer; margin-top: 12px; width: 100%; font-family: var(--wpt-font); box-shadow: 0 4px 16px rgba(249,115,22,.3); transition: transform .15s, box-shadow .15s; text-align: center; }
.wpt-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,.4); color: #fff !important; }

.wpt-btn-theme { background: linear-gradient(135deg, #16a34a, #15803d) !important; box-shadow: 0 4px 14px rgba(22,163,74,.35) !important; margin-bottom: 10px; }
.wpt-btn-theme:hover { box-shadow: 0 6px 20px rgba(22,163,74,.45) !important; color: #fff !important; }

.wpt-btn-secondary { display: block; background: #f9fafb; color: #374151 !important; text-decoration: none !important; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 24px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; transition: background .15s; font-family: var(--wpt-font); margin-top: 8px; }
.wpt-btn-secondary:hover { background: #f3f4f6; color: #111 !important; }

.wpt-expires { font-size: 12px; color: #9ca3af; margin: 10px 0 0; text-align: center; }

/* Responsive */
@media (max-width: 480px) {
    .wpt-try-bar { left: 12px; bottom: 20px; }
    .wpt-widget__card { width: calc(100vw - 40px); }
    .wpt-credentials { grid-template-columns: 1fr; }
}
