:root {
    --primary-color: #a7235a; /* Magenta/Burgundy as seen in image */
    --text-color: #333333;
    --text-dark: #191c1b;
    --bg-color: #ffffff;
    --font-family: 'Inter', sans-serif;
    --gray-light: #f1f2f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 480px; 
    height: 100vh;
    position: relative;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Optional: Box shadow for desktop view */
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    position: relative;
    z-index: 10;
}

.header.center-logo {
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.badge {
    background-color: var(--gray-light);
    color: #444;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

/* Quiz Content Area */
.quiz-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    position: relative;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
}

.quiz-screen {
    display: none;
    flex-direction: column;
    height: 100%;
}

.quiz-screen.active {
    display: flex;
}

/* Titles */
.titles-container {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

.main-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.main-title .highlight {
    color: var(--primary-color);
}

.subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 12px;
}

.quiz-duration {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 60%;
    margin-top: 25px;
    margin-left: auto;
    position: relative;
    z-index: 10;
}

.option-btn {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e1e3e5;
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    /* Add subtle shadow like the image */
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    position: relative;
    z-index: 2; /* Keep buttons above background lady */
}

.option-btn:hover, .option-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #d1d3d5;
}

.option-text {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
}

.arrow {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

/* Terms Footer Text */
.terms-text {
    font-size: 11px;
    color: #555;
    text-align: center;
    line-height: 1.4;
    margin-top: auto;
    margin-bottom: 30px;
    padding: 0 10px;
    z-index: 20; 
    position: relative;
}

.terms-text a {
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* Background Mock Placeholder - The Lady Image */
.background-decor {
    position: absolute;
    bottom: 0px;
    left: -30px;
    width: 65%;
    height: 60%;
    z-index: 1;
    pointer-events: none;
    background-image: url('https://s3.harna-app.com/quizes_images/1757b096-ff6c-4b19-84bd-84d06cef1fb3.png');
    background-size: cover;
    background-position: bottom left;
    background-repeat: no-repeat;
    background-color: transparent;
}

/* --- SCREEN 2 STYLES --- */
.image-container {
    margin-top: 10px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    height: 260px;
    background-color: #e5e5e5;
    /* Sombras sutiles similares a la captura */
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.friends-decor {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Placeholder para cuando pongan la foto de friends.png */
}

.titles-container-screen-2 {
    text-align: center;
    margin-top: 35px;
}

.main-title-2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.subtitle-2 {
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a;
    line-height: 1.4;
    padding: 0 10px;
}

.bottom-action {
    margin-top: auto;
    margin-bottom: 30px;
    width: 100%;
}

.primary-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(167, 35, 90, 0.2);
}

.primary-btn:hover, .primary-btn:active {
    transform: translateY(-2px);
    background-color: #8c1e4a;
}

/* --- SCREEN 3 STYLES --- */
.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.back-btn {
    background-color: var(--gray-light);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.progress-segments {
    display: flex;
    flex-grow: 1;
    gap: 8px;
    height: 4px;
}

.segment {
    flex: 1;
    background-color: #e1e3e5;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.segment .fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.titles-container-screen-3 {
    margin-top: 20px;
    margin-bottom: 30px;
}

.main-title-3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.main-title-3 .highlight {
    color: var(--primary-color);
}

.options-container-full {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.option-btn-icon {
    background-color: #ffffff;
    border: 1px solid #e1e3e5;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.option-btn-icon:hover, .option-btn-icon:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #d1d3d5;
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.option-text-icon {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: left;
    flex-grow: 1;
}

/* --- SCREEN 4 STYLES --- */
.checkbox-option input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    background-color: #e5e5e5;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-option.selected {
    border-color: var(--text-dark);
    box-shadow: none; /* Como se ve en la imagen, pierde la sombra o es muy sutil y el borde se vuelve negro */
    background-color: #fcfcfc;
}

.checkbox-option.selected .custom-checkbox {
    background-color: var(--text-dark);
}

.checkbox-option.selected .custom-checkbox::after {
    content: '';
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Sticky Bottom Action (Continue Button) */
.sticky-bottom-action {
    position: sticky;
    bottom: -1px; /* To prevent 1px gap on some screens */
    margin-left: -24px;
    width: calc(100% + 48px);
    padding: 20px 24px;
    padding-bottom: 30px; /* Padding for mobile safe area */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 20%, rgba(255,255,255,1) 100%);
    z-index: 100;
}

.sticky-bottom-action.animated-hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.sticky-bottom-action.animated-hide.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- SCREEN 5 STYLES --- */
.active-full .fill {
    border-radius: 4px; /* already styled in .fill */
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0 10px;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.toggle-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e1e3e5;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(28px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.toggle-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.option-with-img {
    padding: 10px 20px 10px 10px !important;
}

.image-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- SCREEN 6 STYLES --- */
.feature-image-container {
    margin-top: 15px;
    width: 100%;
}

.feature-image-placeholder {
    width: 100%;
    height: 280px;
    background-color: #ededed; /* Gris clarito parecido a la foto */
    border-radius: 20px;
    background-size: cover;
    background-position: center;
}

.titles-container-screen-6 {
    text-align: center;
    margin-top: 35px;
    padding: 0 5px;
}

.main-title-6 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.main-title-6 .highlight {
    color: var(--primary-color);
}

.description-text {
    font-size: 15px;
    font-weight: 400;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 25px;
}

.source-block {
    background-color: #f6f7f8;
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: auto;
    text-align: left;
}

.source-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.source-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #555;
}

/* --- SCREEN 7 STYLES --- */
.option-btn-large {
    background-color: #ffffff;
    border: 1px solid #e1e3e5;
    border-radius: 20px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    text-align: left;
}

.option-btn-large:hover, .option-btn-large:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #d1d3d5;
}

.image-wrapper-large {
    width: 85px;
    height: 85px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.image-wrapper-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-text-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 10px;
}

.option-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
}

.option-desc {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    line-height: 1.3;
}

/* --- SCREEN 9 STYLES --- */
.screen-9-content {
    position: relative;
    width: 100%;
    margin-top: 15px;
    display: flex;
    overflow: hidden; /* Evitar que el placeholder se salga */
    padding-bottom: 20px;
}

.options-container-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.option-btn-left {
    background-color: #ffffff;
    border: 1px solid #e1e3e5;
    border-radius: 20px;
    padding: 24px 20px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 65%; /* Sólo ocupa el % izquierdo */
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    line-height: 1.3;
}

.option-btn-left:hover, .option-btn-left:active {
    border-color: #d1d3d5;
    transform: translateY(-2px);
}

.fade-right {
    width: 85%; /* Se estiran un poco más */
    -webkit-mask-image: linear-gradient(to right, black 65%, transparent 100%);
    mask-image: linear-gradient(to right, black 65%, transparent 100%);
    border-right: none;
}

.woman-bg-placeholder {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 50%;
    height: 60%;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* --- SCREEN 10 STYLES --- */
.option-btn-simple {
    background-color: #ffffff;
    border: 1px solid #e1e3e5;
    border-radius: 20px;
    padding: 24px 20px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    margin-bottom: 12px;
}

.option-btn-simple:hover, .option-btn-simple:active {
    border-color: #d1d3d5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* --- SCREEN 11 STYLES --- */
.image-showcase {
    width: 100%;
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    background-color: #f6f6f6;
}

.showcase-placeholder {
    width: 100%;
    height: 100%;
    /* Here we could put a background image */
}

.text-content-center {
    text-align: center;
    padding: 30px 10px;
}

.main-title-11 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.desc-11 {
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a;
    line-height: 1.5;
}

/* --- SCREEN 15 STYLES --- */
.unit-toggle {
    background-color: #ededed;
    border-radius: 30px;
    display: inline-flex;
    padding: 4px;
    margin: 20px auto;
}

.unit-btn {
    border: none;
    background: transparent;
    padding: 10px 24px;
    border-radius: 26px;
    font-size: 16px;
    font-weight: 800;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-btn.active {
    background-color: #333;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-container {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.height-display {
    font-size: 50px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

.height-unit {
    font-size: 28px;
    color: #333;
}

/* Custom Range Slider */
.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #a7235a 43.75%, #e1e3e5 43.75%);
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
}

.custom-range:hover {
    opacity: 1;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(167, 35, 90, 0.4);
    border: 4px solid #fff;
}

.custom-range::-moz-range-thumb {
    -moz-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(167, 35, 90, 0.4);
    border: 4px solid #fff;
}

/* --- SCREEN 18 STYLES --- */
.input-container-large {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    border-bottom: 1.5px solid #d1d3d5;
    padding-bottom: 10px;
    margin: 80px auto 0;
    width: 85%;
    max-width: 320px;
}

.large-text-input {
    border: none;
    outline: none;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
    width: 160px;
    background: transparent;
}

.large-text-input::placeholder {
    color: #9c9c9c;
    font-weight: 700;
}

/* Esconder las flechitas de los inputs numéricos */
.large-text-input::-webkit-outer-spin-button,
.large-text-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.large-text-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.input-unit-label {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

/* --- SCREEN 20 STYLES --- */
.option-btn-image-text {
    background-color: #ffffff;
    border: 1px solid #e1e3e5;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    margin-bottom: 12px;
}

.option-btn-image-text:active {
    transform: scale(0.98);
    background-color: #fcfcfc;
}

.option-img-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.option-text-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.option-text-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.option-text-subtitle {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    font-weight: 500;
}

/* --- SCREEN 21 STYLES (PROFILE) --- */
.profile-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.bmi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.bmi-slider-container {
    position: relative;
    padding-bottom: 5px;
}

.bmi-gradient-bar {
    height: 12px;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #6c8cce 0%, #7ee09d 30%, #a4e565 50%, #fbd141 70%, #db613e 100%);
    margin-bottom: 10px;
}

.bmi-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #4a4a4a;
}

.bmi-marker-wrapper {
    position: absolute;
    top: -30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
    z-index: 2;
    transition: left 0.5s ease-out;
}

.bmi-bubble {
    background-color: #f6f6f6;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
}

.bmi-ring {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: transparent;
    border: 3px solid #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.profile-summary-card {
    display: flex;
    justify-content: space-between;
    padding: 24px 20px;
    min-height: 220px;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
    max-width: 60%;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-item div {
    display: flex;
    flex-direction: column;
}

.sum-label {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    margin-bottom: 2px;
}

.sum-value {
    font-size: 16px;
    font-weight: 800;
    color: #333;
}

.summary-image {
    position: absolute;
    bottom: 0;
    right: -20px;
    height: 115%;
    object-fit: contain;
    z-index: 1;
}

.training-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.training-title {
    font-size: 15px;
    font-weight: 800;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}

.training-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    font-weight: 500;
}

/* SCREEN 22 */
.disclaimer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f3f5;
    color: #555;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* --- SWITCH TOGGLE --- */
.select-all-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e5e5e5;
    transition: .3s;
    border-radius: 26px;
}

.slider-switch:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider-switch {
    background-color: #a7235a;
}

input:checked + .slider-switch:before {
    transform: translateX(22px);
}

.switch-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

/* --- SCREEN 30 PROGRESS RING --- */
.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
    transform-origin: 50% 50%;
}

.reviews-carousel-container::-webkit-scrollbar {
    display: none; /* Oculta la scrollbar para que sea un carrusel limpio */
}

/* --- SCREEN 32 EPIC ANIMATION --- */
.draw-path-anim {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}
.quiz-screen.active .draw-path-anim {
    animation: dashAnim 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes dashAnim {
    to {
        stroke-dashoffset: 0;
    }
}

.fade-in-delayed-1 {
    opacity: 0;
}
.quiz-screen.active .fade-in-delayed-1 {
    animation: fadeInDots 0.6s ease forwards;
    animation-delay: 0.2s;
}

.fade-in-delayed-2 {
    opacity: 0;
}
.quiz-screen.active .fade-in-delayed-2 {
    animation: fadeInDots 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1.8s; /* Aparece al final del trazo con un rebote suave */
}

@keyframes fadeInDots {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* --- SCREEN 21: PROFILE CARDS --- */
.profile-card {
    background-color: #ffffff;
    border: 1px solid #f1f3f5;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}
.bmi-slider-container {
    position: relative;
    width: 100%;
}
.bmi-gradient-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #6c8cce 0%, #7ee09d 30%, #a4e565 50%, #fbd141 70%, #db613e 100%);
    width: 100%;
    margin: 15px 0;
}
.bmi-marker-wrapper {
    position: absolute;
    top: -30px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bmi-bubble {
    background-color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    margin-bottom: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.bmi-ring {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: #a7235a;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}
.bmi-labels {
    display: flex;
    justify-content: space-between;
}
/* Summary Card specific */
.profile-summary-card {
    display: flex;
    justify-content: space-between;
    overflow: visible; /* To allow 3D popup */
    position: relative;
    margin-top: 25px; /* give top space for woman's head */
    margin-bottom: 25px;
}
.summary-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 70%;
    z-index: 2; /* Keep above image */
}
.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.summary-item div {
    display: flex;
    flex-direction: column;
}
.sum-label {
    margin-bottom: 2px;
}
/* The 3D woman image */
.summary-image {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    bottom: -20px !important;
    right: -15px !important;
    height: 125% !important;
    width: 40% !important;
    object-fit: contain !important;
    object-position: right bottom !important;
}

/* Training Card */
.training-card {
    display: flex;
    align-items: center;
    gap: 15px;
}
.training-card .training-title {
    font-size: 13px;
    color: #333;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.training-card .training-value {
    color: #a7235a;
    font-weight: 800;
    font-size: 16px;
}

/* --- GAMIFICATION POPUP STYLES --- */
.gami-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gami-overlay.visible {
    opacity: 1;
}

.gami-modal {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gami-overlay.visible .gami-modal {
    transform: scale(1) translateY(0);
}

.gami-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.gami-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.gami-subtitle {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 500;
}

.roulette-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 25px auto;
}

.roulette-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid #a7235a;
    z-index: 10;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.3));
}

.roulette-wheel {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: conic-gradient(
        from -36deg,
        #f5f6f7 0deg 72deg,
        #ffffff 72deg 144deg,
        #f5f6f7 144deg 216deg,
        #ffffff 216deg 288deg,
        #ffdae6 288deg 360deg
    );
    border: 6px solid #fff;
    box-shadow: 0 8px 30px rgba(167,35,90,0.15), inset 0 0 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.15, 1);
}

/* Base style for texts inside wheel */
.wheel-label {
    position: absolute;
    top: 0;
    left: calc(50% - 30px);
    width: 60px;
    height: 130px;
    transform-origin: 50% 100%;
    display: flex;
    justify-content: center;
    padding-top: 15px;
    font-weight: 800;
    font-size: 20px;
    color: #555;
    z-index: 1;
    line-height: 1;
}

/* Positioning labels (segments distance 72deg) */
.label-1 { transform: rotate(36deg); }
.label-2 { transform: rotate(108deg); }
.label-3 { transform: rotate(180deg); }
.label-4 { transform: rotate(252deg); }
.label-5 { transform: rotate(324deg); font-size: 22px; color: #a7235a; align-items: flex-start; flex-direction: column; }

.gami-button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 24px;
    width: 100%;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(167, 35, 90, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.gami-code-box {
    display: flex;
    align-items: center;
    border: 2px dashed #a7235a;
    background: #fffafa;
    border-radius: 12px;
    padding: 6px 6px 6px 16px;
    margin-bottom: 5px;
}

.gami-code {
    flex: 1;
    font-size: 22px;
    font-weight: 900;
    color: #a7235a;
    letter-spacing: 2px;
}

.gami-copy-btn {
    background: #333;
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.gami-copy-btn:hover { background: #555; }

.gami-icon-win {
    font-size: 40px;
    margin-bottom: 0px;
    animation: bouncePop 1s infinite alternate;
}

@keyframes bouncePop {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.1) translateY(-5px); }
}

@keyframes spinButtonPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(167,35,90,0.4); }
    50% { transform: scale(1.02); box-shadow: 0 8px 25px rgba(167,35,90,0.6); }
}

.spin-animation {
    animation: spinButtonPulse 2s infinite ease-in-out;
}

