@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ════════════════════════════════════════════════════
   Cloud Service App · Liquid Glass UI
   Fondo aurora animado + superficies de cristal
   (backdrop-filter) con luces especulares.
   ════════════════════════════════════════════════════ */

/* ─── Dark theme (default) ──────────────────────── */
:root {
    color-scheme: dark;
    --bg:            #07070b;
    --surface:       rgba(19, 19, 28, .58);
    --surface-soft:  rgba(255, 255, 255, .04);
    --line:          rgba(255, 255, 255, .09);
    --line-hover:    rgba(255, 255, 255, .18);
    --text:          #eeeef6;
    --muted:         #9494ae;
    --label:         #c2c2d6;
    --accent:        #8b7bff;
    --accent-dark:   #6f5ce8;
    --accent-glow:   rgba(139, 123, 255, .2);
    --danger:        #ff7070;
    --warning:       #ffb054;
    --success:       #46e39c;
    --code:          rgba(5, 5, 10, .65);
    --input-bg:      rgba(0, 0, 0, .28);
    --button-soft:   rgba(255, 255, 255, .06);
    --table-head:    rgba(255, 255, 255, .03);
    --shadow:        0 24px 64px rgba(0, 0, 0, .5);
    --shadow-sm:     0 4px 16px rgba(0, 0, 0, .35);
    --notice-bg:       rgba(139, 123, 255, .08);
    --notice-line:     rgba(139, 123, 255, .28);
    --ip-notice-bg:    rgba(255, 176, 84, .07);
    --ip-notice-line:  rgba(255, 176, 84, .26);
    --ip-notice-text:  #ffc887;
    --danger-soft:   rgba(255, 112, 112, .09);
    --warning-soft:  rgba(255, 176, 84, .09);
    --critical-soft: rgba(255, 112, 112, .07);
    --info-soft:     rgba(255, 255, 255, .06);
    /* Tokens del sistema de cristal */
    --glass-blur:      22px;
    --glass-highlight: rgba(255, 255, 255, .1);
    --glass-shine:     linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 42%);
    --aurora-1:        rgba(124, 106, 245, .32);
    --aurora-2:        rgba(56, 189, 248, .2);
    --aurora-3:        rgba(217, 70, 239, .17);
}

/* ─── Light theme ───────────────────────────────── */
[data-theme='light'] {
    color-scheme: light;
    --bg:            #eef0f8;
    --surface:       rgba(255, 255, 255, .62);
    --surface-soft:  rgba(255, 255, 255, .5);
    --line:          rgba(30, 30, 70, .1);
    --line-hover:    rgba(30, 30, 70, .22);
    --text:          #14141c;
    --muted:         #63637a;
    --label:         #34344c;
    --accent:        #5546e8;
    --accent-dark:   #4438c8;
    --accent-glow:   rgba(85, 70, 232, .16);
    --danger:        #d92b2b;
    --warning:       #a86408;
    --success:       #0e9152;
    --code:          rgba(20, 20, 42, .92);
    --input-bg:      rgba(255, 255, 255, .72);
    --button-soft:   rgba(255, 255, 255, .65);
    --table-head:    rgba(255, 255, 255, .55);
    --shadow:        0 20px 56px rgba(60, 60, 130, .14);
    --shadow-sm:     0 3px 12px rgba(60, 60, 130, .1);
    --notice-bg:       rgba(85, 70, 232, .06);
    --notice-line:     rgba(85, 70, 232, .24);
    --ip-notice-bg:    rgba(168, 100, 8, .07);
    --ip-notice-line:  rgba(168, 100, 8, .24);
    --ip-notice-text:  #8a5406;
    --danger-soft:   rgba(217, 43, 43, .07);
    --warning-soft:  rgba(168, 100, 8, .08);
    --critical-soft: rgba(217, 43, 43, .05);
    --info-soft:     rgba(20, 20, 70, .05);
    --glass-highlight: rgba(255, 255, 255, .85);
    --glass-shine:     linear-gradient(180deg, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 46%);
    --aurora-1:        rgba(124, 106, 245, .3);
    --aurora-2:        rgba(56, 189, 248, .26);
    --aurora-3:        rgba(244, 114, 182, .22);
}

/* ─── Ocultar banner si fue descartado ─────────── */
[data-disclaimer-hidden] .disclaimer-banner {
    display: none;
}

/* ─── Base ──────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* ─── Fondo aurora líquida ──────────────────────── */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -2;
    inset: 0;
    pointer-events: none;
}

body::before {
    background:
        radial-gradient(42% 46% at 12% 8%,  var(--aurora-1) 0%, transparent 100%),
        radial-gradient(38% 42% at 88% 16%, var(--aurora-2) 0%, transparent 100%),
        radial-gradient(46% 52% at 55% 96%, var(--aurora-3) 0%, transparent 100%);
    filter: blur(64px) saturate(1.2);
    animation: auroraDrift 34s ease-in-out infinite alternate;
    transform-origin: 50% 50%;
    will-change: transform;
}

/* Retícula sutil sobre la aurora, se desvanece hacia abajo */
body::after {
    z-index: -1;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 62%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 62%);
    opacity: .45;
}

@keyframes auroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    50%  { transform: translate3d(3%, -2%, 0) scale(1.12) rotate(2deg); }
    100% { transform: translate3d(-3%, 2%, 0) scale(1.05) rotate(-2deg); }
}

h1, h2, h3, p {
    margin-top: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    opacity: .8;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* Scrollbars discretos */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--line-hover);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* ─── Material de cristal (utilidades internas) ── */
/* Aplico el material directamente en cada componente para
   no tocar el HTML: superficie translúcida + blur + brillo. */

/* ─── Disclaimer Banner ─────────────────────────── */
.disclaimer-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 13px clamp(20px, 4vw, 56px);
    background: linear-gradient(90deg, rgba(139, 123, 255, .12) 0%, rgba(56, 189, 248, .07) 100%);
    border-bottom: 1px solid var(--notice-line);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    flex: 1;
    min-width: 0;
}

.disclaimer-icon {
    font-size: 16px;
    line-height: 1.6;
    flex-shrink: 0;
}

.disclaimer-text {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

.disclaimer-text strong {
    color: var(--text);
    font-weight: 600;
}

.disclaimer-close {
    min-height: 28px;
    height: 28px;
    width: 28px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.disclaimer-close:hover {
    background: var(--button-soft);
    color: var(--text);
    border-color: var(--line-hover);
    transform: none;
    box-shadow: none;
}

/* ─── Header ────────────────────────────────────── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px clamp(20px, 4vw, 56px);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.app-logo {
    --app-logo-size: 30px;
    display: inline-block;
    width: var(--app-logo-size);
    height: var(--app-logo-size);
    flex: 0 0 auto;
    background: linear-gradient(135deg, #1d4ed8 0%, var(--accent) 52%, #67e8f9 100%);
    -webkit-mask: url('assets/app-logo-mask.png') center / contain no-repeat;
    mask: url('assets/app-logo-mask.png') center / contain no-repeat;
    filter: drop-shadow(0 0 14px var(--accent-glow));
}

[data-theme='light'] .app-logo {
    background: linear-gradient(135deg, #4438c8 0%, var(--accent) 48%, #0891b2 100%);
}

.brand-logo {
    --app-logo-size: clamp(46px, 5vw, 64px);
}

.brand-mark {
    display: block;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(110deg, #8b7bff 0%, #c4b5fd 28%, #67e8f9 55%, #f0abfc 82%, #8b7bff 100%);
    background-size: 280% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandFlow 9s linear infinite;
}

[data-theme='light'] .brand-mark {
    background: linear-gradient(110deg, #5546e8 0%, #7c3aed 30%, #0891b2 55%, #db2777 82%, #5546e8 100%);
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: brandFlow 9s linear infinite;
}

@keyframes brandFlow {
    from { background-position: 0% 50%; }
    to   { background-position: 280% 50%; }
}

.brand-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    background: var(--surface-soft);
    letter-spacing: .15px;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    position: relative;
}

.status-pill:hover {
    transform: none;
    border-color: var(--line-hover);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
}

.status-pill::before {
    content: '';
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 7px;
    box-shadow: 0 0 8px var(--success);
    animation: pulseDot 2.4s ease-in-out infinite;
    vertical-align: 1px;
}

.status-pill[data-service-status='checking'] {
    color: var(--accent);
    border-color: var(--notice-line);
    background: var(--notice-bg);
}

.status-pill[data-service-status='checking']::before {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.status-pill[data-service-status='warn'] {
    color: var(--warning);
    border-color: rgba(255, 176, 84, .35);
    background: var(--warning-soft);
}

.status-pill[data-service-status='warn']::before {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}

.theme-toggle {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.theme-toggle button {
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, color .18s;
    box-shadow: none;
}

.theme-toggle button:hover {
    transform: none;
    box-shadow: none;
    background: var(--button-soft);
    color: var(--text);
}

.theme-toggle button[aria-pressed='true'] {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}

/* ─── App Shell ─────────────────────────────────── */
.app-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 32px auto 72px;
}

/* ─── Tabs ──────────────────────────────────────── */
.tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.tab-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 12px 12px;
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
    transition: border-color .2s;
}

.tab-group:hover {
    border-color: var(--line-hover);
}

.tab-group-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
    padding-left: 4px;
}

.tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tab-button {
    min-height: 34px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    padding: 0 14px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s ease;
}

.tab-button:hover {
    background: var(--button-soft);
    color: var(--text);
    border-color: var(--line);
    transform: none;
    box-shadow: none;
}

.tab-button.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 16px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
    transform: none;
}

/* ─── Buttons ───────────────────────────────────── */
button {
    min-height: 42px;
    border: 1px solid var(--line);
    background: var(--button-soft);
    color: var(--text);
    border-radius: 12px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

button:hover {
    transform: translateY(-1px);
    border-color: var(--line-hover);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
}

button:active {
    transform: translateY(0) scale(.985);
}

button[type='submit'] {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}

button[type='submit']:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 28px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}

button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ─── Tool Panel ────────────────────────────────── */
.tool-panel {
    display: none;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(24px, 4vw, 38px);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
    overflow: hidden;
}

/* Brillo especular en la parte superior del panel */
.tool-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-shine);
    pointer-events: none;
}

.tool-panel > * {
    position: relative;
}

.tool-panel.active {
    display: block;
    animation: panelIn .32s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(14px) scale(.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-heading {
    max-width: 720px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
    margin-bottom: 6px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.35px;
}

.panel-heading p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 0;
}

/* ─── Forms ─────────────────────────────────────── */
.tool-form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--label);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color .18s, box-shadow .18s, background .18s;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

[data-theme='light'] input,
[data-theme='light'] select,
[data-theme='light'] textarea {
    box-shadow: inset 0 1px 4px rgba(60, 60, 130, .08);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow), inset 0 2px 6px rgba(0, 0, 0, .1);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: .6;
}

textarea {
    min-height: 180px;
    resize: vertical;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.button-row button {
    flex: 0 0 auto;
}

.secondary-button {
    border-color: var(--line);
    background: var(--button-soft);
    color: var(--text);
}

.grid-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(120px, .6fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.template-grid {
    grid-template-columns: minmax(200px, .7fr) minmax(260px, 1.3fr) auto;
}

.template-redirect-field[hidden],
.template-folder-field[hidden] {
    display: none;
}

.template-summary {
    display: grid;
    grid-template-columns: minmax(180px, .45fr) minmax(240px, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.optional-field {
    margin-top: 14px;
}

/* ─── Result Box ────────────────────────────────── */
.result-box {
    min-height: 88px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    background: var(--surface-soft);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.empty-state {
    color: var(--muted);
    font-size: 14px;
}

.loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--accent-glow);
    border-top-color: var(--accent);
    animation: spin .7s linear infinite;
}

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

.error {
    color: var(--danger);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid var(--danger-soft);
    border-left: 3px solid var(--danger);
    border-radius: 10px;
    background: var(--danger-soft);
}

/* ─── Notices ───────────────────────────────────── */
.dig-ip-notice {
    margin-bottom: 16px;
    border: 1px solid var(--ip-notice-line);
    border-radius: 14px;
    padding: 13px 16px;
    background: var(--ip-notice-bg);
    color: var(--ip-notice-text);
}

.dig-ip-notice span {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.dig-ip-notice ul {
    margin: 0;
    padding-left: 18px;
}

.dig-ip-notice li + li {
    margin-top: 6px;
}

.domain-notice {
    margin-bottom: 16px;
    border: 1px solid var(--notice-line);
    border-radius: 14px;
    padding: 13px 16px;
    background: var(--notice-bg);
    color: var(--accent);
}

.domain-notice span {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.domain-notice p {
    margin: 0;
}

.domain-notice a {
    color: var(--accent);
    font-weight: 700;
}

/* ─── Metrics / Cards ───────────────────────────── */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.section-title {
    margin: 24px 0 12px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}

.metric {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 15px;
    background: var(--surface-soft);
    transition: border-color .18s, transform .18s, box-shadow .18s;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    overflow: hidden;
}

.metric:hover {
    border-color: var(--line-hover);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.metric strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 14.5px;
}

.metric-with-logo strong {
    display: flex;
    align-items: center;
    gap: 9px;
}

.metric-with-logo .metric-logo {
    --app-logo-size: 24px;
    display: inline-block;
    margin-bottom: 0;
}

.metric-with-logo .metric-value {
    display: inline;
    min-width: 0;
    margin-bottom: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

/* ─── Badges ────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1px;
    border: 1px solid transparent;
}

.badge.ok,  .badge.badge-ok   { background: rgba(70, 227, 156, .1);  color: var(--success); border-color: rgba(70, 227, 156, .25); }
.badge.warn, .badge.badge-warn { background: rgba(255, 176, 84, .1);  color: var(--warning); border-color: rgba(255, 176, 84, .25); }
.badge.bad,  .badge.badge-bad  { background: rgba(255, 112, 112, .1); color: var(--danger);  border-color: rgba(255, 112, 112, .25); }
.badge.info, .badge.badge-info { background: var(--info-soft);        color: var(--muted);   border-color: var(--line); }

/* ─── Rspamd ────────────────────────────────────── */
.rspamd-max-card {
    margin-bottom: 18px;
    border: 1px solid rgba(255, 112, 112, .28);
    border-radius: 16px;
    padding: 22px;
    background: var(--critical-soft);
    text-align: center;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.rspamd-max-card span {
    display: block;
    color: var(--danger);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.rspamd-max-card strong {
    display: block;
    margin-top: 8px;
    overflow-wrap: anywhere;
    font-size: 18px;
}

.rspamd-max-card b {
    display: block;
    margin-top: 8px;
    color: var(--danger);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 32px var(--danger-soft);
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.rspamd-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.rspamd-table th,
.rspamd-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.rspamd-table th {
    background: var(--table-head);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.rspamd-table tr:last-child td {
    border-bottom: 0;
}

.rspamd-table td:nth-child(3),
.rspamd-table th:nth-child(3) {
    width: 90px;
}

.rspamd-table td:nth-child(4),
.rspamd-table th:nth-child(4) {
    width: 130px;
}

.rspamd-row-danger  { background: var(--danger-soft);  border-left: 4px solid var(--danger); }
.rspamd-row-warning { background: var(--warning-soft); border-left: 4px solid var(--warning); }
.rspamd-row-normal  { border-left: 4px solid transparent; }

.symbol-name {
    color: var(--accent);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ─── Links ─────────────────────────────────────── */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 0;
}

.links a {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--notice-line);
    border-radius: 999px;
    padding: 6px 15px;
    background: var(--notice-bg);
    transition: all .18s;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.links a:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ─── Pre / Code ────────────────────────────────── */
pre {
    overflow: auto;
    max-height: 520px;
    margin: 14px 0 0;
    padding: 16px;
    border-radius: 14px;
    background: var(--code);
    color: #c8c8e4;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border: 1px solid var(--line);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, .25);
}

[data-theme='light'] pre {
    color: #d6d6f0;
}

details {
    margin-top: 14px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    user-select: none;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background .15s, color .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

summary:hover {
    color: var(--text);
    background: var(--button-soft);
}

/* ─── Progress (análisis SPF) ───────────────────── */
progress {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-radius: 999px;
    background: var(--surface-soft);
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background: var(--surface-soft);
    border-radius: 999px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 999px;
    transition: width .2s ease;
}

progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 999px;
}

/* ─── Certificado SSL ───────────────────────────── */
.ssl-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.validity-bar {
    height: 12px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .18);
}

.validity-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .6s cubic-bezier(.22, 1, .36, 1);
    position: relative;
}

.validity-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 55%);
}

.validity-fill.ok   { background: linear-gradient(90deg, #2dd488, var(--success)); box-shadow: 0 0 14px rgba(70, 227, 156, .4); }
.validity-fill.warn { background: linear-gradient(90deg, #f79b2e, var(--warning)); box-shadow: 0 0 14px rgba(255, 176, 84, .4); }
.validity-fill.bad  { background: linear-gradient(90deg, #f25555, var(--danger));  box-shadow: 0 0 14px rgba(255, 112, 112, .4); }

.validity-text {
    color: var(--muted);
    font-size: .9em;
    margin: 8px 0 18px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 4px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    font-size: .85em;
    word-break: break-all;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    transition: border-color .15s, transform .15s;
}

.chip:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.cert-chain {
    display: flex;
    flex-direction: column;
}

.cert-chain-block {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.cert-chain-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--label);
    font-size: .92em;
}

.cert-chain-head span {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cert-card {
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    padding: 14px 18px;
    background: var(--surface-soft);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    transition: border-color .18s, transform .18s;
}

.cert-card:hover {
    border-color: var(--line-hover);
    border-left-color: var(--accent);
    transform: translateX(3px);
}

.cert-card.cert-expired {
    border-left-color: var(--danger);
}

.cert-card.cert-expired:hover {
    border-left-color: var(--danger);
}

.cert-role {
    font-size: .75em;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: 4px;
    font-weight: 700;
}

.cert-expired .cert-role {
    color: var(--danger);
}

.cert-meta {
    font-size: .85em;
    color: var(--muted);
    margin-top: 4px;
}

.cert-arrow {
    color: var(--muted);
    font-size: .8em;
    padding: 6px 0 6px 22px;
}

/* ─── Histórico DNS ─────────────────────────────── */
.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-left: 2px solid var(--line);
    padding-left: 20px;
    margin-left: 6px;
}

.history-item {
    position: relative;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    transition: border-color .18s, transform .18s;
}

.history-item:hover {
    border-color: var(--line-hover);
    transform: translateX(3px);
}

.history-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
    box-shadow: 0 0 0 3px var(--bg);
}

.history-current {
    border-color: rgba(70, 227, 156, .35);
}

.history-current::before {
    background: var(--success);
    box-shadow: 0 0 0 3px var(--bg), 0 0 12px var(--success);
}

.history-period {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .9em;
    color: var(--label);
    margin-bottom: 8px;
}

.history-org {
    margin-top: 8px;
    font-size: .85em;
    color: var(--muted);
}

/* ─── DMARC / DKIM / Correo ─────────────────────── */
.rec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rec-list li {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    font-size: .92em;
    line-height: 1.5;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.check-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 16px 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--surface-soft), rgba(139, 123, 255, .06));
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.check-row:hover {
    border-color: var(--notice-line);
    background: linear-gradient(135deg, var(--notice-bg), var(--surface-soft));
    box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 24px var(--accent-glow);
}

.check-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.check-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.check-text {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.check-row input[type="checkbox"] {
    position: relative;
    width: 48px;
    min-height: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line-hover);
    border-radius: 999px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--input-bg);
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, .28);
    cursor: pointer;
    transition: background .18s, border-color .18s, box-shadow .18s;
}

.check-row input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--muted);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .24);
    transition: transform .18s, background .18s;
}

.check-row input[type="checkbox"]:checked {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 4px 18px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .26);
}

.check-row input[type="checkbox"]:checked::before {
    background: #fff;
    transform: translateX(22px);
}

.check-row input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.mail-body {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 480px;
    overflow-y: auto;
}

/* ─── Pie de la aplicación ──────────────────────── */
.app-footer {
    text-align: center;
    color: var(--muted);
    font-size: .8em;
    padding: 24px 16px 32px;
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 780px) {
    .app-header {
        display: block;
        position: static;
    }

    .header-actions {
        flex-direction: row;
        align-items: center;
        margin-top: 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .status-pill {
        display: inline-flex;
    }

    .input-row,
    .button-row,
    .template-summary,
    .grid-form {
        grid-template-columns: 1fr;
    }

    .button-row {
        display: grid;
    }

    .tabs-container {
        gap: 12px;
    }

    .disclaimer-banner {
        flex-direction: column;
        gap: 10px;
    }

    .disclaimer-close {
        align-self: flex-end;
    }
}

/* ─── Accesibilidad: sin animaciones si se pide ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}


/* ==== Changelog interactivo (modal de cristal) ==== */
.header-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-pill {
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid var(--notice-line);
    border-radius: 999px;
    background: var(--notice-bg);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.version-pill:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.footer-version {
    min-height: 0;
    padding: 2px 6px;
    border: none;
    background: transparent;
    color: var(--accent);
    font-size: inherit;
    font-weight: 600;
    box-shadow: none;
    border-radius: 6px;
}

.footer-version:hover {
    transform: none;
    box-shadow: none;
    background: var(--notice-bg);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 4, 12, .5);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    animation: overlayIn .22s ease;
}

[data-theme='light'] .modal-overlay {
    background: rgba(50, 50, 100, .22);
}

.modal-overlay[hidden] {
    display: none;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal {
    width: min(680px, 100%);
    max-height: min(82vh, 760px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    backdrop-filter: blur(28px) saturate(1.6);
    animation: modalIn .32s cubic-bezier(.22, 1, .36, 1);
    overflow: hidden;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--glass-shine);
}

.modal-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.modal-close {
    min-height: 30px;
    height: 30px;
    width: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-close:hover {
    color: var(--text);
    border-color: var(--line-hover);
    transform: none;
    box-shadow: none;
}

.modal-body {
    padding: 24px 26px 26px;
    overflow-y: auto;
}

.service-summary {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: var(--surface-soft);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.service-summary-warn {
    border-color: rgba(255, 176, 84, .35);
    background: var(--warning-soft);
}

.service-summary strong {
    font-size: 15px;
}

.service-summary p,
.service-checked {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.service-checked {
    margin-bottom: 4px;
}

.service-status-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.service-status-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: var(--surface-soft);
}

.service-status-row.service-status-warn {
    border-color: rgba(255, 176, 84, .35);
    background: var(--warning-soft);
}

.service-status-row .badge {
    flex: 0 0 auto;
    min-width: 64px;
    justify-content: center;
}

.service-status-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.service-status-copy strong,
.service-status-copy span {
    overflow-wrap: anywhere;
}

.service-status-copy span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

/* Linea temporal de versiones */
.cl-version {
    position: relative;
    padding: 0 0 26px 26px;
    border-left: 2px solid var(--line);
    margin-left: 8px;
}

.cl-version:last-child {
    padding-bottom: 4px;
    border-left-color: transparent;
}

.cl-version::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muted);
    box-shadow: 0 0 0 4px var(--bg);
}

.cl-current::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--accent);
}

.cl-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.cl-vnum {
    font-weight: 800;
    font-size: 16.5px;
    letter-spacing: -.3px;
}

.cl-current .cl-vnum {
    color: var(--accent);
}

.cl-date {
    color: var(--muted);
    font-size: .85em;
}

.cl-title {
    font-weight: 600;
    color: var(--label);
    font-size: .95em;
    margin-bottom: 12px;
}

.cl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cl-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .92em;
    line-height: 1.55;
    color: var(--text);
}

.cl-list .badge {
    flex-shrink: 0;
    min-width: 88px;
    justify-content: center;
    margin-top: 1px;
}

.badge.sec {
    background: var(--notice-bg);
    color: var(--accent);
    border-color: var(--notice-line);
}

@media (max-width: 780px) {
    .header-actions-row {
        flex-wrap: wrap;
    }

    .modal-overlay {
        padding: 12px;
    }

    .cl-list .badge {
        min-width: 76px;
    }
}


/* ==== Arreglos: opciones de select legibles + descripcion de plantillas ==== */
/* Los <option> nativos no soportan fondos con transparencia: color solido. */
select option,
select optgroup {
    background-color: #14141a;
    color: #ececf2;
}

[data-theme='light'] select option,
[data-theme='light'] select optgroup {
    background-color: #ffffff;
    color: #14141c;
}

.template-desc {
    margin: 12px 2px 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}


/* ==== Desplegable de herramientas (grupo Correo) ==== */
.tab-select {
    min-height: 34px;
    width: auto;
    min-width: 190px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 14px;
    background: var(--button-soft);
    color: var(--text);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    transition: border-color .18s, box-shadow .18s;
}

.tab-select:hover {
    border-color: var(--line-hover);
}

.tab-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.subpanel[hidden] {
    display: none;
}

.subpanel {
    animation: panelIn .26s cubic-bezier(.22, 1, .36, 1);
}

/* ==== Análisis completo (scorecard) ==== */
.audit-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.audit-grade {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.audit-grade-ok   { background: linear-gradient(135deg, #2dd488, #16a34a); }
.audit-grade-warn { background: linear-gradient(135deg, #f7a83a, #d97706); }
.audit-grade-bad  { background: linear-gradient(135deg, #f25555, #dc2626); }
.audit-grade-info { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }

.audit-score strong {
    display: block;
    font-size: 18px;
}

.audit-score span {
    color: var(--muted);
    font-size: 14px;
}

.audit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audit-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 12px;
    background: var(--surface-soft);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.audit-row.audit-ok   { border-left-color: var(--success); }
.audit-row.audit-warn { border-left-color: var(--warning); }
.audit-row.audit-bad  { border-left-color: var(--danger); }

.audit-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    justify-content: center;
    padding: 0;
}

.audit-body strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.audit-body span {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
}


/* ==== Boton de estado de servicios (cabecera) ==== */
button.status-pill {
    min-height: 30px;
    cursor: pointer;
}

button.status-pill:hover {
    transform: none;
    border-color: var(--line-hover);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    color: var(--text);
}

.status-pill[data-service-status='fail'] {
    color: var(--danger);
    border-color: rgba(255, 112, 112, .35);
}

.status-pill[data-service-status='fail']::before {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
    animation: none;
}
