/* =============================================================
   DIAGNÓSTICO RANSOMWARE READINESS — .diag-root component
   Standalone stylesheet (loaded only on diagnostico-ransomware.html)
   ============================================================= */

.diag-section {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.diag-root {
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 600px;
    background: linear-gradient(135deg, #0a0e1a 0%, #0d1526 50%, #0a1020 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.diag-root .stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.diag-root .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: diag-twinkle 3s infinite;
}

@keyframes diag-twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

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

@keyframes diag-slideUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes diag-pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50%       { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

@keyframes diag-scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.diag-root .screen {
    display: none;
    animation: diag-slideUp 0.5s ease;
}

.diag-root .screen.active {
    display: block;
}

/* Hero screen */
.diag-root .hero-screen {
    padding: 3rem 2rem;
    text-align: center;
}

.diag-root .diag-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.diag-root .hero-title {
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.diag-root .hero-title span {
    color: #3b82f6;
}

.diag-root .hero-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    max-width: 460px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.diag-root .stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.diag-root .stat-item {
    text-align: center;
}

.diag-root .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
    display: block;
    line-height: 1;
}

.diag-root .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* Buttons */
.diag-root .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.4);
}

.diag-root .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}

.diag-root .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.diag-root .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Question screen */
.diag-root .question-screen {
    padding: 2rem;
    max-width: 680px;
    margin: 0 auto;
}

.diag-root .progress-wrap {
    margin-bottom: 2rem;
}

.diag-root .progress-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    margin-bottom: 8px;
}

.diag-root .progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.diag-root .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.diag-root .q-icon {
    font-size: 40px;
    margin-bottom: 1rem;
    display: block;
}

.diag-root .q-number {
    font-size: 12px;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.diag-root .q-text {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.diag-root .q-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin-bottom: 2rem;
    padding: 10px 14px;
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid rgba(59, 130, 246, 0.4);
    border-radius: 0 6px 6px 0;
}

.diag-root .answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.diag-root .answer-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    width: 100%;
}

.diag-root .answer-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(4px);
}

.diag-root .answer-btn.selected {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.6);
    color: #fff;
}

.diag-root .answer-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.diag-root .icon-yes { background: rgba(34, 197, 94, 0.15);  border: 1px solid rgba(34, 197, 94, 0.3); }
.diag-root .icon-no  { background: rgba(239, 68, 68, 0.15);  border: 1px solid rgba(239, 68, 68, 0.3); }
.diag-root .icon-idk { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }

/* Result screen */
.diag-root .result-screen {
    padding: 2rem;
    max-width: 680px;
    margin: 0 auto;
}

.diag-root .score-ring-wrap {
    text-align: center;
    margin-bottom: 2rem;
    animation: diag-scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.diag-root .score-ring {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    position: relative;
}

.diag-root .score-num  { font-size: 40px; font-weight: 800; line-height: 1; }
.diag-root .score-max  { font-size: 13px; font-weight: 500; opacity: 0.6; }
.diag-root .score-label { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.diag-root .score-sub  { font-size: 14px; color: rgba(255, 255, 255, 0.55); }

.diag-root .level-critical { border-color: #ef4444; color: #ef4444; box-shadow: 0 0 30px rgba(239, 68, 68, 0.3); }
.diag-root .level-high     { border-color: #f97316; color: #f97316; box-shadow: 0 0 30px rgba(249, 115, 22, 0.3); }
.diag-root .level-medium   { border-color: #eab308; color: #eab308; box-shadow: 0 0 30px rgba(234, 179, 8, 0.3); }
.diag-root .level-good     { border-color: #22c55e; color: #22c55e; box-shadow: 0 0 30px rgba(34, 197, 94, 0.3); }

.diag-root .findings {
    margin: 1.5rem 0;
}

.diag-root .finding-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    animation: diag-fadeIn 0.4s ease both;
}

.diag-root .finding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.diag-root .dot-red    { background: #ef4444; }
.diag-root .dot-orange { background: #f97316; }
.diag-root .dot-green  { background: #22c55e; }

.diag-root .finding-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.diag-root .finding-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.diag-root .cta-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(29, 78, 216, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
    animation: diag-pulseGlow 3s ease-in-out infinite;
}

.diag-root .cta-title { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.diag-root .cta-sub   { color: rgba(255, 255, 255, 0.55); font-size: 14px; margin-bottom: 1.25rem; }

.diag-root .btn-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.diag-root .ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 18px 6px 12px;
    letter-spacing: 0.08em;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%);
}
