/* public/css/experiencia.css — RestobarApp Experiencia Inmersiva 2.0 */
:root {
    --exp-bg: #05070c;
    --exp-primary: #004aad;
    --exp-orange: #ff7a00;
    --exp-green: #00c897;
    --exp-wa-bg: #0b141a;
    --exp-wa-header: #1f2c34;
    --exp-wa-in: #202c33;
    --exp-wa-out: #005c4b;
    --exp-text: #f3f6fb;
    --exp-muted: rgba(243, 246, 251, 0.68);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 18% 15%, rgba(0, 74, 173, 0.36), transparent 45%),
                radial-gradient(circle at 82% 85%, rgba(255, 122, 0, 0.2), transparent 45%),
                var(--exp-bg);
    color: var(--exp-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hidden { display: none !important; }
.w-full-btn { width: 100%; }
.mt-8 { margin-top: 8px; }
.me-1 { margin-right: 4px; }

/* Topbar */
.exp-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    background: rgba(5, 7, 12, 0.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.exp-topbar-link {
    color: var(--exp-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.exp-topbar-link:hover { color: #fff; }

.exp-topbar-brand {
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.exp-dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--exp-green);
    box-shadow: 0 0 10px var(--exp-green);
}

.exp-sound-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Stage & Phone Chassis */
.exp-stage {
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
}

.phone-shell {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 100%;
    max-height: 850px;
    background: #080b12;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 520px) {
    .exp-stage { padding: 64px 16px 16px; }
    .phone-shell {
        border-radius: 38px;
        border: 3px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 30px 90px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(0, 200, 151, 0.16);
    }
}

.phone-statusbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px 4px;
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    pointer-events: none;
}

.phone-notch {
    width: 92px;
    height: 21px;
    border-radius: 14px;
    background: #000;
}

.phone-icons { display: inline-flex; gap: 5px; }

/* iOS Push Notification Banner */
.ios-push-banner {
    position: absolute;
    top: 38px;
    left: 10px;
    right: 10px;
    z-index: 55;
    background: rgba(24, 32, 46, 0.95);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(37, 211, 102, 0.48);
    border-radius: 18px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    animation: dropPush 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dropPush {
    from { opacity: 0; transform: translateY(-90px); }
    to { opacity: 1; transform: translateY(0); }
}

.ios-push-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ios-push-body { flex: 1; min-width: 0; }
.ios-push-head { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 2px; }
.ios-push-head span { color: var(--exp-muted); font-size: 0.7rem; }
.ios-push-body p { margin: 0; font-size: 0.79rem; color: rgba(255, 255, 255, 0.9); line-height: 1.28; }

.ios-push-cta {
    background: #25d366;
    color: #032211;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 6px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

/* Scenes */
.exp-scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.32s ease, transform 0.32s ease;
    padding: 44px 18px 20px;
}

.exp-scene.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Common Buttons */
.btn-exp-primary {
    border: 0;
    border-radius: 15px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #00d09e, #00a87e);
    color: #031f17;
    font-weight: 800;
    font-size: 0.96rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 200, 151, 0.34);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-exp-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(0, 200, 151, 0.48); }

.btn-exp-outline {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-exp-ghost {
    color: var(--exp-muted);
    font-size: 0.82rem;
    text-decoration: none;
    text-align: center;
    padding: 8px;
    display: block;
}
.btn-exp-ghost:hover { color: #fff; }

.pulse-btn { animation: softPulse 2s infinite; }
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 208, 158, 0.55); }
    65% { box-shadow: 0 0 0 14px rgba(0, 208, 158, 0); }
}

/* Thin bottom progress bar (videos & call) */
.bottom-progress-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    z-index: 30;
}

.bottom-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--exp-orange), var(--exp-green));
    transition: width 0.12s linear;
}

/* === ESCENA 0: INTRO === */
#scene-intro {
    justify-content: space-between;
    background: radial-gradient(circle at 50% 18%, rgba(0, 74, 173, 0.48), transparent 58%),
                radial-gradient(circle at 80% 78%, rgba(255, 122, 0, 0.22), transparent 50%),
                #060911;
}

.intro-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    margin-top: 8px;
}

.intro-center { text-align: center; padding: 0 6px; }
.intro-kicker { color: var(--exp-green); font-weight: 700; font-size: 0.82rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.intro-headline { font-size: 1.72rem; line-height: 1.18; font-weight: 900; margin: 0 0 14px; }
.intro-headline span { color: var(--exp-orange); }
.intro-sub { font-size: 0.94rem; line-height: 1.48; color: var(--exp-muted); margin: 0 0 18px; }

.intro-volume-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 122, 0, 0.15);
    border: 1px solid rgba(255, 122, 0, 0.42);
    color: #ffbe7a;
    font-size: 0.8rem;
    font-weight: 700;
}

.intro-actions { display: flex; flex-direction: column; gap: 8px; }

/* === ESCENA 1: VIDEOLLAMADA === */
#scene-call {
    padding: 0;
    background: radial-gradient(circle at 50% 24%, rgba(0, 200, 151, 0.24), transparent 55%), #070d18;
}

.call-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    z-index: 1;
}

.call-ring-layer, .call-connecting, .call-live-layer {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 54px 20px 28px;
}

.call-top { text-align: center; margin-top: 12px; }
.call-status-pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(37, 211, 102, 0.48);
    color: #6df59f;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.call-avatar-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-avatar {
    position: relative;
    z-index: 2;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: linear-gradient(145deg, #004aad, #09162d);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.call-avatar.small-av { width: 82px; height: 82px; margin: 0 auto 16px; }

.call-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.55);
    animation: callRipple 1.9s infinite ease-out;
}
.call-ring.ring-2 { animation-delay: 0.75s; }
@keyframes callRipple {
    0% { transform: scale(0.95); opacity: 0.9; }
    100% { transform: scale(1.65); opacity: 0; }
}

.call-name { font-size: 1.65rem; font-weight: 800; margin: 0; }
.call-sub { color: var(--exp-muted); font-size: 0.9rem; margin: 4px 0 0; }

.call-actions { display: flex; justify-content: space-around; margin-bottom: 14px; }
.call-action-col { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--exp-muted); }

.call-circle-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}
.call-circle-btn.reject { background: #e11d48; box-shadow: 0 10px 26px rgba(225, 29, 72, 0.42); }
.call-circle-btn.accept { background: #22c55e; box-shadow: 0 10px 28px rgba(34, 197, 94, 0.55); animation: callShake 1.35s infinite; }
@keyframes callShake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    18% { transform: rotate(-9deg) scale(1.07); }
    36% { transform: rotate(9deg) scale(1.07); }
    54% { transform: rotate(-6deg) scale(1.04); }
}

.call-connecting { justify-content: center; align-items: center; gap: 16px; background: rgba(0, 0, 0, 0.85); }
.connect-spinner { width: 52px; height: 52px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: var(--exp-green); animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.connect-label { font-size: 0.85rem; font-weight: 800; letter-spacing: 1.5px; color: var(--exp-green); }

.call-live-layer { background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 25%, transparent 55%, rgba(0, 0, 0, 0.88) 100%); }
.call-live-header { display: flex; justify-content: space-between; align-items: center; }
.call-live-name { font-weight: 800; font-size: 1rem; }
.call-timer { font-family: ui-monospace, monospace; font-size: 0.85rem; color: #6df59f; font-weight: 700; }
.call-hd-badge { background: rgba(239, 68, 68, 0.85); color: #fff; font-size: 0.68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }

.call-live-center { text-align: center; margin: auto 0; }
.call-waveform { display: flex; align-items: center; justify-content: center; gap: 5px; height: 42px; }
.call-waveform span { width: 5px; height: 10px; border-radius: 99px; background: linear-gradient(180deg, #00e6ad, #ff7a00); animation: wavePulse 1s infinite ease-in-out; }
.call-waveform span:nth-child(2n) { animation-delay: 0.2s; }
.call-waveform span:nth-child(3n) { animation-delay: 0.4s; }
@keyframes wavePulse { 0%, 100% { height: 10px; } 50% { height: 38px; } }

.call-live-bottom { display: flex; flex-direction: column; gap: 12px; }
.call-captions {
    background: rgba(10, 15, 26, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 13px 15px;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.42;
    text-align: center;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-controls-glass {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.glass-ctrl {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}
.glass-ctrl.next-ctrl {
    width: auto;
    padding: 0 16px;
    border-radius: 999px;
    border: 0;
    background: var(--exp-green);
    color: #032018;
    font-weight: 800;
    font-size: 0.84rem;
    gap: 5px;
    cursor: pointer;
}

/* === ESCENA 2: DIAGNÓSTICO COMANDA === */
#scene-quiz {
    justify-content: center;
    background: radial-gradient(circle at 50% 20%, rgba(255, 122, 0, 0.18), transparent 60%), #0a0d14;
}

.receipt-paper {
    position: relative;
    background: linear-gradient(180deg, #faf6ee 0%, #f1eadc 100%);
    color: #1c1917;
    border-radius: 16px;
    padding: 20px 16px 18px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.65);
    border: 1px solid #d6cbb8;
    max-height: 92%;
    overflow-y: auto;
}

.receipt-clip {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #64748b, #cbd5e1, #475569);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #c8bca6;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.receipt-brand { font-family: ui-monospace, monospace; font-weight: 900; font-size: 0.78rem; color: #004aad; letter-spacing: 0.8px; }
.receipt-sub { font-size: 0.7rem; font-weight: 700; color: #78716c; margin-top: 2px; }

.quiz-q-label { font-family: ui-monospace, monospace; font-size: 0.72rem; font-weight: 800; color: #b91c1c; margin-bottom: 4px; }
.quiz-q-title { font-size: 1.15rem; font-weight: 900; margin: 0 0 12px; color: #1c1917; }

.quiz-options { display: flex; flex-direction: column; gap: 9px; }
.quiz-opt-btn {
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #d4c8b4;
    background: #fffdf9;
    color: #1c1917;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
}
.quiz-opt-btn:hover { border-color: #004aad; background: #eff6ff; transform: translateX(3px); }

.handwritten-note {
    font-style: italic;
    font-weight: 700;
    font-size: 0.82rem;
    color: #b91c1c;
    border-left: 3px solid #b91c1c;
    padding-left: 8px;
    margin-bottom: 12px;
}

.leak-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.leak-card {
    background: #18181b;
    color: #fff;
    border-radius: 10px;
    padding: 9px;
    transform: rotate(-1.5deg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.leak-card.tilt-r { transform: rotate(1.5deg); }
.leak-tag { display: block; font-size: 0.6rem; font-weight: 800; color: #fbbf24; }
.leak-red { display: block; font-size: 0.9rem; color: #f87171; margin: 3px 0; }
.leak-card small { font-size: 0.65rem; color: #a1a1aa; line-height: 1.2; display: block; }

.diagnosis-stamp {
    margin: 14px auto;
    padding: 10px 14px;
    border: 3px solid #b91c1c;
    border-radius: 10px;
    color: #b91c1c;
    text-align: center;
    transform: rotate(-4deg);
    animation: stampPop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes stampPop {
    from { opacity: 0; transform: scale(1.7) rotate(-12deg); }
    to { opacity: 1; transform: scale(1) rotate(-4deg); }
}
.diagnosis-stamp span { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 2px; }
.diagnosis-stamp strong { font-size: 1.35rem; font-weight: 900; }

.receipt-summary-text { font-size: 0.88rem; line-height: 1.45; color: #292524; text-align: center; margin: 12px 0; }
.receipt-waiting-hint { text-align: center; font-size: 0.8rem; font-weight: 700; color: #004aad; }
.mt-fallback { margin-top: 10px; width: 100%; }

/* === ESCENA 3: WHATSAPP CHAT & NOTAS DE VOZ === */
#scene-whatsapp {
    padding: 32px 0 0;
    background: var(--exp-wa-bg);
}

.wa-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--exp-wa-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wa-back { background: none; border: 0; color: #fff; font-size: 1.15rem; cursor: pointer; padding: 2px; }
.wa-avatar { border-radius: 50%; background: #004aad; padding: 3px; }
.wa-name { font-weight: 800; font-size: 0.92rem; display: flex; align-items: center; gap: 4px; }
.wa-name i { color: #38bdf8; font-size: 0.85rem; }
.wa-status { font-size: 0.74rem; color: #5ef2ca; }

.wa-chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 18px 18px;
}
.wa-chat-body > * {
    flex-shrink: 0;
}

.wa-msg {
    max-width: 88%;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: msgSlide 0.25s ease;
}
@keyframes msgSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.wa-msg.in { align-self: flex-start; background: var(--exp-wa-in); border-top-left-radius: 4px; }
.wa-msg.out { align-self: flex-end; background: var(--exp-wa-out); border-top-right-radius: 4px; }
.wa-msg-meta { text-align: right; font-size: 0.66rem; color: rgba(255, 255, 255, 0.55); margin-top: 4px; }
.wa-checks { color: #53bdeb; margin-left: 3px; }

/* WhatsApp Voice Note Bubble */
.wa-vn-card {
    max-width: 90%;
    align-self: flex-start;
    background: var(--exp-wa-in);
    border-radius: 14px;
    border-top-left-radius: 4px;
    padding: 10px 12px;
    animation: msgSlide 0.25s ease;
}
.wa-vn-top { display: flex; align-items: center; gap: 10px; }
.wa-vn-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #25d366;
    color: #042211;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.wa-vn-play.played { background: #38bdf8; color: #052030; }

.wa-vn-wave {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2.5px;
    height: 28px;
}
.wa-vn-wave span {
    flex: 1;
    background: rgba(255, 255, 255, 0.26);
    border-radius: 99px;
    transition: background 0.15s ease;
}
.wa-vn-wave span.filled { background: #25d366; }

.wa-vn-avatar-wrap { position: relative; flex-shrink: 0; }
.wa-vn-avatar { width: 38px; height: 38px; border-radius: 50%; background: #004aad; padding: 3px; display: block; }
.wa-vn-mic {
    position: absolute;
    bottom: -2px;
    left: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--exp-wa-in);
    color: #25d366;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-vn-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.62);
}

.wa-vn-transcript {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.88);
}

/* Carousel inside WhatsApp */
.wa-carousel-box {
    max-width: 92%;
    align-self: flex-start;
    background: #17232c;
    border: 1px solid rgba(0, 200, 151, 0.32);
    border-radius: 14px;
    padding: 12px;
}
.wa-carousel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 0.72rem; color: #5ef2ca; font-weight: 800; }
.wa-carousel-card h4 { margin: 0 0 5px; font-size: 0.94rem; color: #ffb266; }
.wa-carousel-card p { margin: 0 0 10px; font-size: 0.81rem; color: rgba(255, 255, 255, 0.85); line-height: 1.4; }
.wa-carousel-btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 9px;
    background: #25d366;
    color: #032110;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
}

/* Instagram Preview Card inside WhatsApp */
.wa-ig-preview {
    width: 90%;
    max-width: 90%;
    flex-shrink: 0;
    align-self: flex-start;
    background: linear-gradient(145deg, #1b1628, #141c2c);
    border: 1.5px solid rgba(255, 122, 0, 0.65);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48);
    animation: msgSlide 0.3s ease;
}
.wa-ig-thumb {
    padding: 18px 14px;
    background: radial-gradient(circle at top right, rgba(255, 122, 0, 0.35), transparent 60%), #0d1320;
    text-align: center;
}
.wa-ig-play-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a00, #e1306c);
    color: #fff;
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.wa-ig-meta { padding: 10px 12px; background: #182229; }
.wa-ig-meta strong { display: block; font-size: 0.84rem; color: #fff; }
.wa-ig-meta small { color: #5ef2ca; font-size: 0.74rem; }

.wa-composer {
    padding: 10px 12px 16px;
    background: var(--exp-wa-header);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.wa-composer-wait { text-align: center; font-size: 0.8rem; color: var(--exp-muted); padding: 6px; }
.wa-send-pill {
    width: 100%;
    border: 1px solid rgba(37, 211, 102, 0.55);
    background: #10251c;
    color: #fff;
    border-radius: 999px;
    padding: 8px 8px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    animation: softPulse 1.8s infinite;
}
.wa-send-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #25d366;
    color: #032110;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === ESCENA 4: INSTAGRAM REELS === */
#scene-reels { padding: 0; background: #000; }

.reels-topbar {
    position: absolute;
    top: 38px;
    left: 14px;
    right: 14px;
    z-index: 25;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.reels-title { font-weight: 900; font-size: 1.05rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.reels-offer-pill {
    border: 1px solid rgba(0, 200, 151, 0.65);
    background: rgba(0, 200, 151, 0.2);
    backdrop-filter: blur(8px);
    color: #e6fff8;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.reels-viewport { position: absolute; inset: 0; overflow: hidden; cursor: pointer; }
.reel-video { width: 100%; height: 100%; object-fit: cover; }

/* Motion Graphics 60fps sincronizados (zona segura superior) */
.reel-mg-layer {
    position: absolute;
    top: 84px;
    left: 14px;
    right: 68px;
    z-index: 22;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.reel-mg-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 9px 13px 9px 10px;
    border-radius: 16px;
    background: rgba(7, 13, 25, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 200, 151, 0.55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    animation: mgSpringIn 0.42s cubic-bezier(0.22, 1.28, 0.36, 1) forwards;
}

.reel-mg-pill.accent-orange {
    border-color: rgba(255, 138, 0, 0.65);
}

.reel-mg-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(0, 200, 151, 0.25), rgba(0, 74, 173, 0.4));
    border: 1px solid rgba(0, 200, 151, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.reel-mg-pill.accent-orange .reel-mg-icon {
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.28), rgba(255, 180, 0, 0.2));
    border-color: rgba(255, 138, 0, 0.5);
}

.reel-mg-robot-dot {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #004aad;
    border: 1.5px solid #070d19;
    object-fit: contain;
    padding: 1px;
}

.reel-mg-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reel-mg-sub {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5ef2ca;
    line-height: 1.15;
}

.reel-mg-pill.accent-orange .reel-mg-sub {
    color: #ffb86c;
}

.reel-mg-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

@keyframes mgSpringIn {
    0% { opacity: 0; transform: translateY(-10px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.reel-pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 23;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    pointer-events: none;
}

.reel-kinetic-stage {
    width: 100%;
    height: 100%;
    padding: 84px 72px 180px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(0, 74, 173, 0.55), transparent 55%),
                radial-gradient(circle at bottom right, rgba(255, 122, 0, 0.34), transparent 55%),
                #080c15;
}

.kinetic-card {
    background: rgba(14, 20, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6);
    animation: msgSlide 0.35s ease;
}
.kinetic-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; margin-bottom: 10px; background: rgba(0, 200, 151, 0.2); color: #5ef2ca; border: 1px solid rgba(0, 200, 151, 0.45); }
.kinetic-card h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.24; }
.kinetic-card p { margin: 0 0 12px; font-size: 0.83rem; color: var(--exp-muted); line-height: 1.42; }

.kinetic-list { background: #070b12; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 10px 12px; font-size: 0.79rem; }
.kinetic-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.kinetic-row:last-child { border-bottom: 0; }
.kinetic-pill { background: rgba(0, 200, 151, 0.2); color: #5ef2ca; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }

.reels-side-rail {
    position: absolute;
    right: 10px;
    bottom: 175px;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rail-btn {
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    width: 52px;
    padding: 8px 4px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
}
.rail-btn i { font-size: 1.35rem; transition: transform 0.2s ease, color 0.2s ease; }
.rail-btn.liked i { color: #ff2e63; transform: scale(1.22); }

.reels-bottom-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    z-index: 24;
    padding: 24px 14px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 28%, rgba(0, 0, 0, 0.97) 68%, #000000 100%);
}
.reels-author-row { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.reels-author-logo { border-radius: 50%; background: #004aad; padding: 2px; border: 1.5px solid var(--exp-orange); }
.reels-handle { font-weight: 800; font-size: 0.9rem; }
.reels-verified { color: #38bdf8; font-size: 0.85rem; }
.reels-ep-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 800;
    color: #5ef2ca;
    background: rgba(0, 200, 151, 0.16);
    border: 1px solid rgba(0, 200, 151, 0.42);
    padding: 3px 10px;
    border-radius: 999px;
}
.reels-caption { font-size: 0.82rem; color: rgba(255, 255, 255, 0.9); line-height: 1.38; margin: 0 0 8px; }

/* Indicador inmersivo de deslizar al finalizar el Reel */
.reel-swipe-prompt {
    width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    animation: msgSlide 0.35s ease;
}

.swipe-chevrons {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.55;
    color: #5ef2ca;
    font-size: 0.95rem;
    animation: swipeBounceUp 1.3s ease-in-out infinite;
}

@keyframes swipeBounceUp {
    0%, 100% { transform: translateY(2px); opacity: 0.7; }
    50% { transform: translateY(-4px); opacity: 1; }
}

.reel-slide-in {
    animation: reelSlideUp 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes reelSlideUp {
    from { opacity: 0.45; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Comments Drawer */
.reels-comments-drawer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68%;
    z-index: 42;
    background: #141a27;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    flex-direction: column;
    padding: 8px 14px 14px;
}
.drawer-handle { width: 42px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); margin: 0 auto 8px; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; }
.drawer-close { background: none; border: 0; color: #fff; font-size: 1rem; cursor: pointer; }
.drawer-list { flex: 1; overflow-y: auto; padding: 10px 0; display: flex; flex-direction: column; gap: 9px; }

.comment-card { background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 9px 11px; font-size: 0.81rem; }
.comment-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.comment-card-head strong { color: #5ef2ca; font-size: 0.77rem; }
.comment-card-head span { color: var(--exp-muted); font-size: 0.7rem; }
.comment-pin { background: rgba(255, 122, 0, 0.2); color: #ffb266; font-size: 0.64rem; padding: 1px 6px; border-radius: 999px; font-weight: 700; }

.drawer-form-v2 { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.drawer-form-v2 input {
    background: #0a0f18;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.82rem;
}
.drawer-input-row { display: flex; gap: 7px; }
.drawer-input-row input { flex: 1; }
.drawer-input-row button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--exp-green); color: #032018; cursor: pointer; flex-shrink: 0; }

/* Final Offer Modal */
.final-offer-overlay {
    position: absolute;
    inset: 0;
    z-index: 48;
    background: rgba(5, 7, 12, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.final-offer-card {
    position: relative;
    width: 100%;
    max-height: 92%;
    overflow-y: auto;
    background: linear-gradient(165deg, #10192b 0%, #0a101c 100%);
    border: 1.5px solid rgba(0, 200, 151, 0.55);
    border-radius: 22px;
    padding: 18px 16px 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78);
    animation: msgSlide 0.32s ease;
}
.final-close-x { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, 0.08); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.final-badge { display: inline-block; background: rgba(255, 122, 0, 0.18); border: 1px solid rgba(255, 122, 0, 0.52); color: #ffb266; font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.final-offer-card h3 { margin: 0 0 5px; font-size: 1.35rem; font-weight: 900; line-height: 1.18; }
.final-offer-card h3 span { color: var(--exp-green); }
.final-personal-sub { font-size: 0.81rem; color: var(--exp-muted); line-height: 1.38; margin: 0 0 12px; }

/* Beneficios organizados en celdas / filas limpias */
.final-cells {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 14px;
}

.final-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.final-cell-highlight {
    background: rgba(0, 200, 151, 0.1);
    border-color: rgba(0, 200, 151, 0.38);
}

.final-cell-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0, 74, 173, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.final-cell-highlight .final-cell-icon {
    background: rgba(0, 200, 151, 0.22);
    border-color: rgba(0, 200, 151, 0.45);
}

.final-cell-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.final-cell-text strong {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.final-cell-text span {
    font-size: 0.73rem;
    color: rgba(243, 246, 251, 0.72);
    line-height: 1.28;
}

/* Botones de cierre claramente diferenciados */
.final-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-final-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, #ff7a00 0%, #ff9924 100%);
    color: #160900;
    font-size: 0.93rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(255, 122, 0, 0.36);
    transition: transform 0.18s ease, filter 0.18s ease;
}
.btn-final-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }

.btn-final-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(37, 211, 102, 0.65);
    background: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
    color: #032110;
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
    transition: transform 0.18s ease, filter 0.18s ease;
}
.btn-final-whatsapp:hover { transform: translateY(-1px); filter: brightness(1.06); }

.btn-final-web {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: rgba(0, 74, 173, 0.24);
    color: #bfdbfe;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease;
}
.btn-final-web:hover { background: rgba(0, 74, 173, 0.38); color: #ffffff; }

.exp-toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(0, 200, 151, 0.55);
    color: #fff;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}
