/* U-Reel — estilos de la web y del panel. Tema oscuro y claro: tokens en :root, [data-theme] los fija a mano. */
:root {
  --bg: #051820; --bg2: #0A2530; --card: #0D2A35; --line: #1D4553; --line2: #153644;
  --text: #EAF7F8; --text2: #BFD9DD; --muted: #93B4BB; --faint: #7A9CA4;
  --accent: #10B3C4; --accent-ink: #4FD6D0; --on-accent: #03161B; --ok: #3DDC97; --ok-bg: #0E2A24;
  --warn: #F2C14E; --warn-bg: #2A2418; --violet: #8FD3FF; --violet-bg: #0E2D40; --bad: #FF6B6B;
  --chip: #EAF7F8; --chip-ink: #051820; --chip-muted: #4A6970; --shadow: 0 24px 60px rgba(0,12,16,.6);
  --grad: linear-gradient(135deg, #1E8FE0 0%, #10B3C4 50%, #1FCB9C 100%); --on-grad: #03161B;
  --glow: radial-gradient(1100px 640px at 15% -10%, #0C4A63 0%, rgba(12,74,99,0) 60%) no-repeat,
    radial-gradient(900px 560px at 95% 0%, #0B4D45 0%, rgba(11,77,69,0) 60%) no-repeat;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F1F9F9; --bg2: #E3F2F3; --card: #FFFFFF; --line: #CBE3E6; --line2: #DCEDEF;
    --text: #062A33; --text2: #24474F; --muted: #4A6970; --faint: #5A787F;
    --accent: #00839A; --accent-ink: #006C80; --on-accent: #FFFFFF; --ok: #12784C; --ok-bg: #E3F5EC;
    --warn: #8A6100; --warn-bg: #FBF0D5; --violet: #1F6FB8; --violet-bg: #E2F0FB; --bad: #C62828;
    --chip: #062A33; --chip-ink: #F1F9F9; --chip-muted: #9CC3C8; --shadow: 0 24px 60px rgba(0,60,70,.14);
    --grad: linear-gradient(135deg, #0B6FC0 0%, #00879C 50%, #00876A 100%); --on-grad: #FFFFFF;
    --glow: radial-gradient(1000px 520px at 10% -10%, #D6ECFA 0%, rgba(214,236,250,0) 60%) no-repeat,
      radial-gradient(900px 520px at 95% 0%, #D3F3E8 0%, rgba(211,243,232,0) 60%) no-repeat;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F1F9F9; --bg2: #E3F2F3; --card: #FFFFFF; --line: #CBE3E6; --line2: #DCEDEF;
  --text: #062A33; --text2: #24474F; --muted: #4A6970; --faint: #5A787F;
  --accent: #00839A; --accent-ink: #006C80; --on-accent: #FFFFFF; --ok: #12784C; --ok-bg: #E3F5EC;
  --warn: #8A6100; --warn-bg: #FBF0D5; --violet: #1F6FB8; --violet-bg: #E2F0FB; --bad: #C62828;
  --chip: #062A33; --chip-ink: #F1F9F9; --chip-muted: #9CC3C8; --shadow: 0 24px 60px rgba(0,60,70,.14);
  --grad: linear-gradient(135deg, #0B6FC0 0%, #00879C 50%, #00876A 100%); --on-grad: #FFFFFF;
  --glow: radial-gradient(1000px 520px at 10% -10%, #D6ECFA 0%, rgba(214,236,250,0) 60%) no-repeat,
    radial-gradient(900px 520px at 95% 0%, #D3F3E8 0%, rgba(211,243,232,0) 60%) no-repeat;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--glow), var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent-ink); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.display { font-family: var(--display); font-weight: 800; }
.muted { color: var(--muted); }
small { font-size: 13px; }
[hidden] { display: none !important; }

/* ---------- botones y formularios */
button, .btn { font: 600 15px Inter, system-ui, sans-serif; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 11px 20px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; min-height: 44px; }
button:hover, .btn:hover { border-color: var(--muted); }
button.primary, .btn.primary { background: var(--grad); border-color: transparent; color: var(--on-grad); }
button.primary:hover, .btn.primary:hover { filter: brightness(1.06); }
button.ghost, .btn.ghost { background: transparent; }
button.danger { color: var(--bad); }
button.small, .btn.small { padding: 6px 14px; font-size: 14px; min-height: 36px; }
button.big, .btn.big { padding: 16px 28px; font-size: 17px; }
button:disabled { opacity: .5; cursor: default; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; width: 100%; min-height: 44px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { resize: vertical; min-height: 80px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 14px; }

/* ---------- cabecera */
header.top { display: flex; align-items: center; gap: 12px 22px; padding: 18px 0; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.5px; }
.logo i { width: 34px; height: 34px; display: grid; place-items: center; }  /* el logo: un globo de chat con ▶ («me cuentas, te lo hago») */
.logo span { color: var(--accent-ink); }
header.top nav { display: flex; gap: 6px 20px; flex-wrap: wrap; flex: 1; justify-content: center; font-size: 15px; }
header.top nav a { color: var(--text2); text-decoration: none; }
header.top nav a:hover { color: var(--text); }
header.top .sp { flex: 1; }
.hacts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.themebtn { width: 44px; padding: 0; }
#who { color: var(--muted); font-size: 14px; }

/* ---------- secciones de la portada */
.eyebrow { margin: 0 0 10px; color: var(--accent-ink); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 52px); letter-spacing: -1.5px; line-height: 1.05; }
.band { background: var(--bg2); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.sec { padding: 88px 0; }
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding: 40px 0 88px; }
.hero > div:first-child { padding-top: 48px; }
.hero > div:first-child { flex: 1 1 480px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: 14px; color: var(--text2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 80px); line-height: .98; letter-spacing: -2.5px; margin: 0 0 24px; }
.hero h1 span { color: var(--accent-ink); }
.lead { font-size: 20px; color: var(--text2); max-width: 540px; margin: 0 0 34px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.checks { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 36px; color: var(--muted); font-size: 15px; }
.checks span { display: flex; align-items: center; gap: 8px; }
.checks svg { color: var(--ok); }
.heroart { flex: 1 1 440px; min-width: 0; position: relative; padding: 0 0 40px 40px; }
.heroart > img { display: block; width: 100%; max-width: 460px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 32px; margin-left: auto; }
.phone { position: absolute; left: 0; bottom: 0; width: 170px; height: 300px; border-radius: 28px; border: 6px solid #0E0E12; background: #5B2333; overflow: hidden; box-shadow: var(--shadow); }
.phone .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: #3A1520; }
.phone .ring { position: absolute; left: 25px; top: 64px; width: 110px; height: 110px; border-radius: 50%; border: 9px solid var(--accent); }
.phone .ttl { position: absolute; left: 10px; right: 10px; top: 14px; margin: 0; font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.05; color: #F4F2EE; }
.phone .cap { position: absolute; left: 10px; right: 10px; bottom: 34px; margin: 0; padding: 7px 8px; background: #F4F2EE; color: #0E0E12; font-weight: 600; font-size: 12px; line-height: 1.25; border-radius: 9px; text-align: center; }
.phone .prog { position: absolute; left: 10px; right: 10px; bottom: 16px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); }
.phone .prog i { display: block; width: 62%; height: 4px; border-radius: 4px; background: var(--accent); }
.toast-card { position: absolute; right: 16px; top: 24px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: var(--chip); color: var(--chip-ink); box-shadow: var(--shadow); font-size: 14px; line-height: 1.3; }
.toast-card .okc { width: 34px; height: 34px; border-radius: 50%; background: #3DDC97; display: grid; place-items: center; flex: none; }
.toast-card small { color: var(--chip-muted); }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.who { background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.who img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.who div { padding: 24px; }
.who h3, .step h3 { font-size: 21px; margin: 0 0 6px; font-weight: 600; }
.who p, .step p { margin: 0; color: var(--muted); }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.step .n { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; margin: 0 0 18px; color: var(--accent-ink); }
.split { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 72px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 28px; }
.feat { display: flex; gap: 12px; }
.feat svg { flex: none; margin-top: 2px; color: var(--accent-ink); }
.feat p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.track { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.track .r { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sep { height: 1px; background: var(--line2); margin: 20px 0; }

/* ---------- planes */
.planhead { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; background: transparent; color: var(--text2); min-width: 64px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border-radius: 24px; padding: 32px 28px; background: var(--bg2); border: 1px solid var(--line); }
.plan.pop { background: var(--card); border: 2px solid var(--accent); }
.plan .tag { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; }
.plan h3 { font-family: var(--display); font-weight: 800; font-size: 26px; margin: 0 0 6px; }
.plan .what { margin: 0 0 22px; color: var(--muted); font-size: 15px; min-height: 46px; }
.plan .price { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .price b { font-family: var(--display); font-weight: 800; font-size: 52px; letter-spacing: -1.5px; }
.plan .jump { display: flex; align-items: center; gap: 10px; margin: 18px 0 24px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; }
.plan .jump svg { color: var(--accent-ink); flex: none; }
.plan .btn { margin-top: auto; }
.packhead { margin: 56px 0 20px; }
.packhead h3 { font-size: 30px; letter-spacing: -.8px; margin: 0 0 8px; }
.packhead p { margin: 0; max-width: 680px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pack { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.pack .n { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.pack .n small { font-family: Inter, system-ui, sans-serif; font-size: 16px; font-weight: 600; color: var(--muted); }
.pack .pp { font-size: 22px; font-weight: 700; }
.pack .save { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.pack .btn { margin-top: 10px; }
.credrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.credrow b { font-family: var(--display); font-size: 26px; }
.rules { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 32px; border-radius: 24px; background: var(--bg2); border: 1px solid var(--line); }
.rules .ico { width: 64px; height: 64px; border-radius: 18px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex: none; }
.rules > div { flex: 1 1 420px; min-width: 0; }
.rules h3 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.5px; margin: 0 0 8px; }
.rules p { margin: 0; color: var(--text2); }
.rules b { color: var(--text); font-weight: 600; }

/* ---------- la parte de la cuenta */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; margin: 0 0 20px; }
.card h2 { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.5px; margin: 0 0 16px; }
.apparea { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .apparea { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tabs button.on { border-color: var(--accent); color: var(--accent-ink); }
.pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 4px 0 6px; }
.pick label { position: relative; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; color: var(--text); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label:has(input:checked) { border-color: var(--accent); }
.pick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick b { font-size: 16px; }
.pick span { font-size: 13px; color: var(--muted); font-weight: 400; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.total b { font-family: var(--display); font-size: 30px; }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; margin: 14px 0 0; }
.order { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: start; }
.order + .order { border-top: 1px solid var(--line2); padding-top: 16px; margin-top: 16px; }
.order .t { font-weight: 600; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--bg2); color: var(--muted); }
.badge.queued { background: var(--violet-bg); color: var(--violet); }
.badge.working { background: var(--warn-bg); color: var(--warn); }
.badge.done { background: var(--ok-bg); color: var(--ok); }
.badge.failed { color: var(--bad); }
.bar { height: 8px; border-radius: 8px; background: var(--line2); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .6s; }
video { width: 100%; max-width: 300px; border-radius: 14px; background: #000; display: block; margin-top: 10px; }
video.h { max-width: 520px; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.live { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.live li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line2); }
.live li.me { border: 2px solid var(--accent); }
.live .pos { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); font-weight: 700; font-size: 14px; }
.live li.working .pos { background: var(--warn-bg); color: var(--warn); }
.live .nm { font-weight: 600; }
.live .tm { font-size: 14px; color: var(--muted); text-align: right; }

/* ---------- preguntas, cierre y pie */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 18px; cursor: pointer; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--text2); }
.final { background: linear-gradient(135deg, #0B6FC0, #00879C 55%, #00876A); color: #FFFFFF; border-radius: 32px; padding: 64px 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.final h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.5vw, 60px); letter-spacing: -2px; line-height: 1; margin: 0 0 14px; }
.final p { margin: 0; font-size: 19px; max-width: 520px; }
.final .btn { background: #FFFFFF; color: #00657A; border-color: #FFFFFF; }
footer.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; color: var(--faint); font-size: 14px; padding: 0 0 56px; }
footer.foot a { color: var(--faint); }

/* ---------- panel (admin) */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line2); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
.tablewrap { overflow-x: auto; }
.switch { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-size: 15px; }
.switch input { width: auto; min-height: 0; }
td input { min-height: 36px; padding: 6px 10px; }

dialog { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 22px; padding: 24px; max-width: 420px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog h3 { font-family: var(--display); font-size: 24px; margin: 0 0 10px; }
#toast { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
#toast div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; max-width: 340px; box-shadow: var(--shadow); }
#toast div.err { border-color: var(--bad); color: var(--bad); }
@media (max-width: 760px) {
  header.top nav, #who, .hacts > .btn.primary { display: none; }
  header.top { justify-content: space-between; }
}
@media (max-width: 600px) {
  .order { grid-template-columns: 1fr; }
  .acts { justify-content: flex-start; }
  .heroart { padding-left: 24px; }
  .phone { width: 130px; height: 230px; }
  .phone .ring { left: 20px; top: 52px; width: 80px; height: 80px; }
  .final { padding: 44px 24px; }
  .sec { padding: 64px 0; }
}
.quick { max-width: 900px; margin: 0 auto; border: 2px solid var(--accent); box-shadow: var(--shadow); }
.quick h2 { font-size: clamp(28px, 3.5vw, 40px); }
.tplgroup { display: flex; flex-direction: column; gap: 10px; }
.tplgroup h4 { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.tpls { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tpls label { position: relative; flex-direction: row; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--bg); cursor: pointer; color: var(--text); }
.tpls input { position: absolute; opacity: 0; pointer-events: none; }
.tpls label:has(input:checked) { border-color: var(--accent); }
.tpls label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw { width: 34px; height: 56px; border-radius: 7px; flex: none; display: grid; grid-template-rows: 3fr 1fr 1fr; overflow: hidden; border: 1px solid var(--line); }
.tpls b { display: block; font-size: 15px; }
.tpls span.w { font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.3; }
.eta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 14px 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.eta b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent-ink); }

/* ---- crear un reel, paso a paso */
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; counter-reset: st; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--faint); font-weight: 600; min-width: 0; }
.steps li::before { content: ''; height: 5px; border-radius: 99px; background: var(--line); }
.steps li.done::before, .steps li.on::before { background: var(--accent); }
.steps li.on { color: var(--text); }
.steps li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .steps li span { display: none; } .steps li.on span { display: block; overflow: visible; } }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-family: var(--display); font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin-bottom: 16px; padding: 0; }
.step label { margin-bottom: 14px; }
.step .sub { margin: 18px 0 8px; font-size: 14px; font-weight: 600; }
.bigpick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bigpick label { position: relative; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; color: var(--text); margin: 0; }
.bigpick label .ic { font-size: 30px; line-height: 1; }
.bigpick label b { font-family: var(--display); font-size: 20px; }
.bigpick label span { font-size: 14px; color: var(--muted); font-weight: 400; }
.bigpick input, .audiopick input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.bigpick label:has(input:checked), .audiopick label:has(input:checked) { border-color: var(--accent); background: var(--card); }
.bigpick label:has(input:focus-visible), .audiopick label:has(input:focus-visible), .chips label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.audiopick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.audiopick label { position: relative; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; color: var(--text); margin: 0; font-weight: 600; font-size: 15px; }
.audiopick .play { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.audiopick .play[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chips label { position: relative; display: inline-flex; margin: 0; }
.chips label span { padding: 8px 16px; border-radius: 99px; border: 2px solid var(--line); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); background: var(--bg); }
.chips label:has(input:checked) span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
#langSeg, #secPick, #tonePick { display: flex; flex-wrap: wrap; gap: 8px; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--bg2); font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; display: flex; align-items: baseline; gap: 8px; }
.summary dd span { flex: 1; min-width: 0; }
.summary dd button { flex: none; min-height: 0; padding: 2px 10px; font-size: 12px; }
.stepnav { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.stepnav #stepTxt { flex: 1; text-align: center; font-size: 13px; white-space: nowrap; }
.stepnav button { white-space: nowrap; }
@media (max-width: 480px) { .stepnav #stepTxt { visibility: hidden; min-width: 0; } .stepnav #btnOrder { padding-inline: 18px; } }
details.more { margin-top: 6px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent-ink); padding: 8px 0; }
details.more[open] summary { margin-bottom: 8px; }
.step.err textarea, .step.err .bigpick label { border-color: var(--bad); }

/* ---- crear un reel: el chat guiado (cada paso, una pregunta; tus respuestas quedan como mensajes que se tocan para volver) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chatbar { height: 5px; border-radius: 99px; background: var(--line); margin: 0 0 20px; overflow: hidden; }
.chatbar i { display: block; height: 100%; width: 16%; background: var(--accent); border-radius: 99px; transition: width .35s ease; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 100%; }
.msg .av { width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.msg .b { background: var(--bg2); border: 1px solid var(--line2); border-radius: 18px 18px 18px 4px; padding: 12px 16px; font-size: 15px; line-height: 1.45; max-width: min(520px, 85%); }
.msg.past .b { padding: 8px 14px; font-size: 14px; color: var(--muted); }
.msg .b small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.me { align-self: flex-end; max-width: min(460px, 82%); text-align: left; background: var(--accent); color: var(--on-accent); border: 0;
  border-radius: 18px 18px 4px 18px; padding: 10px 14px; font-weight: 600; font-size: 14px; line-height: 1.4; min-height: 44px; overflow-wrap: anywhere; }
.me:hover { filter: brightness(1.06); border: 0; }
.me .ed { opacity: .65; font-weight: 500; margin-left: 6px; font-size: 12px; white-space: nowrap; }
.chat .tiphint { align-self: flex-end; font-size: 12px; color: var(--faint); margin-top: -4px; }
@media (min-width: 640px) { #fOrder .step { padding-left: 0; } }

#kindPick { grid-template-columns: 1fr; }
#kindPick label { flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
#kindPick .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--bg2); color: var(--accent-ink); }
#kindPick .ic.negocio { color: var(--violet); background: var(--violet-bg); }
#kindPick .tx { display: flex; flex-direction: column; gap: 3px; }
#kindPick .tx b { font-family: Inter, system-ui, sans-serif; font-size: 16px; }
#voicePick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#musicPick { display: flex; flex-wrap: wrap; gap: 8px; }
#musicPick label { border-radius: 99px; padding: 4px 14px 4px 4px; font-size: 14px; gap: 8px; border-width: 1px; }
#musicPick label:has(input:checked) { border-width: 2px; padding: 3px 13px 3px 3px; }
#musicPick .play { width: 34px; height: 34px; }

#tplPick.picked h4, #tplPick.picked .tpls label:not(:has(input:checked)), #tplPick.picked details summary { display: none; }
#tplPick.picked details:not(:has(input:checked)) { display: none; }
#tplPick.picked details { margin: 0; }
#tplPick.picked .tpls { grid-template-columns: 1fr; }
#tplOthers { justify-self: start; align-self: flex-start; margin-top: 4px; }

/* 🛡 las fotos del negocio */
.photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.photos:empty { display: none; }
.ph { position: relative; margin: 0; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: var(--bg2); }
.ph img, .ph .ph0 { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ph figcaption { font-size: 11px; font-weight: 600; padding: 5px 7px; line-height: 1.3; }
.ph figcaption small { display: block; font-weight: 400; color: var(--muted); }
.ph.ok { border-color: var(--ok); } .ph.ok figcaption { color: var(--ok); }
.ph.rev { border-color: var(--warn); } .ph.rev figcaption { color: var(--warn); }
.ph.bad { border-color: var(--bad); } .ph.bad img { filter: blur(14px); } .ph.bad figcaption { color: var(--bad); }
.ph.chk img { opacity: .55; }
.ph .x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(14,14,18,.75); color: #fff; border: 0; font-size: 18px; line-height: 1; }

/* el reloj de torta del avance */
.pierow { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.pierow span { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.pierow.big { margin-top: 18px; gap: 18px; font-size: 17px; }
.pie circle:last-of-type { transition: stroke-dasharray .6s ease; }

/* 🔁 rehacer con correcciones */
dialog.redo { max-width: 560px; width: calc(100% - 32px); }
.redo h3 { margin: 0 0 6px; }
.redo h4 { margin: 14px 0 8px; font-size: 14px; }
.redo .fixes { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.redo .fixes legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.redo .fixes label { position: relative; margin: 0; }
.redo .fixes input { position: absolute; opacity: 0; }
.redo .fixes span { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 2px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; }
.redo .fixes label:has(input:checked) span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.redo .fixes label:has(input:focus-visible) span { outline: 2px solid var(--accent); outline-offset: 2px; }
.redo .rx { margin-top: 4px; }
.redo .audiopick { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.redo .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.fixline { display: block; color: var(--muted); margin-top: 2px; }
.redo #rxMusic { display: flex; flex-wrap: wrap; gap: 8px; }
.redo #rxMusic label { border-radius: 99px; padding: 4px 14px 4px 4px; font-size: 14px; gap: 8px; border-width: 1px; }
.redo #rxMusic label:not(:has(.play)) { padding-left: 14px; }
.redo #rxMusic .play { width: 34px; height: 34px; }

/* la vista previa de la plantilla (video en bucle) */
.tplprev { margin: 12px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tplprev video { width: min(220px, 60vw); aspect-ratio: 9 / 16; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); object-fit: cover; }
.tplprev figcaption { font-size: 12px; }

/* ---- la portada (propuesta 1): foto con el título, carruseles y, en el celular, la barra fija «Crear mi reel» */
.lhero { display: grid; gap: 22px; padding: 24px 0 8px; align-items: center; }
.lhcard { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 4.4; max-height: 460px; max-width: 100%; }
.lhcard img, .lhcard video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lhcard video { object-position: 50% 0; max-width: none; margin: 0; border-radius: 0; background: none; }  /* (alineado arriba: los avisos no se cortan; sin las reglas de los reels de los pedidos) */
.lhshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,18,0) 35%, rgba(14,14,18,.9) 100%); }
.lhcard h1 { position: absolute; left: 18px; right: 18px; bottom: 16px; margin: 0; color: #F4F2EE; font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 9vw, 64px); line-height: 1; letter-spacing: -1px; text-wrap: balance; }
.lhcard h1 span { background: linear-gradient(90deg, #5DB8FF, #3EE0C0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lhcard .toast-card { top: 14px; right: 14px; padding: 10px 12px; font-size: 13px; }
.lhtext .pill { margin-bottom: 14px; }
.lhtext .lead { font-size: 17px; margin: 0 0 14px; }
.lchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.lchips span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.lsec { padding-block: 40px 0; }
.lhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lhead h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.5px; }
.lswipe { font-size: 13px; color: var(--muted); }
.lsub { margin: -4px 0 14px; max-width: 620px; }
#planes .seg { width: max-content; max-width: 100%; margin: 0 0 16px; }
/* los carruseles: en el celular se deslizan de costado (con puntitos); en la compu, en fila */
.rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rdots { display: none; justify-content: center; gap: 6px; margin-top: 12px; }
.rdots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .2s, background .2s; }
.rdots i.on { width: 18px; background: var(--accent); }
.lwho { border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.lwho img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.lwho > div { padding: 14px 16px 16px; }
.lwho h3 { margin: 0 0 4px; font-size: 17px; }
.lwho p { margin: 0; font-size: 14px; color: var(--muted); }
.lsteps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.lsteps li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line2); font-size: 15px; }
.lsteps li > span { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; flex: none; }
.lfeats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lfeat { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); }
.lfeat svg { flex: none; color: var(--accent-ink); margin-top: 2px; }
.lfeat b { font-size: 14px; }
.lfeat p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
#planes .rules { margin-top: 28px; padding: 20px; gap: 16px; }
#planes .rules .ico { width: 48px; height: 48px; }
#planes .rules h3 { font-size: 19px; }
#faq .faq summary { font-size: 16px; padding: 16px 18px; }
#faq .faq details p { padding: 0 18px 18px; }
.lsec .final { padding: 36px 24px; border-radius: 24px; margin-bottom: 8px; }
/* la cuenta: una hoja (abajo en el celular, al centro en la compu) */
dialog.sheet { border: 0; padding: 0; background: transparent; width: min(560px, calc(100% - 32px)); max-height: 92vh; overflow: auto; }
dialog.sheet::backdrop { background: rgba(0,0,0,.55); }
dialog.sheet .card { margin: 0; position: relative; }
.sheetx { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; font-size: 22px; line-height: 1; }
.mbar { display: none; }
@media (min-width: 900px) {
  .lhero { grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 40px; }
  .lhcard { order: 2; aspect-ratio: 4 / 4.6; max-height: 620px; }
  .lswipe { display: none; }
}
@media (max-width: 899px) {
  .lhide-m { display: none; }
  .rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
  .rdots { display: flex; }
}
@media (max-width: 760px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .mbar span { flex: 1; font-size: 12px; color: var(--muted); line-height: 1.3; }
  .mbar .btn { padding-inline: 24px; font-weight: 800; }
  body[data-page="home"] { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 90vh; }
  dialog.sheet .card { border-radius: 24px 24px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
.lwho img { height: auto; }
@media (max-width: 899px) { .rail { padding-block: 14px 4px; margin-top: -10px; } }
@media (max-width: 899px) { .lfeats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .lfeat { padding: 10px; } }

/* 🛠 el aviso de mantenimiento (ui/notice.js) */
.notice { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; flex-direction: column; gap: 2px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--warn-bg); color: var(--text); border-bottom: 1px solid var(--warn); font-size: 14px; line-height: 1.4; text-align: center; }
.notice b { color: var(--warn); }

/* las plantillas: un carrusel de costado; la del centro es la elegida y su video se mueve */
.tplnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.tplnav span { font-size: 13px; text-align: center; flex: 1; }
.tarrow { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; font-size: 24px; line-height: 1; }
.tplrail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 6px calc(50% - 105px) 10px; }
.tplrail::-webkit-scrollbar { display: none; }
.tcard { position: relative; flex: 0 0 210px; scroll-snap-align: center; display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0;
  border-radius: 20px; overflow: hidden; border: 2px solid var(--line); background: var(--card); cursor: pointer; transform: scale(.92); opacity: .7;
  transition: transform .25s, opacity .25s, border-color .25s; }
.tcard.on { transform: scale(1); opacity: 1; border-color: var(--accent); }
.tcard input { position: absolute; opacity: 0; pointer-events: none; }
.tcard:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tcard video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: var(--bg2); }
.tinfo { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.tinfo b { font-size: 16px; }
.tinfo span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.tinfo small { font-size: 11px; font-weight: 700; color: var(--accent-ink); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .tcard { transition: none; } }

/* 🎨 el estilo de las imágenes */
.stylepick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .stylepick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stylepick label { position: relative; flex-direction: column; gap: 0; margin: 0; padding: 0; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.stylepick input { position: absolute; opacity: 0; pointer-events: none; }
.stylepick label:has(input:checked) { border-color: var(--accent); }
.stylepick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.stylepick img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--bg2); }
.stylepick span { display: flex; flex-direction: column; padding: 8px; }
.stylepick b { font-size: 14px; }
.stylepick small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.stylepick b { font-size: 13px; overflow-wrap: anywhere; }

/* 🛡 panel: fotos por revisar */
.reviewgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

/* 🏷 el cupón en el diálogo de pago */
.couponrow { display: flex; gap: 8px; margin-top: 12px; }
.couponrow input { flex: 1; min-width: 0; text-transform: uppercase; }
.couponrow input::placeholder { text-transform: none; }

/* 🛡 el captcha (Turnstile) del formulario de la cuenta: solo ocupa lugar si aparece */
.captcha:empty { display: none; }
.captcha { margin: 4px 0 12px; min-height: 65px; }

/* 📜 la página de términos y la casilla de aceptarlos */
.legal article h1 { font-size: 30px; margin: 0 0 6px; }
.legal article h2 { font-size: 19px; margin: 26px 0 8px; }
.legal article p, .legal article li { line-height: 1.6; }
.legal article ul { padding-left: 20px; }
label.chk { flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; margin: 4px 0 12px; font-size: 14px; color: var(--text); }
label.chk input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--accent); }
label.chk[hidden] { display: none; }

/* ---------- crear: los pasos que se pliegan (lo hecho arriba, el paso actual abierto, lo que falta abajo) */
#new .chatbar { display: none; }
.fold, .foldnext { display: flex; flex-direction: column; }
.foldrow { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; min-width: 0; }
.foldtx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foldok { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ok); color: var(--bg); display: grid; place-items: center; }
.foldn { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--grad); color: var(--on-grad); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.foldn.off { background: none; border: 2px solid var(--line); color: var(--faint); font-size: 13px; }
.foldnext .foldrow { opacity: .6; font-weight: 600; }
.foldcur { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin: 10px 0 12px; }
.foldhead { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.foldhead h3 { font-family: var(--display); font-weight: 800; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.15; margin: 1px 0 0; }
.foldhead small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.foldcur .stepnav { margin-top: 20px; }
@media (max-width: 480px) { .foldcur { padding: 16px; margin-inline: -6px; } }
.foldcur .step { background: none; border-radius: 0; }

/* como la maqueta C: la página oscura, el paso actual en una tarjeta más clara, la línea que une los pasos */
body[data-page="crear"] #new.quick { background: transparent; border: 0; box-shadow: none; padding-inline: 4px; }
.fold .foldrow, .foldnext .foldrow { position: relative; }
.fold .foldrow::after { content: ''; position: absolute; left: 14px; top: calc(50% + 17px); height: calc(100% - 34px); width: 2px; background: var(--ok); }
.foldcur { position: relative; margin-left: 44px; background: var(--card); border-color: var(--line); }
.foldcur .foldhead .foldn { position: absolute; left: -44px; top: 22px; }
.foldcur::before { content: ''; position: absolute; left: -30px; top: 58px; bottom: -12px; width: 2px; background: var(--line); }
.foldhead { padding-top: 2px; }
.foldcur input, .foldcur textarea, .foldcur select { background: var(--bg); }
.foldcur .bigpick label:has(input:checked), .foldcur .audiopick label:has(input:checked) { background: var(--bg); }
/* idioma: un selector segmentado */
.foldcur #langSeg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); }
.foldcur #langSeg label { flex: 1; }
.foldcur #langSeg label span { display: block; width: 100%; text-align: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 9px 8px; }
.foldcur #langSeg label:has(input:checked) span { background: var(--line); color: var(--text); }
/* músicas: cada una con su color */
#musicPick label { --mc: var(--accent); }
#musicPick label:has(input[value="aventura"]) { --mc: #10B3C4; background: #0A3340; }
#musicPick label:has(input[value="tranquilo"]) { --mc: #3DDC97; background: #0F2A22; }
#musicPick label:has(input[value="drama"]) { --mc: #FF8FA3; background: #2E1A24; }
#musicPick label:has(input[value="humor"]) { --mc: #FFB347; background: #2C2214; }
#musicPick label:has(input[value="tecnologia"]) { --mc: #5DB8FF; background: #0E2740; }
#musicPick label:has(input[value="misterio"]) { --mc: #A89BFF; background: #1F1E36; }
#musicPick label:has(input[value="trailer"]) { --mc: #F2C14E; background: #2A2418; }
#musicPick label .play { color: var(--mc); border-color: color-mix(in srgb, var(--mc) 45%, transparent); }
#musicPick label:has(input:checked) { border-color: var(--mc); }
:root[data-theme="light"] #musicPick label:not(:has(input[value=""])) { background: color-mix(in srgb, var(--mc) 12%, #FFFFFF); }
:root[data-theme="light"] #musicPick label .play { color: color-mix(in srgb, var(--mc) 70%, #062A33); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) #musicPick label:not(:has(input[value=""])) { background: color-mix(in srgb, var(--mc) 12%, #FFFFFF); }
  :root:not([data-theme="dark"]) #musicPick label .play { color: color-mix(in srgb, var(--mc) 70%, #062A33); }
}
@media (max-width: 480px) { .foldcur { margin-left: 38px; margin-right: 0; } .foldcur .foldhead .foldn { left: -38px; } .foldcur::before { left: -24px; } }
/* la estructura de la maqueta C: botón ancho, voces en renglones, músicas en tarjetas que se deslizan, ideas */
.foldcur .stepnav #stepTxt { display: none; }
.foldcur .stepnav #btnNext, .foldcur .stepnav #btnOrder { flex: 1; min-height: 50px; border-radius: 14px; font-size: 16px; }
.foldcur .stepnav #btnBack { border-radius: 14px; min-height: 50px; }
.foldcur .stepnav #btnBack[style*="hidden"] { display: none; }
.foldcur #voicePick { grid-template-columns: 1fr; gap: 8px; }
.foldcur #voicePick label { padding: 10px 12px; }
.foldcur #voicePick label:has(input:checked)::after { content: 'Elegida'; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.foldcur #voicePick .play { width: 44px; height: 44px; }
.foldcur #musicPick { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.foldcur #musicPick label { flex: none; width: 96px; height: 96px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 10px; border-width: 1px; border-radius: 16px; scroll-snap-align: start; font-size: 13px; }
.foldcur #musicPick .play { width: 34px; height: 34px; }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.ideas span { width: 100%; font-size: 12px; color: var(--muted); }
.ideas button { font-weight: 500; font-size: 13px; }
.foldcur #musicPick label:has(input:checked) { padding: 9px; border-width: 2px; }

/* ---------- /crear en pestañas: Crear · Mis reels · Perfil */
.tabbar { display: flex; gap: 6px; padding: 5px; margin: 6px auto 4px; max-width: 520px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); position: sticky; top: 8px; z-index: 5; }
.tabbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.tabbar a:hover { color: var(--text); }
.tabbar a[aria-current="page"] { background: var(--grad); color: var(--on-grad); }
#who a { color: var(--text2); text-decoration: none; font-weight: 600; }
#who a:hover { color: var(--text); }
.profgrid { max-width: 900px; margin: 0 auto; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.profgrid .profhead { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; }
.avatar { width: 76px; height: 76px; flex: none; border-radius: 50%; background: var(--grad); color: var(--on-grad); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 28px; }
.pinfo { flex: 1 1 220px; min-width: 0; }
.pinfo h2 { font-size: clamp(24px, 3vw, 30px); overflow-wrap: anywhere; }
.pinfo p { margin: 2px 0 0; overflow-wrap: anywhere; }
.pstats { display: flex; gap: 10px; flex: 1 1 300px; }
.pstats div { flex: 1; text-align: center; padding: 12px 8px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line2); }
.pstats b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.pstats span { font-size: 13px; color: var(--muted); }
.profgrid #acctCard { grid-row: span 2; }
@media (max-width: 760px) { .profgrid { grid-template-columns: minmax(0, 1fr); } .profgrid #acctCard { grid-row: auto; } }
@media (max-width: 480px) { .tabbar a { font-size: 14px; gap: 6px; } .tabbar svg { display: none; } }
.tabpane.sec { padding-top: 22px; }

/* ---------- 🏅 gamificación: nivel, puntos, insignias, ranking y el «+ puntos» de lo que no probaste */
.profgrid .gamecard { grid-column: 1 / -1; }
.lvl { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.lvlbadge { width: 68px; height: 68px; flex: none; border-radius: 20px; background: var(--grad); color: var(--on-grad); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 30px; transform: rotate(-6deg); box-shadow: 0 10px 30px rgba(16,179,196,.25); }
.lvlbadge span { transform: rotate(6deg); }
.lvlinfo { flex: 1 1 220px; min-width: 0; }
.lvlinfo h3 { font-family: var(--display); font-size: 24px; margin: 0 0 8px; }
.lvlbar { height: 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line2); overflow: hidden; margin-bottom: 6px; }
.lvlbar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s ease; }
.gnums { display: flex; gap: 10px; flex: 1 1 320px; }
.gnums div { flex: 1; text-align: center; padding: 10px 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line2); }
.gnums b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.gnums span { font-size: 12px; color: var(--muted); }
.gsub { margin: 22px 0 10px; font-size: 17px; }
.badges { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 14px 10px; border-radius: 16px;
  background: var(--bg); border: 1px dashed var(--line); opacity: .55; }
.badge .bico { font-size: 30px; line-height: 1.1; filter: grayscale(1); }
.badge b { font-size: 14px; }
.badge small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.badge.on { opacity: 1; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.badge.on .bico { filter: none; }
.badge.on small { color: var(--accent-ink); font-weight: 600; }
.explore { display: flex; flex-direction: column; gap: 8px; }
.exrow { display: grid; grid-template-columns: 130px 1fr 44px 110px; align-items: center; gap: 10px; font-size: 14px; }
.exbar { height: 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line2); overflow: hidden; }
.exbar i { display: block; height: 100%; background: var(--grad); }
.exrow small { font-size: 12px; }
@media (max-width: 520px) { .exrow { grid-template-columns: 1fr 44px; } .exrow .exbar { grid-column: 1 / -1; grid-row: 2; } .exrow small { grid-column: 1 / -1; } }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.board li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line2); }
.board li.me { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.board .bpos { width: 28px; text-align: center; font-weight: 800; color: var(--muted); }
.board .bname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.board li.empty { justify-content: center; font-size: 14px; }
#fOrder label.fresh { position: relative; }
#fOrder label.fresh::before { content: attr(data-pts); position: absolute; top: -8px; right: -6px; z-index: 2; padding: 2px 7px; border-radius: 99px;
  background: var(--grad); color: var(--on-grad); font: 800 11px Inter, system-ui, sans-serif; letter-spacing: .2px; pointer-events: none; }
.foldcur #langSeg label.fresh::before { top: -10px; right: 2px; }
#fOrder .tcard.fresh::before { top: 8px; right: 8px; }
.foldcur #musicPick { padding-top: 10px; }
/* las insignias en una fila que se desliza al costado (ganadas primero), y el botón de compartir */
.gsubrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.barrows { display: flex; gap: 6px; margin-top: 12px; }
.barrows button { width: 38px; min-height: 38px; padding: 0; font-size: 20px; border-radius: 50%; }
.badges { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.badges .badge { flex: 0 0 150px; scroll-snap-align: start; }
.badges:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
@media (max-width: 520px) { .badges .badge { flex-basis: 128px; } .barrows { display: none; } }
.sharebox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 12px; padding: 14px 16px;
  border-radius: 16px; background: var(--bg); border: 1px solid var(--line2); }
.sharebox > div:first-child { display: flex; flex-direction: column; gap: 2px; flex: 1 1 240px; }
.shareacts { display: flex; gap: 8px; flex-wrap: wrap; }
.profgrid > * { min-width: 0; }
.sharetx { display: flex; flex-direction: column; gap: 4px; flex: 1 1 300px; min-width: 0; }
.reflink { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; margin-top: 4px; padding: 6px 10px; border-radius: 10px; background: var(--card);
  border: 1px solid var(--line); font-size: 13px; user-select: all; }
.refnums { font-size: 12px; color: var(--muted); }

/* ---------- panel del dueño en pestañas: Resumen (números + gráficas) · Pedidos · Precios · Ajustes */
.admtabs { max-width: 640px; margin: 14px auto 20px; }
.admtabs a { position: relative; }
.admtabs .tabn { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn); color: #1a1405; font-size: 12px; display: inline-grid; place-items: center; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; min-width: 0; }
.kpi span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-family: var(--display); font-size: 32px; line-height: 1.15; margin: 4px 0 2px; overflow-wrap: anywhere; }
.kpi b small { font-size: 14px; color: var(--muted); font-family: inherit; }
.kpi > small { color: var(--faint); font-size: 13px; }
.growth .ghead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.growth .ghead h2 { margin: 0; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.seg button { min-height: 34px; padding: 4px 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--grad); color: var(--on-grad); }
.chart { position: relative; margin-top: 14px; }
.chart .chead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; margin-bottom: 4px; }
.chart .chead span { color: var(--muted); font-size: 14px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart text { fill: var(--faint); font-size: 11px; font-family: inherit; }
.chart .grid { stroke: var(--line2); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .12; }
.chart .bar { fill: var(--accent); }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .tip { position: absolute; top: 26px; pointer-events: none; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; box-shadow: var(--shadow); white-space: nowrap; }
.chart .tip small { display: block; color: var(--muted); font-size: 12px; }
.chart .tip b { display: block; font-size: 15px; }
.ofilter { display: flex; margin: -4px 0 14px; max-width: 420px; }
.ofilter button { flex: 1; padding-inline: 8px; white-space: nowrap; }
.gtable { margin-top: 14px; }
.gtable summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.gtable .tablewrap { max-height: 300px; overflow-y: auto; }
@media (max-width: 760px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi b { font-size: 26px; }
  .admtabs { position: sticky; top: 8px; }
}
/* en el celular, cada fila de tabla es una tarjeta: título arriba, el resto «etiqueta: valor» */
@media (max-width: 640px) {
  .card { padding: 18px; border-radius: 18px; }
  .card h2 { font-size: 23px; }
  .cardtable thead { display: none; }
  .cardtable, .cardtable tbody, .cardtable tr, .cardtable td { display: block; width: 100%; }
  .cardtable tr { border: 1px solid var(--line2); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg); }
  .cardtable td { border: 0; padding: 4px 0; text-align: right; }
  .cardtable td[data-l]::before { content: attr(data-l); float: left; margin-right: 12px; padding-top: 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
  .cardtable td input[type="number"] { display: inline-block; width: 110px; }
  .cardtable td .badge { display: inline-block; width: auto; }
  .cardtable td input[type="checkbox"] { width: 24px; height: 24px; min-height: 0; margin: 0; vertical-align: middle; }
  .cardtable td.ttl { text-align: left; font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--line2); margin-bottom: 4px; }
  .cardtable td.oid, .cardtable td.ouser { display: inline-block; width: auto; padding: 0 8px 2px 0; color: var(--muted); }
  .cardtable td.acts { display: flex; justify-content: flex-start; flex-wrap: wrap; padding-top: 8px; }
  .cardtable td.acts:empty { display: none; }
  .cardtable td[colspan] { display: block; text-align: center; }
  .tablewrap { overflow-x: visible; }
  .cpform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpform > button { grid-column: 1 / -1; }
  .cpform input, .cpform select { max-width: none !important; }
}
@media (max-width: 420px) { .admtabs { gap: 2px; } .admtabs a { flex-direction: column; gap: 0; min-height: 52px; font-size: 12px; } }
@media (max-width: 330px) { .admtabs a span { display: none; } .admtabs a { font-size: 20px; } }

.keepnote { display: block; margin-top: 6px; }

/* 🔑 «¿Olvidaste tu contraseña?» debajo de Entrar: un link, no otro botón */
.linkbtn { display: block; margin: 12px auto 0; background: none; border: 0; padding: 6px; min-height: 0; color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
