/* Resultados del dominio: la alerta crítica precede al resumen y a los servicios. */
.diag-php-critical { background: linear-gradient(120deg, #2b101e, #150d1b); border: 1px solid #fb7185; border-left: 8px solid #fb7185; border-radius: 18px; padding: 28px; margin-bottom: 24px; }
.diag-php-heading { display: flex; align-items: flex-start; gap: 20px; }
.diag-php-heading > div { flex: 1; min-width: 0; }
.diag-php-icon { flex: none; color: #fda4af; background: #501c2b; border-radius: 16px; padding: 14px; width: 72px; height: 72px; }
.diag-php-badge { display: inline-block; color: #fff; background: #be123c; padding: 5px 14px; border-radius: 9px; font-size: .8rem; font-weight: 800; letter-spacing: .04em; }
.diag-php-critical h2 { font-family: var(--font-tech); color: #fff; font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1.2; margin: 12px 0 8px; }
.diag-php-critical p { color: #e2e8f0; line-height: 1.6; font-size: .92rem; margin: 8px 0; }
.diag-php-subtitle { font-weight: 700; }
.diag-php-grade { flex: none; display: grid; place-items: center; width: 94px; height: 94px; border: 7px solid #fb7185; border-radius: 50%; color: #fda4af; font-family: var(--font-tech); font-weight: 800; font-size: 3rem; }
.diag-php-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.diag-php-evidence > div { border: 1px solid #713047; border-radius: 12px; background: #25101e; padding: 15px; min-width: 0; overflow-wrap: anywhere; }
.diag-php-evidence dt { color: #cbd5e1; font-size: .8rem; margin-bottom: 7px; }
.diag-php-evidence dd { margin: 0; color: #fff; font-size: .95rem; font-weight: 700; }
.diag-php-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #3b1223; border: 1px solid #9f2747; border-radius: 12px; padding: 14px; }
.diag-php-action strong { color: #fff; font-size: .95rem; }
.diag-php-link { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 18px; background: #be123c; border: 1px solid #fb7185; border-radius: 10px; color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none; transition: background .2s; }
.diag-php-link:hover { background: #9f1239; }
.diag-php-link:active { background: #881337; }
.diag-php-link:focus-visible, .diag-php-detail:focus-visible { outline: 3px solid #fef08a; outline-offset: 4px; }
.diag-php-critical .diag-php-note { color: #fde68a; font-size: .82rem; margin: 12px 0 0; }
#diag-cat-php { grid-column: 1 / -1; }
#diag-cat-php.diag-sev-f { background: #25101e; border-color: #fb7185; }
.diag-php-detail { color: #7dd3fc; font-size: .85rem; font-weight: 600; }
.diag-cat-card-new { min-width: 0; overflow-wrap: anywhere; }
.diag-cat-card-new .diag-bar i { background: var(--s); }
.diag-cat-card-new .diag-cat-row { gap: 12px; }
.diag-plan li.diag-action-critical { border: 1px solid #fb7185; background: #351222; padding: 14px; border-radius: 10px; color: #e2e8f0; }
.diag-plan li.diag-action-critical b { background: #be123c; color: #fff; }
#diag-plan { scroll-margin-top: 110px; }
#diag-php-critical { scroll-margin-top: 110px; }
#diag-highlight:empty { display: none; }
.diag-cat-card-new[hidden], #diag-highlight[hidden] { display: none; }
#diag-highlight { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#diag-highlight .diag-highlight { margin-bottom: 24px; }
.diag-hero-left, .diag-hero-right { min-width: 0; overflow-wrap: anywhere; }
.diag-hero-right .btn-whatsapp-mobile { min-width: 0 !important; }
@media (max-width: 640px) {
    .diag-php-critical { padding: 18px 14px; border-left-width: 5px; }
    .diag-php-heading { gap: 12px; flex-wrap: wrap; }
    .diag-php-icon { display: none; }
    .diag-php-grade { width: 58px; height: 58px; border-width: 4px; font-size: 2rem; }
    .diag-php-heading > div { flex-basis: calc(100% - 80px); }
    .diag-php-evidence { grid-template-columns: 1fr; }
    #diag-highlight { grid-template-columns: 1fr; gap: 0; }
    .diag-php-link { width: 100%; }
    .diag-plan { padding: 18px !important; }
}

#diag-cat-php .diag-pill { max-width: 55%; white-space: normal; text-align: center; line-height: 1.4; flex-shrink: 0; }

/* Aviso contextual de categorías sin verificar (rigor y sugerencia www) */
.diag-unverified-notice {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-left: 6px solid #38bdf8;
    border-radius: 16px;
    padding: 22px 24px;
    margin: 20px 0 28px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.diag-unverified-notice[hidden] {
    display: none !important;
}
.diag-unverified-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.diag-unverified-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.diag-unverified-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 9px;
    border-radius: 9999px;
    margin-bottom: 4px;
}
.diag-unverified-title {
    font-family: var(--font-tech, 'Space Grotesk', sans-serif);
    color: #fff;
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.3;
}
.diag-unverified-body {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.55;
}
.diag-unverified-lead {
    margin: 0 0 12px;
    color: #e2e8f0;
}
.diag-unverified-tip-box {
    background: rgba(14, 116, 144, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 14px 0;
}
.diag-unverified-tip-box[hidden] {
    display: none !important;
}
.diag-unverified-tip-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.diag-unverified-tip-badge {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
    margin-top: 2px;
}
.diag-unverified-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0e7490;
    color: #fff;
    border: 1px solid #22d3ee;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.diag-unverified-retry-btn:hover {
    background: #0891b2;
    border-color: #67e8f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.45);
}
.diag-unverified-retry-btn:active {
    transform: translateY(0);
}
.diag-unverified-retry-btn:focus-visible {
    outline: 2px solid #fef08a;
    outline-offset: 3px;
}
.diag-unverified-footer-note {
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
}
@media (max-width: 640px) {
    .diag-unverified-notice {
        padding: 16px;
        border-left-width: 4px;
        margin: 16px 0 24px;
    }
    .diag-unverified-header {
        align-items: flex-start;
    }
    .diag-unverified-icon {
        display: none;
    }
    .diag-unverified-tip-content {
        flex-direction: column;
        gap: 6px;
    }
    .diag-unverified-retry-btn {
        width: 100%;
        justify-content: center;
    }
}
.diag-domain-access { padding: 18px 20px; margin-bottom: 24px; border: 1px solid #0e7490; border-left: 4px solid #22d3ee; border-radius: 12px; background: #0f2435; color: #e2e8f0; overflow-wrap: anywhere; }
.diag-domain-access[hidden] { display: none; }
.diag-domain-access h2 { margin: 0 0 8px; color: #fff; font-size: 1.1rem; }
.diag-domain-access p { margin: 8px 0; line-height: 1.65; }

#diag-coverage { font-size: .9rem; font-weight: 700; color: #e2e8f0; margin: 8px 0; }
#diag-coverage.diag-coverage-partial { padding: 10px 12px; border-left: 3px solid #fbbf24; background: #342514; color: #fde68a; border-radius: 6px; }
