:root{
  --cg-primary: #167594;
  --cg-accent: #95CBAD;
  --cg-bg: #ffffff;
  --cg-text: #0b3a3f;
}

.cg-container{
  max-width:700px;
  background:var(--cg-bg);
  border:1px solid rgba(22,117,148,0.12);
  padding:25px;
  border-radius:15px;
  font-family:Arial, sans-serif;
  color:var(--cg-text);
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.cg-title{
  margin-top:0;
  color:var(--cg-primary);
  text-align:center;
}

.cg-label{
  display:block;
  margin-bottom:12px;
  font-weight:600;
}

.cg-icon{
  margin-right:6px;
}

.cg-select, .cg-input, .cg-input-small{
  width:100%;
  padding:10px 12px;
  margin-top:6px;
  box-sizing:border-box;
  border:1px solid rgba(0,0,0,0.1);
  border-radius:8px;
  font-size:14px;
}

.cg-input-small{
  width:110px;
  display:inline-block;
  margin-right:8px;
}

.cg-row{
  margin-bottom:12px;
}

.cg-btn{
  background:linear-gradient(90deg,var(--cg-primary),var(--cg-accent));
  color:white;
  border:none;
  padding:12px 18px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  width:100%;
  font-size:16px;
  transition:0.3s;
}

.cg-btn:hover{ opacity:0.9; transform:translateY(-2px); }

.cg-result{
  margin-top:20px;
}

.cg-bar-container{
  width:100%;
  background:#eee;
  border-radius:10px;
  overflow:hidden;
  height:20px;
  margin-bottom:8px;
}

.cg-bar{
  width:5%;
  height:100%;
  background:linear-gradient(90deg,var(--cg-primary),var(--cg-accent));
  border-radius:10px;
  transition:width 1s ease-in-out;
}

.cg-trimestre{
  text-align:center;
  font-weight:600;
  margin-top:4px;
  color:var(--cg-primary);
}

.cg-footnote{
  margin-top:12px;
  font-size:12px;
  color:#666;
  text-align:center;
}
