/* Diagnostico visual and page-specific styles extracted from diagnostico.html */

:root {
            --diag-navy: #071a3d;
            --diag-navy-2: #0d2c63;
            --diag-blue: #1d68b2;
            --diag-cyan: #7fd8ff;
            --diag-gold: #d5ab52;
            --diag-soft: #f4f8fc;
            --diag-white-glass: rgba(255, 255, 255, 0.72);
            --diag-border: rgba(17, 56, 105, 0.12);
            --diag-shadow: 0 28px 70px rgba(7, 26, 61, 0.14);
            --diag-shadow-strong: 0 40px 110px rgba(7, 26, 61, 0.20);
        }

        .diag-page {
            background:
                radial-gradient(circle at top left, rgba(127, 216, 255, 0.16), transparent 22%),
                radial-gradient(circle at top right, rgba(213, 171, 82, 0.10), transparent 18%),
                linear-gradient(180deg, #f7fbff 0%, #eef4fa 50%, #f8fbfd 100%);
            color: var(--text);
            overflow-x: hidden;
        }

        .diag-page main {
            padding-top: 22px;
        }

        .diag-hero-immersive {
            position: relative;
            overflow: hidden;
            border-radius: 34px;
            padding: 46px 36px 40px;
            margin: 8px 0 30px;
            min-height: 680px;
            border: 1px solid rgba(13, 44, 99, 0.08);
            background:
                linear-gradient(135deg, rgba(255,255,255,0.90) 0%, rgba(244,248,253,0.96) 52%, rgba(235,243,251,0.98) 100%);
            box-shadow: 0 30px 80px rgba(7, 26, 61, 0.14);
            isolation: isolate;
        }

        .diag-hero-bg {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            background:
                radial-gradient(circle at 16% 24%, rgba(127, 216, 255, 0.18), transparent 18%),
                radial-gradient(circle at 82% 22%, rgba(29, 104, 178, 0.10), transparent 22%),
                radial-gradient(circle at 72% 78%, rgba(213, 171, 82, 0.10), transparent 14%);
        }

        .diag-hero-bg::before,
        .diag-hero-bg::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .diag-hero-bg::before {
            background:
                linear-gradient(90deg, rgba(17,56,105,0.025) 1px, transparent 1px),
                linear-gradient(180deg, rgba(17,56,105,0.025) 1px, transparent 1px);
            background-size: 56px 56px;
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.10));
        }

        .diag-hero-bg::after {
            background:
                radial-gradient(circle at 18% 70%, rgba(255,255,255,0.9) 0 3px, transparent 4px),
                radial-gradient(circle at 24% 65%, rgba(29,104,178,0.35) 0 2px, transparent 3px),
                radial-gradient(circle at 30% 74%, rgba(213,171,82,0.55) 0 2px, transparent 3px),
                radial-gradient(circle at 62% 32%, rgba(127,216,255,0.55) 0 2px, transparent 3px),
                radial-gradient(circle at 70% 38%, rgba(29,104,178,0.35) 0 2px, transparent 3px);
            animation: diagParticles 9s linear infinite alternate;
            opacity: 0.85;
        }

        .diag-hero-grid {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
            gap: 42px;
            align-items: end;
            min-height: 590px;
        }

        .diag-hero-copy {
            max-width: 660px;
            padding: 8px 0 10px 4px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .diag-hero-brand {
            display: inline-flex;
            align-items: center;
            margin-bottom: 24px;
            padding: 0;
        }

        .diag-hero-brand img {
            display: block;
            width: auto;
            height: auto;
            max-height: 88px;
            max-width: 320px;
            object-fit: contain;
            image-rendering: auto;
        }

        .diag-hero-kicker {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #a97a2c;
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            font-weight: 700;
            margin-bottom: 18px;
        }

        .diag-hero-kicker::before {
            content: "";
            width: 26px;
            height: 1px;
            background: #c99a3a;
        }

        .diag-hero-copy h2 {
            margin: 0 0 18px;
            font-size: clamp(2.45rem, 4.3vw, 4.5rem);
            line-height: 1.02;
            letter-spacing: -0.05em;
            color: #0a1b4d;
            max-width: 10.5ch;
            text-wrap: balance;
        }

        .diag-hero-copy p {
            margin: 0;
            max-width: 58ch;
            font-size: 1rem;
            line-height: 1.88;
            color: #667384;
        }

        .diag-hero-microcopy {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 28px;
        }

        .diag-hero-microcopy span {
            display: inline-flex;
            align-items: center;
            min-height: 40px;
            padding: 0 14px;
            border-radius: 999px;
            background: rgba(255,255,255,0.78);
            border: 1px solid rgba(10, 27, 77, 0.10);
            box-shadow: 0 10px 22px rgba(10, 27, 77, 0.05);
            color: #0a1b4d;
            font-size: 0.88rem;
            font-weight: 600;
        }

        .diag-hero-aside {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 24px;
        }

        .diag-hero-panel {
            width: min(420px, 100%);
            padding: 24px 0 0 24px;
            border-top: 1px solid rgba(10, 27, 77, 0.16);
            border-left: 1px solid rgba(10, 27, 77, 0.10);
            position: relative;
        }

        .diag-hero-panel::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 72px;
            height: 1px;
            background: linear-gradient(90deg, rgba(201,154,58,0.92), rgba(201,154,58,0));
            animation: panelLine 4.8s ease-in-out infinite;
        }

        .diag-hero-panel-label {
            display: block;
            margin-bottom: 12px;
            color: rgba(10, 27, 77, 0.52);
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            font-weight: 700;
        }

        .diag-hero-panel p {
            color: #5f6f82;
            font-size: 0.95rem;
            line-height: 1.82;
            max-width: 36ch;
        }

        .diag-hero-visual {
            position: relative;
            width: 100%;
            min-height: 500px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            perspective: 1200px;
        }

        .diag-hero-image-wrap {
            position: relative;
            width: 100%;
            max-width: 840px;
            border-radius: 30px;
            overflow: hidden;
            background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.42));
            border: 1px solid rgba(127, 216, 255, 0.28);
            box-shadow: 0 34px 90px rgba(7, 26, 61, 0.18);
            transform-style: preserve-3d;
            animation: diagHeroFloat 6.5s ease-in-out infinite;
            transition: transform .25s ease;
        }

        .diag-hero-image-wrap::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 2;
            pointer-events: none;
            background:
                linear-gradient(180deg, rgba(7,26,61,0.04), rgba(7,26,61,0) 28%, rgba(7,26,61,0.06)),
                radial-gradient(circle at 78% 24%, rgba(255,255,255,0.25), transparent 18%);
        }

        .diag-hero-image-wrap::after {
            content: "";
            position: absolute;
            top: -24%;
            left: -85%;
            width: 120%;
            height: 170%;
            z-index: 3;
            pointer-events: none;
            transform: skewX(-18deg);
            background: linear-gradient(
                100deg,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0) 28%,
                rgba(255,255,255,0.08) 42%,
                rgba(255,255,255,0.34) 50%,
                rgba(255,255,255,0.08) 58%,
                rgba(255,255,255,0) 72%,
                rgba(255,255,255,0) 100%
            );
            mix-blend-mode: screen;
            animation: diagLightSweep 6.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        }

        .diag-hero-image {
            display: block;
            width: 100%;
            height: auto;
            object-fit: cover;
            transform: scale(1.012);
            filter: saturate(1.01) contrast(1.02);
        }

        .diag-energy-line {
            position: absolute;
            left: 6%;
            right: 8%;
            bottom: 18%;
            height: 2px;
            z-index: 4;
            background: linear-gradient(
                90deg,
                rgba(127,216,255,0) 0%,
                rgba(127,216,255,0.4) 20%,
                rgba(127,216,255,0.95) 52%,
                rgba(255,255,255,0.5) 74%,
                rgba(255,255,255,0) 100%
            );
            transform: rotate(-7deg);
            opacity: 0.9;
            box-shadow: 0 0 18px rgba(127,216,255,0.42);
            animation: diagLinePulse 4.6s ease-in-out infinite;
        }

        .diag-energy-line::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 18%;
            width: 16px;
            height: 16px;
            border-radius: 999px;
            transform: translate(-50%, -50%);
            background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(127,216,255,0.92) 40%, rgba(127,216,255,0) 78%);
            box-shadow: 0 0 18px rgba(127,216,255,0.65);
            animation: diagSignalMove 4.6s ease-in-out infinite;
        }

        .diag-hero-orbit {
            position: absolute;
            border-radius: 999px;
            border: 1px solid rgba(29, 104, 178, 0.14);
            box-shadow: inset 0 0 26px rgba(127,216,255,0.06);
            pointer-events: none;
        }

        .orbit-1 {
            width: 280px;
            height: 280px;
            right: 14%;
            top: 8%;
            animation: rotateOrbit 16s linear infinite;
        }

        .orbit-2 {
            width: 390px;
            height: 390px;
            right: 6%;
            top: 2%;
            animation: rotateOrbit 22s linear infinite reverse;
        }

        .orbit-3 {
            width: 500px;
            height: 500px;
            right: -2%;
            top: -4%;
            animation: rotateOrbit 28s linear infinite;
            opacity: 0.6;
        }

        .diag-hero-floating-card {
            position: absolute;
            z-index: 5;
            max-width: 220px;
            padding: 14px 16px;
            border-radius: 18px;
            background: rgba(255,255,255,0.72);
            backdrop-filter: blur(14px);
            border: 1px solid rgba(17,56,105,0.10);
            box-shadow: 0 18px 40px rgba(7, 26, 61, 0.10);
            animation: diagCardFloat 6s ease-in-out infinite;
        }

        .diag-hero-floating-card strong {
            display: block;
            margin-bottom: 6px;
            color: #0a1b4d;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .diag-hero-floating-card span {
            display: block;
            color: #5c6d82;
            font-size: 0.84rem;
            line-height: 1.6;
        }

        .card-a {
            top: 10%;
            left: 2%;
            animation-delay: 0s;
        }

        .card-b {
            top: 8%;
            right: 0;
            animation-delay: 1.2s;
        }

        .card-c {
            bottom: 8%;
            left: 5%;
            animation-delay: 2.1s;
        }

        .diag-shell {
            position: relative;
            border-radius: 30px;
            background: rgba(255, 255, 255, 0.68);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(17,56,105,0.08);
            box-shadow: 0 24px 56px rgba(7, 26, 61, 0.08);
            padding: 32px;
        }

        .diag-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
            gap: 24px;
            align-items: start;
        }

        .diag-form-card,
        .diag-side-card {
            padding: 24px;
            border-radius: 24px;
            background: rgba(255,255,255,0.82);
            backdrop-filter: blur(14px);
            border: 1px solid rgba(17,56,105,0.08);
            box-shadow: 0 18px 42px rgba(7, 26, 61, 0.06);
        }

        .diag-side-card {
            position: sticky;
            top: 104px;
        }

        .diag-page .section {
            border: 1px solid rgba(18, 60, 102, 0.10);
            border-radius: 22px;
            padding: 22px;
            margin-bottom: 18px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 254, 0.92));
            box-shadow: 0 14px 34px rgba(7, 26, 61, 0.04);
        }

        .diag-page .section:hover,
        .diag-form-card:hover,
        .diag-side-card:hover {
            transform: translateY(-2px);
            transition: transform .28s ease, box-shadow .28s ease;
        }

        .diag-page .section h2 {
            margin: 0 0 8px;
            font-size: 1.15rem;
            color: var(--primary);
        }

        .diag-page .section .desc {
            margin: 0 0 18px;
            color: var(--muted);
            line-height: 1.65;
            font-size: 0.95rem;
        }

        .diag-page .grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
        }

        .diag-page .field {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .diag-page .field.full {
            grid-column: 1 / -1;
        }

        .diag-page label {
            font-weight: 700;
            font-size: 0.94rem;
            color: var(--primary);
        }

        .diag-page input:not([type="checkbox"]):not([type="radio"]),
        .diag-page select,
        .diag-page textarea {
            width: 100%;
            border: 1px solid rgba(18, 60, 102, 0.14);
            border-radius: 14px;
            padding: 12px 14px;
            font-size: 0.96rem;
            color: var(--text);
            background: #fff;
            outline: none;
            transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
            font-family: inherit;
        }

        .diag-page input:not([type="checkbox"]):not([type="radio"]):focus,
        .diag-page select:focus,
        .diag-page textarea:focus {
            border-color: var(--primary-2);
            box-shadow: 0 0 0 4px rgba(28, 93, 153, 0.10);
        }

        .diag-page .field-error input:not([type="checkbox"]):not([type="radio"]),
        .diag-page .field-error select,
        .diag-page .field-error textarea {
            border-color: #b91c1c !important;
            box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.10) !important;
            background: #fff7f7;
        }

        .diag-page .field-error label,
        .diag-page .question-error .question-title {
            color: #b91c1c;
        }

        .diag-page .error-text {
            font-size: 0.84rem;
            color: #b91c1c;
            font-weight: 700;
        }

        .diag-page .question-error {
            border-color: #b91c1c !important;
            background: #fff7f7;
        }

        .diag-page textarea {
            min-height: 100px;
            resize: vertical;
        }

        .diag-page .question-list {
            display: grid;
            gap: 14px;
        }

        .diag-page .question {
            padding: 16px;
            border: 1px solid rgba(18, 60, 102, 0.10);
            border-radius: 16px;
            background: #fff;
            box-shadow: 0 10px 24px rgba(7, 26, 61, 0.04);
        }

        .diag-page .question-title {
            display: block;
            margin-bottom: 8px;
            font-weight: 700;
            line-height: 1.5;
            color: var(--primary);
        }

        .diag-page .question small {
            display: block;
            color: var(--muted);
            margin-bottom: 10px;
            line-height: 1.55;
        }

        .diag-page .legend {
            display: grid;
            gap: 8px;
            margin-top: 14px;
            padding: 16px;
            border-radius: 16px;
            background: rgba(18, 60, 102, 0.04);
            border: 1px dashed rgba(18, 60, 102, 0.14);
            color: var(--muted);
            font-size: 0.92rem;
            box-shadow: 0 10px 24px rgba(7, 26, 61, 0.04);
        }

        .diag-page .progress-wrap {
            margin-bottom: 18px;
        }

        .diag-page .progress-label {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--primary);
        }

        .diag-page .progress {
            height: 12px;
            background: rgba(18, 60, 102, 0.08);
            border-radius: 999px;
            overflow: hidden;
        }

        .diag-page .progress > span {
            display: block;
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, var(--primary), var(--primary-2));
            transition: width .35s ease;
        }

        .diag-page .metric-grid {
            display: grid;
            gap: 12px;
            margin-top: 18px;
        }

        .diag-page .metric {
            border: 1px solid rgba(18, 60, 102, 0.10);
            border-radius: 16px;
            padding: 14px;
            background: #fff;
            box-shadow: 0 10px 24px rgba(7, 26, 61, 0.04);
        }

        .diag-page .metric-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 8px;
            font-weight: 700;
            color: var(--primary);
        }

        .diag-page .pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 94px;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 0.82rem;
            font-weight: 800;
            letter-spacing: 0.02em;
        }

        .diag-page .pill.low {
            background: rgba(185, 28, 28, 0.12);
            color: #b91c1c;
        }

        .diag-page .pill.mid {
            background: rgba(212, 164, 55, 0.16);
            color: #8a6717;
        }

        .diag-page .pill.high {
            background: rgba(21, 128, 61, 0.12);
            color: #15803d;
        }

        .diag-page .score-bar {
            height: 9px;
            background: rgba(18, 60, 102, 0.08);
            border-radius: 999px;
            overflow: hidden;
            margin-top: 8px;
        }

        .diag-page .score-bar span {
            display: block;
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, var(--primary), var(--primary-2));
            transition: width .35s ease;
        }

        .diag-page .summary {
            margin-top: 18px;
            padding: 18px;
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(28, 93, 153, 0.06), rgba(255, 255, 255, 0.96));
            border: 1px solid rgba(18, 60, 102, 0.10);
            box-shadow: 0 10px 24px rgba(7, 26, 61, 0.04);
        }

        .diag-page .summary h3 {
            margin: 0 0 10px;
            color: var(--primary);
        }

        .diag-page .summary p,
        .diag-page .summary li {
            color: var(--text);
            line-height: 1.65;
        }

        .diag-page .summary ul {
            padding-left: 18px;
            margin: 10px 0 0;
            display: grid;
            gap: 8px;
        }

        .diag-page .actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 24px;
        }

        .diag-page .actions .btn {
            min-width: 190px;
        }

        .diag-page .actions button.btn {
            appearance: none;
            -webkit-appearance: none;
            border: 1px solid transparent;
        }

        .diag-page .btn-loading {
            position: relative;
            color: transparent !important;
            pointer-events: none;
            opacity: 0.85;
        }

        .diag-page .btn-loading::after {
            content: "";
            position: absolute;
            width: 18px;
            height: 18px;
            top: 50%;
            left: 50%;
            margin: -9px 0 0 -9px;
            border: 3px solid rgba(255, 255, 255, 0.35);
            border-radius: 50%;
            border-top-color: #fff;
            animation: diag-spin .8s ease-in-out infinite;
        }

        @keyframes diag-spin {
            to { transform: rotate(360deg); }
        }

        .diag-page .small-note,
        .diag-page .footer-note {
            color: var(--muted);
            font-size: 0.88rem;
            line-height: 1.6;
        }

        .diag-page .footer-note {
            margin-top: 22px;
            text-align: center;
        }

        .diag-page input:read-only,
        .diag-page textarea:read-only {
            background: #f8fafc;
            color: #64748b;
            cursor: not-allowed;
        }

        .diag-page .loading-spinner {
            display: none;
            margin-top: 6px;
            font-size: 0.85rem;
            color: var(--primary-2);
            font-weight: 700;
        }

        .diag-page .contact-card {
            background: linear-gradient(180deg, rgba(243, 247, 252, 0.9), rgba(255, 255, 255, 0.96));
            border: 1px solid rgba(18, 60, 102, 0.10);
        }

        .diag-page .hint {
            color: var(--muted);
            font-size: 0.88rem;
            line-height: 1.5;
            margin-top: 6px;
        }

        .diag-page .char-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-top: 6px;
            font-size: 0.84rem;
            color: var(--muted);
        }

        .diag-page .char-warning {
            color: #8a6717;
            font-weight: 700;
        }

        .diag-page .char-warning.is-hidden,
        .diag-page .is-hidden {
            display: none;
        }

        .diag-page .highlight {
            display: inline-block;
            margin-top: 8px;
            padding: 8px 12px;
            border-radius: 12px;
            background: rgba(28, 93, 153, 0.08);
            color: var(--primary-2);
            font-weight: 700;
            font-size: 0.9rem;
        }

        .diag-page .consent-inline {
            margin-top: 18px;
            gap: 0;
        }

        .diag-page .consent-box {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 14px;
            border: 1px solid rgba(18, 60, 102, 0.12);
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.95);
            transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
            box-shadow: 0 10px 24px rgba(7, 26, 61, 0.04);
        }

        .diag-page .consent-box:hover {
            border-color: rgba(18, 60, 102, 0.20);
            background: #ffffff;
        }

        .diag-page .consent-box input[type="checkbox"] {
            width: 16px;
            height: 16px;
            margin: 3px 0 0;
            padding: 0;
            flex-shrink: 0;
            accent-color: var(--primary-2);
            cursor: pointer;
        }

        .diag-page .consent-check {
            display: block;
            margin: 0;
            font-size: 0.92rem;
            line-height: 1.55;
            color: var(--muted);
            font-weight: 400;
            cursor: pointer;
        }

        .diag-page .consent-check strong {
            font-weight: 700;
            color: var(--primary);
        }

        .diag-page .consent-check a {
            color: var(--primary-2);
            text-decoration: none;
            font-weight: 700;
        }

        .diag-page .consent-check a:hover {
            text-decoration: underline;
        }

        .diag-page .consent-inline.field-error .consent-box {
            border-color: rgba(185, 28, 28, 0.35) !important;
            box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08) !important;
            background: #fff7f7;
        }

        .diag-page .consent-inline.field-error .consent-check {
            color: #7f1d1d;
        }

        .diag-page .diag-support {
            margin-top: 24px;
            padding: 24px 28px;
            border-radius: 24px;
            position: relative;
            overflow: hidden;
            background:
                linear-gradient(135deg, #0a1b4d 0%, #123c66 55%, #1c5d99 100%);
            box-shadow: var(--diag-shadow);
        }

        .diag-page .diag-support::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                radial-gradient(circle at 18% 30%, rgba(255,255,255,0.12), transparent 20%),
                radial-gradient(circle at 78% 68%, rgba(213,171,82,0.16), transparent 18%);
        }

        .diag-page .diag-support h3 {
            margin-bottom: 8px;
            color: #fff;
            position: relative;
            z-index: 1;
        }

        .diag-page .diag-support p {
            max-width: 72ch;
            color: rgba(255,255,255,0.85);
            position: relative;
            z-index: 1;
        }

        .diag-page .diag-support .btn {
            position: relative;
            z-index: 1;
        }

        .hero-entry {
            opacity: 0;
            transform: translateY(30px);
            filter: blur(10px);
            animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

        .diag-hero-copy.hero-entry {
            animation-delay: 0.10s;
        }

        .diag-hero-aside.hero-entry {
            animation-delay: 0.24s;
        }

        .diag-reveal {
            opacity: 0;
            transform: translateY(26px);
            filter: blur(8px);
            transition:
                opacity .7s ease,
                transform .7s ease,
                filter .7s ease;
        }

        .diag-reveal.is-visible {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0);
        }

        @keyframes heroReveal {
            to {
                opacity: 1;
                transform: translateY(0);
                filter: blur(0);
            }
        }

        @keyframes diagHeroFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        @keyframes diagCardFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-12px); }
        }

        @keyframes rotateOrbit {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes diagLightSweep {
            0% {
                transform: translateX(-120%) skewX(-18deg);
                opacity: 0;
            }
            24% { opacity: 0.52; }
            48% { opacity: 0.86; }
            70% { opacity: 0.20; }
            100% {
                transform: translateX(235%) skewX(-18deg);
                opacity: 0;
            }
        }

        @keyframes diagParticles {
            0% { transform: translateY(0px); }
            100% { transform: translateY(-10px); }
        }

        @keyframes diagLinePulse {
            0%, 100% { opacity: 0.72; transform: rotate(-7deg) scaleX(1); }
            50% { opacity: 1; transform: rotate(-7deg) scaleX(1.02); }
        }

        @keyframes diagSignalMove {
            0% { left: 18%; opacity: 0.7; }
            50% { left: 74%; opacity: 1; }
            100% { left: 18%; opacity: 0.7; }
        }

        @keyframes panelLine {
            0%, 100% { width: 64px; opacity: 0.35; }
            50% { width: 128px; opacity: 0.95; }
        }

        @media (max-width: 1120px) {
            .diag-hero-grid {
                grid-template-columns: 1fr;
                gap: 30px;
                align-items: start;
            }

            .diag-hero-aside {
                align-items: flex-start;
            }

            .diag-hero-panel {
                width: min(520px, 100%);
            }

            .diag-hero-visual {
                min-height: 420px;
                justify-content: flex-start;
            }

            .diag-layout {
                grid-template-columns: 1fr;
            }

            .diag-side-card {
                position: static;
            }
        }

        @media (max-width: 720px) {
            .diag-hero-immersive {
                padding: 26px 18px;
                min-height: auto;
                border-radius: 24px;
            }

            .diag-hero-brand img {
                max-height: 68px;
                max-width: 240px;
            }

            .diag-hero-kicker {
                font-size: 0.66rem;
                letter-spacing: 0.14em;
                margin-bottom: 14px;
            }

            .diag-hero-copy h2 {
                font-size: clamp(2rem, 8vw, 3rem);
                max-width: 100%;
            }

            .diag-hero-copy p {
                font-size: 0.96rem;
                line-height: 1.76;
            }

            .diag-hero-panel {
                padding: 18px 0 0 18px;
            }

            .diag-hero-floating-card,
            .orbit-1,
            .orbit-2,
            .orbit-3 {
                display: none;
            }

            .diag-hero-visual {
                min-height: 300px;
            }

            .diag-shell {
                padding: 18px;
                border-radius: 22px;
            }

            .diag-form-card,
            .diag-side-card {
                padding: 18px;
            }

            .diag-page .grid {
                grid-template-columns: 1fr;
            }

            .diag-page .consent-box {
                padding: 11px 12px;
            }

            .diag-page .consent-check {
                font-size: 0.9rem;
            }

            .diag-page .actions .btn {
                width: 100%;
            }
        }

.diag-result-title {
    margin: 0 0 6px;
    color: var(--brand);
}

.diag-result-intro {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.6;
}


/* Patch mínimo mobile: garante exibição do diagnóstico sem depender do reveal/observer */
@media (max-width: 720px) {
  .diag-page .diag-reveal,
  .diag-page .diag-reveal.is-visible,
  .diag-page .hero-entry,
  .diag-page .diag-form-card,
  .diag-page .diag-side-card,
  .diag-page .diag-support,
  .diag-page .section {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}
