# Mensajes de resultado con color semáforo
.resultado-rojo, .resultado.resultado-rojo, #resultadoTexto.resultado-rojo {
    color: #ff2222 !important;
    font-weight: bold;
}
.resultado-amarillo {
    color: #ff6f00;
    font-weight: bold;
}
.resultado-verde {
    color: #00b300;
    font-weight: bold;
}

.light-theme .resultado-rojo, .light-theme .resultado.resultado-rojo, .light-theme #resultadoTexto.resultado-rojo {
    color: #d50000 !important;
}
.light-theme .resultado-amarillo {
    color: #ff9100;
}
.light-theme .resultado-verde {
    color: #009900;
}
.nota-ponderacion-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 10px 12px;
    position: relative;
}
.nota-ponderacion-row label {
    color: #bbb;
    font-size: 15px;
    min-width: 32px;
}
.nota-ponderacion-row .nota,
.nota-ponderacion-row .ponderacion {
    margin: 0;
    width: 100%;
    min-width: 60px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    background: var(--input-bg);
    color: var(--text-color);
    border: none;
    outline: none;
    box-sizing: border-box;
    transition: border 0.2s, background 0.3s, color 0.3s;
}
.nota-ponderacion-row .eliminarPonderacion {
    position: static;
    margin-left: auto;
    right: unset;
    background: transparent;
    border: none;
    color: #ff5c5c;
    font-size: 20px;
    cursor: pointer;
    padding: 0 6px;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
.nota-ponderacion-row .eliminarPonderacion:hover {
    background: #ff5c5c22;
    color: #fff;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg-color, #121212);
    color: var(--text-color, white);
    transition: background 0.3s, color 0.3s;
}

:root {
    --bg-color: #121212;
    --text-color: #fff;
    --card-bg: #1e1e1e;
    --input-bg: #2a2a2a;
    --primary: #4b8cff;
    --danger: #ff5c5c;
}

.light-theme {
    --bg-color: #f5f5f5;
    --text-color: #222;
    --card-bg: #fff;
    --input-bg: #eaeaea;
    --primary: #2563eb;
    --danger: #e53935;
}

.container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
}

.ramo {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.3);
    position: relative;
}

#toggleTheme {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: background 0.3s;
    z-index: 3;
}

.light-theme #toggleTheme {
    background: #222;
}
.ramo #agregarPonderacion {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4b8cff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
    z-index: 2;
}
.ramo #agregarPonderacion:hover {
    background: #2563eb;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

.subtitulo {
    opacity: 0.7;
}

.ponderaciones,
.notas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.nota {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: #2a2a2a;
    color: white;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border 0.2s;
}

.ponderacion-row {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.ponderacion {
    width: 100%;
    padding: 12px 36px 12px 12px;
    border: none;
    border-radius: 12px;
    background: #2a2a2a;
    color: white;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.eliminarPonderacion {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #ff5c5c;
    font-size: 20px;
    cursor: pointer;
    padding: 0 6px;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
.eliminarPonderacion:hover {
    background: #ff5c5c22;
    color: #fff;
}

.prediccionGhost::placeholder {
    color: rgba(255,255,255,0.35);
    font-style: italic;
}

.light-theme .prediccionGhost::placeholder {
    color: rgba(80,80,80,0.45);
    font-style: italic;
}

.ponderacion:focus,
.nota:focus {
    border: 2px solid #4b8cff;
}

.estadoPonderaciones {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.promedioActual {
    margin-top: 25px;
    font-size: 22px;
    font-weight: bold;
}

.resultado {
    margin-top: 20px;
    font-size: 22px;
}

#resultadoTexto {
    opacity: 0.4;
    transition: all 0.2s ease;
}

.info {
    margin-top: 20px;
    opacity: 0.5;
}