/* Estilos para el test */
.test-page {
    display: none;
    animation: fadeIn 0.5s;
}

.test-page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.test-items {
    columns: 2;
    column-gap: 20px;
}

.test-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: all 0.3s;
    break-inside: avoid;
}

.test-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.test-item input {
    margin-right: 10px;
}

.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s;
}

.test-item input:checked ~ .checkmark {
    background-color: #4FC3F7;
    border-color: #4FC3F7;
}

.checkmark:after {
    content: "✓";
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s;
}

.test-item input:checked ~ .checkmark:after {
    transform: translate(-50%, -50%) scale(1);
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.prev-btn {
    background: #f0f0f0;
}

.next-btn {
    background: #4FC3F7;
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.page-indicator {
    font-weight: bold;
    color: #555;
}

.btn-start-test {
    background: linear-gradient(135deg, #4FC3F7 0%, #3F51B5 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(63, 81, 181, 0.2);
}

.btn-start-test:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(63, 81, 181, 0.3);
}

.btn-submit-test {
    background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.btn-submit-test:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
}

/* Resultados del test */
.results-container {
    padding: 20px;
    text-align: center;
}

.dominant-types {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.type-card {
    padding: 15px;
    border-radius: 8px;
    width: 200px;
}

.type-card.primary {
    background-color: #E3F2FD;
    border: 2px solid #4FC3F7;
}

.type-card.secondary {
    background-color: #E8F5E9;
    border: 2px solid #66BB6A;
}

.recommendations {
    background-color: #FFF8E1;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .test-items {
        columns: 1;
    }
    
    .dominant-types {
        flex-direction: column;
        align-items: center;
    }
}