/* Calculadora de Nivel de Cross */

/* Quiz steps */
.calc-step {
    display: none;
}
.calc-step.active {
    display: block;
    animation: calcFadeIn 0.3s ease-out;
}

@keyframes calcFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.calc-progress-fill {
    background-color: var(--color-primary, #6366f1);
    transition: width 0.4s ease;
}

/* Option cards (multiple choice) */
.calc-option {
    cursor: pointer;
    border: 2px solid transparent !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    text-align: left;
    background: #fff;
}
.calc-option:hover {
    border-color: var(--color-primary, #6366f1) !important;
}
.calc-option.calc-selected {
    border-color: var(--color-primary, #6366f1) !important;
    background-color: rgba(99, 102, 241, 0.06);
}

/* Gender buttons */
.calc-gender-btn {
    cursor: pointer;
    border: 2px solid transparent !important;
    transition: all 0.2s ease;
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    background: #fff;
}
.calc-gender-btn:hover {
    border-color: var(--color-primary, #6366f1) !important;
}
.calc-gender-btn.calc-selected {
    border-color: var(--color-primary, #6366f1) !important;
    background-color: var(--color-primary, #6366f1);
    color: #fff;
}

/* Numeric inputs */
.calc-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s ease;
    outline: none;
}
.calc-input:focus {
    border-color: var(--color-primary, #6366f1);
}

/* Results */
#calc-results {
    display: none;
}

.calc-level-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.calc-level-principiante { background: #e5e7eb; color: #374151; }
.calc-level-intermedio { background: #dbeafe; color: #1d4ed8; }
.calc-level-avanzado { background: #ffedd5; color: #c2410c; }
.calc-level-elite { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }

/* Gauge / speedometer */
.calc-gauge-container {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
}
.calc-gauge-container canvas {
    width: 100% !important;
    height: auto !important;
}

/* Download image button */
.calc-download-img {
    background-color: #1e293b !important;
    color: #fff !important;
    transition: opacity 0.2s;
}
.calc-download-img:hover {
    opacity: 0.85;
}
.calc-download-img.downloading {
    opacity: 0.6;
    pointer-events: none;
}

/* Radar chart */
.calc-chart-container {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
}
.calc-chart-container canvas {
    width: 100% !important;
    height: auto !important;
}

/* Category breakdown bars */
.calc-category-bar {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}
.calc-category-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--color-primary, #6366f1);
    transition: width 0.6s ease;
}

/* Share buttons */
.calc-share-wa {
    background-color: #25d366 !important;
    color: #fff !important;
}
.calc-share-tw {
    background-color: #1d9bf0 !important;
    color: #fff !important;
}
.calc-copy-link {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}
.calc-copy-link.copied {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}

/* Navigation buttons */
.calc-nav {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.calc-nav .calc-prev {
    flex: 0 0 auto;
}
.calc-nav .calc-next {
    flex: 1;
}

/* Step helper text */
.calc-helper {
    font-size: 14px;
    opacity: 0.6;
    margin-top: 4px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .calc-option {
        padding: 14px !important;
        font-size: 15px;
    }
    .calc-level-badge {
        font-size: 18px;
        padding: 6px 18px;
    }
    .calc-overall-score {
        font-size: 36px;
    }
}
