/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff9900;
    --primary-dark: #e68900;
    --secondary-color: #232f3e;
    --danger-color: #ef4444;
    --text-dark: #0f1111;
    --text-light: #565959;
    --bg-light: #f7f8f8;
    --border-color: #d5d9d9;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.section {
    min-height: 100vh;
    display: none;
    padding: 40px 0;
}

.section.active {
    display: block;
}

/* Header */
.header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.home-link {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.home-link:hover {
    background: var(--border-color);
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 80px auto 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-dark);
}

.benefit-icon {
    font-size: 24px;
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

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

.arrow {
    font-size: 24px;
    transition: transform 0.3s;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

.secondary-button {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-button:hover {
    background: var(--primary-color);
    color: white;
}

.trust-badge {
    margin-top: 30px;
    color: var(--text-light);
    font-size: 14px;
}

/* Quiz Section */
.quiz-container {
    max-width: 700px;
    margin: 60px auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    width: 0%;
}

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

.quiz-step {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

.back-button {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.3s;
}

.back-button:hover {
    background: var(--bg-light);
}

.question-container {
    animation: fadeIn 0.5s;
}

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

.question-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

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

.option-card {
    background: white;
    border: 3px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 20px;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.1);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
}

.option-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.option-description {
    font-size: 14px;
    color: var(--text-light);
}

.slider-container {
    margin: 30px 0;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.slider-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    background: var(--bg-light);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.next-button {
    width: 100%;
    margin-top: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.next-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.next-button:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.results-header {
    text-align: center;
    margin-bottom: 50px;
}

.results-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.results-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.badge-silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
}

.badge-bronze {
    background: linear-gradient(135deg, #cd7f32, #e8a87c);
    color: #fff;
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 20px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.product-image img {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 63px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.rating-stars {
    color: #ffa41c;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-value {
    font-weight: 600;
    color: var(--text-dark);
}

.reviews-count {
    color: var(--text-light);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-feature {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.feature-icon {
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 2px;
}

.match-score {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.match-score-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.match-score-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.why-perfect {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.why-perfect h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.why-perfect p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.pros, .cons {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 12px;
}

.pros h4, .cons h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pros h4 {
    color: var(--secondary-color);
}

.cons h4 {
    color: var(--danger-color);
}

.pros ul, .cons ul {
    list-style: none;
    font-size: 13px;
}

.pros li {
    color: var(--text-light);
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.pros li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.cons li {
    color: var(--text-light);
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.cons li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--danger-color);
    font-weight: 700;
}

.amazon-button {
    background: #ff9900;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    margin-top: auto;
    border: none;
}

.amazon-button:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.results-footer {
    text-align: center;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button {
        padding: 16px 40px;
        font-size: 18px;
    }
    
    .quiz-container {
        padding: 25px;
    }
    
    .question-title {
        font-size: 22px;
    }
    
    .option-card {
        padding: 20px;
    }
    
    .results-container {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .results-header h2 {
        font-size: 32px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}