:root {
    color-scheme: light;
    --page-bg: #0d1419;
    --panel-bg: rgba(10, 19, 24, 0.76);
    --panel-border: rgba(255, 255, 255, 0.16);
    --text-primary: #f3f6f8;
    --text-secondary: rgba(243, 246, 248, 0.8);
    --text-muted: rgba(243, 246, 248, 0.62);
    --accent: #f2b705;
    --accent-strong: #c68e00;
    --success-bg: rgba(26, 127, 55, 0.28);
    --success-text: #d9ffe3;
    --warning-bg: rgba(153, 101, 21, 0.3);
    --warning-text: #ffe6b5;
    --error-bg: rgba(163, 40, 45, 0.3);
    --error-text: #ffd8db;
    --loading-bg: rgba(255, 255, 255, 0.14);
    --loading-text: #f3f6f8;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --radius-panel: 28px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background:
        linear-gradient(180deg, rgba(5, 10, 13, 0.22), rgba(5, 10, 13, 0.76)),
        radial-gradient(circle at top, rgba(242, 183, 5, 0.22), transparent 28%),
    var(--page-bg) url("assets/conecciones_hd.png") center center / cover no-repeat fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(115deg, rgba(5, 10, 13, 0.2), rgba(5, 10, 13, 0.7));
    pointer-events: none;
}

.shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.panel {
    width: min(100%, 540px);
    padding: 28px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-panel);
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
}

.brand__logo {
    max-width: 192px;
    width: auto;
    height: 56px;
    object-fit: contain;
}

.brand__name {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.content {
    display: grid;
    gap: 18px;
}

.eyebrow {
    margin: 0;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 0.94;
}

.description {
    margin: 0;
    line-height: 1.55;
    color: var(--text-secondary);
}

.status-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-card__label {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

.status-badge--loading {
    background: var(--loading-bg);
    color: var(--loading-text);
}

.status-badge--ready {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-badge--unavailable {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-badge--failed {
    background: var(--error-bg);
    color: var(--error-text);
}

.status-message {
    margin: 12px 0 0;
    line-height: 1.5;
    color: var(--text-secondary);
}

.actions {
    margin-top: 6px;
}

.cta-button {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffd14c, #f2b705);
    color: #1b1300;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
    box-shadow: 0 18px 32px rgba(242, 183, 5, 0.22);
}

.cta-button:hover:not(:disabled),
.cta-button:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 22px 36px rgba(242, 183, 5, 0.28);
}

.cta-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.72);
    outline-offset: 3px;
}

.cta-button:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 640px) {
    .shell {
        padding: 18px;
    }

    .panel {
        padding: 22px;
        border-radius: 24px;
    }

    .brand {
        gap: 12px;
        margin-bottom: 26px;
    }

    .brand__logo {
        max-width: 150px;
        height: 44px;
    }

    .brand__name {
        font-size: 0.8rem;
        letter-spacing: 0.22em;
    }
}
