/* ============================================================================
   Waitlist v5 · clips de producto
   Tres mini-apps en HTML/CSS que replican pantallas reales de BEPP (capturas
   del 8-oct-2026) y que un director en JS anima estilo "feature highlight":
   el resto se atenúa, el elemento sube con un aro lima y una leyenda cambia
   bajo el teléfono. Lienzo base 390 × 802; se escala al marco con --k.
   ========================================================================== */

.wl-phone.has-clip { background: #0c1a24; }
.wl-phone.has-clip::after { display: none; }
.wl-phone.has-clip .wl-app {
  position: absolute; inset: 8px; overflow: hidden; border-radius: 26px; background: #E6F0F7;
  --k: 1;
}
.wl-stage { position: absolute; top: 0; left: 0; width: 390px; height: 802px; transform: scale(var(--k)); transform-origin: 0 0; font-family: var(--font-family, Inter, system-ui, sans-serif); color: #1F4F6E; }

/* ---------- barra de estado ---------- */
.wl-sb { position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px 0; font-size: 15px; font-weight: 600; color: #163f59; pointer-events: none; }
.wl-sb i { position: absolute; left: 50%; top: 11px; width: 118px; height: 34px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.wl-sb b { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.wl-sb svg { width: 16px; height: 16px; }
.wl-sb--light { color: #fff; }

/* ---------- pantallas ---------- */
.wl-scr { position: absolute; inset: 0; background: #E6F0F7; opacity: 0; visibility: hidden; transition: opacity 420ms ease-out, transform 520ms cubic-bezier(.2, .8, .2, 1), visibility 0s 420ms; transform: translateX(28px); }
.wl-scr.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wl-scr.is-back { transform: translateX(-28px); }
.wl-scr-veil { position: absolute; inset: 0; z-index: 5; background: rgba(10, 38, 56, .58); opacity: 0; transition: opacity 380ms ease-out; pointer-events: none; }
.wl-scr.is-dim .wl-scr-veil { opacity: 1; }
.wl-hl { position: relative; transition: transform 420ms cubic-bezier(.2, .8, .2, 1), box-shadow 420ms ease-out; }
.wl-stage .wl-scr .wl-hl.is-hl { z-index: 6; transform: translateY(-3px) scale(1.025); box-shadow: 0 0 0 3px var(--accent), 0 18px 40px -10px rgba(5, 25, 40, .55); background-color: #fff; }
.wl-stage .wl-scr .wl-med.is-hl { background-color: #E6F0F7; }
.wl-stage .wl-scr .wl-row.is-hl { padding: 12px 10px; margin: 0 -10px; border-radius: 14px; }

.wl-top { position: relative; height: 112px; display: grid; place-items: end center; padding-bottom: 14px; }
.wl-top h1 { margin: 0; font-size: 22px; font-weight: 700; color: #1D5C80; letter-spacing: -0.01em; }
.wl-top .wl-back { position: absolute; left: 24px; bottom: 14px; width: 24px; height: 24px; color: #1D5C80; }
.wl-body { position: absolute; top: 112px; left: 0; right: 0; bottom: 0; padding: 0 24px; overflow: hidden; }
.wl-roll { position: relative; top: 0; transition: top 900ms cubic-bezier(.3, .7, .2, 1); }

.wl-cardx { background: #fff; border-radius: 20px; padding: 18px 16px; box-shadow: 0 1px 2px rgba(5, 25, 40, .04); }
.wl-cardx + .wl-cardx { margin-top: 14px; }
.wl-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #6B8798; text-transform: uppercase; margin: 0 0 6px; }
.wl-muted { color: #6B8798; }

/* ---------- toque ---------- */
.wl-tap { position: absolute; z-index: 30; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(29, 92, 128, .22); border: 2px solid rgba(255, 255, 255, .9); transform: scale(.4); opacity: 0; pointer-events: none; animation: wl-tap 520ms ease-out both; }
@keyframes wl-tap { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.4); } }

/* ---------- leyenda bajo el teléfono ---------- */
.wl-clip-cap { min-height: 44px; margin-top: var(--space-16); text-align: center; font-size: var(--font-sm); line-height: 1.4; color: var(--wl-ink); font-weight: var(--fw-semibold); opacity: 0; transform: translateY(6px); transition: opacity 320ms ease-out, transform 420ms cubic-bezier(.2, .8, .2, 1); }
.wl-clip-cap.is-on { opacity: 1; transform: none; }

/* ========================= CLIP 1 · receta ========================= */
.wl-lock { background: linear-gradient(180deg, #2C6E9B 0%, #1D5C80 48%, #0f3550 100%); }
.wl-lock-time { position: absolute; top: 74px; left: 0; right: 0; text-align: center; color: #fff; }
.wl-lock-time small { display: block; font-size: 17px; font-weight: 600; opacity: .9; }
.wl-lock-time b { display: block; font-size: 88px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.wl-lock-glow { position: absolute; inset: auto -20% -10% -20%; height: 50%; background: radial-gradient(50% 60% at 50% 100%, rgba(164, 198, 52, .28), transparent 70%); }
.wl-notif { position: absolute; left: 14px; right: 14px; bottom: 118px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 22px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); color: #0a2638; transform: translateY(-140px); opacity: 0; transition: transform 640ms cubic-bezier(.2, .9, .2, 1), opacity 420ms ease-out; }
.wl-notif.is-in { transform: none; opacity: 1; }
.wl-notif img { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 6px; }
.wl-notif b { display: block; font-size: 14px; }
.wl-notif small { display: block; font-size: 13px; line-height: 1.3; color: #3d4f5c; }
.wl-notif em { position: absolute; right: 16px; top: 12px; font-style: normal; font-size: 12px; color: #5f6b7e; }
.wl-lock-btns { position: absolute; bottom: 36px; left: 36px; right: 36px; display: flex; justify-content: space-between; }
.wl-lock-btns i { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.wl-lock-bar { position: absolute; bottom: 10px; left: 50%; width: 134px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .9); transform: translateX(-50%); }

.wl-seg2 { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(5, 25, 40, .06); margin-bottom: 14px; }
.wl-seg2 span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #6B8798; white-space: nowrap; }
.wl-seg2 span.is-on { background: #1D5C80; color: #fff; }
.wl-seg2 svg { width: 16px; height: 16px; }
.wl-seg2 i { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(255, 255, 255, .22); font-size: 12px; font-style: normal; font-weight: 700; }
.wl-seg2 span:not(.is-on) i { background: #DCE8F1; color: #1D5C80; }
.wl-filt { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: #EDF4F9; margin-bottom: 18px; }
.wl-filt span { text-align: center; height: 34px; line-height: 34px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #6B8798; }
.wl-filt span.is-on { background: #fff; color: #1D5C80; }
.wl-rx { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.wl-rx + .wl-rx { margin-top: 14px; }
.wl-rx-ic { width: 48px; height: 48px; border-radius: 14px; background: #E6F0F7; display: grid; place-items: center; color: #1D5C80; }
.wl-rx-ic svg { width: 22px; height: 22px; }
.wl-rx-h { display: flex; justify-content: space-between; gap: 8px; }
.wl-rx-h b { font-size: 15px; color: #1D5C80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-rx-h span { font-size: 13px; color: #6B8798; white-space: nowrap; }
.wl-rx small { display: block; font-size: 12px; color: #6B8798; margin-top: 2px; }
.wl-rx-f { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #DCE8F1; font-size: 12px; color: #6B8798; }
.wl-chip-ok { padding: 3px 8px; border-radius: 6px; background: #E3F2E6; color: #1F7A3A; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.wl-rx.is-new { position: relative; }
.wl-rx.is-new::before { content: "NUEVA"; position: absolute; top: -8px; right: -6px; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .06em; opacity: 0; transform: scale(.6); transition: opacity 300ms, transform 400ms cubic-bezier(.2, .9, .2, 1); }
.wl-rx.is-new.is-in::before { opacity: 1; transform: none; }
.wl-rx.is-new { opacity: 0; transform: translateY(-8px); transition: opacity 400ms ease-out, transform 500ms cubic-bezier(.2, .9, .2, 1); }
.wl-rx.is-new.is-in { opacity: 1; transform: none; }

.wl-ask { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 14px 26px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px -8px rgba(5, 25, 40, .3); font-size: 16px; font-weight: 700; color: #1D5C80; white-space: nowrap; z-index: 4; }
.wl-ask .bepp-punto { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); z-index: -1; }
.wl-ask::after { content: "›"; margin-left: 10px; font-weight: 400; }

.wl-det h2 { margin: 0; font-size: 24px; line-height: 1.15; color: #1D5C80; }
.wl-det p { margin: 6px 0 0; font-size: 14px; line-height: 1.35; color: #6B8798; }
.wl-kv { padding: 12px 0; border-bottom: 1px solid #E6EEF4; }
.wl-kv:last-child { border-bottom: 0; }
.wl-kv b { display: block; font-size: 15px; font-weight: 500; color: #1D5C80; }
.wl-med { margin-top: 8px; padding: 14px; border-radius: 16px; background: #E6F0F7; }
.wl-med b { display: block; font-size: 15px; color: #1D5C80; }
.wl-med small { display: block; font-size: 12px; color: #6B8798; margin-top: 2px; }
.wl-med-dose { display: flex; gap: 8px; margin-top: 10px; }
.wl-med-dose span { padding: 5px 9px; border-radius: 8px; background: #fff; font-size: 11px; font-weight: 600; color: #1D5C80; }

/* ========================= CLIP 2 · chat ========================= */
.wl-chat-top { position: relative; height: 112px; display: flex; align-items: flex-end; gap: 12px; padding: 0 24px 14px; }
.wl-chat-top .wl-back { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #1D5C80; flex: none; }
.wl-chat-top .wl-back svg { width: 16px; height: 16px; }
.wl-chat-top img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.wl-chat-top b { display: block; font-size: 17px; color: #1D5C80; }
.wl-chat-top small { display: block; font-size: 12px; color: #6B8798; }
.wl-chat-top em { margin-left: auto; font-style: normal; font-size: 13px; color: #6B8798; }
.wl-th { position: absolute; top: 112px; left: 0; right: 0; bottom: 92px; padding: 6px 16px 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.wl-day { align-self: center; padding: 5px 14px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 600; color: #6B8798; }
.wl-bbl { align-self: flex-start; max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.35; background: #fff; color: #1D5C80; border-bottom-left-radius: 6px; animation: wl-bbl 380ms cubic-bezier(.2, .9, .2, 1) both; }
.wl-bbl--yo { align-self: flex-end; background: #1D5C80; color: #fff; border-radius: 18px; border-bottom-right-radius: 6px; }
.wl-bbl small { display: block; margin-top: 4px; font-size: 10px; opacity: .7; text-align: right; }
.wl-bbl--yo small::after { content: " ✓✓"; color: #7ED3F3; }
.wl-who { font-size: 11px; color: #6B8798; margin: 4px 0 -4px 4px; }
@keyframes wl-bbl { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.wl-dots { display: inline-flex; gap: 4px; padding: 12px 14px; }
.wl-dots i { width: 7px; height: 7px; border-radius: 50%; background: #88B2CE; animation: wl-dot 1s ease-in-out infinite; }
.wl-dots i:nth-child(2) { animation-delay: .15s; } .wl-dots i:nth-child(3) { animation-delay: .3s; }
.wl-study { align-self: flex-start; width: 82%; padding: 14px; border-radius: 18px; background: #fff; animation: wl-bbl 420ms cubic-bezier(.2, .9, .2, 1) both; }
.wl-study .wl-eyebrow { display: flex; align-items: center; gap: 6px; }
.wl-study .wl-eyebrow svg { width: 13px; height: 13px; }
.wl-study b { display: block; font-size: 16px; color: #1D5C80; }
.wl-study small { display: block; font-size: 12px; color: #6B8798; margin-top: 2px; }
.wl-study .wl-chip-todo { display: inline-block; margin-top: 8px; padding: 4px 8px; border-radius: 6px; background: #E6F0F7; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #4b6b80; }
.wl-study .wl-cta { margin-top: 10px; height: 42px; line-height: 42px; border-radius: 12px; background: #1D5C80; color: #fff; text-align: center; font-size: 15px; font-weight: 700; }
.wl-free { position: absolute; left: 16px; right: 16px; bottom: 96px; display: flex; gap: 6px; align-items: center; font-size: 11px; color: #4b6b80; }
.wl-free svg { width: 13px; height: 13px; color: #2E9E5B; }
.wl-inp { position: absolute; left: 16px; right: 16px; bottom: 28px; display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; }
.wl-inp i { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #1D5C80; }
.wl-inp i svg { width: 18px; height: 18px; }
.wl-inp div { height: 48px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1.5px solid #DCE8F1; display: flex; align-items: center; font-size: 14px; color: #1D5C80; white-space: nowrap; overflow: hidden; }
.wl-inp div.is-empty { color: #8aa0b0; }
.wl-inp div::after { content: ""; width: 1.5px; height: 18px; margin-left: 2px; background: #1D5C80; animation: wl-caret 1s steps(1) infinite; }
.wl-inp div.is-empty::after { display: none; }
@keyframes wl-caret { 50% { opacity: 0; } }

/* ========================= CLIP 3 · compartir ========================= */
.wl-doc { display: flex; align-items: center; gap: 14px; }
.wl-doc img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.wl-doc b { display: block; font-size: 17px; color: #1D5C80; }
.wl-doc small { display: block; font-size: 13px; color: #6B8798; }
.wl-sh-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wl-sh-h b { font-size: 16px; color: #1D5C80; }
.wl-sh-h span { flex: none; padding: 7px 12px; border-radius: 999px; border: 1.5px solid #1D5C80; font-size: 12px; font-weight: 700; color: #1D5C80; }
.wl-sh-p { margin: 6px 0 4px; font-size: 12px; line-height: 1.35; color: #6B8798; }
.wl-row { display: grid; grid-template-columns: 1fr 28px; gap: 12px; align-items: center; padding: 12px 0; }
.wl-row b { display: block; font-size: 15px; font-weight: 500; color: #1D5C80; }
.wl-row small { display: block; font-size: 11.5px; line-height: 1.3; color: #6B8798; margin-top: 1px; }
.wl-chk { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #DCE8F1; background: #fff; display: grid; place-items: center; color: #fff; transition: background-color 260ms ease-out, border-color 260ms ease-out, transform 320ms cubic-bezier(.2, .9, .2, 1); }
.wl-chk svg { width: 13px; height: 13px; stroke-width: 3; opacity: 0; transform: scale(.5); transition: opacity 200ms, transform 320ms cubic-bezier(.2, .9, .2, 1); }
.wl-row.is-on .wl-chk { background: #1D5C80; border-color: #1D5C80; }
.wl-row.is-on .wl-chk svg { opacity: 1; transform: none; }
.wl-row.is-on .wl-chk { animation: wl-chk-pop 360ms cubic-bezier(.2, .9, .2, 1); }
@keyframes wl-chk-pop { 50% { transform: scale(1.18); } }
.wl-toast { position: absolute; z-index: 25; left: 12px; right: 12px; top: 64px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 16px 40px -10px rgba(5, 25, 40, .35); transform: translateY(-140px); opacity: 0; transition: transform 640ms cubic-bezier(.2, .9, .2, 1), opacity 420ms ease-out; }
.wl-toast.is-in { transform: none; opacity: 1; }
.wl-toast svg { flex: none; width: 24px; height: 24px; color: #2E9E5B; margin-top: 2px; }
.wl-toast b { display: block; font-size: 18px; color: #1D5C80; }
.wl-toast small { display: block; font-size: 14px; line-height: 1.35; color: #1F4F6E; margin-top: 2px; }

/* ---------- reduced motion: cuadro final fijo ---------- */
@media (prefers-reduced-motion: reduce) {
  .wl-scr, .wl-hl, .wl-notif, .wl-toast, .wl-rx.is-new, .wl-chk, .wl-clip-cap { transition: none !important; animation: none !important; }
}

/* ========================= CLIP 4 · mis médicos ========================= */
.wl-top .wl-plus { position: absolute; right: 24px; bottom: 14px; width: 24px; height: 24px; color: #1D5C80; }
.wl-md { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 18px 14px; }
.wl-md > div { min-width: 0; }
.wl-md img, .wl-md .wl-md-ini { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.wl-md-ini { display: grid; place-items: center; background: #D9E9A3; color: #1D5C80; font-size: 15px; font-weight: 700; }
.wl-md b { display: block; font-size: 15px; color: #1D5C80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-md small { display: block; font-size: 12.5px; color: #6B8798; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-md-badge { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: #E3ECFF; color: #2E5FBF; font-size: 11px; font-weight: 700; }
.wl-md-cta { padding: 8px 13px; border-radius: 999px; border: 1.5px solid #1D5C80; font-size: 12.5px; font-weight: 700; color: #1D5C80; }
.wl-tabbar { position: absolute; left: 16px; right: 16px; bottom: 26px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; z-index: 4; }
.wl-tabbar > div { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px -8px rgba(5, 25, 40, .25); }
.wl-tabbar span { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 999px; font-size: 10px; font-weight: 600; color: #6B8798; }
.wl-tabbar span.is-on { background: #E6F0F7; color: #1D5C80; }
.wl-tabbar span svg { width: 20px; height: 20px; }
.wl-tabbar i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px -8px rgba(5, 25, 40, .25); color: #1D5C80; }
.wl-tabbar i svg { width: 22px; height: 22px; }
.wl-stage .wl-scr .wl-md-badge.is-hl { background: #E3ECFF; }
