/* NIS2 Assessment Styles */

/* Header */
.nis2-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #312e81 100%);
    color: white;
    padding: 8rem 0 4rem;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nis2-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/cyber-pattern.svg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.nis2-header-content {
    position: relative;
    z-index: 2;
}

.nis2-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nis2-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.nis2-title .highlight {
    color: #fbbf24;
    position: relative;
}

/* Fix para el hero title highlight - asegurar que no tenga fondo blanco */
.hero-title .highlight {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--secondary-color) !important;
}

/* Centrar específicamente el título de NIS2 */
.nis2-hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nis2-hero-title .highlight-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
}

.nis2-description {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.nis2-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    opacity: 0.9;
}

/* Company Code Section */
.company-code-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-box i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-weight: 600;
}

.info-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.company-code-group {
    margin-bottom: 0;
}

.code-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.code-input-container input {
    flex: 1;
    text-transform: uppercase;
}

.btn-validate {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-validate:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-validate:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.validation-result {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    display: none;
}

.validation-result.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.validation-result.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.validation-result i {
    margin-right: 0.5rem;
}

/* Company info display */
.company-info {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.company-info h5 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.company-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.85rem;
}

/* Enhanced Questions Styles */
.questions-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.question-group {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.question-group h3 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.question {
    margin-bottom: 1.5rem;
}

.question:last-child {
    margin-bottom: 0;
}

.question label:first-child {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.5;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group label,
.checkbox-group label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.5;
    max-width: 100%;
    box-sizing: border-box;
}

.radio-group label:hover,
.checkbox-group label:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.radio-group input:checked + label,
.checkbox-group input:checked + label,
.radio-group label:has(input:checked),
.checkbox-group label:has(input:checked) {
    border-color: var(--primary-color);
    background: #eff6ff;
    color: var(--primary-color);
}

.radio-group input,
.checkbox-group input {
    margin: 0;
    margin-top: 0.2rem;
    flex-shrink: 0;
    min-width: 16px;
}

/* Mejoras para contenido de opciones largas */
.checkbox-group label span,
.radio-group label span {
    flex: 1;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Responsive mejoras para preguntas */
@media (max-width: 768px) {
    .radio-group label,
    .checkbox-group label {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .question label:first-child {
        font-size: 1rem;
        line-height: 1.4;
    }
}

/* Contenedor de preguntas responsive */
.questions-container {
    max-width: 100%;
    overflow-x: hidden;
}

.question {
    max-width: 100%;
    overflow: hidden;
}

.question-group {
    max-width: 100%;
    overflow: hidden;
}

/* Enhanced Results Styles */
.results-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.assessment-info {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.assessment-id {
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-item.compliance-excellent {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.summary-item.compliance-good {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.summary-item.compliance-moderate {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.summary-item.compliance-poor {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.summary-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.summary-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

.summary-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.compliance-excellent .summary-indicator {
    background: #10b981;
}

.compliance-good .summary-indicator {
    background: #3b82f6;
}

.compliance-moderate .summary-indicator {
    background: #f59e0b;
}

.compliance-poor .summary-indicator {
    background: #ef4444;
}

/* Risk Analysis Cards */
.risk-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #ef4444;
    margin-bottom: 1.5rem;
}

.risk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.risk-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.compliance-badge {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.risk-message {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.risk-actions h5 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.risk-actions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.risk-actions-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 1.5rem;
}

.risk-actions-list li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.risk-actions-list li:last-child {
    border-bottom: none;
}

/* Category Breakdown */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.category-item {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.category-name {
    font-weight: 600;
    color: #374151;
}

.category-score {
    font-weight: 600;
    font-size: 1.1rem;
}

.category-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.category-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.category-status {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.status-excellent .category-score,
.status-excellent .category-status {
    color: #10b981;
}

.status-good .category-score,
.status-good .category-status {
    color: #3b82f6;
}

.status-moderate .category-score,
.status-moderate .category-status {
    color: #f59e0b;
}

.status-poor .category-score,
.status-poor .category-status {
    color: #ef4444;
}

/* Advanced Recommendations */
.priority-group {
    margin-bottom: 2rem;
}

.priority-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.priority-critica .priority-badge {
    background: #dc2626;
}

.priority-alta .priority-badge {
    background: #ef4444;
}

.priority-media .priority-badge {
    background: #f59e0b;
}

.priority-baja .priority-badge {
    background: #6b7280;
}

.recommendations-list {
    display: grid;
    gap: 1rem;
}

.recommendation-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.recommendation-title h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.recommendation-category {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.impact-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.impact-critico,
.impact-crítico {
    background: #dc2626;
}

.impact-alto {
    background: #ef4444;
}

.impact-medio {
    background: #f59e0b;
}

.impact-bajo {
    background: #6b7280;
}

.recommendation-description {
    color: #374151;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.timeframe {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.recommendation-details h6 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.details-list li {
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
    font-size: 0.9rem;
    color: #374151;
}

.details-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Next Steps */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.next-step-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.next-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.next-step-card h5 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.next-step-card p {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.no-recommendations {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

.benefit i {
    color: #fbbf24;
    font-size: 1.2rem;
}

/* Assessment Section */
.assessment-section {
    padding: 4rem 0;
    background: var(--light-color);
    min-height: 80vh;
}

.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Progress Bar */
.progress-container {
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 25%; /* Initial state */
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Form Steps */
.assessment-form {
    padding: 0;
}

.form-step {
    display: none;
    padding: 2rem;
    min-height: 600px;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.step-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.step-header h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--dark-color);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Questions Container */
.questions-container {
    margin-bottom: 2rem;
}

.question-group {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.question-group h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-group h3::before {
    content: "📋";
    font-size: 1rem;
}

.question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.question label:first-child {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: block;
    font-size: 1rem;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.radio-group label:hover,
.checkbox-group label:hover {
    background: var(--light-color);
}

.radio-group input,
.checkbox-group input {
    margin: 0;
    transform: scale(1.2);
}

/* Form Navigation */
.form-navigation {
    padding: 2rem;
    background: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.form-navigation .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
}

/* Results Section */
.results-section {
    padding: 4rem 0;
    background: var(--light-color);
}

.results-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.results-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.results-header h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}

.score-circle.risk-low {
    border: 8px solid #10b981;
}

.score-circle.risk-medium {
    border: 8px solid #f59e0b;
}

.score-circle.risk-high {
    border: 8px solid #f97316;
}

.score-circle.risk-critical {
    border: 8px solid #ef4444;
}

.score-text {
    text-align: center;
}

.score-text span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
}

.score-label {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Results Content */
.results-content {
    padding: 2rem;
}

.results-summary {
    margin-bottom: 3rem;
}

.results-summary h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.summary-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 12px;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.summary-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Risk Analysis */
.risk-analysis {
    margin-bottom: 3rem;
}

.risk-analysis h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.risk-alert {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.risk-alert h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.compliance-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.compliance-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

/* Recommendations */
.recommendations-section {
    margin-bottom: 3rem;
}

.recommendations-section h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.recommendation-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.recommendation-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recommendation-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.priority-crítica {
    background: #fef2f2;
    color: #dc2626;
}

.priority-badge.priority-alta {
    background: #fef3c7;
    color: #d97706;
}

.priority-badge.priority-media {
    background: #eff6ff;
    color: #2563eb;
}

.category-tag {
    padding: 4px 12px;
    background: var(--light-color);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.recommendation-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.impact-indicator {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Category Breakdown */
.category-breakdown h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.category-name {
    font-weight: 600;
    color: var(--dark-color);
}

.category-score {
    font-weight: 600;
    color: var(--primary-color);
}

.category-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.category-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 1s ease;
}

/* Results Actions */
.results-actions {
    padding: 2rem;
    background: var(--light-color);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.results-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
}

/* About NIS2 */
.about-nis2 {
    padding: 4rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--dark-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.nis2-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 8px;
}

.highlight i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.highlight .shield-logo {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.25rem;
    object-fit: contain;
}

.highlight h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.highlight p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nis2-header {
        padding: 6rem 0 3rem;
    }

    .nis2-title {
        font-size: 2.5rem;
    }

    .nis2-description {
        font-size: 1.1rem;
    }

    .nis2-benefits {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .assessment-container,
    .results-container {
        margin: 0 1rem;
        border-radius: 12px;
    }

    .form-step {
        padding: 1.5rem;
        min-height: auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-container {
        padding: 1.5rem;
    }

    .results-header {
        padding: 2rem 1rem;
    }

    .results-header h2 {
        font-size: 2rem;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-text span {
        font-size: 2.5rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .recommendation-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .results-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nis2-header {
        padding: 5rem 0 2rem;
    }

    .nis2-title {
        font-size: 2rem;
    }

    .form-step {
        padding: 1rem;
    }

    .question-group {
        padding: 1.5rem;
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .results-content {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .nis2-header,
    .form-navigation,
    .results-actions {
        display: none !important;
    }
    
    .results-section {
        padding: 0;
        background: white;
    }
    
    .results-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select {
        border-width: 3px;
    }
    
    .recommendation-card {
        border-width: 2px;
    }
    
    .priority-badge {
        border: 2px solid currentColor;
    }
}