/* Buyer area: flat and instructional. Login card, then three step cards (1 install, 2 guide, 3 first video)
   with a side column for help, feedback and the full service, and a short changelog at the bottom. Tokens and fonts come from ../estilos.css
   (Gydo design system: Outfit for display, Inter for text). No gradients, no glows. */
body.cuenta { min-height: 100vh; background: var(--bg); }
body.cuenta .btn-accent { box-shadow: none; }
[hidden] { display: none !important; }

.c-muted { color: var(--text-2); margin: 0; }
.c-small { font-size: 13px; }
.c-sel { color: var(--text); user-select: all; font-weight: 600; }
.c-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.c-link { background: none; border: 0; padding: 0; color: var(--text); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.c-link:hover { text-decoration-color: var(--text); }
.cuenta code { font: 500 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--fill); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; color: var(--text); }
.btn-ghost { background: var(--fill); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-2); }

/* Top bar with avatar menu */
.c-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto;
  padding: 18px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--border); }
.c-user { position: relative; }
.c-avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--accent); color: #fff;
  display: grid; place-items: center; padding: 0; overflow: hidden; cursor: pointer; font: 600 14px var(--font-sans); }
.c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.c-avatar:hover, .c-avatar[aria-expanded="true"] { outline: 2px solid var(--border-strong); outline-offset: 2px; }
.c-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; width: 260px; display: grid; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 16px 40px rgb(0 0 0 / .45); }
.c-menu-head { display: grid; gap: 2px; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.c-menu-head b { font-weight: 600; }
.c-menu-head span { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-menu a, .c-menu button, .c-menu-item { display: block; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none;
  color: var(--text); font: 500 14px var(--font-sans); text-decoration: none; cursor: pointer; }
.c-menu-item { color: var(--text-2); cursor: default; font-size: 13px; }
.c-menu a:hover, .c-menu button:hover { background: var(--fill); }

/* Login: form on the left, a real reel with its numbers on the right. Flat, no card chrome. */
.c-login { padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.c-auth { max-width: 1120px; min-height: calc(100vh - 74px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; padding-block: 48px; }
.c-auth-form { width: min(380px, 100%); justify-self: center; display: grid; gap: 16px; }
.c-auth-form h1 { font-size: clamp(32px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.05; margin-top: -4px; }
.c-auth-form > .c-muted { margin-top: -6px; }
.c-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c-google { margin-top: 8px; width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--radius-md);
  border: 0; background: var(--text); color: var(--bg); font: 600 15px var(--font-sans); cursor: pointer; transition: opacity .15s; }
.c-google:hover { opacity: .9; }
.c-google svg { width: 18px; height: 18px; }
.c-or { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 13px; }
.c-or::before, .c-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.c-form { display: grid; gap: 10px; }
.c-form label { font-size: 14px; color: var(--text-2); line-height: 1.45; }
.c-form label b { color: var(--text); font-weight: 600; }
.c-form input { width: 100%; padding: 13px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--bg-subtle); color: var(--text); font: 15px var(--font-sans); }
.c-form input::placeholder { color: color-mix(in srgb, var(--text-2) 70%, transparent); }
.c-form input:focus { outline: none; border-color: var(--text-2); }
.c-form .btn { padding-block: 13px; border-radius: var(--radius-md); font-size: 15px; }
.c-otp { text-align: center; letter-spacing: .45em; font: 600 22px ui-monospace, "SF Mono", Menlo, monospace !important; }
.c-msg { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--text-2); }
.c-msg:empty { display: none; }
.c-msg.error { color: var(--danger); }
.c-auth-foot { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.c-auth-foot a { color: var(--text); text-underline-offset: 3px; }

.c-auth-side { align-self: stretch; display: grid; align-content: center; justify-items: center; gap: 24px; padding: 40px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-subtle); }
.c-phone { width: min(240px, 100%); aspect-ratio: 9 / 16; border-radius: 28px; padding: 6px; background: #000; border: 1px solid var(--border-strong); }
.c-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; display: block; }
.c-auth-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 380px; text-align: center; }
.c-auth-stats p { margin: 0; display: grid; gap: 2px; }
.c-auth-stats b { font: 600 22px var(--font-display); letter-spacing: -0.02em; }
.c-auth-stats span { font-size: 12px; color: var(--text-2); line-height: 1.3; }
.c-auth-note { margin: 0; font-size: 13px; color: var(--text-2); }

/* No-access view keeps a simple centered card */
.c-login-card { width: min(420px, 100%); margin: 12vh auto 80px; display: grid; gap: 18px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.c-login-card h1 { font-size: 26px; letter-spacing: -0.02em; }

@media (max-width: 860px) {
  .c-auth { grid-template-columns: minmax(0, 1fr); gap: 32px; min-height: 0; }
  .c-auth-side { padding: 24px; }
  .c-phone { width: 180px; }
}

/* Area */
.c-area { max-width: 1120px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-left, 0px)) 80px; display: grid; gap: 32px; }

/* Header: title on the left, version facts on the right */
.c-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.c-hero-text { display: grid; gap: 8px; min-width: 0; }
.c-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1; }
.c-hero-sub { font-size: 16px; }
.c-facts { display: flex; flex-wrap: wrap; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.c-facts > div { display: grid; gap: 4px; padding: 12px 18px; border-left: 1px solid var(--border); }
.c-facts > div:first-child { border-left: 0; }
.c-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.c-facts dd { margin: 0; font: 600 15px var(--font-sans); color: var(--text); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.c-ver { font: 700 20px var(--font-display); letter-spacing: -0.01em; color: var(--text); }
.c-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); }
.c-badge.new { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); }
.c-preparing { max-width: 520px; }

.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.c-main { display: grid; gap: 20px; min-width: 0; }

/* Steps as cards: number, title and one line up top, the content below */
.c-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.c-step-item { display: grid; gap: 22px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.c-step-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.c-step-head h2 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 6px; }
.c-marker { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--font-display);
  color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.c-step-item.done .c-marker { background: var(--success); border-color: var(--success); color: #062016; }
.c-step-item.done .c-marker b { display: none; }
.c-step-item.done .c-marker::after { content: ""; width: 14px; height: 8px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.c-step-body { display: grid; gap: 16px; min-width: 0; }
.c-sub { display: grid; gap: 4px; margin-top: 6px; }
.c-sub h3 { margin: 0; font: 600 16px var(--font-sans); }
.c-note { margin-top: -4px; }

/* Segmented agent picker */
.c-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-subtle); justify-self: start; max-width: 100%; }
.c-seg button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--text-2); font: 500 14px var(--font-sans); cursor: pointer; }
.c-seg button img { width: 16px; height: 16px; }
.c-seg button:hover { color: var(--text); }
.c-seg button[aria-selected="true"] { background: var(--fill); border-color: var(--border-strong); color: var(--text); }

/* Code block like the dForms MCP page */
.c-code { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); overflow: hidden; }
.c-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.c-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; color: #fff; background: var(--accent); font: 600 13px var(--font-sans); text-transform: none; letter-spacing: 0; cursor: pointer; padding: 6px 12px; border-radius: 8px; }
.c-copy:hover { background: var(--accent-hover); }
.c-copy:disabled { opacity: .5; cursor: default; }
.c-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.c-code pre { margin: 0; padding: 16px 16px 18px; font: 13px/1.7 ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow-y: auto; }

.c-manual { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; background: var(--bg-subtle); }
.c-manual summary { cursor: pointer; font-weight: 500; font-size: 14px; }
.c-manual ol { margin: 12px 0 14px; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); font-size: 14px; }
.c-manual ol code { overflow-wrap: anywhere; }
/* The .zip label is text plus a size <span>: as an inline-flex .btn those became two flex items side by side
   and each wrapped on its own at 375 px. Plain block text wraps as one line of words instead. */
.c-manual [data-zip] { display: block; width: fit-content; max-width: 100%; line-height: 1.35; text-align: center; }
.c-manual [data-zip] span { white-space: nowrap; }
.c-fine { margin: 0; font-size: 13px; color: var(--text-2); }
.c-warn { margin: 0; font-size: 14px; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); border-radius: var(--radius-md); padding: 10px 12px; }

.c-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 12px; }
.c-pages img { width: 100%; aspect-ratio: 372 / 527; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: #fff; transition: transform .2s; }
.c-pages:hover img { border-color: var(--border-strong); transform: translateY(-2px); }
.c-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Step 3: what /reel asks, a few formats, then the phases */
.c-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: f; }
.c-flow li { position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 44px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-subtle); min-width: 0; }
.c-flow li::before { counter-increment: f; content: counter(f); position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font: 700 11px var(--font-sans); color: var(--bg); background: var(--text-2); }
.c-flow b { font-weight: 600; font-size: 14px; }
.c-flow span { font-size: 13px; color: var(--text-2); }
.c-formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.c-formats a { display: grid; gap: 8px; color: var(--text-2); text-decoration: none; min-width: 0; }
.c-formats img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-subtle); transition: transform .2s, border-color .2s; }
.c-formats a:hover img { transform: translateY(-2px); border-color: var(--border-strong); }
.c-formats a:hover { color: var(--text); }
.c-formats span { font: 500 13px/1.25 var(--font-sans); }
.c-more { justify-self: start; margin-top: -4px; font: 600 14px var(--font-sans); color: var(--accent); text-decoration: none; }
.c-more:hover { color: var(--accent-hover); }

.c-cmds { list-style: none; margin: 0; padding: 0; counter-reset: c; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-subtle); }
.c-cmds li { display: grid; grid-template-columns: 24px minmax(0, 170px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px; font-size: 14px; border-top: 1px solid var(--border); }
.c-cmds li:first-child { border-top: 0; }
.c-cmds li::before { counter-increment: c; content: counter(c); font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text-2); }
.c-cmds li.first { background: var(--accent-soft); }
.c-cmds li.first code { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.c-cmds code { justify-self: start; }
.c-cmds span { color: var(--text-2); }
.c-tools { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--text-2); }
.c-tools > span:not(.c-muted) { display: inline-flex; align-items: center; gap: 6px; }

/* Side column: help, feedback, done-for-you */
.c-side { display: grid; gap: 16px; position: sticky; top: 24px; }
.c-box { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.c-box h2 { font-size: 17px; letter-spacing: -0.01em; }
.c-box .btn { justify-self: start; }
.c-feedback { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--accent-soft); }

/* Buyer questions (renderSurvey in cuenta.js): a band on top of the main column, the 3 fields in a row */

/* What's new: full width at the bottom */
.c-news { display: grid; gap: 18px; padding-top: 32px; border-top: 1px solid var(--border); }
.c-news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.c-news-head h2 { font-size: 24px; letter-spacing: -0.015em; }
.c-news-head p { max-width: 520px; }
.c-news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.c-news-grid:has(> .c-news-old[hidden]) { grid-template-columns: minmax(0, 1fr); }
.c-news-latest { display: grid; gap: 12px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.c-news .v { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.c-news-latest .v b { font: 700 20px var(--font-display); }
.c-news .v span { font-size: 13px; color: var(--text-2); }
.c-news-latest .v i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
  padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); }
.c-news ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); max-width: 780px; overflow-wrap: anywhere; }
.c-news ul b { color: var(--text); font-weight: 600; }
.c-news ul li::marker { color: var(--accent); }
.c-news ul li.h { list-style: none; margin: 6px 0 -2px -18px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.c-news ul li.h:first-child { margin-top: 0; }
.c-news-toggle { justify-self: start; font-size: 14px; font-weight: 600; }
.c-news-old { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.c-news-old > summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15px; }
.c-news-old > summary span { color: var(--text-2); font-weight: 500; }
.c-news-old > ol { list-style: none; margin: 0; padding: 0 8px 8px; }
.c-news-old > ol > li { border-top: 1px solid var(--border); }
.c-news-old details > summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 11px 12px; font-size: 14px; }
.c-news-old details > summary b { font-weight: 600; }
.c-news-old details ul { padding: 0 12px 14px 30px; font-size: 13px; }
.c-news summary::marker { color: var(--text-2); }
.c-demo { text-align: center; font-size: 13px; color: var(--text-2); margin: 0; }

/* Bought in the other language: a thin bar under the top bar linking to that version of the account */
.c-switch { max-width: 1120px; margin: 12px auto 0; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.c-switch p { margin: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  font-size: 14px; color: var(--text-2); }
.c-switch a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 920px) {
  .c-grid, .c-news-grid { grid-template-columns: minmax(0, 1fr); }
  .c-side { position: static; }
}
@media (max-width: 560px) {
  .c-area { padding-top: 28px; gap: 24px; }
  .c-hero { padding-bottom: 22px; }
  .c-facts { width: 100%; }
  .c-facts > div { flex: 1 1 0; min-width: 0; padding: 10px 12px; }
  .c-facts dd { font-size: 13px; white-space: normal; flex-wrap: wrap; gap: 4px 6px; }
  .c-ver { font-size: 17px; }
  .c-step-item { padding: 20px 16px; gap: 18px; }
  .c-step-head { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .c-step-head h2 { font-size: 20px; }
  .c-marker { width: 36px; height: 36px; font-size: 15px; }
  .c-flow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .c-flow li { padding: 9px 12px 9px 42px; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: baseline; }
  .c-flow li::before { top: 10px; }
  .c-formats { gap: 8px; }
  .c-formats img { aspect-ratio: 3 / 4; }
  .c-formats span { font-size: 12px; }
  .c-cmds li { grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; }
  .c-cmds span { grid-column: 2; font-size: 13px; }
      .c-news-latest { padding: 18px 16px; }
  .c-login-card { padding: 24px 20px; }
  .c-manual [data-zip] { padding: 10px 12px; font-size: 14px; }
}
