@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Offside&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
    --bg: #0b0d12;
    --panel: #141822;
    --panel-border: #232838;
    --text: #e8ebf2;
    --muted: #8b93a7;
    --accent: #6ea8fe;
    --high: #ff6b6b;
    --med: #ffb84d;
    --low: #63d38a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", Roboto, Helvetica, Arial, sans-serif;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 81, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 200, 255, 0.15) 0%, transparent 50%),
        rgb(0, 0, 26);
    color: var(--text);
    height: 100%;
}

.wrap {
    max-width: 100%;
    min-height: 100dvh;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
}

.sub {
    color: var(--muted);
    font-size: 0.95rem;
}

.info-desc .sub {
    color: white;
    letter-spacing: 2px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.card {
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 18px 35px;
    border: 1px solid rgb(0, 150, 255);
    position: relative;
    overflow: hidden;
}

.card .value {
    font-size: 3rem;
    font-weight: 700;
}

.card .label {
    color: var(--text);
    font-size: 0.82rem;
    margin-top: 4px;
    margin-bottom: 15px;
}

.panel {
    width: 80%;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 20px;
    border: 1px solid rgb(0, 150, 255);
}

.panel h2 {
    text-transform: uppercase;
    font-size: 1.3rem;
}

input[type="file"] {
    color: var(--muted);
    margin-bottom: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

th,
td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--panel-border);
}

th {
    color: var(--muted);
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.alta {
    background: rgba(255, 107, 107, 0.15);
    color: var(--high);
}

.badge.media {
    background: rgba(255, 184, 77, 0.15);
    color: var(--med);
}

.badge.baja {
    background: rgba(99, 211, 138, 0.15);
    color: var(--low);
}

.empty {
    color: var(--muted);
    font-size: 0.9rem;
    padding: 20px 0;
    text-align: center;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.bar-label {
    font-family: 'JetBrains Mono', monospace;
    width: 130px;
    font-size: 0.8rem;
    color: var(--text);
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    background: #0F1729;
    border: 1px solid #141E2F;
    border-radius: 999px;
    height: 18px;
    display: flex;
    align-items: center;
}

.bar-fill {
    height: 80%;
    margin: 0 2px;
    background: linear-gradient(90deg, #1B50D7, #36BBF6);
    box-shadow: 0 0 10px 5px rgba(0, 242, 254, 0.2);
}

.bar-value {
    font-family: 'JetBrains Mono', monospace;
    width: 76px;
    flex-shrink: 0;
    color: var(--text);
    font-size: 0.8rem;
    text-align: right;
}

code {
    background: #1c2130;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.85em;
}

.file-input {
    width: 40%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    border-radius: 15px;
    border: 3px dashed #63cad371;
}

.file-input input {
    display: none;
}

label {
    font-family: 'Inter', sans-serif;
}

.input-personalizado {
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 15px;
    background: linear-gradient(45deg, rgba(0, 255, 221, 0.5), rgba(0, 200, 255, 0.5));
    border: 1px solid #232838;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s;
}

#nombre-archivo {
    font-family: 'Inter', sans-serif;
    color: #cacaca;
    font-size: 14px;
}

.logo {
    font-family: 'Offside', sans-serif;
    font-size: 20px;
    font-weight: 900;
    padding: 5px 15px;
    border-radius: 10px;
    margin: 0;
    margin-top: 20px;
    box-shadow: 5px 0px 10px rgba(0, 247, 255, 0.5), 
                -5px 0px 10px rgba(0, 0, 255, 0.5);
}

.top-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    margin-top: 10px;
}

.title {
    font-size: 35px;
    font-weight: 900;
    padding: 0;
    text-shadow: none;
}

.carga {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 280px;
}

b {
    background: radial-gradient(circle, rgb(168, 224, 250), rgb(17, 164, 232), rgb(0, 174, 255));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.first {
    background-color: #27676b95;
    color: #8de1ff;
    border: 1px solid #63b5d3;
}

.second {
    background-color: #27276b95;
    color: #8d97ff;
    border: 1px solid #6a63d3;
}

.spans {
    display: flex;
    flex-direction: column;
}

.indicador-formato {
    text-transform: uppercase;
    color: #63cad3;
    font-weight: bold;
    font-size: 12px;
}

.cards {
    width: 80%;
    margin: 0 auto;
    margin-bottom: 20px;
}

.card-header,
.card-data {
    position: relative;
    z-index: 2;
}

.card-header {
    font-family: 'Inter';
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    margin: 5px 0 20px 0;
}

.card-title {
    color: rgb(173, 173, 173);
}

.card-icon {
    border: 1px solid #63cad3;
    height: 35px;
    width: 35px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #63cad3;
}

.card-data {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.card-bg-glow-scans {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: -70px;
    right: -70px;
    z-index: 1;
    pointer-events: none;
    background: #0F1D38;
}

.card-bg-glow-discrepancy {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: -70px;
    right: -70px;
    z-index: 1;
    pointer-events: none;
    background: #0A2334;
}

.card-bg-glow-severity {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: -70px;
    right: -70px;
    z-index: 1;
    pointer-events: none;
    background: #201926;
}

.card-bg-glow-eficiency {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: -70px;
    right: -70px;
    z-index: 1;
    pointer-events: none;
    background: #0A242B;
}

.scans .card-header .card-icon{
    background-color: #152648;
    border: 2px solid #1a2e57;
    color: #4a75cd;
}

.discrepancy .card-header .card-icon {
    background-color: #0f2e43;
    border: 2px solid #143952;
    color: #4889b5;
}

.severity .card-header .card-icon {
    background-color: #3a2121;
    border: 2px solid #724747;
    color: #ba5959;
}

.severity {
    border: 1px solid #9f3737;
}

.eficiency .card-header .card-icon {
    background-color: #0d350e;
    border: 2px solid #145116;
    color: #23a427;
}

.eficiency {
    border: 1px solid #156d18;
}

hr {
    border: 1px solid rgba(128, 128, 128, 0.332);
}

.panel-subtitle {
    font-size: 13px;
    color: var(--muted);
}

.left-upload {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.upload-logo {
    height: 35px;
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #63cad3;
    background-color: #1c3e42;
    border-radius: 7px;
}

.left-header p {
    margin: 10px 0 20px 0;
    font-family: 'JetBrains Mono', sans-serif;
}

/* Nuevos */

.back-link {
    color: var(--accent);
    text-decoration: none;
}

.back-link:hover {
    color: white;
}

.impact-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.impact-language {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
}

.impact-language-button {
    padding: 4px;
    color: var(--muted);
    border: 0;
    background: transparent;
    cursor: pointer;
}

.impact-language-button.active,
.impact-language-button:hover {
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.75);
}

@media (max-width: 760px) {
    .wrap {
        padding: 0 18px;
    }

    .top-title {
        align-items: flex-start;
        flex-direction: column-reverse;
        gap: 18px;
        margin-bottom: 38px;
    }

    .impact-brand {
        width: 100%;
        justify-content: space-between;
    }

    .title {
        font-size: clamp(2rem, 11vw, 3.2rem);
    }

    .logo {
        font-size: 2rem;
    }

    .file-input {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .bar-label {
        width: 84px;
    }

    .bar-value {
        width: 62px;
        font-size: 0.7rem;
    }

    .panel {
        overflow-x: auto;
    }
}
