/* AVL Press — the thirteen service screens of the studio (SPEC-037, front B).
   The v3 look of the approved prototype, on the studio's own tokens (style.css,
   css/estudio.css): one top band (dark ink in the dark and mixed themes), the
   configurator on the left, the sticky purchase card on the right, one gold
   button. Classes are prefixed `sv-` so nothing here leaks into the rest. */

.servicio-pantalla { min-width: 0; color: var(--ink); }
.servicio-pantalla .ic { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── The band on top ─────────────────────────────────────────────────────── */
.sv-band { margin: 0 -16px 1.5rem; padding: 1.5rem 16px 1.6rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.sv-header { max-width: 48rem; }
.sv-eyebrow { display: flex; align-items: center; gap: .45rem; margin: 0 0 .5rem; color: var(--gold); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.sv-eyebrow .ic { width: 1.1rem; height: 1.1rem; }
.sv-eyebrow-quiet { color: var(--muted); }
.sv-title { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 500; line-height: 1.12; overflow-wrap: anywhere; }
.sv-lede { max-width: 62ch; margin: .7rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
/* Dark ink in the dark theme and in the mixed theme (sidebar dark, paper-light content). */
:root[data-mode="mixed"] .sv-band,
:root[data-theme="dark"] .sv-band {
  --bg: #0a0d13; --surface: #121823; --line: #222b39; --line-2: #2d384a;
  --ink: #ece9e1; --muted: #9b9a91; --dim: #8a8f99; --gold: #cda94e; --on-gold: #0a0d13;
  color: var(--ink); background: var(--bg); color-scheme: dark;
}
:root[data-theme="light"]:not([data-mode="mixed"]) .sv-band { background: var(--bg2); }

/* ── Layout: configurator + purchase card ───────────────────────────────── */
.sv-body { min-width: 0; }
.sv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; align-items: start; }
.sv-main { display: contents; }
.servicio-pantalla .sv-card { min-width: 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface); }
.sv-card h2 { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.sv-card h3 { margin: 0; font-size: 1rem; }
.sv-lede-small { margin: .55rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.sv-section-block { margin-top: 1rem; }
.sv-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.sv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; margin-top: 1rem; }
.sv-note { margin: .6rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.sv-dim { color: var(--dim); font-size: .78rem; }
.sv-loading { margin: 1.5rem 0; color: var(--muted); font-size: .9rem; }

/* The purchase card: live price, the chosen book, «Qué incluye», THE gold button.
   In one column it follows the configurator (the author chooses, then orders). */
.sv-purchase { order: 0; }
.sv-target { margin: .5rem 0 0; color: var(--muted); font-size: .8rem; }
.sv-target strong { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.sv-price { margin: .4rem 0 .2rem; color: var(--gold); font-family: var(--serif); font-size: 1.9rem; font-variant-numeric: tabular-nums; }
:root[data-theme="light"] .sv-price { color: var(--gold); }
.sv-lines { margin: .3rem 0 .5rem; padding: 0; list-style: none; }
.sv-lines li { display: flex; justify-content: space-between; gap: .75rem; padding: .2rem 0; color: var(--dim); font-size: .78rem; }
.sv-lines li span:last-child { white-space: nowrap; }
.sv-delivery { margin: .15rem 0 1rem; color: var(--muted); font-size: .8rem; }
.sv-section-title { margin: 0 0 .5rem; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.sv-includes { margin: 0 0 1rem; padding: 0; list-style: none; }
.sv-includes li { display: flex; align-items: flex-start; gap: .5rem; padding: .5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; line-height: 1.45; }
.sv-includes .ic { width: .95rem; height: .95rem; margin-top: .15rem; color: var(--gold); }
.sv-purchase .btn-primario { width: 100%; }
.sv-estimate { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .74rem; line-height: 1.5; }

/* ── Fields and choices ─────────────────────────────────────────────────── */
.sv-field { display: block; min-width: 0; }
.sv-field + .sv-field { margin-top: .9rem; }
.sv-field-label { display: block; margin: 0 0 .5rem; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sv-select, .sv-input { width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid var(--line-2); border-radius: .4rem; background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; }
.sv-select:focus-visible, .sv-input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sv-choice-group { margin-top: 1.2rem; }
.sv-choice-group > .sv-field-label { margin-bottom: .5rem; }
.sv-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.sv-choice-inline { display: flex; flex-wrap: wrap; gap: .45rem; }
.sv-choice { display: flex; min-width: 0; min-height: 52px; flex-direction: column; justify-content: center; gap: .15rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sv-choice:hover { border-color: var(--line-2); }
.sv-choice[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
.sv-choice strong { font-size: .86rem; font-weight: 500; }
.sv-choice small { color: var(--dim); font-size: .72rem; line-height: 1.35; }
.sv-choice-inline .sv-choice { min-height: 42px; padding: .45rem .8rem; }
.sv-start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.sv-start-choice { min-height: 62px; }
.sv-upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .7rem; }
.sv-upload { display: inline-flex; min-height: 40px; align-items: center; gap: .45rem; padding: .4rem .8rem; border: 1px dashed var(--line-2); border-radius: .4rem; color: var(--muted); font-size: .84rem; cursor: pointer; }
.sv-upload:hover { border-color: var(--gold); color: var(--ink); }
.sv-upload-progress { width: 100%; height: .4rem; accent-color: var(--gold); }
.sv-upload-progress[hidden] { display: none; }
.sv-upload-error { width: 100%; color: #f0a0a0; font-size: .82rem; }
:root[data-theme="light"] .sv-upload-error { color: #a32020; }
.sv-upload-replace { min-height: 40px; }
.sv-natural { display: inline-flex; margin: .6rem 0 0; padding: .2rem .65rem; border: 1px solid var(--gold); border-radius: 20px; color: var(--gold); font-size: .78rem; }
.sv-switch { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .84rem; cursor: pointer; }
.sv-switch input { margin: 0; accent-color: var(--gold); }
.sv-pill { padding: .2rem .55rem; border: 1px solid var(--line-2); border-radius: 99px; color: var(--muted); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* Short service lists: a row per service, selectable where the author picks one. */
.sv-service-list { display: grid; gap: .55rem; }
.sv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); color: var(--ink); font: inherit; text-align: left; }
.sv-row[aria-current="true"] { border-color: var(--line-2); }
.sv-choice-row { width: 100%; cursor: pointer; }
.sv-choice-row:hover { border-color: var(--line-2); }
.sv-choice-row[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
.sv-row-copy { display: block; min-width: 0; }
.sv-row-copy strong { display: block; font-size: .9rem; font-weight: 500; }
.sv-row-detail { display: block; margin-top: .2rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.sv-row-price { color: var(--gold); font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; }
.sv-includes-note { margin-top: 1rem; padding: .9rem 1rem; border-left: 2px solid var(--line-2); background: var(--surface-2); }
.sv-includes-note p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.sv-includes-note strong { color: var(--ink); font-weight: 500; }
.sv-link { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; }
.sv-link:hover { text-decoration-color: var(--gold); }

/* Quiet buttons: everything that is not the one gold button. */
.sv-quiet, .servicio-pantalla .btn-secundario { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .45rem; margin: 0; padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: .4rem; background: transparent; color: var(--muted); font: inherit; font-size: .86rem; cursor: pointer; opacity: 1; }
.sv-quiet:hover, .servicio-pantalla .btn-secundario:hover { border-color: var(--gold); color: var(--ink); }
.servicio-pantalla .btn-tenue { min-height: 44px; }
.servicio-pantalla .btn-primario .ic { color: var(--studio-on-gold); }

/* ── The in-progress band ───────────────────────────────────────────────── */
.servicio-pantalla .sv-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin-bottom: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: .5rem; background: var(--surface); }
.servicio-pantalla .sv-status-stack { flex-direction: column; align-items: stretch; }
.sv-status-copy { min-width: 0; }
.sv-status-copy .sv-eyebrow { margin-bottom: .3rem; }
.sv-status-copy h2 { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.sv-status-copy p { margin: .3rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.sv-status-actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.sv-voice { padding: 0; border: 0; }
.sv-voice:empty { display: none; }
.sv-pack-host { margin-top: 1rem; }

/* ── Connection-centre summaries (Amazon, Redes) and plans ──────────────── */
.sv-panel-summary .btn-primario { margin-top: 1.25rem; }
.sv-tool-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.sv-tool-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem .9rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.sv-tool-copy { display: flex; min-width: 0; flex-direction: column; }
.sv-tool-copy strong { font-size: .88rem; font-weight: 500; }
.sv-tool-copy small { color: var(--dim); font-size: .74rem; line-height: 1.4; }
.sv-tool-price { color: var(--dim); font-size: .78rem; white-space: nowrap; }
.sv-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .9rem; }
.sv-plan-card { min-height: 92px; }
.sv-plan-card .sv-row-price { font-size: 1.15rem; }

/* Print: the quote form. */
.sv-print-form { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1.1rem; }

/* ── 1024 and up: two columns, the purchase card sticky on the right ────── */
@media (min-width: 768px) {
  .sv-band { margin: 0 0 1.5rem; padding: 1.6rem 1.5rem 1.7rem; border: 1px solid var(--line); border-radius: .7rem; }
  .sv-layout { grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 18.5rem); gap: 1.1rem; }
  .sv-main { display: block; min-width: 0; }
  .sv-main > .sv-card + .sv-card { margin-top: .9rem; }
  .sv-purchase { order: 0; position: sticky; top: 5.5rem; }
  .sv-print-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sv-plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .servicio-pantalla .sv-card { padding: 1.25rem; }
}
@media (min-width: 1200px) {
  .sv-layout { grid-template-columns: minmax(0, 1fr) 19.5rem; gap: 1.5rem; }
}

/* ── 390: one column, the purchase card after the configurator, nothing scrolls sideways ─── */
@media (max-width: 480px) {
  .sv-band { padding: 1.3rem 16px 1.4rem; }
  .sv-title { font-size: 1.65rem; }
  .servicio-pantalla .sv-card { padding: .95rem; }
  .sv-start-grid, .sv-choice-grid { grid-template-columns: 1fr; }
  .sv-row { grid-template-columns: minmax(0, 1fr); }
  .sv-row-price { font-size: .95rem; }
  .sv-tool-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .sv-tool-list li .btn-tenue { grid-column: 1 / -1; justify-self: start; }
  .sv-price { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .servicio-pantalla * { transition: none !important; }
}

/* SPEC-070 RF-C3/C4: the Amazon account's state, and the connection centre embedded in the screen. */
.sv-amazon-account { margin: .75rem 0 0; font-weight: 500; }
.sv-amazon-account[data-connected="true"] { color: var(--gold); }
.sv-hub { margin-top: 1.25rem; }
.sv-hub h2 { margin: 0 0 .75rem; }
.sv-hub-frame { display: block; width: 100%; height: min(640px, calc(100vh - 140px)); min-height: 420px; border: 0; border-radius: .6rem; background: transparent; }
