
:root {
    /* Colores GOES: XRS B (rojo), XRS A (azul) */
    --goes-xrs-a: #2196F3; /* Azul */
    --goes-xrs-b: #F44336; /* Rojo */
    --brand-blue: #2563eb; 
    --text-primary: #222;
    --text-secondary: #555;
    --bg-page: #f8f9fa;
    --bg-widget: #ffffff;
    --border-color: #e0e0e0;
    --max-width: 1200px; 

    /* Colores para las áreas de flare, de A a X */
    --flare-a-bg: rgba(144, 238, 144, 0.1); /* LightGreen */
    --flare-b-bg: rgba(173, 216, 230, 0.1); /* LightBlue */
    --flare-c-bg: rgba(255, 255, 0, 0.1); /* Yellow */
    --flare-m-bg: rgba(255, 165, 0, 0.1); /* Orange */
    --flare-x-bg: rgba(255, 0, 0, 0.15); /* Red */
}
html {
    box-sizing: border-box;
    font-size: 16px;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
}
.container {
    width: 95%;
    max-width: var(--max-width);
    margin: 40px auto;
}
h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-align: center;
}
h2.sub {
    font-size: 16px;
    margin: 0 auto 24px auto;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;

    /* --- ESTA ES LA CLAVE --- */
    /* Resetea el 'look' de H2 al de un párrafo */
    font-weight: normal; 
}
.widget {
    background: var(--bg-widget);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}
.toolbar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
    justify-content: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background: #fdfdfd;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
input[type="date"], input[type="time"], select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 38px;
}
input[type="date"]:focus, input[type="time"]:focus, select:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
button {
    padding: 9px 18px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    background: var(--brand-blue);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 38px; 
}
button.reset-btn {
    background: #6c757d;
}
button.reset-btn:hover {
    background: #5a6268;
}
button:hover {
    background: #1e40af;
}
button:disabled {
    opacity: .6;
    cursor: not-allowed;
    background: #999;
}
#status {
    font-size: 13px;
    color: var(--text-secondary);
    min-height: 1.5em;
    line-height: 1.5em;
    padding: 12px 24px 0 24px;
    text-align: center;
}
#chart {
    width: 100%;
    height: 600px;
}

@media (max-width: 768px) {
    .container {
    margin: 20px auto;
    width: 100%;
    }
    .widget {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    }
    .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px;
    }
    .field {
    align-items: stretch;
    }
    input, button {
    width: 100%;
    }
    h1 { font-size: 22px; }
    p.sub { font-size: 14px; padding: 0 16px; margin-bottom: 20px; }
    #status { padding: 8px 16px 0 16px; }
    #chart { height: 400px; }



}
