#wphm-notice-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #d63638;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    z-index: 999999;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.01em;
    animation: wphm-pulse 2s ease-in-out infinite;
}

@keyframes wphm-pulse {
    0%, 100% { background: #d63638; }
    50%       { background: #b32d2e; }
}

.wphm-icon  { margin-right: 5px; }
.wphm-sep   { opacity: 0.5; margin: 0 8px; }
.wphm-url   { opacity: 0.75; font-weight: 400; font-size: 11px; }
.wphm-code  { opacity: 0.6; font-weight: 400; font-size: 11px; font-family: monospace; }

body { margin-top: 30px !important; }

/* ── Tipografía rota ── */

/* Títulos: fuente genérica serif mezclada con monospace */
body h1, body h2, body h3, body h4, body h5, body h6 {
    font-family: "Courier New", "Times New Roman", serif !important;
    letter-spacing: -0.03em !important;
    word-spacing: 0.2em !important;
    font-size-adjust: 0.45 !important;
}

/* Párrafos: fuente diferente, interlineado raro */
body p, body li, body span, body a {
    font-family: Georgia, "Comic Sans MS", cursive !important;
    line-height: 1.9 !important;
    letter-spacing: 0.04em !important;
}

/* Algunos párrafos pares con tamaño distinto */
body p:nth-child(even) {
    font-size: 0.85em !important;
    font-family: "Courier New", monospace !important;
}

body p:nth-child(odd) {
    font-size: 1.05em !important;
}

/* Botones con fuente incorrecta */
body button, body .btn, body input[type="submit"], body a.button {
    font-family: "Times New Roman", serif !important;
    letter-spacing: 0.1em !important;
    font-size: 0.9em !important;
}

/* Menú de navegación con monospace */
body nav, body nav a, body .menu li, body .menu a,
body .nav-menu li, body .nav-menu a {
    font-family: "Courier New", monospace !important;
    font-size: 0.88em !important;
    letter-spacing: 0.06em !important;
}

/* Ligero desajuste de rendering */
body * {
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: unset !important;
    text-rendering: optimizeSpeed !important;
}

/* ── Error crítico overlay (solo home) ── */

#wphm-critical-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #f0f0f1;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#wphm-critical-box {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: 4px solid #d63638;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#wphm-critical-header {
    background: #d63638;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#wphm-critical-icon {
    font-size: 20px;
}

#wphm-critical-body {
    padding: 24px 28px;
    color: #1d2327;
    font-size: 13px;
    line-height: 1.6;
}

#wphm-critical-body p {
    margin: 0 0 12px;
}

#wphm-critical-body code {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    background: #f0f0f1;
    padding: 1px 5px;
    border-radius: 2px;
    color: #d63638;
}

#wphm-critical-body pre {
    background: #1d2327;
    color: #a7aaad;
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    padding: 14px 16px;
    border-radius: 3px;
    overflow-x: auto;
    line-height: 1.8;
    margin: 10px 0 16px;
}

#wphm-critical-body pre strong {
    color: #f0f0f1;
}

.wphm-wp-version {
    font-size: 11px;
    color: #787c82;
    border-top: 1px solid #f0f0f1;
    padding-top: 12px;
    margin-top: 16px !important;
}

#wphm-critical-actions {
    display: flex;
    gap: 10px;
    margin: 16px 0 8px;
}

.wphm-btn-primary {
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    border: 1px solid #135e96;
}
.wphm-btn-primary:hover { background: #135e96; }

.wphm-btn-secondary {
    background: #f0f0f1;
    color: #1d2327 !important;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    border: 1px solid #c3c4c7;
}
.wphm-btn-secondary:hover { background: #dcdcde; }

.wphm-learn-more {
    font-size: 12px;
    color: #787c82;
}
.wphm-learn-more a {
    color: #2271b1;
}

/* ── Plugin culprit badge ── */
#wphm-plugin-culprit {
    background: #fcf0f1;
    border: 1px solid #d63638;
    border-left: 4px solid #d63638;
    border-radius: 3px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wphm-culprit-label {
    font-size: 11px;
    color: #787c82;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wphm-culprit-name {
    font-size: 15px;
    font-weight: 700;
    color: #d63638;
}

.wphm-culprit-ver {
    font-size: 12px;
    font-weight: 400;
    color: #787c82;
    margin-left: 4px;
}

.wphm-culprit-path {
    font-family: Consolas, Monaco, monospace;
    font-size: 10px;
    color: #787c82;
    word-break: break-all;
}

.pre-null { color: #d63638; font-weight: bold; }
