body {
    font-family: Arial, sans-serif;
    background: white;
    font-size: 90%;
}

.calendar-container {
    max-width: 1200px;
    margin: auto;
    background-color: white !important;
    border-radius: 14px;
    border: 4px solid #5CE3DE;
    overflow: hidden;
}
/* CABECERA */
.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 15px;
    font-size: 26px;
    font-weight: bold;
    color: #5CE3DE;
    background-color: black;
    cursor: pointer;
}

.calendar-icon {
    cursor: pointer;
    color: #5CE3DE;
    display: flex;
    align-items: center;
}

.calendar-icon svg {
    width: 24px;
    height: 24px;
}

/* DIAS SEMANA */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #5CE3DE;
    color: black;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}
.calendar-days div {
    padding: 8px 0;
}
/* GRID */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

/* DIA */
.day {
    border: 1px solid black;
    min-height: 100px;
    min-width: 120px;
    padding: 5px;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* DIAS FUERA DE MES */
.day.outside {
    background: #eeeeee;
    color: #999;
}

.day.outside input {
    background: #e0e0e0;
}

/* NUMERO DIA */
.numerodia {
    position: absolute;
    top: 5px;
    right: 5px;
    font-weight: bold;
    font-size: 12px;
}

.input-trades,
.input-acc {
    width: 60%;
    height: 16px;
    color: black !important;
    font-weight: bold;
    font-size: 11px;
    border: none !important;
    pointer-events: none;
}
.input-bpdia {
    color: black !important;
    font-size: 22px !important;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    display: inline-flex;
    align-items: center; 
    justify-content: center; 
    gap: 2px;
    min-height: 40px;
}
.input-bpdia .gif-bp {
    margin-left: 10px;
    width: 40px;
    height: auto;
}

#flatpickrInput {
    position: absolute;
    opacity: 0;
}
/* FLATPICKR MES */

#calendarioMes .flatpickr-calendar {
    font-size: 12px;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid #5CE3DE;
    box-shadow: none;
    width: 240px;
    max-width: 100%;
}
.flatpickr-monthSelect-months {
    display: flex;       
    flex-wrap: wrap;   
    justify-content: center;
    gap: 5px;             
    max-width: 220px;
}
.flatpickr-monthSelect-month {
    width: 100px;        
    height: 30px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 1px;    
}
.flatpickr-monthSelect-month {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    width: 100px;
    height: 30px;
    padding: 2px;  
    text-align: center;
    box-shadow: none !important;
    outline: none !important;
}
.flatpickr-monthSelect-month:hover {
    background-color: #e0faf9;
}
.flatpickr-monthSelect-month.selected {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100px;
    background: #5CE3DE;
    font-weight: bold;
    border: none;
    color: black;
}

.flatpickr-monthSelect-month:not(.selected) {
    border: none !important;
}
.flatpickr-monthSelect-month:not(.selected):hover {
    background-color: #e0faf9;
    color: black;
}
/*FLATPICKR FECHA*/
#calendarioFecha {
    position: relative;
    background: white !important;
    box-sizing: border-box;
}
#calendarioFecha .flatpickr-calendar {
    width: auto !important; 
    max-width: 90% !important; 
    left: 50% !important;
}

body {
    font-family: Arial, sans-serif;
    background: white;
    font-size: 90%;
}

.calendar-container {
    max-width: 1200px;
    margin: auto;
    background: #e0faf9;
    border-radius: 14px;
    border: 4px solid #5CE3DE;
    overflow: hidden;
}

/* CABECERA */
.calendar-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 15px;
    font-size: 26px;
    font-weight: bold;
    color: #5CE3DE;
    background-color: black;
    cursor: pointer;
}

.date-icon {
    cursor: pointer;
    color: #5CE3DE;
    display: flex;
    align-items: center;
}

.date-icon svg {
    width: 24px;
    height: 24px;
}

/* DIAS SEMANA */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #5CE3DE;
    color: black;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}
.calendar-days div {
    padding: 8px 0;
}
/* GRID */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

/* DIA */
.day {
    border: 1px solid black;
    min-height: 100px;
    min-width: 120px;
    padding: 5px;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* DIAS FUERA DE MES */
.day.outside {
    background: #eeeeee;
    color: #999;
}

.day.outside input {
    background: #e0e0e0;
}

/* NUMERO DIA */
.numerodia {
    position: absolute;
    top: 5px;
    right: 5px;
    font-weight: bold;
    font-size: 12px;
}

.input-trades,
.input-acc {
    width: 60%;
    height: 16px;
    color: black !important;
    font-weight: bold;
    font-size: 11px;
    border: none !important;
    pointer-events: none;
}
.input-bpdia {
    color: black !important;
    font-size: 18px !important;
    border: none !important;
    font-weight: bold;
    text-align: center;
}
/* =============================== */
/* SELECTOR MES / AÑO */
/* =============================== */
/* Selector fuera del calendario, centrado arriba */
.custom-selectCal {
    position: relative;          
    height: 30px;
    text-align: center;
    width: 170px; 
    margin: 0 auto 10px;
}

.custom-selectCal__selected {
    height: 30px;
    cursor: pointer;             
    border: 1px solid black;
    border-radius: 5px;
    background-color: #5CE3DE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.435);
    color: black;
    font-size: 14px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
}
.custom-selectCal__selected:hover {
    background-color: #11c4be;   
}

.custom-selectCal__options {
    position: absolute;
    font-size: 14px;
    cursor: pointer;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #5CE3DE;
    border-radius: 7px;
    display: none;                
    z-index: 999999;  
    overflow: hidden;
}
.custom-selectCal.open .custom-selectCal__options {
    display: block;
    gap: 5px;
}
.custom-selectCal__option {
    padding: 5px;
}
.custom-selectCal__option:hover {
    background-color: #5CE3DE;
}
/* =============================== */
/* CALENDARIO ANUAL */
/* =============================== */

#flatpickrYearInput {
    display: none;
}
/* GRID 12 MESES */
.calendar-anio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* CAJA MES */
.mes-anio {
    border: 1px solid black;
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    position: relative;
    justify-content: center; 
    align-items: center;     
    gap: 5px; 
}
.mes-anio .gif-bp-anual {
    position: absolute;
    top: 4px;  
    right: 4px; 
    width: 50px;
    height: auto;
    z-index: 10; 
    pointer-events: none; 
}

/* NOMBRE MES */
.mes-anio .mes-titulo {
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
}

/* BP AÑO (CENTRO) */
.mes-anio .input-bpanio {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none !important;
    background: transparent;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
    color: black;
    max-width: 100%;
    white-space: nowrap;
}

/* FOOTER MES */
.mes-anio-footer {
    position: absolute;
    bottom: 8px; 
    left: 15px;
    display: flex;
    font-weight: bold;
    gap: 100px;
}

/* INPUTS INFERIORES */
.mes-anio-footer input {
    width: 50%;
    border: none !important;
    background: transparent;
    pointer-events: none;
    font-size: 16px;
    font-weight: bold;
    color: black;
    padding-top: 30px;
}

/* =============================== */
/* COLORES RESULTADO (MISMO QUE MES) */
/* =============================== */
.mes-positivo {
    background-color: #d4f7dc;
}

.mes-negativo {
    background-color: #f7d4d4;
}

.mes-breakeven {
    background-color: #b9e8ff;
}
.year-dropdown {
    position: absolute;
    color: black;
    border: 2px solid #5CE3DE;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;      
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    top: 100%;           
    visibility: hidden;  
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.year-dropdown div {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.year-dropdown div.selected {
    background-color: #5CE3DE !important; 
    color: black;               
    font-weight: bold;
}
.year-dropdown div:hover {
    background-color: #e0faf9 !important;
}
/* =============================== */
/* CALENDARIO GENERAL */
/* =============================== */
.calendar-general-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 columnas */
}

.anno-general {
    border: 1px solid black;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    position: relative;
    padding: 5px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Año arriba */
.anno-general .anno-titulo {
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
}
.anno-general .gif-bp-anual {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 50px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}
/* BP neto centrado */
.anno-general .input-bpneto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none !important;
    background: transparent;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
    color: black;
    max-width: 100%;
    white-space: nowrap;
    font-family: Arial, sans-serif; /* misma tipografía */
}

/* Footer: días y trades */
.anno-general-footer {
    position: absolute;
    bottom: 8px;
    left: 15px;
    display: flex;
    gap: 100px;
    font-weight: bold;
    width: calc(100% - 30px);
}

.anno-general-footer div {
    width: 50%;
    border: none !important;
    background: transparent;
    pointer-events: none;
    font-size: 16px;
    font-weight: bold;
    color: black;
    text-align: left;
    font-family: Arial, sans-serif; /* misma tipografía */
}

/* Colores de resultado (igual que anual) */
.anno-positivo { background-color: #d4f7dc; }
.anno-negativo { background-color: #f7d4d4; }
.anno-breakeven { background-color: #b9e8ff; }

.grafcal-mes,
.grafcal-anio,
.grafcal-gen {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: url('https://tradinglifejournal.com/wp-content/uploads/2025/12/grafico-de-linea.gif');
    background-image: url('https://tradinglifejournal.com/wp-content/uploads/2025/12/grafico-de-linea.gif');
    background-size: cover;
    position: absolute;
    right: 15px;
    cursor: pointer;
    text-indent: -9999px;
}

/* Hover */
.grafcal-mes:hover,
.grafcal-anio:hover,
.grafcal-gen:hover {
    background: url('https://tradinglifejournal.com/wp-content/uploads/2025/12/grafico-de-linea.gif') center / cover no-repeat !important;
    transform: scale(1.1);
}

.grafcal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.grafcal-content {
    background-color: white;
    margin: 3% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    position: relative;
}

.grafcal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.grafcal-close:hover {
    color: red;
    transform: scale(1.2);
    transition: all 0.2s ease;
}
#grafcal canvas {
    width: 100% !important; 
    height: 100% !important; 
    object-fit: contain;
}

.estadisticas-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px; 
    height: auto !important;
    margin-top: 40px;
    width: auto !important;
}
/* Cada fila: flex horizontal */
.fila1,
.fila2,
.fila3,
.fila4,
.fila5 {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: fit-content;
}

.card-balanceneto,
.card-dias,
.card-trades,
.card-acc,
.card-ratio,
.card-diagan,
.card-diaper,
.card-mejortrade,
.card-peortrade,
.card-mejordia,
.card-peordia,
.card-mejormes,
.card-peormes,
.card-simbolomas,
.card-simbolomenos,
.card-tasaacierto,
.card-tasaperdida,
.card-tasabe {
    display: flex;              
    flex-direction: column;     
    align-items: center;     
    justify-content: flex-start;
    overflow: hidden;
    width: auto;
    border-radius: 12px;
    background-color: white;
    text-align: center;
    box-shadow: 0 5px 5px rgba(0,0,0,0.435);
}
.card-diagan,
.card-mejortrade,
.card-mejordia,
.card-mejormes,
.card-simbolomas,
.card-tasaacierto {
    background-color: #d4f7dc;
}
.card-diaper,
.card-peortrade,
.card-peordia,
.card-peormes,
.card-simbolomenos,
.card-tasaperdida {
    background-color: #f7d4d4;
}
.card-tasabe {
    background-color: #b9e8ff;
}
.title-all {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 4px 16px;
    background-color: #5CE3DE;
    font-size: 16px;
    font-weight: bold;
}
.valor-con-icono {
    display: flex;  
    flex-direction: row;
    padding: 8px 16px;
    align-items: center;         
    justify-content: center; 
    gap: 10px;        
    width: 100%; 
}
.valor-con-icono img {
    width: 20px;  
    display: inline-block;
    height: auto;
    cursor: pointer;
}
.valor-horario {
    padding: 10px;
    font-size: 16px;
    color: black;
}
.imagen {
    display: block;       
    width: 17px !important;         
    cursor: pointer;
}
.imagen:hover {
    transform: scale(1.2);
    transition: all 0.2s ease;
}
.contenido-racha {
    display: flex;
    overflow: hidden;
    width: 100%; 
    border-radius: 12px;
    background-color: white;
    text-align: center;
    box-shadow: 0 5px 5px rgba(0,0,0,0.435);
    align-items: stretch; 
}

.col-nombres,
.col-valores {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.rach-gan {
    background-color: #d4f7dc;
    padding: 6.5px 16px;
    font-weight: bold;
    border-radius: 8px 0 0 0;
}

.rach-per {
    background-color: #f7d4d4;
    padding: 6.5px 16px;
    font-weight: bold;
}

.rach-bre {
    background-color: #b9e8ff;
    padding: 6.5px 16px;
    font-weight: bold;
    border-radius: 0 0 0 8px;
}

.col-valores {
    padding: 6.5px 16px;
    font-weight: bold;
    display: flex;
    justify-content: center; 
    align-items: center; 
}

.card-horario,
.card-promedio {
    background: white;
    height: fit-content;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 5px rgba(0,0,0,.35);
}

.horario-grid {
    display: grid;
    grid-template-columns: auto repeat(4, 1fr);
}

.horario-col,
.acumulado-col,
.promedio-col {
    display: flex;
    flex-direction: column;
}

.title-hora,
.title-acumulado,
.title-promedio,
.title-vacia {
    height: 36px;
}

.label-hora,
.valor-horario,
.label-acumulado,
.valor-acumulado,
.label-promedio,
.valor-promedio {
    height: 34px;
}

.title-hora,
.title-promedio {
    background: #5CE3DE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border-left: 1px solid white;
    width: 100%;
    padding: 0 10px;
}

.horario-col:nth-child(2) .title-hora,
.promedio-col:nth-child(2) .title-promedio {
    border-left: none !important;
}

.etiquetas {
    display: flex;
    background: #5CE3DE;
    border-right: 1px solid white;
    font-size: 14px;
    font-weight: bold;
    padding: 0 14px;
    position: relative;
}

.label-hora,
.label-acumulado,
.label-promedio {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
}

.label-hora::before {
    content: '';
    position: absolute;
    top: 0;
    left: -14px;
    right: -14px;
    height: 1px;
    background: white;
    z-index: 1;
}
.valor-horario,
.valor-acumulado,
.valor-promedio {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid white;
    border-right: 1px solid white;
    font-size: 14px;
}
.horario-col:last-child .valor-horario,
.acumulado-col:last-child .valor-acumulado,
.promedio-col:last-child .valor-promedio {
    border-right: none;
}

.card-acumulado {
    background: white;
    width: fit-content !important;
    height: fit-content !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 5px rgba(0,0,0,.35);
}

.acumulado-grid {
    display: grid;
    grid-template-columns: auto repeat(3, 1fr);
}

.title-acumulado {
    background: #5CE3DE;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    font-size: 14px;
    font-weight: bold;
    border-left: 1px solid white;
    padding: 0 10px;
}

.acumulado-col:nth-child(2) .title-acumulado {
    border-left: none !important;
}

.label-acumulado::before {
    content: '';
    position: absolute;
    top: 0;
    left: -90px;
    right: -90px;
    height: 1px;
    background: white;
    z-index: 1;
}

.promedio-grid {
    display: grid;
    grid-template-columns: auto repeat(5, 1fr);
}

.card-resumen {
    display: flex;
    height: fit-content;
    width: 390px;
    align-items: center;
    justify-content: left;
    background-color: white;
    border: 2px solid #5CE3DE;
    border-radius: 12px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.435);
    padding: 18px;
}

.resumen-grid {
    display: grid;
    grid-template-columns: 110px 1fr 110px;
    gap: 10px;
    align-items: center;
}

.resumen-header {
    height: 29px;
    background-color: #5CE3DE;
    color: black;
    font-weight: bold;
    font-size: 14px !important;
    display: flex;               
    align-items: center;          
    justify-content: center;
    text-align: center;
    padding: 0 10px;
    border-radius: 6px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.435);
}

.resumen-label {
    min-width: 60px;
    height: 29px;              
    background-color: #5CE3DE;
    color: black;
    font-weight: bold;
    font-size: 14px !important;
    text-align: center;
    padding: 0 4px;            
    border-radius: 6px;
    display: flex;               
    align-items: center;          
    justify-content: center;  
    box-shadow: 0 5px 5px rgba(0,0,0,0.435);   
}

.resumen-input {
    width: 110px;
    height: 29px;    
    font-size: 16px;
    line-height: 29px;        
    text-align: center;   
    border: 1px solid #5CE3DE !important;
    color: black !important;
    border-radius: 6px !important;
    box-sizing: border-box; 
    box-shadow: 0 5px 5px rgba(0,0,0,0.435) !important;     
}

.resumen-input::placeholder {
    color: #999;
    font-size: 14px !important;
    line-height: 29px;      
}
.resumen-input.readonly {
    min-width: 110px;          
    height: 29px;                 
    padding: 0 4px;               
    background-color: white;
    border: 1px solid black !important;
    border-radius: 6px !important;
    color: black;
    cursor: not-allowed;
    box-sizing: border-box;  
    box-shadow: 0 5px 5px rgba(0,0,0,0.435);    
    text-align: center;    
}
.icono-resumen {
    display: flex !important;               
    align-items: center !important;          
    justify-content: center !important;
    text-align: center !important;
}

/* Responsive básico */
@media (max-width: 768px) {
    .fila {
        flex-wrap: wrap;
    }
    .card-bpneto,
    .card-dias,
    .card-trades,
    .card-acc,
    .card-ratio,
    .card-mejortrade,
    .card-peortrade,
    .card-mejordia,
    .card-peordia,
    .card-mejormes,
    .card-peormes,
    .card-simbolomas,
    .card-simbolomenos,
    .card-diaganador,
    .card-diaperdedor,
    .card-horario {
        flex: 1 1 100%; /* tarjetas ocupan toda la fila en móvil */
    }
}
#tooltip-mejortrade-box,
#tooltip-peortrade-box,
#tooltip-mejordia-box,
#tooltip-peordia-box,
#tooltip-mejormes-box,
#tooltip-peormes-box,
#tooltip-simbolomas-box,
#tooltip-simbolomenos-box,
#tooltip-resumen-box {
    position: fixed;
    display: none;
    background: #1e1e1e;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 260px;
    line-height: 1.4;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
}

#tooltip-mejortrade-box strong, 
#tooltip-peortrade-box strong,
#tooltip-mejordia-box strong,
#tooltip-peordia-box strong,
#tooltip-mejormes-box strong,
#tooltip-peormes-box strong,
#tooltip-simbolomas-box strong,
#tooltip-simbolomenos-box strong,
#tooltip-resumen-box strong {
    color: #5CE3DE;
}

#tooltip-diagan-box,
#tooltip-diaper-box {
    position: fixed;
    display: none;
    background: #1e1e1e;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px !important;
    line-height: 1.4;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
    white-space: nowrap;
    max-width: none;
}
#tooltip-diagan-box strong,
#tooltip-diaper-box strong {
    color: #5CE3DE;
}
.popup-graf {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-graf-content {
    position: relative;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-graf-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.popup-graf-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
}
.progreso-objetivo {
    display: column;
    width: auto;
    margin: 15px 20px;
    font-family: sans-serif;
    border: 2px solid #5CE3DE;
    border-radius: 12px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.435);
    padding: 18px 18px;
}
.titulo-barra {
    margin: auto;
    background-color: #5CE3DE;
    width: fit-content;
    border-radius: 6px;
    height: 30px;
    padding: 4px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 18px;
    color: black;
    box-shadow: 0 5px 5px rgba(0,0,0,0.435);
}

.barra-bidi {
    position: relative;
    width: 300px;
    height: 30px;
    border: 1px solid #5CE3DE;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.435);
}

.barra-centro {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: #999;
    z-index: 3;
}

.barra-positiva,
.barra-negativa {
    position: absolute;
    top: 0;
    height: 100%;
    max-width: 50%;
    transition: width 0.4s ease;
}

.barra-positiva {
    left: 50%;
    background: #d4f7dc;
}

.barra-negativa {
    right: 50%;
    background: #f7d4d4;
}

.faltante {
    text-align: center;
    font-size: 16px;
    color: black;
}
.barra-porcentaje {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: #333;
    z-index: 5;
    pointer-events: none;
}
