/* Bardo web — mismo diseño naranja cálido que la app. */
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #FFF4E8; --card: #FFFFFF; --line: #F5D6B8; --soft: #FFE2C6;
  --ink: #2A1709; --muted: #7A4E2D; --soft-ink: #5C3A1F;
  --orange: #C2410C; --orange-dark: #9A3412; --brown: #7A4E2D;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #2A1709; }
body { font-family: var(--body); color: var(--ink); font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* La app ocupa todo en móvil y se ve como un teléfono en PC. */
.app {
  position: relative; height: 100dvh; max-width: 480px; margin: 0 auto; background: var(--bg);
  display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 700px) { .app { height: min(900px, 100dvh - 32px); margin-top: 16px; border-radius: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.35); } }

.screen { display: none; flex: 1; flex-direction: column; min-height: 0; }
.screen.on { display: flex; }
.scroll { flex: 1; overflow-y: auto; padding: calc(20px + env(safe-area-inset-top)) 20px 24px; }

/* tipografía */
.brand { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.5px; }
.brand.big { font-size: 44px; margin: 40px 0 8px; color: var(--orange); }
.h1 { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; margin: 0 0 4px; }
.display { font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1.15; margin-top: 2px; }
.song-title-big { font-family: var(--display); font-weight: 800; font-size: 28px; margin: 0; }
.bold { font-weight: 700; }
.muted { color: var(--muted); } .soft { color: var(--soft-ink); }
.small { font-size: 13px; } .center { text-align: center; }
.label { display: block; font-weight: 700; margin-bottom: 10px; }
.block { margin-bottom: 20px; } .block-label { display: block; }
p { margin: 4px 0; } .hint { margin: 8px 0 20px; }
.error { color: #B91C1C; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.wrap-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }

/* iconos */
.ico { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 18px; height: 18px; } .ico.lg { width: 28px; height: 28px; } .ico.accent { color: var(--orange); }
.ico.filled { fill: currentColor; stroke: none; }

/* botones */
.btn { border: 0; border-radius: 999px; min-height: 52px; padding: 0 22px; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s, background-color .15s; }
.btn:active, .cta-dark:active, .play-big:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; } .btn-primary:hover { background: var(--orange-dark); }
.btn-white { background: #fff; color: var(--orange-dark); min-height: 48px; }
.btn-outline { background: transparent; color: var(--orange-dark); border: 2px solid var(--orange); }
.btn-dark { background: var(--ink); color: var(--bg); } .btn-soft { background: var(--soft); color: #7C2D12; }
.btn:disabled, .cta-dark:disabled { opacity: .55; cursor: default; }
.wide { width: 100%; } .gap { margin-top: 12px; }
.cta-dark { width: 100%; border: 0; border-radius: 20px; min-height: 64px; background: var(--ink); color: var(--bg);
  font-family: var(--display); font-weight: 700; font-size: 21px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.pill { border: 0; border-radius: 999px; min-height: 44px; padding: 0 14px; background: var(--soft); color: #7C2D12; font-weight: 700; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; }
.icon-btn:hover { background: var(--soft); }
.link-light { background: transparent; border: 0; color: #FFEBD9; font-size: 14px; min-height: 44px; padding: 0 8px; }
.text-link { background: transparent; border: 0; color: var(--orange); font-size: 14px; min-height: 44px; width: 100%; }
:focus-visible { outline: 3px solid #FDBA74; outline-offset: 2px; }

/* campos */
.field { width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; font-size: 16px; }
.field.notes { resize: none; min-height: 88px; }

/* hoy */
.listen-card { background: var(--orange); color: #fff; border-radius: 28px; padding: 24px; margin-bottom: 20px; transition: background-color .25s; }
.listen-card.paused { background: var(--brown); } .listen-card.off { background: var(--soft-ink); } .listen-card.private { background: var(--ink); }
.listen-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.listen-title { font-weight: 700; }
.wave { display: flex; align-items: center; gap: 5px; height: 56px; margin-top: 18px; }
.wave span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.85); transition: height .08s; }
.listen-help { color: #FFEBD9; font-size: 14px; margin: 14px 0 16px; }
.listen-ready { width: 100%; margin-bottom: 20px; min-height: 56px; }
.voice-box { background: var(--soft); border-radius: 20px; padding: 16px 18px; margin-bottom: 20px; }
.request-list { list-style: none; margin: 0; padding: 0; }
.request-list li { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 6px 8px 12px; background: #fff; border-radius: 14px; font-size: 14px; }
.request-kind { font-size: 11px; font-weight: 700; color: #fff; background: var(--orange); border-radius: 999px; padding: 2px 8px; flex-shrink: 0; }
.request-list li span:nth-child(2) { flex: 1; }
.request-list button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; }
.card-link { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; }
.trust { display: flex; gap: 8px; align-items: flex-start; background: none; border: 0; padding: 0; text-align: left; color: var(--muted); font-size: 13px; }
.dev-box { margin-top: 20px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #FFF9F3; }
.dev-row { display: flex; gap: 8px; margin-top: 8px; }

/* canción */
.topbar { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 4px; }
.cover { position: relative; height: 230px; border-radius: 28px; background: var(--orange); overflow: hidden; margin-bottom: 20px; }
.cover span { position: absolute; border-radius: 50%; }
.cover-a { width: 220px; height: 220px; background: #F97316; left: -50px; top: -70px; }
.cover-b { width: 170px; height: 170px; background: #FDBA74; right: -40px; bottom: -50px; }
.cover-c { width: 90px; height: 90px; border: 10px solid var(--bg); right: 70px; top: 46px; }
.cover .cover-tag { border-radius: 0; left: 22px; bottom: 18px; color: #fff; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; }
.progress { height: 6px; border-radius: 3px; background: var(--line); margin-top: 18px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--orange); }
.times { display: flex; justify-content: space-between; margin-top: 8px; }
.play-big { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; margin: 10px auto 0; }
.lyrics { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin: 20px 0; font-size: 16px; white-space: pre-line; }
.upsell { background: var(--soft); border-radius: 24px; padding: 20px; margin-top: 20px; }
.upsell-title { font-family: var(--display); font-weight: 700; font-size: 21px; margin-bottom: 8px; }
.upsell .btn { width: 100%; margin-top: 14px; }

/* canciones */
.song-list { list-style: none; margin: 0; padding: 0; }
.song-row { display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 10px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.song-row.on { background: var(--soft); }
.song-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; text-align: left; }
.song-cover { width: 56px; height: 56px; border-radius: 16px; position: relative; overflow: hidden; flex-shrink: 0; }
.song-cover i { position: absolute; width: 30px; height: 30px; border-radius: 50%; right: -8px; bottom: -8px; }
.song-text { min-width: 0; } .song-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--orange-dark); display: grid; place-items: center; flex-shrink: 0; }
.song-row.on .song-play { background: var(--orange); color: #fff; }
.empty { margin-top: 40px; text-align: center; color: var(--muted); }

/* estilo */
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--soft-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip-tag { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--soft); color: var(--orange-dark); letter-spacing: .5px; }
.chip.on .chip-tag { background: var(--orange-dark); color: #fff; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 18px; background: var(--soft); }
.seg { min-height: 52px; border: 0; border-radius: 14px; background: transparent; color: var(--soft-ink); font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.seg small { font-size: 11px; font-weight: 400; } .seg.on { background: #fff; color: var(--orange-dark); }

/* planes */
.plan { position: relative; width: 100%; text-align: left; margin: 0 0 12px; padding: 18px; border-radius: 22px; border: 2px solid var(--line); background: #FFF9F3; }
.plan.on { border-color: var(--orange); background: #fff; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.plan-name { font-family: var(--display); font-weight: 800; font-size: 21px; }
.plan-price { font-weight: 700; font-size: 17px; } .plan-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.perk { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; font-size: 14px; color: var(--soft-ink); }
.perk .ico { color: var(--orange); margin-top: 2px; }
.badge { position: absolute; top: -12px; right: 16px; padding: 3px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; }
.footer { padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }

/* privacidad */
.facts { list-style: none; margin: 0 0 20px; padding: 6px 18px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.facts li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--soft-ink); }
.facts li:last-child { border-bottom: 0; }
.fact-num { width: 36px; height: 36px; border-radius: 12px; background: var(--soft); color: var(--orange-dark); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 8px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.switch { width: 52px; height: 32px; border-radius: 16px; border: 0; padding: 3px; background: #D6BCA5; display: flex; justify-content: flex-start; flex-shrink: 0; transition: background-color .15s; }
.switch.on { background: var(--orange); justify-content: flex-end; }
.knob { width: 26px; height: 26px; border-radius: 50%; background: #fff; }

/* navegación */
.nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.nav.hidden { display: none; }
.nav-btn { min-height: 56px; border: 0; background: transparent; color: var(--muted); font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-btn.on { color: var(--orange); font-weight: 700; }

.toast { position: absolute; left: 20px; right: 20px; bottom: 96px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: var(--bg);
  font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.save-btn { width: 100%; margin: 14px 0 6px; }
.free-note { background: var(--soft); color: #9A3412; border-radius: 14px; padding: 10px 14px; margin: 0 0 14px; }
.heard { opacity: .95; font-style: italic; margin-top: 6px; }
.secure-pay { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; }
.footer a, #screen-privacidad a { color: var(--orange); }
