:root {
    --pink: #ff0058;
    --ink: #202027;
    --muted: #62626f;
    --line: #e8e8ee;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--ink);
    background: #fcfcfd;
}
button,
input {
    font: inherit;
}
button,
input,
a {
    -webkit-tap-highlight-color: transparent;
}
button,
a {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
.experience {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(300px, 36%) 1fr;
}
.story {
    background: #141419;
    color: white;
    padding: 24px clamp(26px, 4vw, 65px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.story:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 10% 80%, #ff005818, transparent 55%);
    pointer-events: none;
}
.brand {
    align-self: flex-start;
    position: relative;
    z-index: 1;
}
.brand img {
    width: 104px;
    height: 104px;
    object-fit: contain;
    display: block;
}
.story-content {
    position: relative;
    margin: auto 0;
    padding: 18px 0;
}
.eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
}
.story .eyebrow {
    color: #cccbd3;
}
.eyebrow .fa-circle,
.story-bottom .fa-circle {
    font-size: 6px;
    color: var(--pink);
}
.story h1 {
    font-size: clamp(40px, 4vw, 66px);
    line-height: 1.08;
    letter-spacing: -2.6px;
    font-weight: 600;
    margin: 22px 0;
}
.story h1 em {
    font-style: normal;
    color: #ff4b87;
}
.story p {
    max-width: 350px;
    color: #b2b1bd;
    font-size: 13px;
    line-height: 1.8;
}
.story-bottom {
    position: relative;
    color: #a4a3b0;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
}
.system-art {
    height: 180px;
    max-width: 320px;
    position: relative;
    margin: 16px 0 0;
    display: grid;
    place-items: center;
}
.workspace {
    padding: 26px clamp(26px, 4vw, 68px) 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background:
        radial-gradient(ellipse at 100% 0%, #ff005805, transparent 55%), #fcfcfd;
}
.journey {
    margin: 28px 0;
}
.progress-caption {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 10px;
}
.progress-caption span:first-child {
    color: var(--ink);
    font-weight: 600;
}
.progress-track {
    height: 3px;
    background: #eaeaf0;
    border-radius: 3px;
    overflow: hidden;
}
#progress-fill {
    width: 0;
    height: 100%;
    background: var(--pink);
    transition: width 0.3s;
}
.step-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    justify-content: space-between;
    gap: 7px;
}
.step-list li {
    font-size: 9px;
    color: #8a8a95;
    display: flex;
    align-items: center;
    gap: 6px;
}
.step-list li > span {
    display: grid;
    place-items: center;
    border: 1px solid #dddde5;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 9px;
}
.step-list li.active {
    color: var(--ink);
    font-weight: 700;
}
.step-list li.active > span {
    background: var(--pink);
    border-color: var(--pink);
    color: white;
}
.step-list li.completed > span {
    color: var(--pink);
    background: #fff0f5;
    border-color: #ff005830;
}
#formulario-cotizacion {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.section-heading {
    margin-bottom: 22px;
}
.section-heading .eyebrow {
    color: #b0003d;
}
.section-heading h2,
.result h2 {
    font-size: clamp(25px, 2.4vw, 36px);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 12px 0 9px;
    outline: none;
}
.section-heading > p {
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}
.fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}
.field {
    min-width: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.field label:not(.choice),
legend {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 9px;
    display: block;
}
fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
legend {
    padding: 0;
    width: 100%;
}
.text-control {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 10px 12px;
    border: 1px solid #dedee6;
    border-radius: 10px;
    background: white;
    color: inherit;
    font: inherit;
    outline: none;
}
.text-control:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px #ff005810;
}
.invalid .text-control {
    border-color: var(--pink);
}
.number-control {
    display: flex;
    align-items: center;
    border: 1px solid #dedee6;
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 220px;
    height: 46px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    overflow: hidden;
}
.number-control:focus-within {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px #ff005810;
}
.number-control button {
    border: 0;
    background: transparent;
    font-size: 13px;
    color: #6b6b76;
    width: 44px;
    align-self: stretch;
    flex-shrink: 0;
}
.number-control button:hover {
    background: #fff0f5;
    color: var(--pink);
}
.number-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    text-align: center;
    font-weight: 600;
    font-size: 17px;
    appearance: textfield;
    -moz-appearance: textfield;
}
.number-control input::-webkit-inner-spin-button,
.number-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.number-control input::placeholder {
    color: #b2b2be;
    font-weight: 400;
}
.large-number {
    max-width: none;
}
.large-number input {
    text-align: left;
    padding: 10px 12px;
}
.number-unit {
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
    margin-right: 12px;
}
.field-help {
    font-size: 10px;
    color: var(--muted);
    margin: 7px 0 0;
    line-height: 1.5;
}
.choice-group {
    display: flex;
    gap: 8px;
}
.choice {
    position: relative;
    flex: 1;
    min-width: 0;
}
.choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.choice > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dedee6;
    background: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}
.choice i {
    color: #8f8f9e;
    font-size: 10px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #f5f5f8;
    display: grid;
    place-items: center;
}
.choice:hover > span {
    border-color: #b8b8c5;
}
.choice input:checked + span {
    background: #fff4f8;
    border-color: var(--pink);
    color: #b0003d;
    box-shadow: 0 0 0 1px #ff005808;
}
.choice input:checked + span i {
    background: var(--pink);
    color: white;
}
.choice input:focus-visible + span {
    outline: 3px solid #ff005840;
    outline-offset: 3px;
}
.field-error {
    font-size: 10px;
    line-height: 1.5;
    color: #ba1646;
    margin: 6px 0 0;
}
.field-error:empty {
    display: none;
}
.invalid .number-control,
.invalid .choice > span {
    border-color: #ba1646;
}
.form-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    padding-top: 22px;
}
.primary {
    border: 0;
    border-radius: 10px;
    background: #da004b;
    color: white;
    min-height: 46px;
    padding: 13px 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    box-shadow: 0 5px 16px #ff005817;
    transition:
        transform 0.18s,
        background 0.18s;
}
.primary:hover {
    background: #ba0040;
    transform: translateY(-1px);
}
.primary i {
    font-size: 13px;
}
.back {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 12px;
    min-height: 44px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.back:hover {
    color: var(--ink);
}
.action-hint {
    font-size: 10px;
    color: var(--muted);
}
.server-alert {
    background: #fff1f5;
    border: 1px solid #f0b8cb;
    color: #9e1741;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.result {
    margin: auto 0;
    padding: 30px 0;
}
.result-icon {
    background: #fff0f5;
    color: #c70045;
    border: 1px solid #ff005825;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 26px;
    margin-bottom: 25px;
}
.result p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 470px;
}
.result .result-note {
    font-size: 11px;
    margin-bottom: 25px;
}
.button-link {
    width: fit-content;
}
#review-content {
    display: grid;
    gap: 9px;
}
.review-group {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 16px;
    background: white;
}
.review-group summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-height: 44px;
    list-style: none;
}
.review-group summary::-webkit-details-marker {
    display: none;
}
.review-group summary:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 3px;
    border-radius: 6px;
}
.review-group h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}
.review-chevron {
    font-size: 10px;
    color: var(--muted);
    transition: transform 0.2s;
}
.review-group[open] .review-chevron {
    transform: rotate(180deg);
}
.review-edit {
    background: none;
    border: 0;
    color: #b0003d;
    font-size: 10px;
    padding: 10px 0;
    min-height: 40px;
}
.review-group dl {
    margin: 0;
    padding-top: 1px;
}
.review-row {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.45;
}
.review-row dt {
    color: var(--muted);
}
.review-row dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}
.review-note {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
    margin: 14px 0 0;
}
.form-step.entering,
.ml-dependent:not([hidden]) {
    animation: enter 0.3s ease both;
}
@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
[hidden] {
    display: none !important;
}
button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #ff005860;
    outline-offset: 4px;
}
@media (max-width: 1100px) {
    .experience {
        grid-template-columns: 32% 1fr;
    }
    .story {
        padding: 22px 26px;
    }
    .story h1 {
        font-size: 40px;
    }
    .system-art {
        transform: scale(0.8);
        transform-origin: center;
    }
    .workspace {
        padding: 24px 28px 18px;
    }
    .action-hint {
        display: none;
    }
}
@media (min-width: 761px) and (max-height: 760px) {
    .story h1 {
        font-size: clamp(35px, 3.4vw, 50px);
        margin: 15px 0;
    }
    .brand img {
        width: 82px;
        height: 82px;
    }
    .story p {
        font-size: 12px;
    }
    .system-art {
        height: 135px;
        margin-top: 8px;
        transform: scale(0.75);
    }
    .journey {
        margin: 20px 0;
    }
    .section-heading {
        margin-bottom: 16px;
    }
    .section-heading h2 {
        font-size: 28px;
    }
    .fields {
        gap: 14px 20px;
    }
    .field {
        padding-bottom: 10px;
    }
}
@media (max-width: 760px) {
    .experience {
        display: flex;
        flex-direction: column;
    }
    .story {
        padding: 10px 18px;
        display: grid;
        grid-template-columns: 66px 1fr;
        gap: 15px;
        align-items: center;
    }
    .brand img {
        width: 64px;
        height: 64px;
    }
    .story-content {
        padding: 0;
        margin: 0;
    }
    .story .eyebrow {
        font-size: 7px;
        letter-spacing: 1px;
    }
    .story h1 {
        font-size: 19px;
        letter-spacing: -0.6px;
        line-height: 1.25;
        margin: 5px 0 0;
    }
    .story h1 br {
        display: none;
    }
    .story h1 br:after {
        content: " ";
    }
    .story h1 em {
        display: block;
    }
    .story p,
    .system-art,
    .story-bottom {
        display: none;
    }
    .workspace {
        flex: 1;
        padding: 16px 18px 14px;
    }
    .journey {
        margin: 18px 0;
    }
    .step-list {
        margin-top: 10px;
    }
    .step-list li {
        flex-direction: column;
        font-size: 8px;
        gap: 5px;
    }
    .section-heading {
        margin-bottom: 16px;
    }
    .section-heading h2 {
        font-size: 23px;
        line-height: 1.2;
        margin: 9px 0 7px;
    }
    .section-heading > p {
        font-size: 11px;
    }
    .section-heading .eyebrow {
        font-size: 8px;
    }
    .fields {
        gap: 12px 14px;
    }
    .field {
        padding-bottom: 10px;
    }
    .field label:not(.choice),
    legend {
        font-size: 11px;
        margin-bottom: 8px;
    }
    .field-help {
        font-size: 9px;
    }
    .choice > span {
        padding: 9px 7px;
        gap: 5px;
        font-size: 11px;
    }
    .choice i {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
    .choice-group {
        gap: 6px;
    }
    .number-control {
        max-width: none;
        height: 44px;
    }
    .number-control button {
        width: 38px;
    }
    .number-control input {
        font-size: 16px;
    }
    .large-number {
        position: relative;
    }
    .large-number input {
        padding: 9px;
    }
    .number-unit {
        font-size: 8px;
        margin-right: 8px;
    }
    .field[data-field="productos"],
    .field[data-field="ventas_mercado_libre"] {
        grid-column: 1/-1;
    }
    .form-actions {
        gap: 12px;
        padding-top: 18px;
    }
    .primary {
        flex: 1;
        padding: 13px 16px;
        max-width: 300px;
    }
    .back {
        min-width: 64px;
        text-align: left;
    }
    .result {
        padding: 25px 0;
    }
    .review-row {
        font-size: 10px;
        gap: 10px;
    }
    .review-step .section-heading h2 br {
        display: none;
    }
}
@media (max-width: 760px) and (max-height: 700px) {
    .story {
        padding: 7px 16px;
        grid-template-columns: 50px 1fr;
        gap: 12px;
    }
    .brand img {
        width: 50px;
        height: 50px;
    }
    .story h1 {
        font-size: 16px;
        margin-top: 3px;
    }
    .story h1 em {
        display: inline;
    }
    .workspace {
        padding: 12px 16px;
    }
    .journey {
        margin: 12px 0;
    }
    .section-heading {
        margin-bottom: 12px;
    }
    .section-heading h2 {
        font-size: 21px;
    }
    .fields {
        gap: 9px 12px;
    }
    .field {
        padding-bottom: 8px;
    }
    .form-actions {
        padding-top: 14px;
    }
}
@media (max-width: 350px) {
    .fields {
        gap: 10px;
    }
    .choice > span {
        gap: 4px;
        padding: 9px 5px;
    }
    .number-control button {
        width: 32px;
    }
    .step-list li {
        font-size: 7px;
    }
    .story h1 {
        font-size: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
    }
}
/* Keep the expanded integrations and review within the same compact canvas. */
.field[data-field="mercado_libre"] {
    order: 0;
}
.field[data-field="factura_automatica_ml"] {
    order: 1;
}
.field[data-field="ventas_mercado_libre"] {
    order: 2;
}
.field[data-field="pedidos_ya"] {
    order: 3;
}
.field[data-field="logistica_propia"] {
    order: 4;
}
#review-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.review-group[open] {
    grid-column: 1/-1;
}
.review-step .section-heading h2 br {
    display: none;
}
@media (max-width: 350px) and (max-height: 700px) {
    .story .eyebrow {
        display: none;
    }
    .story h1 {
        font-size: 15px;
    }
    .step-list li {
        font-size: 0;
        gap: 0;
    }
    .step-list li > span {
        font-size: 9px;
    }
    .journey {
        margin: 10px 0;
    }
    .section-heading h2 {
        font-size: 19px;
        margin: 7px 0 5px;
    }
    .section-heading > p {
        font-size: 10px;
        line-height: 1.5;
    }
    .field-help {
        font-size: 8px;
    }
    .field label:not(.choice),
    legend {
        font-size: 10px;
        line-height: 1.4;
    }
    .review-row {
        font-size: 9px;
    }
    .form-actions {
        padding-top: 12px;
    }
}
@media (max-width: 760px) and (max-height: 700px) {
    .review-step .section-heading h2 {
        font-size: 20px;
    }
    .review-row {
        font-size: 10px;
        margin-top: 7px;
    }
    .review-group {
        padding: 0 12px;
    }
    .review-note {
        font-size: 9px;
    }
}
@media (max-width: 350px) and (max-height: 700px) {
    .section-heading > p {
        display: none;
    }
    .review-row {
        font-size: 9px;
        margin-top: 6px;
    }
}
@media (max-width: 350px) and (max-height: 700px) {
    .section-heading {
        margin-bottom: 9px;
    }
    .form-actions {
        padding-top: 8px;
    }
    .review-step .section-heading .eyebrow,
    .review-step .review-note {
        display: none;
    }
    .review-step .section-heading h2 {
        font-size: 18px;
        margin: 2px 0 7px;
    }
    .review-row {
        margin-top: 4px;
    }
}
@media (max-width: 760px) and (max-height: 700px) {
    #review-content {
        gap: 6px;
    }
    .review-step .review-note {
        margin-top: 6px;
    }
}
@media (max-width: 350px) and (max-height: 700px) {
    .fields {
        row-gap: 8px;
    }
}
/* Brand composition: expressive typography and a cinematic human/technology visual. */
@media (min-width: 761px) {
    .story {
        padding-top: 26px;
        padding-bottom: 24px;
    }
    .brand {
        align-self: center;
    }
    .brand img {
        width: clamp(126px, 9vw, 174px);
        height: clamp(126px, 9vw, 174px);
    }
    .story-content {
        width: 100%;
        padding: 20px 0 14px;
    }
    .story .eyebrow {
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 2.1px;
    }
    .story h1 {
        font-size: clamp(39px, 4.05vw, 74px);
        line-height: 1.01;
        letter-spacing: -0.055em;
        margin: 23px 0 20px;
    }
    .headline-start {
        display: block;
        font-weight: 600;
    }
    .headline-bridge {
        display: block;
        font-weight: 400;
        font-size: 0.94em;
        letter-spacing: -0.06em;
        margin-top: 8px;
        color: #dfdfe6;
    }
    .story h1 .headline-accent {
        display: block;
        font-weight: 800;
        letter-spacing: -0.055em;
        margin-top: 9px;
        color: #ff377c;
    }
    .story p {
        max-width: 390px;
        font-size: clamp(12px, 0.83vw, 14px);
        font-weight: 400;
        line-height: 1.85;
        color: #aaaab8;
    }
    .system-art {
        height: clamp(160px, 24svh, 244px);
        max-width: none;
        margin: 22px calc(-1 * clamp(26px, 4vw, 65px)) 0;
        width: calc(100% + 2 * clamp(26px, 4vw, 65px));
        display: block;
        transform: none;
        position: relative;
    }
    .system-art img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            #000 14%,
            #000 88%,
            transparent 100%
        );
    }
    .story-bottom {
        align-self: center;
        font-size: 9px;
        letter-spacing: 0.2px;
        padding-top: 12px;
    }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .story h1 {
        font-size: clamp(31px, 3.7vw, 41px);
    }
    .brand img {
        width: 122px;
        height: 122px;
    }
    .system-art {
        margin-left: -26px;
        margin-right: -26px;
        width: calc(100% + 52px);
        height: 180px;
    }
}
@media (min-width: 761px) and (max-height: 760px) {
    .story {
        padding-top: 16px;
        padding-bottom: 18px;
    }
    .brand img {
        width: 110px;
        height: 110px;
    }
    .story-content {
        padding: 12px 0 8px;
    }
    .story h1 {
        font-size: clamp(32px, 3.65vw, 54px);
        margin: 18px 0 16px;
    }
    .headline-bridge,
    .story h1 .headline-accent {
        margin-top: 6px;
    }
    .story p {
        font-size: 12px;
        line-height: 1.7;
    }
    .system-art {
        height: 154px;
        margin-top: 12px;
    }
}
@media (max-width: 760px) {
    .headline-start {
        font-weight: 700;
    }
    .headline-bridge {
        font-weight: 400;
    }
    .story h1 .headline-accent {
        font-weight: 800;
    }
    .system-art img {
        display: none;
    }
}
/* Keep only useful copy and strengthen the form's reading hierarchy. */
.journey {
    margin-top: 8px;
}
.progress-caption {
    font-size: 12px;
}
.step-list li {
    color: #62626f;
    font-size: 11px;
}
.section-heading > p {
    font-size: 13px;
}
.field label:not(.choice),
legend {
    font-size: 14px;
}
.field-help {
    font-size: 12px;
    color: #62626f;
}
.action-hint {
    font-size: 11px;
    color: #62626f;
}
.number-control input::placeholder {
    color: #747482;
}
.review-row {
    font-size: 12px;
}
@media (max-width: 1100px) and (min-width: 761px) {
    .step-list li {
        font-size: 10px;
    }
}
@media (max-width: 760px) {
    .journey {
        margin-top: 6px;
    }
    .progress-caption {
        font-size: 11px;
    }
    .step-list li {
        font-size: 9px;
    }
    .section-heading > p {
        font-size: 12px;
    }
    .field label:not(.choice),
    legend {
        font-size: 12px;
    }
    .field-help {
        font-size: 10px;
    }
    .review-row {
        font-size: 11px;
    }
}
@media (max-width: 760px) and (max-height: 700px) {
    .field label:not(.choice),
    legend {
        font-size: 11px;
    }
    .section-heading > p {
        font-size: 11px;
    }
    .review-row {
        font-size: 10px;
    }
}
@media (max-width: 350px) and (max-height: 700px) {
    .step-list li {
        font-size: 0;
    }
    .field label:not(.choice),
    legend {
        font-size: 10px;
    }
    .field-help {
        font-size: 9px;
    }
    .review-row {
        font-size: 9px;
    }
}
/* Mobile-only layout: compact context, equal columns and comfortable touch targets. */
@media (max-width: 760px) {
    .experience {
        min-height: 100svh;
    }
    .story {
        padding: 8px max(20px, env(safe-area-inset-left));
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 16px;
        min-height: 72px;
        align-items: center;
    }
    .brand {
        align-self: center;
    }
    .brand img {
        width: 56px;
        height: 56px;
    }
    .story-content {
        margin: 0;
        padding: 0;
        min-width: 0;
    }
    .story h1,
    .story p,
    .story-bottom,
    .system-art {
        display: none;
    }
    .story .eyebrow {
        display: flex;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.5;
        letter-spacing: 0.6px;
        color: #eeeef3;
        gap: 8px;
    }
    .workspace {
        padding: 20px max(20px, env(safe-area-inset-right))
            max(16px, env(safe-area-inset-bottom))
            max(20px, env(safe-area-inset-left));
        gap: 0;
        min-width: 0;
    }
    .journey {
        margin: 0 0 24px;
    }
    .progress-caption {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 10px;
    }
    .progress-track {
        height: 3px;
    }
    .step-list {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        margin: 14px 0 0;
    }
    .step-list li {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        min-width: 0;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: -0.1px;
        line-height: 16px;
        gap: 5px;
    }
    .step-list li > span {
        width: 26px;
        height: 26px;
        font-size: 12px;
        flex-shrink: 0;
    }
    .step-list li.active {
        font-weight: 700;
        color: #24242e;
    }
    .step-list li.completed {
        color: #565662;
    }
    .step-list li.completed > span {
        color: #a7003a;
        background: #fff3f7;
        border-color: #e8b4c6;
    }
    .section-heading {
        margin-bottom: 24px;
    }
    .section-heading .eyebrow,
    .section-heading > p,
    .field-help,
    .action-hint,
    .review-step .review-note,
    .review-step .section-heading .eyebrow {
        display: none;
    }
    .section-heading h2 {
        font-size: 24px;
        line-height: 1.2;
        letter-spacing: -0.8px;
        margin: 0;
    }
    .fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
        align-items: stretch;
    }
    .field {
        padding: 0 0 16px;
        border-bottom: 1px solid var(--line);
        min-width: 0;
    }
    .field > label,
    legend {
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        margin: 0 0 10px;
        min-height: var(--mobile-label-height, auto);
    }
    .number-control {
        width: 100%;
        max-width: none;
        height: 48px;
        border-radius: 10px;
    }
    .number-control button {
        width: 40px;
        padding: 0;
        font-size: 14px;
    }
    .number-control input {
        font-size: 17px;
    }
    .large-number input {
        padding: 12px;
    }
    .number-unit {
        font-size: 11px;
        margin-right: 12px;
    }
    .choice-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }
    .choice {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    .choice > span {
        width: 100%;
        height: 48px;
        min-height: 48px;
        padding: 0 6px;
        gap: 5px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
    }
    .choice i {
        width: 17px;
        height: 17px;
        font-size: 9px;
        flex-shrink: 0;
    }
    .choice input:checked + span {
        color: #ad003c;
        background: #fff0f5;
        border-color: #ff0058;
        box-shadow: inset 0 0 0 1px #ff005812;
    }
    .field[data-field="productos"],
    .field[data-field="ventas_mercado_libre"] {
        grid-column: 1/-1;
    }
    .field-error {
        font-size: 12px;
        line-height: 1.5;
        margin: 8px 0 0;
    }
    .form-actions {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        padding-top: 24px;
        margin-top: auto;
        align-items: center;
    }
    .back {
        width: 76px;
        min-width: 0;
        height: 48px;
        padding: 0;
        font-size: 14px;
        justify-content: flex-start;
    }
    .primary {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 48px;
        min-height: 48px;
        padding: 0 12px;
        gap: 12px;
        font-size: 14px;
    }
    .form-actions:has(.back[hidden]) {
        grid-template-columns: minmax(0, 1fr);
    }
    #review-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .review-group {
        padding: 0 12px;
        border-radius: 10px;
    }
    .review-group summary {
        min-height: 48px;
        gap: 6px;
    }
    .review-group h3 {
        font-size: 13px;
    }
    .review-row {
        font-size: 12px;
        line-height: 1.5;
        margin-top: 10px;
        gap: 12px;
    }
    .review-edit {
        font-size: 13px;
        min-height: 44px;
        padding: 12px 0;
    }
    .result {
        padding: 24px 0;
    }
    .result .eyebrow {
        font-size: 12px;
    }
    .result h2 {
        font-size: 28px;
    }
    .result p {
        font-size: 14px;
    }
    .result .result-note {
        font-size: 13px;
    }
    .button-link {
        width: 100%;
        height: auto;
        min-height: 48px;
        padding: 12px;
    }
    .server-alert {
        font-size: 13px;
        margin-bottom: 20px;
    }
}
@media (max-width: 360px) {
    .story {
        padding-left: 16px;
        padding-right: 16px;
        gap: 12px;
    }
    .story .eyebrow {
        font-size: 11px;
        letter-spacing: 0.3px;
    }
    .workspace {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .step-list li {
        font-size: 0;
        line-height: 0;
        gap: 0;
    }
    .step-list li > span {
        font-size: 12px;
        line-height: normal;
    }
    .section-heading h2 {
        font-size: 22px;
    }
    .fields {
        column-gap: 12px;
    }
    .number-control button {
        width: 36px;
    }
    .choice > span {
        gap: 4px;
        font-size: 12px;
    }
    .review-group {
        padding: 0 10px;
    }
}
@media (max-width: 760px) {
    .section-heading h2 {
        font-size: clamp(21px, 5.6vw, 24px);
    }
    .field label:not(.choice),
    legend {
        font-size: 14px;
        line-height: 20px;
        min-height: var(--mobile-label-height, auto);
    }
}
/* Keep progress and navigation in place; short screens scroll only the active step. */
@media (max-width: 760px) {
    .experience {
        height: 100dvh;
        min-height: 100svh;
    }
    .story {
        flex-shrink: 0;
    }
    .workspace {
        min-height: 0;
        overflow: hidden;
    }
    .journey {
        flex-shrink: 0;
    }
    #formulario-cotizacion {
        min-height: 0;
    }
    .form-step {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-width: thin;
        scrollbar-color: #d0cbd1 transparent;
        padding-right: 2px;
    }
    .form-actions {
        flex-shrink: 0;
        margin-top: 0;
    }
    .server-alert {
        flex-shrink: 0;
    }
    .result {
        overflow-y: auto;
        min-height: 0;
    }
}
/* Additional channels follow the existing integration fields in reading order. */
.field[data-field="shopify"] {
    order: 5;
}
.field[data-field="tienda_nube"] {
    order: 6;
}
.field[data-field="wordpress"] {
    order: 7;
}
.field[data-field="catalogo_whatsapp"] {
    order: 8;
}
.store-step .fields {
    grid-template-columns: minmax(0, 1fr);
}
.store-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.store-choices:has(input[value="ambos"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.store-step .section-heading > p {
    display: block;
}
.store-choices .choice {
    max-width: none;
}
.store-choices .choice > span {
    min-height: 48px;
}
@media (min-width: 761px) {
    .experience {
        height: 100dvh;
    }
    .workspace,
    #formulario-cotizacion {
        min-height: 0;
    }
    .form-step {
        min-height: 0;
        overflow-y: auto;
        scrollbar-width: thin;
        padding-right: 4px;
    }
    .form-actions,
    .journey {
        flex-shrink: 0;
    }
    .step-list {
        gap: 8px;
    }
    .step-list li {
        font-size: 12px;
        gap: 6px;
    }
    .step-list li > span {
        width: 26px;
        height: 26px;
    }
}
@media (max-width: 760px) {
    .step-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .store-step .section-heading > p {
        display: block;
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.6;
    }
    .store-choices .choice > span {
        height: auto;
        min-height: 48px;
        padding: 10px 6px;
    }
}
@media (max-width: 500px) {
    .step-list li {
        font-size: 0;
        line-height: 0;
        gap: 0;
    }
    .step-list li > span {
        font-size: 12px;
        line-height: normal;
    }
    .store-choices .choice i {
        display: none;
    }
}

/* Expanded review and verified welcome screen. */
.review-group {
    padding: 12px 16px 16px;
}
.review-group header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.review-group h3 {
    font-size: 14px;
    font-weight: 700;
}
.review-edit {
    font-size: 12px;
    cursor: pointer;
}
.review-row {
    font-size: 13px;
}
.review-row dt {
    color: #54515e;
}
.review-row dd {
    white-space: normal;
    flex-shrink: 0;
    max-width: 45%;
}
.experience {
    transition: grid-template-columns 0.65s ease;
}
.workspace {
    transition:
        opacity 0.5s ease,
        transform 0.65s ease;
}
.panel-bienvenida {
    margin-top: 24px;
    position: relative;
    z-index: 2;
}
.panel-bienvenida .primary {
    margin-top: 12px;
    min-width: 220px;
}
.panel-bienvenida .primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#mensaje-bienvenida {
    font-size: 13px;
    line-height: 1.6;
    color: #ddd9e1;
    margin: 12px 0 0;
}

/* Welcome artwork blends into the canvas; the form keeps its existing layout. */
.is-intro {
    grid-template-columns: 100% 0%;
}
.is-intro .workspace {
    opacity: 0;
    visibility: hidden;
    transform: translateX(60px);
    padding: 0;
    overflow: hidden;
}
.is-intro .story {
    position: relative;
    isolation: isolate;
    padding: 28px clamp(32px, 6vw, 100px);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 74% 52%, #251725 0%, transparent 49%),
        radial-gradient(ellipse at 12% 100%, #2a1421 0%, transparent 55%),
        #141419;
}
.is-intro .brand {
    align-self: flex-start;
    margin: 0 0 16px;
}
.is-intro .brand img {
    width: 145px;
    height: 145px;
}
.is-intro .story-content {
    position: relative;
    width: 100%;
    max-width: none;
    margin: auto 0;
    padding-right: 49%;
}
.is-intro .story-content > .eyebrow,
.is-intro .story-content h1,
.is-intro .story-content > p {
    position: relative;
    z-index: 2;
}
.is-intro .story-content h1 {
    font-size: clamp(42px, 4.7vw, 76px);
    line-height: 1.08;
    letter-spacing: -0.055em;
    margin-top: 22px;
    margin-bottom: 24px;
}
.is-intro .story-content > p {
    max-width: 460px;
    font-size: 14px;
    line-height: 1.8;
    color: #c7c2cd;
}
.is-intro .system-art {
    position: absolute;
    left: 43%;
    top: 50%;
    width: 60%;
    height: auto;
    aspect-ratio: 1.5;
    margin: 0;
    display: block;
    transform: translateY(-50%);
    pointer-events: none;
    mix-blend-mode: lighten;
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 17%,
        #000 76%,
        transparent 100%
    );
}
.is-intro .system-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mask-image: linear-gradient(
        180deg,
        transparent 0%,
        #000 18%,
        #000 80%,
        transparent 100%
    );
}
.is-intro .story-bottom {
    margin-top: 24px;
    color: #b9b0bf;
}
.is-intro #mensaje-bienvenida {
    display: block;
}
@media (max-width: 760px) {
    #review-content {
        grid-template-columns: minmax(0, 1fr);
    }
    .review-group {
        grid-column: auto;
    }
    .is-intro {
        height: 100dvh;
        overflow-y: auto;
        display: block;
        background: #141419;
    }
    .is-intro .story {
        min-height: 100dvh;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 18px 24px max(22px, env(safe-area-inset-bottom));
        background:
            radial-gradient(ellipse at 50% 57%, #2a1827 0%, transparent 60%),
            #141419;
    }
    .is-intro .brand {
        width: 110px;
        height: 110px;
        margin: 0 auto 20px;
        align-self: center;
    }
    .is-intro .brand img {
        width: 100%;
        height: 100%;
    }
    .is-intro .story-content {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: auto 0;
    }
    .is-intro .story-content > .eyebrow {
        display: block;
        font-size: 9px;
        margin-bottom: 12px;
    }
    .is-intro .story-content h1 {
        display: block;
        font-size: clamp(34px, 8.5vw, 48px);
        line-height: 1.06;
        margin: 0 0 14px;
        letter-spacing: -0.045em;
    }
    .is-intro .story-content h1 .headline-start,
    .is-intro .story-content h1 .headline-bridge,
    .is-intro .story-content h1 .headline-accent {
        display: block;
        white-space: nowrap;
    }
    .is-intro .story-content > p {
        display: block;
        font-size: 12px;
        line-height: 1.75;
        margin: 0;
    }
    .is-intro .system-art {
        max-width: none;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: calc(100% + 48px);
        height: clamp(180px, 25dvh, 235px);
        aspect-ratio: auto;
        margin: 0 -24px;
        order: 3;
        mask-image: none;
    }
    .is-intro .system-art img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        mask-image: linear-gradient(
            180deg,
            transparent,
            #000 16%,
            #000 86%,
            transparent
        );
    }
    .is-intro .panel-bienvenida {
        order: 4;
        margin-top: 0;
        align-self: center;
        width: 100%;
        max-width: 300px;
    }
    .is-intro .panel-bienvenida .primary {
        width: 100%;
    }
    .is-intro #mensaje-bienvenida {
        font-size: 12px;
    }
    .is-intro .story-bottom,
    .is-intro .workspace {
        display: none;
    }
}
@media (max-width: 360px) {
    .is-intro .story {
        padding-left: 10px;
        padding-right: 10px;
    }
    .is-intro .system-art {
        width: calc(100% + 20px);
        margin-left: -10px;
        margin-right: -10px;
    }
}
@media (max-width: 760px) and (max-height: 740px) {
    .is-intro .brand {
        width: 90px;
        height: 90px;
        margin-bottom: 16px;
    }
    .is-intro .system-art {
        height: 160px;
    }
    .is-intro .story-content h1 {
        font-size: 34px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .experience,
    .workspace {
        transition: none;
    }
}

/* Center the confirmation in the available white panel. */
.workspace:has(> .result) {
    justify-content: center;
    align-items: center;
}
.workspace > .result {
    width: 100%;
    max-width: 520px;
    margin: auto;
    text-align: center;
    padding: 30px 0;
}
.result .result-icon {
    margin: 0 auto 25px;
}
.result p {
    margin-left: auto;
    margin-right: auto;
}

/* Logo horizontal: proporciones originales, sin el espacio de la marca cuadrada. */
.story .brand {
    width: min(210px, 100%);
    max-width: 100%;
    height: auto;
    min-width: 0;
}
.story .brand-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}
@media (max-width: 760px) {
    .experience:not(.is-intro) .story {
        grid-template-columns: 120px minmax(0, 1fr);
    }
    .experience:not(.is-intro) .brand { width: 120px; }
    .is-intro .story .brand { width: min(210px, 100%); height: auto; }
}
