:root {
    --green-dark: #103d2b;
    --green-mid: #237a4b;
    --green-light: #79d77d;
    --accent: #b9f486;
    --ink: #173225;
    --white: #ffffff;
    --card: rgba(255, 255, 255, 0.96);
    --border: rgba(255, 255, 255, 0.38);
    --shadow: 0 18px 45px rgba(7, 43, 26, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--green-dark);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 22px 16px 36px;
    font-family: "DM Sans", Arial, sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 8%, rgba(185, 244, 134, 0.18), transparent 28%),
        linear-gradient(180deg, var(--green-dark) 0%, var(--green-mid) 48%, var(--green-light) 100%);
    background-attachment: fixed;
}

button {
    font: inherit;
}

.app {
    width: min(100%, 480px);
    margin: 0 auto;
}

.screen {
    width: 100%;
}

.screen[hidden] {
    display: none !important;
}

.screen.active {
    animation: enter-forward 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.screen.active.going-back {
    animation-name: enter-back;
}

.screen.leaving {
    animation: leave-forward 0.22s ease both;
    pointer-events: none;
}

.screen.leaving.going-back {
    animation-name: leave-back;
}

.topbar {
    display: grid;
    grid-template-columns: 44px 1fr 58px;
    align-items: center;
    min-height: 48px;
    margin-bottom: 16px;
}

.logo {
    justify-self: center;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.logo span {
    color: var(--accent);
}

.step {
    justify-self: end;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.back-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 25px;
    line-height: 1;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.back-button--hidden {
    visibility: hidden;
}

.progress {
    height: 7px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(9, 49, 31, 0.22);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: var(--progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--white), var(--accent));
    box-shadow: 0 0 12px rgba(185, 244, 134, 0.65);
    transition: width 0.45s ease;
}

.question {
    margin: 0 auto 27px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

h1 {
    max-width: 390px;
    margin: 0 auto 10px;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.1;
    letter-spacing: -1.35px;
    text-wrap: balance;
}

.question p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.45;
}

.cards {
    display: grid;
    gap: 13px;
}

.card {
    position: relative;
    width: 100%;
    min-height: 112px;
    display: grid;
    grid-template-columns: 112px 1fr 34px;
    align-items: center;
    gap: 16px;
    padding: 0 18px 0 0;
    overflow: hidden;
    color: var(--ink);
    text-align: left;
    border: 2px solid transparent;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 8px 22px rgba(7, 43, 26, 0.13);
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: linear-gradient(90deg, rgba(185, 244, 134, 0.24), transparent 70%);
    transition: opacity 0.22s ease;
}

.card img {
    width: 112px;
    height: 112px;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.card > span:not(.check) {
    font-size: clamp(18px, 5.3vw, 23px);
    font-weight: 700;
    letter-spacing: -0.45px;
}

.check {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    background: var(--green-mid);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card:focus-visible,
.back-button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.card.selected {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(7, 43, 26, 0.25);
}

.card.selected::before,
.card.selected .check {
    opacity: 1;
}

.card.selected .check {
    transform: scale(1);
}

/* =========================
   ETAPA 3: ZONAS DEL CUERPO
========================= */

.question--compact {
    margin-bottom: 18px;
}

.body-selector {
    position: relative;
    min-height: 535px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.model-wrap {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58%;
    height: 100%;
}

.fitness-model {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 48% center;
    border-radius: 27px 0 0 27px;
}

.zone-options {
    position: relative;
    z-index: 3;
    width: 51%;
    margin-left: auto;
    padding: 16px 12px 16px 0;
    display: grid;
    gap: 11px;
}

.zone-button {
    min-height: 56px;
    padding: 10px 12px 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
    text-align: left;
    border: 2px solid transparent;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 18px rgba(7, 43, 26, 0.13);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.zone-button--all {
    margin-left: calc(-96% + 12px);
}

.zone-button:hover {
    transform: translateY(-2px);
}

.zone-button.selected {
    border-color: var(--accent);
    background: #f4ffe8;
}

.zone-check {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    color: transparent;
    border: 2px solid #c7d2ca;
    border-radius: 8px;
    transition: 0.2s ease;
}

.zone-button.selected .zone-check {
    color: var(--white);
    border-color: var(--green-mid);
    background: var(--green-mid);
}

.body-marker {
    position: absolute;
    z-index: 2;
    width: 16px;
    height: 16px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--green-mid);
    opacity: 0;
    transform: scale(0.35);
    box-shadow: 0 0 0 0 rgba(185, 244, 134, 0.7);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.body-marker::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 4px;
    width: 76px;
    height: 2px;
    background: var(--white);
    transform-origin: left center;
}

.body-marker.active {
    opacity: 1;
    transform: scale(1);
    animation: marker-pulse 1.4s infinite;
}

.marker-chest { left: 52%; top: 29%; }
.marker-arms { left: 34%; top: 36%; }
.marker-back { left: 62%; top: 42%; }
.marker-abs { left: 51%; top: 45%; }
.marker-glutes { left: 35%; top: 57%; }
.marker-legs { left: 53%; top: 72%; }

.marker-arms::after,
.marker-glutes::after {
    width: 92px;
    transform: rotate(-8deg);
}

.continue-button {
    position: sticky;
    bottom: 14px;
    z-index: 5;
    width: 100%;
    min-height: 64px;
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--white), var(--accent));
    box-shadow: 0 12px 28px rgba(7, 43, 26, 0.25);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.continue-button:not(:disabled):hover {
    transform: translateY(-2px);
}

.continue-button:disabled {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(22, 54, 39, 0.35);
    box-shadow: none;
    cursor: not-allowed;
}

/* =========================
   ETAPA 4: HISTORIAL
========================= */

.history-cards .text-card {
    min-height: 80px;
    grid-template-columns: 42px 1fr 30px;
    padding: 14px 17px;
}

.text-card .option-icon {
    font-size: 25px;
}

.text-card > span:nth-child(2) {
    font-size: 17px;
    line-height: 1.25;
}

/* ETAPA 5: MENSAJE */
.welcome-screen {
    position: relative;
    min-height: calc(100dvh - 58px);
    padding: 20px 22px 12px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(155deg, #f49b9d 0%, #dd617e 57%, #ad49d5 100%);
    box-shadow: 0 24px 60px rgba(66, 16, 64, 0.3);
}

.welcome-brand,
.frequency-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
}

.welcome-art {
    position: relative;
    height: clamp(190px, 34vh, 270px);
    margin: 12px -22px 4px;
    overflow: hidden;
}

.welcome-orbit {
    position: absolute;
    border: 28px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.welcome-orbit--one {
    width: 390px;
    height: 220px;
    top: -75px;
    left: -80px;
    transform: rotate(-22deg);
}

.welcome-orbit--two {
    width: 360px;
    height: 190px;
    right: -145px;
    bottom: -60px;
    border-color: rgba(111, 36, 138, 0.16);
    transform: rotate(-25deg);
}

.welcome-person {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 78%;
    height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center bottom;
}

.welcome-person.welcome-athlete-square {
    width:min(78vw,240px);
    height:min(78vw,240px);
    max-width:240px;
    margin:0 auto;
    object-fit:cover;
    object-position:center 34%;
    border:3px solid rgba(255,255,255,.74);
    border-radius:26px;
    box-shadow:0 20px 42px rgba(12,76,44,.2);
}

.welcome-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(27px, 7.5vw, 34px);
    line-height: 1.2;
    text-align: left;
    letter-spacing: -0.9px;
}

.welcome-screen .welcome-copy {
    margin-top:32px;
}

.welcome-copy p {
    max-width: 360px;
    font-size: 15px;
    line-height: 1.35;
}

@media (max-width:420px) {
    .welcome-screen .welcome-copy {
        margin-top:18px;
    }
}

.welcome-continue {
    width: 100%;
    min-height: 64px;
    margin-top: 23px;
    color: #4265ff;
    font-size: 17px;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(65, 27, 85, 0.22);
}

/* ETAPA 6: FRECUENCIA */
.frequency-screen {
    min-height: calc(100dvh - 58px);
    padding: 15px 0 28px;
    color: #1b2230;
    border-radius: 28px;
    background:
        radial-gradient(circle at 35% 40%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px) 0 0 / 8px 8px,
        linear-gradient(145deg, #cdd0ff 0%, #eee1ff 100%);
    box-shadow: 0 24px 60px rgba(72, 61, 145, 0.2);
}

.frequency-topbar,
.frequency-progress,
.frequency-screen > h1,
.frequency-options {
    margin-left: 20px;
    margin-right: 20px;
}

.frequency-topbar {
    display: grid;
    grid-template-columns: 45px 1fr 54px;
    align-items: center;
}

.frequency-back {
    color: #17202d;
    font-size: 29px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.frequency-logo { color: #a34dff; }

.frequency-step {
    justify-self: end;
    font-size: 14px;
}

.frequency-step strong { color: #4265ff; }

.frequency-progress {
    height: 4px;
    margin-top: 8px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
}

.frequency-progress-bar {
    width: 33.3%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9756ff, #3976ff);
}

.frequency-screen h1 {
    max-width: 370px;
    margin-top: 0;
    margin-bottom: 17px;
    font-size: clamp(27px, 7vw, 32px);
    line-height: 1.15;
    text-align: center;
    letter-spacing: -0.7px;
}

.frequency-options {
    display: grid;
    gap: 15px;
}

.frequency-option {
    width: 100%;
    min-height: 88px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    color: #1b2230;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(89, 75, 165, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.frequency-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 25px rgba(89, 75, 165, 0.15);
}

.frequency-option.selected {
    border-color: #7c5cff;
    background: #fbfaff;
}

.level-bars {
    height: 36px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.level-bars i {
    width: 6px;
    border-radius: 2px;
    background: #e3e4e8;
}

.level-bars i:nth-child(1) { height: 8px; }
.level-bars i:nth-child(2) { height: 15px; }
.level-bars i:nth-child(3) { height: 23px; }
.level-bars i:nth-child(4) { height: 30px; }
.level-bars i:nth-child(5) { height: 36px; }

.level-1 i:nth-child(-n+1),
.level-2 i:nth-child(-n+2),
.level-3 i:nth-child(-n+3),
.level-4 i:nth-child(-n+4),
.level-5 i:nth-child(-n+5) {
    background: linear-gradient(180deg, #477bff, #8a54ff);
}

.frequency-option:focus-visible,
.frequency-back:focus-visible,
.welcome-continue:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* ETAPAS 7 A 10 */
.lavender-screen {
    min-height: calc(100dvh - 58px);
    padding: 12px 24px 28px;
    color: #1b2230;
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 48%, rgba(255,255,255,.62) 0 1px, transparent 2px) 0 0 / 8px 8px,
        linear-gradient(145deg, #ccd1ff 0%, #f0e2ff 100%);
    box-shadow: 0 24px 60px rgba(72, 61, 145, 0.2);
}

.lavender-topbar {
    display: grid;
    grid-template-columns: 44px 1fr 55px;
    align-items: center;
}

.lavender-back {
    justify-self: start;
    color: #17202d;
    font-size: 29px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.lavender-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #a34dff;
    font-size: 14px;
    font-weight: 600;
}

.lavender-step {
    justify-self: end;
    font-size: 14px;
}

.lavender-step strong { color: #4265ff; }

.lavender-progress {
    height: 4px;
    margin: 8px 0 17px;
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
}

.lavender-progress span {
    width: var(--step-progress);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #9b56ff, #3976ff);
}

.lavender-question {
    margin: 0 auto 22px;
    text-align: center;
}

.lavender-question h1 {
    margin-bottom: 7px;
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1.12;
    letter-spacing: -.65px;
}

.lavender-question p {
    max-width: 350px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.25;
}

.dance-options,
.lavender-options {
    display: grid;
    gap: 15px;
}

.dance-option {
    min-height: 116px;
    display: grid;
    grid-template-columns: 72px 1fr 28px;
    align-items: center;
    gap: 16px;
    padding: 8px 14px 8px 8px;
    color: #1b2230;
    text-align: left;
    border: 2px solid transparent;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
}

.dance-image-placeholder {
    width: 72px;
    height: 100px;
    display: grid;
    place-items: center;
    color: rgba(70, 60, 105, .45);
    font-size: 24px;
    font-weight: 700;
    border-radius: 13px;
    background: linear-gradient(145deg, #f1c9b3, #d7b4b2);
}

.dance-style-image {
    width: 72px;
    height: 100px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 13px;
}

.dance-image-placeholder--pink { background: linear-gradient(145deg, #ef42c2, #9a24b8); color: rgba(255,255,255,.65); }
.dance-image-placeholder--rose { background: linear-gradient(145deg, #e5c1b3, #c98c99); }

.dance-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dance-copy strong {
    font-size: 17px;
    line-height: 1.22;
}

.dance-copy small {
    margin-top: 3px;
    color: #6d6d73;
    font-size: 14px;
    line-height: 1.22;
}

.dance-copy em {
    margin-bottom: 5px;
    padding: 2px 6px;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    border-radius: 4px;
    background: #e44392;
}

.dance-checkbox {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: transparent;
    border: 1.5px solid #c6c7cb;
    border-radius: 8px;
}

.dance-option.selected {
    border-color: #865cff;
}

.dance-option.selected .dance-checkbox {
    color: #fff;
    border-color: #7656f7;
    background: #7656f7;
}

.lavender-continue {
    width: 100%;
    min-height: 64px;
    margin-top: -1px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #9b56ff, #4a6fff);
    cursor: pointer;
}

.dance-style-screen .lavender-continue {
    margin-top:18px;
}

.lavender-continue:disabled {
    background: #c9c9cb;
    cursor: not-allowed;
}

.lavender-option {
    width: 100%;
    min-height: 88px;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 15px;
    padding: 14px 17px;
    color: #1b2230;
    text-align: left;
    font-size: 17px;
    border: 2px solid transparent;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
}

.lavender-option:hover { transform: translateY(-2px); }
.lavender-option.selected { border-color: #7656f7; background: #fbfaff; }
.option-emoji { font-size: 22px; }

.level-options .lavender-option {
    grid-template-columns: 40px 1fr;
}

.level-options .lavender-option > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lavender-option small {
    color: #6d6d73;
    font-size: 14px;
    line-height: 1.25;
}

.duration-question p { max-width: 315px; }
.duration-options { gap: 15px; }
.duration-options .lavender-option { min-height: 88px; }

.lavender-option:focus-visible,
.dance-option:focus-visible,
.lavender-back:focus-visible,
.lavender-continue:focus-visible {
    outline: 3px solid #7656f7;
    outline-offset: 3px;
}

/* ETAPAS 11 A 14 */
.level-ready-screen {
    min-height: calc(100dvh - 58px);
    padding: 20px 16px 10px;
    overflow: hidden;
    color: #fff;
    border-radius: 28px;
    background: linear-gradient(160deg, #f1b2bd 0%, #c68cda 47%, #5a76f8 100%);
    box-shadow: 0 24px 60px rgba(57, 48, 139, .28);
}

.level-ready-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
}

.level-ready-art {
    position: relative;
    height: clamp(270px, 51vh, 410px);
    margin: 0 -16px;
    overflow: hidden;
}

.level-ready-art span {
    position: absolute;
    width: 420px;
    height: 210px;
    border: 32px solid rgba(255,255,255,.14);
    border-radius: 50%;
    transform: rotate(-28deg);
}

.level-ready-art span:first-child { top: 15px; left: -150px; }
.level-ready-art span:nth-child(2) { right: -170px; bottom: 10px; border-color: rgba(115,61,187,.2); }

.level-ready-person {
    position: relative;
    z-index: 2;
    max-width: 86%;
    height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center bottom;
}

.level-ready-person.level-athlete-square {
    width:min(78vw,300px);
    height:min(78vw,300px);
    max-width:300px;
    margin:18px auto 0;
    object-fit:cover;
    object-position:center 30%;
    border:3px solid rgba(255,255,255,.74);
    border-radius:28px;
    box-shadow:0 22px 46px rgba(12,76,44,.22);
}

.level-ready-screen h1 {
    margin: 24px 0 25px;
    text-align: left;
    font-size: clamp(27px, 7.5vw, 34px);
    line-height: 1.16;
}

.level-ready-continue {
    width: 100%;
    min-height: 64px;
    color: #4265ff;
    font-size: 17px;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.habit-options .lavender-option { min-height: 88px; }

.sleep-question { margin-bottom: 22px; }

.sleep-image {
    width: 100%;
    height: 200px;
    display: block;
    margin-bottom: 24px;
    object-fit: cover;
    object-position: center 44%;
    border-radius: 18px;
}

.sleep-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.sleep-options .lavender-option {
    min-height: 88px;
    grid-template-columns: 1fr;
    padding: 15px;
    line-height: 1.35;
}

.water-screen {
    display: flex;
    flex-direction: column;
}

.water-question { margin-bottom: 35px; }

.water-question p {
    margin-top: 38px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .2px;
}

.water-glasses {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px 10px;
}

.water-glass {
    position: relative;
    height: 94px;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(90deg, #fff 0%, #eef0f5 100%);
    clip-path: polygon(8% 0, 92% 0, 83% 100%, 17% 100%);
    cursor: pointer;
}

.water-glass::before {
    content: "";
    position: absolute;
    inset: 47% 14% 5%;
    opacity: 0;
    background: linear-gradient(180deg, #7ddfff, #3887ff);
    transition: inset .22s ease, opacity .22s ease;
}

.water-glass span {
    position: relative;
    z-index: 2;
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    color: #416cff;
    font-size: 31px;
    line-height: 1;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 15px rgba(78, 90, 150, .13);
}

.water-glass.selected::before {
    inset: 22% 10% 4%;
    opacity: .78;
}

.water-glass.selected span {
    color: #fff;
    font-size: 23px;
    background: #416cff;
}

.water-count {
    margin: 20px 0 12px;
    color: #596174;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.water-continue { margin-top: auto; }

.water-glass:focus-visible,
.level-ready-continue:focus-visible {
    outline: 3px solid #7656f7;
    outline-offset: 4px;
}

@keyframes marker-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(185, 244, 134, 0.65); }
    50% { box-shadow: 0 0 0 9px rgba(185, 244, 134, 0); }
}

@keyframes enter-forward {
    from { opacity: 0; transform: translateX(26px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes leave-forward {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-18px); }
}

@keyframes enter-back {
    from { opacity: 0; transform: translateX(-26px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes leave-back {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(18px); }
}

@media (max-width: 360px) {
    body {
        padding-inline: 12px;
    }

    .card {
        min-height: 92px;
        grid-template-columns: 92px 1fr 30px;
        gap: 12px;
        border-radius: 19px;
    }

    .card img {
        width: 92px;
        height: 92px;
    }

    .body-selector {
        min-height: 500px;
    }

    .zone-button {
        min-height: 52px;
        padding-inline: 10px;
        font-size: 13px;
    }

    .welcome-screen {
        padding-inline: 18px;
    }

    .welcome-art {
        height: 170px;
        margin-inline: -18px;
    }

    .frequency-option {
        min-height: 72px;
        font-size: 15px;
    }

    .lavender-screen {
        padding-inline: 16px;
    }

    .dance-option {
        grid-template-columns: 64px 1fr 26px;
        gap: 10px;
    }

    .dance-image-placeholder {
        width: 64px;
        height: 92px;
    }

    .dance-style-image {
        width: 64px;
        height: 92px;
    }

    .water-glasses {
        gap-inline: 5px;
    }

    .water-glass {
        height: 76px;
    }

    .water-glass span {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ETAPAS 15 A 21 */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.profile-step-screen,.fitness-profile-screen {
    min-height: calc(100dvh - 44px); padding: 8px 42px 26px; overflow:hidden; color:#1b2230; border-radius:24px;
    background: radial-gradient(circle at 28% 42%,rgba(255,255,255,.55) 0 1px,transparent 2px) 0 0/7px 7px,linear-gradient(145deg,#f1f3ff,#dce2ff);
}
.profile-topbar { display:grid; grid-template-columns:44px 1fr 58px; align-items:center; font-size:14px; }
.profile-topbar button { border:0; background:transparent; text-align:left; font-size:27px; cursor:pointer; }
.profile-topbar>div:last-child { text-align:right; }.profile-topbar>div:last-child strong{color:#3973ff}
.dancebit-logo,.dancebit-brand { display:flex; align-items:center; justify-content:center; gap:6px; color:#a04fff; font-weight:600; }
.brand-mark { width:23px; height:28px; display:inline-grid; place-items:center; color:#fff; font-family:serif; border:1px solid currentColor; border-radius:4px 50% 50% 4px; }
.dancebit-logo .brand-mark { color:#a04fff; }
.profile-progress { height:4px; margin:7px 0 18px; background:#fff; border-radius:9px; overflow:hidden; }
.profile-progress span { display:block; height:100%; width:var(--profile-progress); background:linear-gradient(90deg,#9856ff,#3976ff); border-radius:inherit; }
.profile-question { text-align:center; margin-bottom:24px; }
.profile-question h1 { margin-bottom:8px; font-size:26px; letter-spacing:-.6px; }
.profile-question p { max-width:350px; margin:auto; font-size:14px; line-height:1.28; }
.unit-switch { width:160px; display:grid; grid-template-columns:1fr 1fr; margin:0 auto 30px; padding:7px; border-radius:14px; background:rgba(255,255,255,.38); }
.unit-switch button { min-height:34px; border:0; border-radius:10px; background:transparent; cursor:pointer; }
.unit-switch button.active,.unit-pill { color:#fff; font-weight:700; background:linear-gradient(90deg,#9a4ff0,#3677fa); }
.unit-pill { width:72px; min-height:32px; display:grid; place-items:center; margin:0 auto 16px; border-radius:12px; font-size:12px; }
.measure-fields { display:flex; justify-content:center; gap:12px; }
.measure-fields input { width:100%; height:64px; padding:0 20px; color:#1b2230; text-align:center; font-size:30px; font-weight:700; border:2px solid transparent; border-radius:16px; outline:0; background:#fff; }
.measure-fields input:focus { border-color:#7656f7; box-shadow:0 0 0 4px rgba(118,86,247,.12); }
#heightFields label { flex:1; }.profile-continue,.milestone-button { width:100%; min-height:56px; margin-top:24px; color:#fff; font-size:17px; font-weight:700; border:0; border-radius:999px; background:linear-gradient(90deg,#9654f5,#3578f6); cursor:pointer; }
.profile-continue:disabled { background:#c9c9c9; cursor:not-allowed; }
.field-error { min-height:18px; margin:7px 0 0; color:#b02b4b; text-align:center; font-size:12px; }
.easy-win { margin-top:16px; padding:13px 16px; border-radius:12px; background:#dfffc4; }
.easy-win strong,.easy-win b,.easy-win p { display:block; }.easy-win strong{color:#42a74e;font-size:14px}.easy-win b{margin:7px 0 3px;font-size:16px}.easy-win p{color:#8ab97b;font-size:14px;line-height:1.3}
.milestone-screen { min-height:calc(100dvh - 44px); position:relative; display:flex; flex-direction:column; overflow:hidden; padding:12px 16px 12px; color:#fff; border-radius:24px; background:linear-gradient(165deg,#c68ca4 0%,#8d56e8 56%,#5570f5 100%); box-shadow:0 24px 60px rgba(57,48,139,.28); }
.milestone-screen[hidden]{display:none!important}.dancebit-brand{position:relative;z-index:3;color:#fff}.milestone-people{position:relative;height:350px;margin:-38px -16px 0;overflow:hidden;background:radial-gradient(ellipse at 30% 25%,#a760ed 0 30%,transparent 30.5%),linear-gradient(155deg,transparent 45%,rgba(84,62,210,.45) 45%)}
.person { position:absolute; bottom:-30px; width:138px; height:285px; border-radius:70px 70px 20px 20px; background:linear-gradient(180deg,#683823 0 16%,#8d6dcf 16% 62%,#483996 62%); transform:rotate(-5deg); box-shadow:0 0 0 12px rgba(255,255,255,.06); }
.person:before{content:"";position:absolute;left:39px;top:-43px;width:64px;height:74px;border-radius:50%;background:#9d6241}
.person--one{left:45px}.person--two{right:42px;transform:rotate(5deg);background:linear-gradient(180deg,#d2ae99 0 16%,#aaa7e8 16% 62%,#4b3e99 62%)}.person--two:before{background:#ddb89f}
.milestone-copy { position:relative;z-index:2;margin-top:auto; }.milestone-copy h1{margin:0 0 8px;font-size:25px;text-align:left}.milestone-copy p{margin:0 0 8px;font-size:14px;line-height:1.25}.milestone-button{position:relative;z-index:2;margin-top:14px;color:#3e70f7;background:#fff}
.milestone-almost .milestone-people{height:420px;margin-top:-36px}.milestone-almost .person--one{background:linear-gradient(180deg,#ba7f58 0 16%,#b8c3df 16% 55%,#493a8a 55%)}.milestone-almost .person--two{background:linear-gradient(180deg,#bd825e 0 16%,#65b7da 16% 55%,#4453a8 55%)}.milestone-almost .milestone-copy h1{font-size:26px;max-width:310px}
.milestone-almost .milestone-food-art {
    display:grid;
    place-items:center;
    height:420px;
    margin-top:-36px;
    background:none;
}
.milestone-almost .milestone-food-art img {
    width:min(92%,390px);
    max-height:365px;
    object-fit:contain;
    filter:drop-shadow(0 28px 30px rgba(37,45,112,.28));
}
.fitness-profile-screen{padding:18px 34px 20px}.fitness-profile-screen>h1{font-size:25px;text-align:center;margin-bottom:18px}.fitness-card{padding:16px;border-radius:16px;background:#fff;box-shadow:0 12px 30px rgba(63,72,140,.08)}.fitness-card header{display:flex;justify-content:space-between;align-items:center}.fitness-card h2{font-size:17px;line-height:1.45}.fitness-card header>span{padding:3px 7px;color:#fff;font-size:11px;font-weight:700;border-radius:5px;background:#ff9000}.bmi-scale{margin:58px 0 24px}.bmi-labels,.bmi-categories{display:grid;grid-template-columns:repeat(5,1fr);color:#aaa;font-size:11px}.bmi-labels span{text-align:center}.bmi-track{height:6px;position:relative;margin:8px 0 29px;border-radius:5px;background:linear-gradient(90deg,#6fd5e7 0 26%,#3dcc75 26% 52%,#c6e84e 52% 65%,#ff9c4b 65% 82%,#ff3c61 82%)}#bmiPointer{position:absolute;left:var(--bmi-position,64%);top:50%;width:26px;height:26px;transform:translate(-50%,-50%);border:7px solid #fff;border-radius:50%;background:#1c2531;box-shadow:0 1px 5px #999}#bmiPointer b{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);white-space:nowrap;padding:6px 9px;color:#fff;font-size:13px;border-radius:13px;background:#202835}.bmi-categories{grid-template-columns:repeat(4,1fr);letter-spacing:.6px}.bmi-categories span{text-align:center}.bmi-risk{display:grid;grid-template-columns:24px 1fr;gap:8px;padding:14px;border-radius:16px;background:#fff1de}.bmi-risk>span{width:21px;height:21px;display:grid;place-items:center;color:#ff9100;border:2px solid #ff9100;border-radius:50%;font-weight:700}.bmi-risk p{font-size:14px;line-height:1.35}.profile-summary{position:relative;min-height:90px;padding-top:14px;overflow:hidden}.profile-summary p{display:grid;grid-template-columns:32px 1fr;grid-template-rows:auto auto;margin:7px 0;font-size:12px}.profile-summary p>span{grid-row:1/3;font-size:20px}.profile-summary small{color:#aaa}.profile-summary img{position:absolute;right:-4px;bottom:-62px;width:148px;height:184px;object-fit:cover;object-position:58% 14%;border:2px solid rgba(255,255,255,.8);border-radius:18px;box-shadow:0 12px 24px rgba(12,76,44,.14)}.fitness-profile-screen .profile-continue{margin-top:16px}.completion-message{margin-top:10px;color:#257a4a;text-align:center;font-weight:700}
.event-screen{padding-inline:22px}.event-screen .profile-question{margin-bottom:14px}.event-screen .profile-question h1{max-width:340px;font-size:20px;line-height:1.18}.event-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.event-options button{min-width:0;min-height:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:9px 6px;color:#1b2230;text-align:center;border:2px solid transparent;border-radius:14px;background:#fff;box-shadow:0 6px 14px rgba(69,71,132,.07);cursor:pointer}.event-options button span{font-size:22px;line-height:1}.event-options button strong{font-size:11px;line-height:1.18;overflow-wrap:anywhere}.event-options button:hover,.event-options button:focus-visible{transform:translateY(-2px);border-color:#8a5af6}.event-options button.selected{color:#6640d7;border-color:#8657f2;background:#fbf9ff}.event-date-screen{min-height:calc(100dvh - 44px);display:flex;flex-direction:column}.event-date-screen[hidden]{display:none!important}.event-date-screen .profile-question h1{max-width:360px;font-size:24px}.event-date-field{width:180px;margin:0 auto}.event-date-field input{width:100%;min-height:62px;padding:0 13px;color:#1b2230;font-weight:600;border:2px solid transparent;border-radius:16px;outline:0;background:#fff}.event-date-field input:focus{border-color:#7656f7;box-shadow:0 0 0 4px rgba(118,86,247,.12)}.event-date-actions{margin-top:auto;text-align:center}.skip-event-date{margin-top:13px;color:#5f5f68;border:0;background:transparent;cursor:pointer}.skip-event-date:hover{color:#754de4;text-decoration:underline}
@media(max-width:380px){.profile-step-screen,.fitness-profile-screen{padding-inline:18px}.milestone-people{height:310px}.person{width:115px;height:250px}.person--one{left:30px}.person--two{right:28px}.fitness-card{padding:13px}.bmi-categories{font-size:9px}}
@media(max-width:380px){.event-screen{padding-inline:12px}.event-options{gap:7px}.event-options button{min-height:82px;padding:6px 4px}.event-options button strong{font-size:10px}}

/* PORTADA Y ACABADO VISUAL NEXT-GEN */
.intro-screen {
    min-height:calc(100dvh - 44px); position:relative; display:flex; flex-direction:column; isolation:isolate;
    overflow:hidden; padding:18px 22px 20px; color:#172033; border:1px solid rgba(255,255,255,.72); border-radius:28px;
    background:radial-gradient(circle at 50% 26%,rgba(255,255,255,.96),rgba(236,239,255,.82) 45%,rgba(211,218,255,.92));
    box-shadow:0 30px 90px rgba(31,38,97,.35),inset 0 1px 0 #fff;
}
.intro-ambient{position:absolute;inset:0;z-index:-1;overflow:hidden}.intro-ambient span{position:absolute;border-radius:50%;filter:blur(2px);animation:intro-float 7s ease-in-out infinite}.intro-ambient span:nth-child(1){width:260px;height:260px;left:-100px;top:80px;background:rgba(158,77,246,.2)}.intro-ambient span:nth-child(2){width:220px;height:220px;right:-90px;top:220px;background:rgba(52,121,248,.22);animation-delay:-2s}.intro-ambient span:nth-child(3){width:170px;height:170px;left:100px;bottom:-90px;background:rgba(238,99,199,.16);animation-delay:-4s}
.intro-brand{display:flex;align-items:center;justify-content:center;gap:7px;color:#8d50f4;font-size:14px;font-weight:800;letter-spacing:.2px}.intro-brand .brand-mark{width:25px;height:29px;color:#8d50f4}
.intro-stage{height:330px;position:relative;margin:2px -5px 0;perspective:900px}.intro-halo{position:absolute;left:50%;top:45%;width:240px;height:240px;transform:translate(-50%,-50%);border-radius:50%;background:conic-gradient(from 180deg,#9859ff,#4b8dff,#f6a1dc,#9859ff);filter:blur(18px);opacity:.28;animation:halo-spin 9s linear infinite}
.intro-tile{position:absolute;width:135px;height:105px;display:flex;align-items:flex-end;padding:12px;color:#fff;border:1px solid rgba(255,255,255,.7);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.8),rgba(123,91,242,.38));box-shadow:0 14px 35px rgba(70,60,150,.14);backdrop-filter:blur(12px);animation:tile-drift 5s ease-in-out infinite}.intro-tile span{font-size:13px;font-weight:800;text-shadow:0 1px 5px rgba(32,27,79,.35)}.intro-tile--one{left:50%;top:6px;transform:translateX(-50%);width:160px}.intro-tile--two{left:3px;top:100px;animation-delay:-1s}.intro-tile--three{right:3px;top:100px;animation-delay:-2s}.intro-tile--four{left:50%;bottom:15px;transform:translateX(-50%);animation-delay:-3s}
.intro-person{position:absolute;z-index:3;left:50%;bottom:-5px;width:230px;height:315px;transform:translateX(-50%);object-fit:cover;object-position:50% 5%;filter:drop-shadow(0 20px 16px rgba(38,29,96,.24));mask-image:linear-gradient(#000 72%,transparent 100%)}
.intro-copy{position:relative;z-index:4;margin-top:auto;text-align:center}.swirl-title{max-width:430px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;margin:0 auto 10px;font-size:clamp(27px,7vw,34px);line-height:1.04;letter-spacing:-1.2px}.swirl-title>span:not(.swirl-space){display:inline-block;opacity:0;transform:translate(calc(cos(var(--i) * 31deg) * 110px),calc(sin(var(--i) * 31deg) * 80px)) rotate(calc(var(--i) * 42deg)) scale(.2);filter:blur(7px);animation:letter-swirl .9s cubic-bezier(.18,.85,.28,1.25) forwards;animation-delay:calc(.045s * var(--i) + .15s);background:linear-gradient(100deg,#182033 15%,#7346dc 55%,#2878f6);background-clip:text;-webkit-background-clip:text;color:transparent}.swirl-space{width:.3em}.intro-copy p{max-width:355px;margin:auto;color:#596076;font-size:13px;line-height:1.42}
.intro-continue{min-height:60px;display:flex;align-items:center;justify-content:center;gap:12px;margin-top:18px;color:#fff;font-size:15px;font-weight:800;border:0;border-radius:999px;background:linear-gradient(100deg,#9b4ef0,#5b5ff5 52%,#287af5);background-size:200% 100%;box-shadow:0 15px 35px rgba(76,82,240,.3),inset 0 1px 0 rgba(255,255,255,.35);cursor:pointer;animation:button-shimmer 4s linear infinite;transition:transform .25s ease,box-shadow .25s ease}.intro-continue b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.18);transition:transform .25s ease}.intro-continue:hover{transform:translateY(-3px);box-shadow:0 20px 42px rgba(76,82,240,.42)}.intro-continue:hover b{transform:translateX(4px)}.intro-note{margin:10px 0 0;color:#858ba0;text-align:center;font-size:11px}
.card,.frequency-option,.lavender-option,.dance-option,.event-options button,.fitness-card{box-shadow:0 12px 32px rgba(55,57,125,.11),inset 0 1px 0 rgba(255,255,255,.8);transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease,border-color .25s ease}.card:hover,.frequency-option:hover,.lavender-option:hover,.dance-option:hover,.event-options button:hover{transform:translateY(-4px) scale(1.01);box-shadow:0 18px 42px rgba(55,57,125,.18)}.profile-step-screen,.lavender-screen,.fitness-profile-screen{box-shadow:0 28px 75px rgba(39,42,103,.24),inset 0 1px 0 rgba(255,255,255,.9)}.profile-continue,.lavender-continue,.welcome-continue,.level-ready-continue{box-shadow:0 12px 28px rgba(73,84,235,.23);transition:transform .22s ease,box-shadow .22s ease}.profile-continue:not(:disabled):hover,.lavender-continue:not(:disabled):hover,.welcome-continue:hover,.level-ready-continue:hover{transform:translateY(-3px);box-shadow:0 17px 35px rgba(73,84,235,.34)}
@keyframes letter-swirl{65%{opacity:1;filter:blur(0)}100%{opacity:1;transform:none;filter:blur(0)}}@keyframes halo-spin{to{transform:translate(-50%,-50%) rotate(360deg)}}@keyframes intro-float{50%{transform:translateY(-24px) translateX(12px) scale(1.08)}}@keyframes tile-drift{50%{margin-top:-8px;filter:saturate(1.15)}}@keyframes button-shimmer{to{background-position:-200% 0}}
@media(max-width:380px){.intro-screen{padding-inline:15px}.intro-stage{height:300px}.intro-person{width:205px;height:290px}.intro-tile{width:115px;height:92px}.intro-tile--one{width:145px}.intro-copy p{font-size:12px}}

/* ESCALA AMPLIADA Y PORTADA VERDE SALUDABLE */
.app {
    position:relative;
    left:clamp(95px,9vw,145px);
    width:min(100%,560px);
}
.screen { font-size:1.045rem; }
.intro-screen {
    min-height:calc(100dvh - 44px);
    background:
        radial-gradient(circle at 50% 25%,rgba(235,255,226,.96) 0,rgba(183,242,184,.84) 34%,transparent 61%),
        radial-gradient(circle at 15% 68%,rgba(121,234,160,.42),transparent 38%),
        linear-gradient(155deg,#eaffdd 0%,#b8eeba 45%,#76d994 100%);
    box-shadow:0 32px 95px rgba(8,70,40,.34),inset 0 1px 0 rgba(255,255,255,.9);
}
.intro-ambient span:nth-child(1){background:rgba(45,192,111,.22)}
.intro-ambient span:nth-child(2){background:rgba(16,142,95,.2)}
.intro-ambient span:nth-child(3){background:rgba(208,244,111,.25)}
.healthy-dishes{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.healthy-dish{
    position:absolute;width:74px;height:74px;display:grid;place-items:center;font-size:39px;border:1px solid rgba(255,255,255,.64);
    border-radius:50%;background:rgba(255,255,255,.38);box-shadow:0 12px 30px rgba(13,102,58,.13);backdrop-filter:blur(7px);
    opacity:.68;filter:saturate(1.08);animation:dish-fly 13s linear infinite;
}
.healthy-dish--one{left:-90px;top:13%;animation-delay:-1s}.healthy-dish--two{left:-90px;top:39%;animation-delay:-8s;animation-duration:16s}.healthy-dish--three{left:-90px;top:68%;animation-delay:-4s;animation-duration:18s}.healthy-dish--four{left:-90px;top:25%;animation-delay:-11s;animation-duration:19s}.healthy-dish--five{left:-90px;top:80%;animation-delay:-14s;animation-duration:17s}.healthy-dish--six{left:-90px;top:52%;animation-delay:-6s;animation-duration:15s}
.intro-halo{background:conic-gradient(from 180deg,#48c977,#88e659,#3bbda0,#d8f781,#48c977);opacity:.32}
.intro-tile{background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(67,185,112,.35));box-shadow:0 14px 35px rgba(21,108,62,.14)}
.intro-brand{color:#167749}.intro-brand .brand-mark{color:#167749}
.swirl-title>span:not(.swirl-space){background:linear-gradient(100deg,#153626 10%,#168353 55%,#2a9663);background-clip:text;-webkit-background-clip:text}
.intro-copy p{color:#315c46}
.intro-continue{background:linear-gradient(100deg,#12925b,#27b46c 52%,#64c94f);box-shadow:0 15px 35px rgba(20,132,79,.3),inset 0 1px 0 rgba(255,255,255,.4)}
.intro-continue:hover{box-shadow:0 20px 44px rgba(20,132,79,.4)}
.intro-note{color:#49775e}
.topbar,.frequency-topbar,.lavender-topbar,.profile-topbar{min-height:54px}
h1,.question h1,.lavender-question h1,.profile-question h1{font-size:clamp(30px,7vw,40px)}
.question p,.lavender-question p,.profile-question p{font-size:16px}
.card{min-height:124px;grid-template-columns:124px 1fr 34px;font-size:18px;border-radius:24px}.card img{width:124px;height:124px}
.frequency-option,.lavender-option{min-height:98px;font-size:18px;border-radius:21px}
.dance-option{min-height:130px;border-radius:21px}.dance-copy strong{font-size:18px}.dance-copy small{font-size:15px}
.zone-button{min-height:60px;font-size:15px}
.continue-button,.welcome-continue,.lavender-continue,.level-ready-continue,.profile-continue,.milestone-button{min-height:66px;font-size:18px}
.measure-fields input{height:76px;font-size:34px;border-radius:19px}
.unit-switch{width:184px}.unit-switch button{min-height:40px}
.event-options button{min-height:106px}.event-options button span{font-size:27px}.event-options button strong{font-size:12px}
.fitness-card{padding:21px}.fitness-card h2{font-size:19px}.bmi-risk p{font-size:15px}
@keyframes dish-fly{
    0%{transform:translate3d(-10px,25px,0) rotate(-20deg) scale(.78);opacity:0}
    10%{opacity:.68}
    48%{transform:translate3d(330px,-22px,0) rotate(145deg) scale(1.04)}
    90%{opacity:.68}
    100%{transform:translate3d(690px,18px,0) rotate(330deg) scale(.82);opacity:0}
}
@media(max-width:600px){
    body{padding-inline:10px}
    .app{width:100%}
    .screen{font-size:1rem}
    h1,.question h1,.lavender-question h1,.profile-question h1{font-size:clamp(26px,7vw,34px)}
    .card{min-height:108px;grid-template-columns:106px 1fr 30px;font-size:16px}.card img{width:106px;height:106px}
    .frequency-option,.lavender-option{min-height:88px;font-size:16px}
    .event-options button{min-height:92px}
    .healthy-dish{width:60px;height:60px;font-size:32px}
}

/* MARCADORES CORPORALES CORREGIDOS */
.model-wrap { isolation:isolate; }
.fitness-model { position:relative; z-index:1; }
.body-marker {
    z-index:4;
    width:18px;
    height:18px;
    border-width:3px;
    background:#15965b;
}
.body-marker::after {
    left:15px;
    top:5px;
    width:70px;
    height:2px;
    background:rgba(255,255,255,.96);
    box-shadow:0 1px 4px rgba(7,60,34,.28);
}
.body-marker.active {
    box-shadow:0 0 0 8px rgba(87,229,146,.24),0 3px 12px rgba(4,75,38,.42);
}
/* Coordenadas ajustadas sobre la fotografía real */
.marker-chest  { left:55%; top:20%; }
.marker-arms   { left:31%; top:29%; }
.marker-back   { left:65%; top:31%; }
.marker-abs    { left:54%; top:35%; }
.marker-glutes { left:45%; top:48%; }
.marker-legs   { left:54%; top:70%; }
.marker-arms::after { width:100px; transform:rotate(-7deg); }
.marker-back::after { width:58px; transform:rotate(6deg); }
.marker-glutes::after { width:90px; transform:rotate(-5deg); }
.marker-legs::after { width:66px; transform:rotate(4deg); }

/* FIGURA COMPLETA, SIN RECORTAR NI TAPAR EL ROSTRO */
.model-wrap {
    width:49%;
    padding:8px 0 8px 8px;
}
.fitness-model {
    object-fit:contain;
    object-position:center bottom;
    border-radius:24px 0 0 24px;
}
.zone-options {
    width:52%;
}
.zone-button--all {
    margin-left:0;
}
/* Posiciones recalibradas para la fotografía completa */
.marker-chest  { left:55%; top:29%; }
.marker-arms   { left:31%; top:34%; }
.marker-back   { left:66%; top:35%; }
.marker-abs    { left:54%; top:39%; }
.marker-glutes { left:45%; top:49%; }
.marker-legs   { left:54%; top:68%; }

/* SISTEMA VISUAL VERDE UNIFICADO PARA TODAS LAS ETAPAS */
body {
    background:
        radial-gradient(circle at 15% 12%,rgba(116,230,139,.22),transparent 30%),
        radial-gradient(circle at 86% 75%,rgba(86,211,126,.2),transparent 34%),
        linear-gradient(150deg,#0b402d 0%,#14623f 46%,#69d37d 100%);
}
.screen:not(.intro-screen) {
    min-height:calc(100dvh - 44px);
    padding:20px 22px 28px;
    overflow:hidden;
    color:#173528;
    border:1px solid rgba(255,255,255,.72);
    border-radius:28px;
    background:
        radial-gradient(circle at 50% 22%,rgba(242,255,233,.9),rgba(199,242,196,.86) 43%,transparent 72%),
        linear-gradient(155deg,#efffe8 0%,#bceebd 52%,#79da92 100%) !important;
    box-shadow:0 30px 85px rgba(6,61,35,.32),inset 0 1px 0 rgba(255,255,255,.92);
}
.screen:not(.intro-screen) h1,
.screen:not(.intro-screen) h2,
.screen:not(.intro-screen) .question p,
.screen:not(.intro-screen) .lavender-question p,
.screen:not(.intro-screen) .profile-question p,
.screen:not(.intro-screen) .milestone-copy,
.screen:not(.intro-screen) .welcome-copy p {
    color:#173528;
}
.screen:not(.intro-screen) .logo,
.screen:not(.intro-screen) .frequency-logo,
.screen:not(.intro-screen) .lavender-logo,
.screen:not(.intro-screen) .dancebit-logo,
.screen:not(.intro-screen) .dancebit-brand,
.screen:not(.intro-screen) .level-ready-brand {
    color:#168052;
}
.screen:not(.intro-screen) .back-button,
.screen:not(.intro-screen) .frequency-back,
.screen:not(.intro-screen) .lavender-back,
.screen:not(.intro-screen) .profile-topbar button {
    color:#173528;
    border-color:rgba(20,112,70,.2);
    background:rgba(255,255,255,.36);
}
.screen:not(.intro-screen) .progress,
.screen:not(.intro-screen) .frequency-progress,
.screen:not(.intro-screen) .lavender-progress,
.screen:not(.intro-screen) .profile-progress {
    background:rgba(255,255,255,.72);
}
.screen:not(.intro-screen) .progress-bar,
.screen:not(.intro-screen) .frequency-progress-bar,
.screen:not(.intro-screen) .lavender-progress span,
.screen:not(.intro-screen) .profile-progress span {
    background:linear-gradient(90deg,#12804f,#36bd70,#8bdc56);
    box-shadow:0 0 13px rgba(38,177,99,.35);
}
.screen:not(.intro-screen) .eyebrow { color:#197a4f; }
.screen:not(.intro-screen) .card,
.screen:not(.intro-screen) .frequency-option,
.screen:not(.intro-screen) .lavender-option,
.screen:not(.intro-screen) .dance-option,
.screen:not(.intro-screen) .event-options button,
.screen:not(.intro-screen) .fitness-card,
.screen:not(.intro-screen) .measure-fields input,
.screen:not(.intro-screen) .event-date-field input {
    color:#173528;
    border-color:rgba(255,255,255,.65);
    background:rgba(255,255,255,.9);
    box-shadow:0 12px 30px rgba(10,91,49,.12),inset 0 1px 0 #fff;
}
.screen:not(.intro-screen) .selected {
    border-color:#30a965;
    background:#efffe8;
}
.screen:not(.intro-screen) .continue-button,
.screen:not(.intro-screen) .welcome-continue,
.screen:not(.intro-screen) .lavender-continue,
.screen:not(.intro-screen) .level-ready-continue,
.screen:not(.intro-screen) .profile-continue {
    color:#fff;
    background:linear-gradient(100deg,#11814f,#29ae65 55%,#70ca50);
    box-shadow:0 14px 30px rgba(17,126,76,.25);
}
.screen:not(.intro-screen) .milestone-button {
    color:#16794d;
    background:#fff;
}
.screen:not(.intro-screen) .profile-continue:disabled,
.screen:not(.intro-screen) .lavender-continue:disabled {
    color:#789487;
    background:#d4dfd7;
    box-shadow:none;
}
.screen:not(.intro-screen) .unit-switch button.active,
.screen:not(.intro-screen) .unit-pill {
    background:linear-gradient(90deg,#148653,#49bd6a);
}
.screen:not(.intro-screen) .zone-button.selected {
    border-color:#46ba70;
    background:#efffe6;
}
.screen:not(.intro-screen) .zone-button.selected .zone-check {
    border-color:#18804f;
    background:#18804f;
}

/* Cuerpo completo ocupa una fila superior; la figura comienza debajo */
.body-selector {
    min-height:610px;
    padding-top:76px;
}
.body-selector .model-wrap {
    height:calc(100% - 76px);
}
.body-selector .zone-options {
    position:static;
    padding-top:0;
}
.body-selector .zone-button--all {
    position:absolute;
    top:3px;
    right:12px;
    width:calc(100% - 24px);
    min-height:58px;
    margin:0;
}

/* RECORTES DE LAS NUEVAS LÁMINAS VISUALES */
.body-type-image {
    object-fit:cover !important;
    object-position:center;
}
.body-type-1 { object-position:0% 50% !important; }
.body-type-2 { object-position:33.333% 50% !important; }
.body-type-3 { object-position:66.666% 50% !important; }
.body-type-4 { object-position:100% 50% !important; }
.food-sprite,
.food-feature-image {
    object-fit:cover !important;
}
.food-panel-1 { object-position:0% 50% !important; }
.food-panel-2 { object-position:33.333% 50% !important; }
.food-panel-3 { object-position:66.666% 50% !important; }
.food-panel-4 { object-position:100% 50% !important; }

/* Plato saludable decorativo presente en todas las etapas */
.healthy-plate-decoration {
    position:absolute;
    z-index:6;
    top:50%;
    right:calc(100% + 150px);
    width:340px;
    height:auto;
    pointer-events:none;
    user-select:none;
    opacity:0;
    transform:translate3d(-30px,-46%,0) scale(.88) rotate(-7deg);
    transform-origin:center;
    filter:
        drop-shadow(0 30px 32px rgba(5,54,30,.30))
        drop-shadow(0 8px 12px rgba(185,244,134,.18));
    will-change:transform,opacity,filter;
}

.app.plate-visible > .healthy-plate-decoration {
    animation:healthy-plate-appear 6.8s cubic-bezier(.22,.75,.3,1) infinite;
}

.milestone-thanks .milestone-people {
    visibility:hidden;
}

.milestone-thanks .milestone-couple-art {
    visibility:visible;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    height:clamp(250px,42vh,320px);
    margin:14px 0 12px;
    background:none;
    overflow:visible;
}

.milestone-thanks .dancebit-brand {
    min-height:30px;
    margin:0 54px 0;
    line-height:1.2;
}

.milestone-thanks .milestone-couple-art img {
    display:block;
    width:min(82%,290px);
    aspect-ratio:1;
    object-fit:cover;
    object-position:center;
    border:3px solid rgba(255,255,255,.76);
    border-radius:28px;
    box-shadow:0 22px 46px rgba(12,76,44,.22);
}

.milestone-thanks .milestone-copy {
    margin-top:42px;
}

@media (max-width:380px) {
    .milestone-thanks .milestone-couple-art {
        height:230px;
        margin-top:10px;
    }

    .milestone-thanks .milestone-couple-art img {
        width:220px;
    }

    .milestone-thanks .milestone-copy {
        margin-top:24px;
    }
}

@keyframes healthy-plate-appear {
    0% {
        opacity:0;
        transform:translate3d(-42px,-44%,0) scale(.82) rotate(-9deg);
        filter:drop-shadow(0 18px 18px rgba(5,54,30,0)) blur(5px);
    }
    18% {
        opacity:.96;
        transform:translate3d(0,-50%,0) scale(1) rotate(-2deg);
        filter:drop-shadow(0 30px 32px rgba(5,54,30,.30)) drop-shadow(0 8px 12px rgba(185,244,134,.18)) blur(0);
    }
    48% {
        opacity:1;
        transform:translate3d(7px,-53%,0) scale(1.045) rotate(1deg);
        filter:drop-shadow(0 36px 38px rgba(5,54,30,.34)) drop-shadow(0 8px 15px rgba(185,244,134,.22)) blur(0);
    }
    78% {
        opacity:.96;
        transform:translate3d(0,-50%,0) scale(1) rotate(-2deg);
        filter:drop-shadow(0 30px 32px rgba(5,54,30,.30)) drop-shadow(0 8px 12px rgba(185,244,134,.18)) blur(0);
    }
    100% {
        opacity:0;
        transform:translate3d(-34px,-56%,0) scale(.88) rotate(-7deg);
        filter:drop-shadow(0 18px 18px rgba(5,54,30,0)) blur(4px);
    }
}

@media (max-width:1100px) {
    .healthy-plate-decoration {
        right:calc(100% + 70px);
        width:230px;
    }
}

@media (max-width:960px) {
    .healthy-plate-decoration {
        right:calc(100% + 35px);
        width:180px;
    }
}

@media (max-width:860px) {
    .healthy-plate-decoration {
        display:none;
    }
}

@media (prefers-reduced-motion:reduce) {
    .app.plate-visible > .healthy-plate-decoration {
        animation:none;
        opacity:.96;
        transform:translate3d(0,-50%,0) scale(1);
    }
}
.welcome-person.food-feature-image {
    width:86%;
    height:100%;
    margin:auto;
    border-radius:24px;
    filter:drop-shadow(0 18px 24px rgba(10,88,49,.2));
}
.level-ready-person.food-feature-image {
    width:88%;
    border-radius:24px;
}

/* RECORTE EXACTO: UNA SOLA PERSONA POR TARJETA */
.card-image-crop {
    width:124px;
    height:124px;
    display:block;
    align-self:stretch;
    overflow:hidden;
    border-radius:22px 0 0 22px;
}
.card .card-image-crop .body-type-image {
    width:400% !important;
    max-width:none;
    height:100% !important;
    display:block;
    object-fit:fill !important;
    object-position:center !important;
    border-radius:0;
}
.card .card-image-crop .body-type-1 { transform:translateX(0); }
.card .card-image-crop .body-type-2 { transform:translateX(-25%); }
.card .card-image-crop .body-type-3 { transform:translateX(-50%); }
.card .card-image-crop .body-type-4 { transform:translateX(-75%); }

/* NUEVO DISEÑO DEL PERFIL FINAL — conserva todos los IDs y cálculos */
.fitness-profile-screen {
    padding:18px 28px 24px;
    background:
        radial-gradient(circle at 84% 9%,rgba(93,215,126,.22),transparent 28%),
        linear-gradient(155deg,#f2ffed 0%,#c9f2ca 54%,#89dfa0 100%) !important;
}

.final-profile-brand {
    min-height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin-bottom:5px;
    color:#168052;
    font-size:14px;
    font-weight:700;
}

.final-profile-brand .brand-mark {
    color:#168052;
}

.fitness-profile-screen > h1 {
    margin-bottom:18px;
    color:#173528;
    font-size:28px;
    letter-spacing:-.7px;
}

.fitness-profile-screen .fitness-card {
    position:relative;
    padding:24px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.9);
    border-radius:26px;
    background:rgba(255,255,255,.88);
    box-shadow:0 24px 55px rgba(15,96,55,.15),inset 0 1px 0 #fff;
    backdrop-filter:blur(12px);
}

.fitness-profile-screen .fitness-card::before {
    content:"";
    position:absolute;
    top:-72px;
    right:-72px;
    width:180px;
    height:180px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(80,205,112,.2),transparent 68%);
    pointer-events:none;
}

.fitness-card header {
    position:relative;
    z-index:1;
}

.fitness-card h2 {
    color:#173528;
    font-size:21px;
    line-height:1.25;
}

.fitness-card header > span {
    padding:7px 11px;
    border-radius:999px;
    background:linear-gradient(135deg,#17945c,#55c975);
    box-shadow:0 7px 16px rgba(22,143,87,.2);
}

.fitness-profile-screen .bmi-scale {
    margin:66px 0 30px;
    padding:0 3px;
}

.fitness-profile-screen .bmi-track {
    height:9px;
    margin-top:10px;
    border:2px solid rgba(255,255,255,.9);
    box-shadow:0 5px 12px rgba(19,94,58,.12);
}

.fitness-profile-screen #bmiPointer {
    width:30px;
    height:30px;
    border-width:8px;
    background:#14543a;
    box-shadow:0 5px 14px rgba(15,67,44,.28);
}

.fitness-profile-screen #bmiPointer b {
    bottom:29px;
    padding:7px 11px;
    background:#14543a;
    box-shadow:0 7px 16px rgba(15,67,44,.2);
}

.fitness-profile-screen .bmi-risk {
    grid-template-columns:30px 1fr;
    gap:12px;
    padding:17px;
    border:1px solid rgba(64,166,104,.16);
    border-radius:19px;
    background:linear-gradient(135deg,#efffe9,#e6f8e7);
}

.fitness-profile-screen .bmi-risk > span {
    width:26px;
    height:26px;
    color:#168052;
    border-color:#38a86a;
    background:#fff;
}

.fitness-profile-screen .bmi-risk p {
    color:#254b3a;
}

.fitness-profile-screen .profile-summary {
    min-height:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) 132px;
    grid-template-rows:repeat(2,minmax(62px,auto));
    gap:12px;
    padding-top:16px;
    overflow:visible;
}

.fitness-profile-screen .profile-summary p {
    min-width:0;
    display:grid;
    grid-template-columns:36px 1fr;
    grid-template-rows:auto auto;
    gap:2px 8px;
    margin:0;
    padding:14px;
    border:1px solid rgba(49,160,93,.13);
    border-radius:17px;
    background:linear-gradient(145deg,#fff,#f2fbef);
    box-shadow:0 9px 22px rgba(20,102,60,.08);
}

.fitness-profile-screen .profile-summary p > span:first-child {
    width:34px;
    height:34px;
    display:grid;
    grid-row:1/3;
    place-items:center;
    border-radius:11px;
    background:#ddf6dd;
    font-size:18px;
}

.fitness-profile-screen .profile-summary small {
    color:#6c8a7a;
    font-size:11px;
}

.fitness-profile-screen .profile-summary strong {
    color:#173528;
    overflow-wrap:anywhere;
}

.fitness-profile-screen .profile-summary .final-profile-athlete {
    position:static;
    width:132px;
    height:100%;
    min-height:136px;
    display:block;
    grid-column:2;
    grid-row:1 / 3;
    align-self:stretch;
    object-fit:cover;
    object-position:58% 18%;
    border:2px solid rgba(255,255,255,.92);
    border-radius:18px;
    box-shadow:0 12px 25px rgba(12,76,44,.15);
}

.fitness-profile-screen .profile-continue {
    margin-top:18px;
    background:linear-gradient(90deg,#138653,#43b968 58%,#72ce58);
}

@media (max-width:760px) {
    .app {
        left:0;
    }
}

@media (max-width:420px) {
    .fitness-profile-screen {
        padding-inline:16px;
    }

    .fitness-profile-screen .fitness-card {
        padding:18px 15px;
    }

    .fitness-profile-screen .profile-summary {
        grid-template-columns:1fr;
        grid-template-rows:auto;
    }

    .fitness-profile-screen .profile-summary .final-profile-athlete {
        width:100%;
        height:180px;
        min-height:0;
        grid-column:1;
        grid-row:auto;
        object-position:center 22%;
    }
}

/* ETAPAS 16–19: campos y acciones a todo el ancho útil */
#screen16,
#screen17,
#screen18,
#screen19 {
    padding-inline:8px;
}

#screen16 .measure-fields,
#screen17 .measure-fields,
#screen18 .measure-fields,
#screen19 .measure-fields,
#screen16 .profile-continue,
#screen17 .profile-continue,
#screen18 .profile-continue,
#screen19 .profile-continue {
    width:100%;
    max-width:none;
}

#screen16 .measure-fields input,
#screen17 .measure-fields input,
#screen18 .measure-fields input,
#screen19 .measure-fields input {
    width:100%;
    height:76px;
    border-radius:19px;
    box-shadow:0 12px 28px rgba(15,101,58,.1),inset 0 1px 0 #fff;
}

#screen16 .profile-continue,
#screen17 .profile-continue,
#screen18 .profile-continue,
#screen19 .profile-continue {
    min-height:68px;
    border-radius:22px;
}

@media (max-width:420px) {
    #screen16,
    #screen17,
    #screen18,
    #screen19 {
        padding-inline:6px;
    }
}

/* FLECHA PRESENTE EN TODAS LAS ETAPAS SIN CABECERA */
.screen:not(.intro-screen) { position:relative; }
.universal-stage-back {
    position:absolute;
    z-index:20;
    top:18px;
    left:18px;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    color:#173528;
    font-size:25px;
    border:1px solid rgba(20,112,70,.2);
    border-radius:50%;
    background:rgba(255,255,255,.52);
    box-shadow:0 8px 20px rgba(10,91,49,.12);
    cursor:pointer;
}
.universal-stage-back:hover { transform:translateX(-2px); background:#fff; }

/* EN PANTALLAS BAJAS, LAS TARJETAS SE VEN COMPLETAS AL 100% */
@media (max-height:760px) and (min-width:601px) {
    body { padding-top:10px; padding-bottom:10px; }
    .screen:not(.intro-screen) { min-height:calc(100dvh - 20px); padding-top:14px; padding-bottom:16px; }
    .topbar,.frequency-topbar,.lavender-topbar,.profile-topbar { min-height:42px; margin-bottom:4px; }
    .progress { margin-bottom:12px; }
    .question { margin-bottom:14px; }
    .question h1,.lavender-question h1,.profile-question h1 { font-size:30px; line-height:1.06; }
    .question p,.lavender-question p,.profile-question p { font-size:14px; }
    .cards { gap:8px; }
    .card { min-height:82px; grid-template-columns:82px 1fr 28px; font-size:16px; border-radius:18px; }
    .card-image-crop { width:82px; height:82px; border-radius:17px 0 0 17px; }
    .card .check { width:25px; height:25px; }
}
@media (max-width:600px) {
    .card-image-crop { width:106px; height:106px; }
}
.body-selector .zone-button--all + .zone-button {
    margin-top:76px;
}
