/*
 * NALAU — Demo interactiva (CSS autocontenido)
 */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --bambú:   #6B8F71;
  --musgo:   #8FA68E;
  --agua:    #7A9EA1;
  --madera:  #B89468;
  --bg:      #FAF8F5;
  --surface: rgba(234,230,222,0.65);
  --border:  rgba(217,212,203,0.7);
  --text:    #2C2C28;
  --muted:   rgba(44,44,40,0.5);
  --nav-bg:  rgba(242,239,233,0.95);
}
[data-theme="zen-dark"] {
  --bambú:   #7DB885;
  --musgo:   #A89FC4;
  --agua:    #7A9EC9;
  --madera:  #C9A87C;
  --bg:      #12141F;
  --surface: rgba(31,35,56,0.85);
  --border:  rgba(42,47,72,0.7);
  --text:    #C8D0E8;
  --muted:   rgba(200,208,232,0.52);
  --nav-bg:  rgba(25,28,46,0.95);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; transition: background .3s, color .3s; }
#roleSelector,
#demoStage {
  scroll-margin-top: 96px;
}

/* ── NAV ── */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 4rem;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo { font-family: 'DM Serif Display', serif; font-size: 1.75rem; color: var(--bambú); letter-spacing: .08em; text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.nav-logo-img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(107,143,113,.45)); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 400; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--bambú); }
.nav-cta { background: var(--bambú) !important; color: #FAF8F5 !important; padding: .45rem 1.2rem !important; border-radius: 100px; font-weight: 500 !important; }
.nav-cta:hover { background: var(--musgo) !important; }
.nav-right { display: flex; gap: .75rem; align-items: center; }
.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 100px; padding: .3rem .6rem; cursor: pointer; font-size: 1rem; color: var(--muted); transition: border-color .2s, color .2s; }
.theme-toggle:hover { border-color: var(--bambú); color: var(--bambú); }
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(44,44,40,.18);
  background: none; cursor: pointer; padding: 0; flex-shrink: 0;
  transition: border-color .2s, background .2s;
}
.hamburger:hover { border-color: var(--bambú); background: rgba(107,143,113,.1); }
.hamburger span {
  display: block; width: 16px; height: 1.5px;
  background: rgba(44,44,40,.65);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 61px; left: 0; right: 0; z-index: 99;
  background: rgba(242,239,233,.97);
  border-bottom: 1px solid rgba(44,44,40,.08);
  padding: 1rem 1.5rem 1.5rem;
  transform: translateY(-100%); opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-links { list-style: none; display: flex; flex-direction: column; gap: 0; }
.mobile-links li { border-bottom: 1px solid rgba(44,44,40,.07); }
.mobile-links li:last-child { border-bottom: none; margin-top: 1rem; }
.mobile-links a {
  display: block; padding: .85rem .25rem;
  color: rgba(44,44,40,.65); font-size: .9rem;
  text-decoration: none; font-weight: 400; transition: color .18s;
}
.mobile-links a:hover { color: var(--bambú); }
.mobile-links a.active { color: var(--bambú); }
.mobile-cta {
  display: inline-flex !important;
  background: var(--bambú); color: #FAF8F5 !important;
  padding: .55rem 1.3rem !important; border-radius: 100px;
  font-size: .9rem !important; width: fit-content;
}
.mobile-cta:hover { background: var(--musgo) !important; color: #2C2C28 !important; }
[data-theme="zen-dark"] .hamburger { border-color: rgba(200,208,232,.22); }
[data-theme="zen-dark"] .hamburger span { background: rgba(200,208,232,.65); }
[data-theme="zen-dark"] .hamburger:hover { border-color: var(--bambú); background: rgba(125,184,133,.1); }
[data-theme="zen-dark"] .mobile-menu { background: rgba(25,28,46,.97); border-bottom-color: rgba(42,47,72,.5); }
[data-theme="zen-dark"] .mobile-links li { border-bottom-color: rgba(200,208,232,.07); }
[data-theme="zen-dark"] .mobile-links a { color: rgba(200,208,232,.65); }
[data-theme="zen-dark"] .mobile-links a:hover { color: var(--bambú); }
[data-theme="zen-dark"] .mobile-cta { color: #12141F !important; }
[data-theme="zen-dark"] .footer-bottom { border-top-color: rgba(42,47,72,.55); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--bambú); color: #fff;
  padding: .9rem 2rem; border-radius: 100px;
  font-size: .95rem; font-weight: 500; text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(107,143,113,.22);
}
.btn-primary:hover { background: var(--musgo); color: var(--text); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
  padding: .9rem 2rem; border-radius: 100px;
  font-size: .95rem; font-weight: 400; text-decoration: none;
  transition: border-color .2s, color .2s, transform .15s;
}
.btn-secondary:hover { border-color: var(--bambú); color: var(--bambú); transform: translateY(-2px); }

/* ── PULSE ── */
.pulse { width: 7px; height: 7px; background: var(--bambú); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }

/* ── DIVIDER ── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 0 4rem; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); }
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 4rem;
}
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 1.45rem; color: var(--bambú); text-decoration: none; display: block; margin-bottom: .75rem; }
.footer-tagline { font-size: .84rem; color: var(--muted); line-height: 1.75; max-width: 280px; font-weight: 300; }
.footer-col-title { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bambú); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { font-size: .83rem; color: var(--muted); text-decoration: none; transition: color .2s, opacity .2s; opacity: .72; }
.footer-col a:hover { color: var(--bambú); opacity: 1; }
.footer-bottom { padding: 1rem 4rem 1.75rem; border-top: 1px solid rgba(217,212,203,.4); }
.footer-copy { font-size: .74rem; color: var(--muted); opacity: .45; }

/* ── HERO DE LA DEMO ── */
.demo-hero {
  padding: 9rem 2rem 3.5rem;
  text-align: center;
}
.demo-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.demo-hero h1 em { color: var(--bambú); font-style: italic; }
.demo-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(107,143,113,.1); border: 1px solid rgba(107,143,113,.28);
  color: var(--bambú); padding: .38rem 1rem; border-radius: 100px;
  font-size: .76rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
[data-theme="zen-dark"] .demo-badge {
  background: rgba(125,184,133,.1); border-color: rgba(125,184,133,.28);
}
.demo-hero p { font-size: 1.05rem; color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.75; font-weight: 300; }

/* ── SELECTOR DE ROL ── */
.role-selector {
  display: flex; justify-content: center; gap: .75rem;
  padding: 2.5rem 2rem 2rem; flex-wrap: wrap;
}
.role-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 100px; padding: .65rem 1.5rem;
  font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all .2s;
}
.role-btn:hover { border-color: var(--bambú); color: var(--bambú); }
.role-btn.active {
  background: var(--bambú); border-color: var(--bambú); color: #fff;
  box-shadow: 0 4px 16px rgba(107,143,113,.28);
}
[data-theme="zen-dark"] .role-btn.active { box-shadow: 0 4px 16px rgba(125,184,133,.2); }
.role-icon { font-size: 1.05rem; }

/* ── DEMO STAGE ── */
.demo-stage {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem 5rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 2rem;
}

/* Fila con los dos dispositivos */
.frames-row {
  display: flex; gap: 3rem; align-items: flex-start;
  justify-content: center; flex-wrap: wrap;
}

/* Etiqueta debajo de cada frame */
.device-label {
  margin-top: .75rem; font-size: .78rem; font-weight: 500;
  color: var(--muted); text-align: center; letter-spacing: .04em;
}

/* Navegación compartida (flechas + puntos) */
.demo-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; width: 100%;
}

/* ── PHONE AREA ── */
.phone-area { display: flex; flex-direction: column; align-items: center; }

/* Ocultar móvil en rol Profesional */
.phone-area.hidden { display: none; }

.arrow-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all .2s; user-select: none;
}
.arrow-btn:hover:not(:disabled) { border-color: var(--bambú); color: var(--bambú); background: rgba(107,143,113,.08); }
.arrow-btn:disabled { opacity: .3; cursor: not-allowed; }
[data-theme="zen-dark"] .arrow-btn:hover:not(:disabled) { background: rgba(125,184,133,.08); }

/* ── PHONE FRAME ── */
.phone-frame {
  width: 264px; height: 528px;
  background: #1C1C1E; border-radius: 40px;
  border: 8px solid #1C1C1E; position: relative; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1),
    0 40px 80px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.12);
  flex-shrink: 0;
}
.phone-frame.phone-frame--real {
  width: 260px;
  height: 545px;
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px; background: #1C1C1E;
  border-radius: 0 0 14px 14px; z-index: 20;
}
.phone-screens { width: 100%; height: 100%; overflow: hidden; position: relative; }
.phone-screens .p-screen { animation: screenIn .3s ease-out forwards; }
@keyframes screenIn {
  from { opacity: 0; transform: scale(.97) translateY(6px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* ── DESKTOP / TABLET FRAME ── */
.desktop-area { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.desktop-frame {
  width: 760px; height: 392px;
  background: #1C1C1E; border-radius: 32px; border: 12px solid #1C1C1E;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1),
    0 0 0 13px rgba(0,0,0,.35),
    0 40px 80px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.1);
  display: flex; flex-direction: column; flex-shrink: 0;
}
.d-tablet-status {
  height: 26px; background: var(--bambú);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; font-size: 9px; font-weight: 600; color: #fff; flex-shrink: 0;
}
.d-tablet-status .d-app-name {
  font-family: 'DM Serif Display', serif; font-size: 11px; letter-spacing: .06em;
}
#desktopScreens { flex: 1; display: flex; overflow: hidden; }
#desktopScreens .d-content { flex: 1; display: flex; overflow: hidden; animation: screenIn .3s ease-out; }

/* Desktop sidebar */
.d-sidebar {
  width: 145px; background: var(--bambú);
  display: flex; flex-direction: column; flex-shrink: 0;
}
.d-sidebar-hdr {
  padding: 11px 12px 10px; border-bottom: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; gap: 7px;
}
.d-hdr-av {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif; font-size: 11px; color: #fff; flex-shrink: 0;
}
.d-hdr-name { font-size: 11px; color: #fff; font-weight: 600; line-height: 1.2; }
.d-hdr-role { font-size: 9px; color: rgba(255,255,255,.6); }
.d-nav {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; font-size: 11px; color: rgba(255,255,255,.7); font-weight: 500; cursor: pointer;
}
.d-nav.on { background: rgba(255,255,255,.2); color: #fff; }
.d-nav-ico { font-size: 14px; flex-shrink: 0; }
.d-main { flex: 1; background: #FAF8F5; overflow: hidden; display: flex; flex-direction: column; }
[data-theme="zen-dark"] .d-main { background: #12141F; }
.d-main-body {
  flex: 1; overflow: hidden; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.d-main-body.centered { align-items: center; justify-content: center; text-align: center; }

/* ── STEP DOTS ── */
.step-dots { display: flex; gap: 6px; }
.step-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(107,143,113,.2); transition: all .25s; cursor: pointer;
}
.step-dot.active { width: 22px; border-radius: 3px; background: var(--bambú); }
[data-theme="zen-dark"] .step-dot { background: rgba(125,184,133,.18); }

/* ── STEP INFO ── */
.step-info { display: flex; flex-direction: column; gap: 1.25rem; }
.step-counter {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bambú);
}
/* Override ../style.css .step-title (0.95rem para step cards) */
.step-info .step-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--text); line-height: 1.18;
  font-weight: 400;
}
/* Override ../style.css .step-desc (0.83rem) */
.step-info .step-desc {
  font-size: .97rem; color: var(--muted);
  line-height: 1.78; font-weight: 300; max-width: 380px;
}
[data-theme="zen-dark"] .step-info .step-title { color: var(--text); }
[data-theme="zen-dark"] .step-info .step-desc  { color: var(--muted); }
.step-callout {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(107,143,113,.1); border: 1px solid rgba(107,143,113,.25);
  border-radius: 8px; padding: .5rem .9rem;
  font-size: .82rem; font-weight: 500; color: var(--bambú); max-width: fit-content;
}
.step-callout::before { content: '→ '; }
[data-theme="zen-dark"] .step-callout {
  background: rgba(125,184,133,.1); border-color: rgba(125,184,133,.22);
}

/* ── CTA SECTION ── */
.demo-testimonials {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 2rem 4.5rem;
}
.testimonials-head {
  max-width: 660px;
  margin-bottom: 2rem;
}
.testimonials-head h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text);
  line-height: 1.12;
  margin-bottom: .8rem;
}
.testimonials-head p {
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.testimonial-card {
  background: rgba(250,248,245,.68);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 14px 36px rgba(44,44,40,.04);
}
.testimonial-role {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: .26rem .7rem;
  border-radius: 999px;
  background: rgba(107,143,113,.14);
  color: var(--bambú);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.testimonial-card p {
  color: var(--text);
  font-size: .96rem;
  line-height: 1.72;
  font-weight: 400;
}
.testimonial-meta {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: .78rem;
}
.testimonial-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .78rem;
  opacity: .72;
}
[data-theme="zen-dark"] .testimonial-card {
  background: rgba(27,31,48,.88);
  border-color: rgba(63,70,101,.74);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
[data-theme="zen-dark"] .testimonial-card p,
[data-theme="zen-dark"] .testimonials-head h2 {
  color: #C8D0E8;
}
[data-theme="zen-dark"] .testimonial-role {
  background: rgba(125,184,133,.16);
}

.demo-cta { text-align: center; padding: 4rem 2rem 6rem; }
.demo-cta h3 {
  font-family: 'DM Serif Display', serif; font-size: 1.9rem;
  color: var(--text); margin-bottom: .75rem;
}
[data-theme="zen-dark"] .demo-cta h3 { color: var(--text); }
.demo-cta p { font-size: .95rem; color: var(--muted); margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────
   PHONE SCREEN COMPONENT STYLES  (.p-*)
   Paleta: light → #FAF8F5 / #2C2C28
           dark  → #12141F / #C8D0E8  (igual que web principal)
   ───────────────────────────────────────────────────────── */
.p-screen {
  width: 248px; height: 512px;
  display: flex; flex-direction: column;
  background: #FAF8F5; overflow: hidden;
}
.p-status {
  height: 26px; background: var(--bambú);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; font-size: 9px; font-weight: 600; color: #fff; flex-shrink: 0;
}
.p-bar {
  height: 46px; background: var(--bambú);
  display: flex; align-items: center; padding: 0 12px; gap: 8px; flex-shrink: 0;
}
.p-bar-back { color: rgba(255,255,255,.85); font-size: 19px; line-height: 1; }
.p-bar-title { color: #fff; font-size: 13px; font-weight: 600; flex: 1; letter-spacing: .02em; }
.p-bar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif; color: #fff; font-size: 12px; flex-shrink: 0;
}
.p-bar-ico { color: rgba(255,255,255,.85); font-size: 17px; }

.p-body {
  flex: 1; overflow: hidden; background: #FAF8F5;
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.p-body.centered { align-items: center; text-align: center; justify-content: center; }
.p-body.chat { padding: 10px 12px; }
.p-body.nogap { gap: 0; }

.p-logo { width: 44px; height: 44px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 0 8px rgba(107,143,113,.4)); }
.p-title { font-family: 'DM Serif Display', serif; font-size: 17px; color: #2C2C28; line-height: 1.2; }
.p-sub { font-size: 10px; color: rgba(44,44,40,.5); margin-bottom: 12px; }
.p-label { font-size: 10px; font-weight: 600; color: #2C2C28; margin-bottom: 3px; }
.p-muted { font-size: 10px; color: rgba(44,44,40,.5); line-height: 1.5; }

.p-input {
  background: #fff; border: 1.5px solid rgba(217,212,203,.9);
  border-radius: 10px; padding: 9px 11px; font-size: 11px; color: rgba(44,44,40,.55); width: 100%;
  font-family: 'DM Sans', sans-serif;
}
.p-btn {
  border: none; border-radius: 100px; padding: 10px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  cursor: pointer; width: 100%; text-align: center; transition: opacity .15s;
}
.p-btn.primary { background: var(--bambú); color: #fff; }
.p-btn.outline { background: transparent; border: 1.5px solid var(--bambú); color: var(--bambú); }
.p-btn.ghost { background: rgba(107,143,113,.1); color: var(--bambú); }
.p-btn.danger { background: rgba(200,70,70,.1); color: #C84646; border: 1.5px solid rgba(200,70,70,.22); }
.p-btn.small { padding: 7px 12px; font-size: 10px; width: auto; }
.p-divider { font-size: 9px; color: rgba(44,44,40,.35); text-align: center; margin: 2px 0; }
.p-link { font-size: 10px; color: var(--agua); text-align: center; }

/* Mood slider */
.p-mood-emoji { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 6px; }
.p-mood-track { height: 6px; border-radius: 3px; background: rgba(217,212,203,.7); position: relative; margin: 0 0 4px; }
.p-mood-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--bambú); }
.p-mood-thumb {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--bambú); box-shadow: 0 2px 8px rgba(107,143,113,.5); border: 2.5px solid #fff;
}
.p-mood-scale { display: flex; justify-content: space-between; font-size: 8px; color: rgba(44,44,40,.4); }
.p-mood-label { font-size: 15px; font-weight: 600; color: var(--bambú); text-align: center; margin: 6px 0; }
.p-mood-desc { font-size: 10px; color: rgba(44,44,40,.5); text-align: center; margin-bottom: 8px; }

/* Chat */
.p-msg { display: flex; margin-bottom: 8px; }
.p-msg.user { justify-content: flex-end; }
.p-bubble { max-width: 83%; padding: 7px 10px; border-radius: 14px; font-size: 10.5px; line-height: 1.55; color: #2C2C28; }
.p-bubble.user { background: rgba(107,143,113,.22); border-bottom-right-radius: 3px; }
.p-bubble.ai {
  background: #fff; border: 1px solid rgba(217,212,203,.75);
  border-bottom-left-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.05); color: rgba(44,44,40,.85);
}
.p-play {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bambú); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; flex-shrink: 0; cursor: pointer;
}
.p-typing {
  display: flex; gap: 3px; align-items: center; padding: 7px 10px;
  background: #fff; border: 1px solid rgba(217,212,203,.75);
  border-radius: 14px; border-bottom-left-radius: 3px; width: fit-content;
}
.pdot { width: 5px; height: 5px; border-radius: 50%; background: rgba(44,44,40,.28); animation: td 1.2s infinite; }
.pdot:nth-child(2) { animation-delay: .2s; } .pdot:nth-child(3) { animation-delay: .4s; }
@keyframes td { 0%,80%,100%{opacity:.28;transform:scale(1)} 40%{opacity:1;transform:scale(1.4)} }
.p-wave {
  display: flex; align-items: center; gap: 2px; padding: 6px 10px;
  background: rgba(107,143,113,.12); border-radius: 14px; border-bottom-left-radius: 3px;
}
.pwb { width: 3px; background: var(--bambú); border-radius: 2px; animation: wv .8s ease-in-out infinite; }
.pwb:nth-child(1){height:7px}.pwb:nth-child(2){height:13px;animation-delay:.1s}.pwb:nth-child(3){height:9px;animation-delay:.2s}.pwb:nth-child(4){height:15px;animation-delay:.3s}.pwb:nth-child(5){height:7px;animation-delay:.4s}
@keyframes wv { 0%,100%{transform:scaleY(.5)} 50%{transform:scaleY(1)} }
.p-chat-bar {
  border-top: 1px solid rgba(217,212,203,.6); background: #fff;
  padding: 8px 10px; display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.p-chat-field { flex: 1; font-size: 11px; color: rgba(44,44,40,.42); background: rgba(242,239,233,.6); border-radius: 20px; padding: 6px 10px; }
.p-ico { width: 28px; height: 28px; border-radius: 50%; background: rgba(242,239,233,.8); border: none; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.p-send { width: 28px; height: 28px; border-radius: 50%; background: var(--bambú); border: none; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; flex-shrink: 0; }

/* Sound, Resources, Appointments, Patients, Graph, etc. */
.p-sound-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.p-sound { background: #fff; border: 1.5px solid rgba(217,212,203,.7); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: rgba(44,44,40,.7); font-weight: 500; }
.p-sound.on { border-color: var(--bambú); background: rgba(107,143,113,.08); color: var(--bambú); }
.p-sound-ico { font-size: 22px; }

.p-rtabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(217,212,203,.6); padding-bottom: 8px; margin-bottom: 8px; }
.p-rtab { font-size: 10px; font-weight: 500; padding: 4px 9px; border-radius: 6px; color: rgba(44,44,40,.5); background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.p-rtab.active { background: var(--bambú); color: #fff; }
.p-res-card { background: #fff; border: 1px solid rgba(217,212,203,.7); border-radius: 12px; padding: 10px 11px; display: flex; align-items: center; gap: 8px; }
.p-res-ico { font-size: 18px; flex-shrink: 0; }
.p-res-label { font-size: 11px; font-weight: 600; color: #2C2C28; }
.p-res-sub { font-size: 9px; color: rgba(44,44,40,.5); }

.p-appt { background: #fff; border: 1.5px solid rgba(107,143,113,.3); border-radius: 14px; padding: 12px; }
.p-appt-date { font-size: 11px; font-weight: 600; color: var(--bambú); margin-bottom: 2px; }
.p-appt-doc { font-size: 13px; font-weight: 600; color: #2C2C28; }
.p-appt-time { font-size: 10px; color: rgba(44,44,40,.5); margin-bottom: 8px; }
.p-cal-btn { display: inline-flex; align-items: center; gap: 4px; background: rgba(107,143,113,.1); border: none; border-radius: 100px; padding: 5px 10px; font-size: 10px; color: var(--bambú); font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }

.p-pat { background: #fff; border: 1px solid rgba(217,212,203,.7); border-radius: 12px; padding: 10px 11px; display: flex; align-items: center; gap: 8px; }
.p-pat-av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--bambú), var(--agua)); display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', serif; font-size: 12px; color: #fff; flex-shrink: 0; }
.p-pat-name { font-size: 12px; font-weight: 600; color: #2C2C28; }
.p-pat-meta { font-size: 9px; color: rgba(44,44,40,.5); }
.p-pat-mood { font-size: 11px; font-weight: 700; color: var(--bambú); margin-left: auto; flex-shrink: 0; }
.p-pat-mood.low { color: #C84646; }

.p-graph { background: #fff; border: 1px solid rgba(217,212,203,.7); border-radius: 12px; padding: 10px 10px 6px; }
.p-graph-title { font-size: 10px; font-weight: 600; color: #2C2C28; margin-bottom: 6px; }
.p-axis { display: flex; justify-content: space-between; font-size: 8px; color: rgba(44,44,40,.35); margin-top: 4px; padding: 0 4px; }

.p-alert { background: rgba(200,70,70,.08); border: 1px solid rgba(200,70,70,.2); border-radius: 8px; padding: 7px 10px; font-size: 10px; color: #C84646; display: flex; align-items: center; gap: 5px; }

.p-tmpls { display: flex; flex-wrap: wrap; gap: 5px; }
.p-tmpl { background: rgba(107,143,113,.1); border: none; border-radius: 100px; padding: 4px 10px; font-size: 9px; color: var(--bambú); font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.p-tmpl.active { background: var(--bambú); color: #fff; }
.p-textarea { background: #fff; border: 1.5px solid rgba(217,212,203,.8); border-radius: 10px; padding: 9px 10px; font-size: 10px; color: rgba(44,44,40,.7); line-height: 1.5; flex: 1; font-family: 'DM Sans', sans-serif; }

.p-botnav { background: #fff; border-top: 1px solid rgba(217,212,203,.7); display: flex; justify-content: space-around; padding: 6px 4px 8px; flex-shrink: 0; }
.p-navit { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; color: rgba(44,44,40,.4); padding: 2px 8px; }
.p-navit.on { color: var(--bambú); }
.p-navico { font-size: 17px; }

.p-sos { background: rgba(200,70,70,.1); border: 1.5px solid rgba(200,70,70,.28); border-radius: 12px; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; color: #C84646; }
.p-emer-card { background: #fff; border: 1px solid rgba(200,70,70,.2); border-radius: 12px; padding: 10px 11px; display: flex; align-items: center; gap: 8px; }
.p-emer-ico { font-size: 16px; }
.p-emer-num { font-size: 13px; font-weight: 700; color: #C84646; }
.p-emer-desc { font-size: 9px; color: rgba(44,44,40,.5); }

.p-notif {
  position: absolute; top: 26px; left: 6px; right: 6px;
  background: #fff; border-radius: 14px; padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; align-items: center; gap: 8px; z-index: 20;
  animation: screenIn .4s ease-out;
}
.p-notif-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--bambú); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.p-notif-t { font-size: 11px; font-weight: 600; color: #2C2C28; }
.p-notif-b { font-size: 10px; color: rgba(44,44,40,.5); }

.p-setting { background: #fff; border: 1px solid rgba(217,212,203,.7); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; }
.p-setting-label { font-size: 11px; color: #2C2C28; font-weight: 500; }
.p-toggle { width: 34px; height: 20px; border-radius: 10px; background: var(--bambú); position: relative; flex-shrink: 0; }
.p-toggle::after { content: ''; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.p-toggle.off { background: rgba(217,212,203,.8); }
.p-toggle.off::after { right: auto; left: 3px; }

.p-qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p-qcard { background: #fff; border: 1px solid rgba(217,212,203,.7); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; color: rgba(44,44,40,.6); font-weight: 500; }
.p-qico { font-size: 22px; }

.p-breathe {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(107,143,113,.14); border: 2px solid rgba(107,143,113,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--bambú); font-weight: 500; margin: 0 auto;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%,100%{transform:scale(1);background:rgba(107,143,113,.1)} 50%{transform:scale(1.28);background:rgba(107,143,113,.26)} }

.p-conv { background: #fff; border: 1px solid rgba(217,212,203,.7); border-radius: 12px; padding: 10px 11px; }
.p-conv-title { font-size: 11.5px; font-weight: 600; color: #2C2C28; margin-bottom: 2px; }
.p-conv-prev { font-size: 9.5px; color: rgba(44,44,40,.5); margin-bottom: 5px; }
.p-conv-meta { display: flex; align-items: center; justify-content: space-between; }
.p-conv-date { font-size: 9px; color: rgba(44,44,40,.4); }
.p-mood-pill { background: rgba(107,143,113,.12); border-radius: 100px; padding: 2px 7px; font-size: 9px; color: var(--bambú); font-weight: 600; }

.p-select { background: #fff; border: 1.5px solid rgba(217,212,203,.8); border-radius: 10px; padding: 9px 11px; font-size: 11px; color: #2C2C28; font-weight: 500; display: flex; align-items: center; justify-content: space-between; }
.p-select-arrow { font-size: 10px; color: rgba(44,44,40,.4); }

.p-chat-note { background: rgba(184,148,104,.1); border: 1px solid rgba(184,148,104,.25); border-radius: 10px; padding: 8px 10px; font-size: 10px; color: #7A5C32; margin-top: auto; }
.p-chat-note-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--madera); margin-bottom: 3px; }

.spacer { flex: 1; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; }
.gap4 { gap: 4px !important; } .gap6 { gap: 6px !important; }

/* ─────────────────────────────────────────────────────────
   MODO OSCURO — pantallas del teléfono
   Usa los colores del tema zen-dark de la web principal:
   fondo #12141F, superficie rgba(31,35,56,.85), texto #C8D0E8
   ───────────────────────────────────────────────────────── */
[data-theme="zen-dark"] .p-screen,
[data-theme="zen-dark"] .p-body,
[data-theme="zen-dark"] .p-body.chat { background: #12141F; }

[data-theme="zen-dark"] .p-input {
  background: rgba(31,35,56,.85); border-color: rgba(42,47,72,.7);
  color: rgba(200,208,232,.5);
}
[data-theme="zen-dark"] .p-bubble.ai,
[data-theme="zen-dark"] .p-typing {
  background: rgba(31,35,56,.85); border-color: rgba(42,47,72,.7);
  color: rgba(200,208,232,.85);
}
[data-theme="zen-dark"] .p-chat-bar {
  background: #12141F; border-color: rgba(42,47,72,.7);
}
[data-theme="zen-dark"] .p-chat-field {
  background: rgba(255,255,255,.04); color: rgba(200,208,232,.4);
}
[data-theme="zen-dark"] .p-title { color: #C8D0E8; }
[data-theme="zen-dark"] .p-label { color: #C8D0E8; }
[data-theme="zen-dark"] .p-muted { color: rgba(200,208,232,0.55); }
[data-theme="zen-dark"] .p-sub   { color: rgba(200,208,232,0.45); }
[data-theme="zen-dark"] .p-botnav { background: rgba(31,35,56,.9); border-color: rgba(42,47,72,.7); }
[data-theme="zen-dark"] .p-sound { background: rgba(31,35,56,.85); border-color: rgba(42,47,72,.7); color: rgba(200,208,232,.7); }
[data-theme="zen-dark"] .p-sound.on { background: rgba(125,184,133,.1); border-color: var(--bambú); color: var(--bambú); }
[data-theme="zen-dark"] .p-res-card,
[data-theme="zen-dark"] .p-pat,
[data-theme="zen-dark"] .p-conv,
[data-theme="zen-dark"] .p-appt,
[data-theme="zen-dark"] .p-setting,
[data-theme="zen-dark"] .p-qcard,
[data-theme="zen-dark"] .p-graph,
[data-theme="zen-dark"] .p-select,
[data-theme="zen-dark"] .p-emer-card,
[data-theme="zen-dark"] .p-bubble.ai {
  background: rgba(31,35,56,.85); border-color: rgba(42,47,72,.7);
}
[data-theme="zen-dark"] .p-textarea {
  background: rgba(31,35,56,.85); border-color: rgba(42,47,72,.7);
  color: rgba(200,208,232,.7);
}
[data-theme="zen-dark"] .p-pat-name,
[data-theme="zen-dark"] .p-appt-doc,
[data-theme="zen-dark"] .p-conv-title,
[data-theme="zen-dark"] .p-graph-title,
[data-theme="zen-dark"] .p-setting-label,
[data-theme="zen-dark"] .p-res-label,
[data-theme="zen-dark"] .p-select { color: #C8D0E8; }
[data-theme="zen-dark"] .p-notif { background: rgba(31,35,56,.95); }
[data-theme="zen-dark"] .p-notif-t { color: #C8D0E8; }
[data-theme="zen-dark"] .p-chat-note { background: rgba(201,168,124,.1); }

/* Ocultar chrome de los frames en todos los pasos */
.desktop-frame.no-status .d-tablet-status { display: none; }
.phone-frame.no-notch .phone-notch { display: none; }
.p-status { display: none; }
.phone-screens .p-bar { display: none; }

/* ── IMÁGENES DE AUTENTICACIÓN ── */

/* Móvil */
.auth-screen { position: relative; width: 100%; height: 100%; overflow: hidden; }
.auth-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Escritorio */
.auth-screen-d { flex: 1; display: flex; overflow: hidden; }
.auth-img-d { width: 100%; height: 100%; display: block; }


/* Cambio de tema: por defecto claro, oscuro oculto */
.theme-dark  { display: none !important; }
.theme-light { display: block; }
[data-theme="zen-dark"] .theme-dark  { display: block !important; }
[data-theme="zen-dark"] .theme-light { display: none !important; }

/* ── RESPONSIVE GENERAL ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .demo-stage { padding: 0 1.5rem 4rem; gap: 1.5rem; }
  .role-selector { padding: 1rem 1.5rem 1.5rem; }
  .demo-hero { padding: 7rem 1.5rem 2.5rem; }
  .demo-testimonials { padding: 3rem 1.5rem 3.5rem; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .step-info { align-items: center; text-align: center; }
  .step-info .step-desc { text-align: left; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 1rem 1.5rem 1.5rem; text-align: center; }
}

/* ── FRAME ADAPTATIVO POR TAMAÑO DE PANTALLA ── */

/* Móvil (< 900px): solo frame de teléfono */
@media (max-width: 899px) {
  .desktop-area { display: none !important; }
  .phone-area   { display: flex !important; }

  /* Profesional no tiene vista móvil → mostrar desktop escalado */
  .phone-area.hidden { display: none !important; }
  .phone-area.hidden ~ .desktop-area {
    display: flex !important;
    transform-origin: top center;
    transform: scale(calc((100vw - 3rem) / 760));
    /* compensar altura tras el scale */
    margin-bottom: calc(((100vw - 3rem) * 528 / 760) - 528px);
  }

  /* Frame de teléfono: centrado con margen respirable */
  .phone-area { width: 100%; align-items: center; }
  .phone-frame {
    width: min(280px, calc(100vw - 6rem));
    height: auto;
    aspect-ratio: 264 / 528;
  }
  .phone-frame.phone-frame--real {
    width: min(260px, calc(100vw - 6rem));
    aspect-ratio: 260 / 545;
  }
  .phone-screens {
    width: 100%;
    height: 100%;
  }
  .p-screen { width: 100%; height: 100%; }
  .auth-screen { width: 100%; height: 100%; }

  /* Flechas y puntos con más espacio */
  .demo-nav { gap: 2rem; margin-top: .5rem; }
  .arrow-btn { width: 52px; height: 52px; font-size: 1.3rem; }
}

/* Tablet / Ordenador (≥ 900px): solo frame de escritorio */
@media (min-width: 900px) {
  .phone-area   { display: none !important; }
  .desktop-area { display: flex !important; }
  .desktop-frame {
    width: min(820px, calc(100vw - 4rem));
    height: auto;
    aspect-ratio: 760 / 528;
  }
}

/* Modern demo pass */
nav {
  padding: 0.9rem 4rem;
  background: rgba(250,248,245,0.82);
  box-shadow: 0 10px 30px rgba(44,44,40,0.035);
}
.nav-links { gap: 1.35rem; }
.nav-links a { font-weight: 500; }
.nav-cta,
.btn-primary,
.btn-secondary,
.role-btn,
.step-callout {
  border-radius: 12px;
}
.nav-cta { box-shadow: 0 10px 24px rgba(107,143,113,0.18); }

.demo-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 2.25rem;
}
.demo-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 48%;
  width: 760px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,143,113,0.1), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.demo-hero > * {
  position: relative;
  z-index: 1;
}
.demo-note {
  max-width: 560px;
  margin: 1.25rem auto 0;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(122,158,161,0.22);
  border-radius: 12px;
  background: rgba(122,158,161,0.07);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.role-selector {
  padding-top: 1.5rem;
}
.role-btn {
  min-width: 210px;
  justify-content: flex-start;
  padding: 0.85rem 1rem;
  background: rgba(250,248,245,0.7);
  box-shadow: 0 14px 36px rgba(44,44,40,0.035);
}
.role-btn span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}
.role-btn strong {
  font-size: 0.9rem;
  line-height: 1.1;
}
.role-btn small {
  font-size: 0.72rem;
  color: inherit;
  opacity: 0.62;
  font-weight: 400;
}

.demo-stage {
  max-width: 1240px;
  padding-top: 0.5rem;
}
.frames-row {
  width: 100%;
  align-items: center;
}
.phone-frame,
.desktop-frame {
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1),
    0 28px 70px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.phone-frame {
  border-radius: 34px;
}
.phone-screens,
#desktopScreens {
  position: relative;
}
.view-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30;
  padding: 0.28rem 0.55rem;
  border-radius: 9px;
  background: rgba(250,248,245,0.9);
  border: 1px solid rgba(217,212,203,0.74);
  color: rgba(44,44,40,0.58);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.view-badge.real {
  color: var(--bambú);
  border-color: rgba(107,143,113,0.26);
  background: rgba(107,143,113,0.11);
}
.view-badge.pending {
  color: var(--madera);
  border-color: rgba(184,148,104,0.28);
  background: rgba(184,148,104,0.11);
}
.demo-placeholder-screen {
  gap: 1rem !important;
  background:
    radial-gradient(circle at 50% 28%, rgba(107,143,113,0.16), transparent 34%),
    linear-gradient(180deg, rgba(250,248,245,0.9), rgba(242,239,233,0.72));
}
.placeholder-mark {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(107,143,113,0.26);
  background: rgba(107,143,113,0.09);
  color: var(--bambú);
  font-family: 'DM Serif Display', serif;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 40px rgba(107,143,113,0.12);
}

.step-info {
  width: min(620px, 100%);
  padding: 1.45rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(250,248,245,0.68);
  box-shadow: 0 16px 44px rgba(44,44,40,0.04);
}
.step-context {
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 9px;
  background: rgba(107,143,113,0.1);
  color: var(--bambú);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step-info .step-desc {
  max-width: none;
}
.demo-nav {
  padding: 0.2rem 0;
}
.arrow-btn {
  border-radius: 12px;
}
.step-dot {
  border-radius: 4px;
}

.demo-cta {
  max-width: 760px;
  margin: 0 auto;
}

[data-theme="zen-dark"] nav {
  background: rgba(16,19,27,0.82);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
[data-theme="zen-dark"] .role-btn,
[data-theme="zen-dark"] .step-info,
[data-theme="zen-dark"] .view-badge,
[data-theme="zen-dark"] .demo-note {
  background: rgba(31,35,56,0.84);
  border-color: rgba(42,47,72,0.76);
}
[data-theme="zen-dark"] .demo-placeholder-screen {
  background:
    radial-gradient(circle at 50% 28%, rgba(125,184,133,0.15), transparent 34%),
    linear-gradient(180deg, rgba(31,35,56,0.96), rgba(18,20,31,0.86));
}
[data-theme="zen-dark"] .placeholder-mark {
  background: rgba(125,184,133,0.1);
  border-color: rgba(125,184,133,0.26);
}
[data-theme="zen-dark"] .view-badge.real {
  background: rgba(125,184,133,0.12);
  border-color: rgba(125,184,133,0.26);
}
[data-theme="zen-dark"] .view-badge.pending {
  background: rgba(201,168,124,0.12);
  border-color: rgba(201,168,124,0.26);
}

@media (min-width: 900px) {
  .demo-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 1.5rem;
  }
  .frames-row,
  .demo-nav {
    grid-column: 1;
  }
  .step-info {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 899px) {
  .view-badge {
    top: 8px;
    right: 8px;
  }
  .step-info {
    padding: 1.2rem;
  }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .role-btn {
    width: min(100%, 360px);
  }
  .demo-note {
    font-size: 0.78rem;
  }
}
