/* ==================================
   DIAGNOSTIC STYLES - NOEMA
   ================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* === HEADER === */
.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.logo {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.header-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

/* === DIAGNOSTIC HERO === */
.diagnostico-hero {
    padding: 24px 0 32px;
    color: #ffffff;
}

.diagnostico-container {
    max-width: 780px;
    margin: 0 auto;
}

.diagnostico-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.diagnostico-subtitle {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
    opacity: 0.95;
}

.diagnostico-copy p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0.95;
}

.diagnostico-benefits {
    margin-top: 20px;
}

.diagnostico-benefits-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.diagnostico-benefits-list {
    margin: 0;
    padding-left: 18px;
}

.diagnostico-benefits-list li {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.diagnostico-guarantee {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.diagnostico-form-intro {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.diagnostico-cta-text {
    margin-top: 4px;
    font-weight: 500;
}

.diagnostico-note {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.85;
}

/* === PROGRESS BAR === */
.progress-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    height: 8px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-bar {
    background: white;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 50px;
}

.progress-text {
    text-align: center;
    color: white;
    font-size: 14px;
    margin-top: 12px;
    font-weight: 600;
}

/* === QUESTION CARD === */
.question-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 24px;
    display: none;
}

.question-card.active {
    display: block;
}

.section-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.question-text {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a1a;
}

/* === OPTIONS === */
.options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.option:hover {
    background: #f1f3f5;
    border-color: #667eea;
    transform: translateY(-2px);
}

.option.selected {
    background: #eef2ff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.option-text {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    display: block;
    margin-bottom: 8px;
}

.option-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

/* === NAVIGATION === */
.navigation {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.btn-nav {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-nav:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-nav.btn-primary {
    background: #667eea;
    color: white;
}

.btn-nav.btn-primary:hover:not(:disabled) {
    background: #5568d3;
}

/* === RESULTS SECTION === */
.results-section {
    display: none;
}

.results-section.active {
    display: block;
}

.results-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.score-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.score-display {
    text-align: center;
    margin: 32px 0;
}

.score-number {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    font-size: 18px;
    color: #6c757d;
    margin-top: 8px;
}

.level-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.level-description {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 32px;
}

/* Section Analysis */
.section-analysis {
    margin: 32px 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.section-bar-container {
    margin-bottom: 20px;
}

.section-bar-container:last-child {
    margin-bottom: 0;
}

.section-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-name {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.section-percentage {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.section-bar-track {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.section-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}

/* Quick Insights */
.quick-insights {
    margin: 32px 0;
}

.insight-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid;
}

.insight-item:last-child {
    margin-bottom: 0;
}

.insight-strength {
    background: #d4edda;
    border-left-color: #28a745;
}

.insight-weakness {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.insight-critical {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.insight-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
}

.insight-content strong {
    display: block;
    margin-bottom: 4px;
    color: #1a1a1a;
}

/* PDF Preview Section */
.pdf-preview {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #667eea;
}

.pdf-preview-header {
    text-align: center;
    margin-bottom: 32px;
}

.pdf-preview-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.pdf-preview-header p {
    font-size: 16px;
    color: #6c757d;
}

.pdf-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdf-benefits-list li {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.pdf-benefits-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.pdf-benefits-list li:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.pdf-benefits-list li strong {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.pdf-benefits-list li p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.recommendations {
    margin-top: 32px;
}

.recommendations h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.recommendations li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

/* === FORM SECTION === */
.form-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-top: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-header-box {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid #667eea;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.form-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-label .required {
    color: #dc3545;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

.privacy-consent {
    margin: 24px 0;
}

.privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.privacy-checkbox {
    margin-top: 4px;
    cursor: pointer;
}

.privacy-text {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

.privacy-link {
    color: #667eea;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === THANK YOU SECTION === */
.thank-you-section {
    display: none;
}

.thank-you-section.active {
    display: block;
}

.thank-you-card {
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.thank-you-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.thank-you-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.thank-you-message {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 32px;
}

.thank-you-next-steps {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.thank-you-next-steps h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.thank-you-next-steps ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.thank-you-next-steps li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.thank-you-next-steps li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .question-card,
    .results-card,
    .form-section,
    .thank-you-card {
        padding: 24px;
    }
    
    .diagnostico-title {
        font-size: 24px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .score-number {
        font-size: 56px;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .pdf-preview {
        padding: 24px 16px;
    }
    
    .pdf-benefits-list li {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .benefit-icon {
        font-size: 24px;
    }
    
    .section-analysis {
        padding: 16px;
    }
    
    .quick-insights {
        margin: 24px 0;
    }
    
    .insight-item {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .form-header-box {
        padding: 16px;
    }
}
