/* /empezar/: guía de primer uso. Una columna angosta, pasos plegables y nada de hero.
   Se carga después de tema-nueva.css: los tokens vienen de ahí. */
.start-page { --shell: min(680px, 100% - 40px); --header-h: 56px; --banner-h: 0px; --card: #fbfcfb; --ease-out: cubic-bezier(.2, .7, .2, 1); }
@media (prefers-color-scheme: dark) { .start-page { --card: #121816; } }
@media (max-width: 640px) { .start-page { --shell: min(680px, 100% - 32px); } }
.start-page [hidden] { display: none !important; }
.start-page :is(#inicio, .step, .step-body, .dl, .stack > *, .field) { min-width: 0; }

/* Encabezado: el mismo de la comunidad (comunidad.css). Acá solo el aire hasta la guía. */
.start-page .community-header { margin-top: 20px; }
@media (min-width: 601px) { .start-page .community-header { width: var(--shell); } }

/* Inicio: título, bajada y avance */
.intro { display: grid; gap: 6px; padding: 28px 0 14px; }
.start-page h1 { font-size: clamp(26px, 4.4vw, 34px); line-height: 1.1; letter-spacing: -.035em; }
.intro .lead { font-size: 16px; color: var(--text-3); max-width: none; }
.meter { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 14px 0 0; padding: 0; }
.meter li { height: 4px; border-radius: 4px; background: var(--surface-3); transition: background .4s var(--ease-out); }
.meter li.done { background: var(--text); }
.meter li.now { background: var(--lima); box-shadow: inset 0 0 0 1px var(--line-strong); }
.meter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 44px; }
#progress-text { font-size: 13px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feedback { font-size: 14px; color: var(--text-3); }
/* vacías siguen en el árbol de accesibilidad (role=status), pero sin ocupar lugar */
.feedback:empty { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.small { font-size: 14px; color: var(--text-3); }
.mono { font-family: var(--font-mono); font-size: .88em; }

/* Pasos */
.start-steps { list-style: none; margin: 0; padding: 0 0 28px; display: grid; gap: 8px; }
.start-page .step { border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: none; scroll-margin-top: 68px; transition: border-color .3s; }
.start-page .step.is-open { border-color: var(--line-strong); }
.step-head { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 44px 6px 14px; }
.start-page .step h2 { font-size: 18px; line-height: 1.2; letter-spacing: -.02em; max-width: none; white-space: nowrap; scroll-margin-top: 84px; }
.start-page .step .num { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font: 600 13px/1 var(--font-sans); color: var(--text-2); transition: background .3s, border-color .3s; }
.start-page .step[aria-current=step] .num { background: var(--lima); border-color: transparent; color: #0b100f; }
.start-page .step.done .num { background: var(--text); border-color: var(--text); color: var(--text-inverse); font-size: 0; }
.start-page .step.done .num::after { content: "✓"; font-size: 14px; }
.step.done:not(.is-open) h2 { color: var(--text-3); }
.step-toggle { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; border-radius: 17px; background: none; cursor: pointer; }
.step-toggle::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--text-3); border-width: 0 1.5px 1.5px 0; rotate: 45deg; transition: rotate .3s var(--ease-out), margin .3s var(--ease-out); }
.step-toggle[aria-expanded=true]::after { rotate: 225deg; margin-top: -2px; }
.step-panel { padding: 2px 14px 16px; }
@media (min-width: 600px) { .step-panel { padding: 2px 20px 20px 54px; } }
.step-body { display: grid; gap: 14px; font-size: 15px; color: var(--text-2); }
.step-body ol, .step-body ul.next, ol.plain { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.step-body li::marker { color: var(--text-3); font-variant-numeric: tabular-nums; }
.step-body strong { color: var(--text); font-weight: 600; }
.step-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.step-panel > .feedback { margin-top: 10px; color: var(--warn-text); }
.start-page .btn { min-height: 44px; padding-block: 8px; white-space: normal; text-align: center; }
.start-page .link { display: inline-flex; align-items: center; min-height: 44px; }
.start-page :is(li, p, small) > .link { display: inline; min-height: 0; padding-block: 10px; }
.start-page h3 { font-size: 16px; letter-spacing: -.01em; }

/* Requisitos */
.checks { list-style: none; margin: 0; padding: 0; display: grid; }
.checks li + li { border-top: 1px solid var(--line-soft); }
.checks label { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 11px 0; color: var(--text); cursor: pointer; }
.checks input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--text); }
.checks small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text-3); }
.checks .hint { display: none; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--warn-text); }
.attempted .checks input:not(:checked) ~ span .hint { display: block; }

/* Avisos cortos y desplegables */
.note { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-2); }
.note > .icon { margin-top: 3px; color: var(--text-3); }
.note--warn > .icon { color: var(--warn); }
.start-page details { border: 1px solid var(--line); border-radius: 14px; }
.start-page summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--text); list-style: none; border-radius: 13px; }
.start-page summary::-webkit-details-marker { display: none; }
.start-page summary::after { content: "+"; margin-left: auto; font: 400 18px/1 var(--font-sans); color: var(--text-3); }
.start-page details[open] > summary::after { content: "−"; }
.start-page details > div { padding: 0 14px 14px; display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }

/* Ficha de descarga */
.dl { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.dl-ready { display: grid; gap: 12px; justify-items: start; }
.dl-ready > details { justify-self: stretch; background: var(--card); }
.dl dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.dl dd.code { font-family: var(--font-mono); font-size: 13px; }
@media (max-width: 480px) { .dl dl { grid-template-columns: 1fr; } .dl dd + dt { margin-top: 6px; } }

/* Paso 5 */
.ask { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--surface-1); }
.ask .step-actions { margin-top: 8px; gap: 8px; }
.ask .next { margin-top: 4px; }

/* Bloques: ayuda, comunidad, ideas, soporte */
section.block { padding: 28px 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 60px; }
.block-head { display: grid; gap: 2px; margin-bottom: 16px; }
.start-page .block h2 { font-size: 22px; line-height: 1.15; letter-spacing: -.03em; max-width: none; }
.block-head p { font-size: 15px; color: var(--text-3); }
.search { display: grid; gap: 10px; margin-bottom: 12px; }
.input, .select, .start-page textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; font-size: 16px; }
.start-page textarea { min-height: 112px; resize: vertical; }
.input::placeholder, .start-page textarea::placeholder { color: var(--text-4); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.start-page .chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font: 500 14px var(--font-sans); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.start-page .chip[aria-pressed=true] { background: var(--lima); border-color: var(--lima); color: #0b100f; }
.start-page .help { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.start-page .help details { margin-top: -1px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.start-page .help summary { min-height: 48px; border-radius: 0; }
.start-page .help summary:focus-visible { outline-offset: -3px; }
.empty { padding: 16px; border: 1px dashed var(--line-strong); border-radius: 14px; font-size: 15px; color: var(--text-2); }
.start-page fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 6px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .25s, border-color .25s; }
.radios input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.radios label { position: relative; padding: 0 16px; }
.radios label:has(input:checked) { background: var(--lima); border-color: var(--lima); color: #0b100f; }
.radios label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.start-page .field { display: grid; gap: 6px; }
.field-hint { font-size: 13px; color: var(--text-3); }
[aria-invalid=true] { border-color: var(--error); }
.start-page .preview { white-space: pre-wrap; font: 500 13px/1.6 var(--font-mono); padding: 14px; border-radius: 14px; background: #060807; color: #c9d3cb; overflow-wrap: anywhere; user-select: text; }
#sup .btn { justify-self: start; }
/* Comunidad: dos puertas al foro y al marketplace */
.puertas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.puerta-com { position: relative; display: grid; gap: 4px; padding: 18px 48px 18px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text-3); font-size: 14.5px; text-decoration: none; transition: border-color .25s, translate .3s var(--ease-out); }
.puerta-com strong { font-size: 18px; letter-spacing: -.02em; color: var(--text); }
.puerta-com i { position: absolute; right: 16px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--lima); color: #0b100f; font-style: normal; transition: translate .3s var(--ease-out); }
@media (hover: hover) { .puerta-com:hover { border-color: var(--line-strong); translate: 0 -2px; } .puerta-com:hover i { translate: 3px 0; } }
@media (max-width: 520px) { .puertas { grid-template-columns: minmax(0, 1fr); } }

footer { padding: 18px 0 32px; font-size: 14px; color: var(--text-3); }
footer .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }

@media (prefers-reduced-motion: reduce) { .start-page *, .start-page *::before, .start-page *::after { scroll-behavior: auto; transition: none !important; } }
/* Escribinos: ideas y soporte en una sola sección; el soporte va debajo, separado por una línea */
.start-page .soporte { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); scroll-margin-top: 60px; }
.start-page .soporte h3 { font-size: 17px; letter-spacing: -.02em; }
/* pie de la comunidad, al ancho de la guía */
.start-page .site-footer .shell { width: var(--shell); max-width: none; padding-inline: 0; }
