/* ============================================
   Quiz de Alta Conversión - Estilos Premium
   ============================================ */

:root {
    /* Dark Mode Colors */
    --dark-bg: #0f0f1a;
    --dark-bg-gradient: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);

    /* Light Mode Colors */
    --light-bg: #ffffff;
    --light-bg-gradient: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);

    /* Primary Colors */
    --primary: #00d186;
    --primary-dark: #00b274;
    --primary-gradient: linear-gradient(135deg, #00d186 0%, #00b274 100%);
    --primary-glow: rgba(0, 209, 134, 0.3);

    /* Text Colors */
    --text-light: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-muted-dark: rgba(26, 26, 46, 0.7);

    /* Other */
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-light: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Quiz Container */
.quiz-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.slide.exit {
    opacity: 0;
    transform: translateX(-30px);
}

/* Dark Mode Slide */
.slide[data-type="dark"] {
    background: var(--dark-bg-gradient);
    color: var(--text-light);
}

/* Light Mode Slide */
.slide[data-type="light"] {
    background: var(--light-bg-gradient);
    color: var(--text-dark);
}

/* Slide Content */
.slide-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

/* Question Styles */
.question-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.question-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.options-container.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    color: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.option-btn:active {
    transform: scale(0.98);
}

.option-btn.selected {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: var(--text-dark);
}

.option-btn.compact {
    flex-direction: column;
    text-align: center;
    padding: 16px 12px;
}

.option-icon {
    font-size: 1.5rem;
}

.option-text {
    flex: 1;
    font-weight: 600;
}

.option-desc {
    font-size: 0.85rem;
    opacity: 0.7;
    display: block;
    width: 100%;
    margin-top: 4px;
}

/* Multi-Select Styles */
.option-btn.multi.selected {
    background: rgba(0, 209, 134, 0.2);
    border-color: var(--primary);
}

/* Reinforcement Slides */
.reinforcement {
    padding: 40px 20px;
}

.reinforcement-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.reinforcement-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reinforcement-text {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.7;
}

.reinforcement-text strong {
    color: var(--primary-dark);
}

.reinforcement-subtext {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 30px;
}

/* Continue Button */
.continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--primary-glow);
}

.continue-btn:active {
    transform: scale(0.98);
}

/* Input Styles */
.input-container {
    margin-bottom: 24px;
}

.year-input {
    width: 100%;
    max-width: 200px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.year-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.year-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

/* Loading Screen */
.loading-screen .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 209, 134, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.loading-steps {
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

.loading-step {
    padding: 8px 0;
    font-size: 1rem;
    color: var(--text-muted-dark);
    opacity: 0.4;
    transition: var(--transition);
}

.loading-step.active {
    opacity: 1;
    color: var(--text-dark);
}

.loading-step.complete {
    opacity: 1;
    color: var(--primary-dark);
}

/* Result Summary */
.result-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
    padding: 20px;
    background: rgba(0, 209, 134, 0.1);
    border-radius: var(--border-radius);
}

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

.summary-icon {
    font-size: 1.3rem;
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 48px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--primary-glow);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 30px var(--primary-glow);
    }

    50% {
        box-shadow: 0 8px 50px var(--primary-glow);
    }
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* Checkout Styles */
.checkout-content {
    max-width: 480px;
    padding: 20px;
    max-height: 100vh;
    overflow-y: auto;
}

.checkout-header {
    text-align: center;
    margin-bottom: 24px;
}

.discount-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    margin-bottom: 16px;
}

.checkout-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.checkout-subtitle {
    color: var(--text-muted-dark);
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border-radius: 50px;
    animation: urgency-pulse 1.5s ease infinite;
}

@keyframes urgency-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.countdown-icon {
    font-size: 1.5rem;
    animation: shake 0.5s ease infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

.countdown-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-timer {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    font-variant-numeric: tabular-nums;
}

.countdown-container.urgent {
    background: linear-gradient(135deg, #ff4757 0%, #ff2d2d 100%);
    animation: urgency-pulse 0.5s ease infinite;
}

.countdown-container.expired {
    background: #999;
    animation: none;
}

.countdown-container.expired .countdown-timer {
    font-size: 1rem;
}

/* Product Card */
.product-card {
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.product-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.product-price {
    text-align: right;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.price-current {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.product-features {
    list-style: none;
}

.product-features li {
    padding: 6px 0;
    font-size: 0.95rem;
}

/* Bumps Section */
.bumps-section {
    margin-bottom: 20px;
}

.bumps-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.bump-card {
    display: block;
    background: #f8f9ff;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.bump-card:hover {
    border-color: var(--primary);
}

.bump-card:has(input:checked) {
    background: rgba(0, 209, 134, 0.1);
    border-color: var(--primary);
}

.bump-card input {
    display: none;
}

.bump-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.bump-info {
    flex: 1;
}

.bump-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.bump-desc {
    font-size: 0.8rem;
    color: var(--text-muted-dark);
}

.bump-price {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* Checkout Footer */
.checkout-footer {
    text-align: center;
}

.total-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.total-label {
    font-weight: 600;
}

.total-amount {
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary-dark);
}

.checkout-btn {
    width: 100%;
    padding: 20px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--primary-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--primary-glow);
}

.btn-icons {
    font-size: 0.9rem;
    opacity: 0.9;
}

.payment-methods {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted-dark);
}

.payment-icons {
    display: block;
    margin-top: 4px;
}

.guarantee {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted-dark);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .slide-content {
        padding: 10px;
    }

    .option-btn {
        padding: 16px 18px;
    }

    .options-container.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkout-content {
        padding: 15px;
    }

    .product-header {
        flex-direction: column;
        text-align: left;
    }

    .product-price {
        text-align: left;
    }

    .bump-content {
        flex-wrap: wrap;
    }
}

/* Smooth Scroll for checkout overflow */
.checkout-content::-webkit-scrollbar {
    width: 6px;
}

.checkout-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.checkout-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}