.ec {
  padding-block: 16px;
  background: var(--offwhite);
  color: var(--navy);
  border-block-start: 1px solid #dce4df;
  font-variant-numeric: tabular-nums;
}
.ec *, .ec *::before { box-sizing: border-box; }
.ec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.ec-head .rp-eyebrow { margin: 0 0 2px; color: #526a6c; line-height: 1.25; }
.ec-head h2 { font-size: clamp(2rem, 2.6vw, 2.5rem); }
.ec-head .rp-desc { margin-top: 3px; color: #4a636a; font-size: .875rem; line-height: 1.4; }
.ec-total { display: grid; justify-items: center; align-content: center; line-height: 1.35; }
.ec-total > span:last-child { color: #45636a; font-size: .875rem; }
.ec-total b { font-size: clamp(2.75rem, 3.5vw, 3.25rem); color: #176b62; font-weight: 600; line-height: 1; }
.ec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.3vw, 20px); }
.ec-card, .ec-summary {
  border: 1px solid #d9e3df;
  background: var(--white);
  border-radius: var(--rp-radius);
  box-shadow: 0 2px 5px rgb(11 32 44 / 3%);
}
.ec-card {
  --ec-line: rgb(18 59 64 / 16%);
  --ec-track: rgb(18 59 64 / 10%);
  padding: 20px clamp(20px, 1.5vw, 24px);
}
.ec-infographics { background: var(--teal); color: var(--white); border-color: var(--teal); --ec-line: rgb(163 226 206 / 32%); --ec-track: rgb(163 226 206 / 19%); }
.ec-pdf { background: #d6ebe3; border-color: #c9e0d6; }
.ec-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ec-card header svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ec-infographics header svg { color: var(--mint); }
.ec h3 { margin: 0; font-weight: 600; line-height: 1.35; }
.ec-card h3 { font-size: clamp(1rem, 1.22vw, 1.125rem); }
.ec-subtotal { margin-block: 5px 7px; line-height: 1; }
.ec-subtotal b { display: inline-block; font-size: clamp(2.25rem, 2.85vw, 2.75rem); font-weight: 600; }
.ec-card ul { display: grid; gap: 7px; margin: 0; padding: 9px 0 0; border-top: 1px solid var(--ec-line); list-style: none; }
.ec-EN { --ec-color: var(--rp-lang-en); }
.ec-ES { --ec-color: var(--rp-lang-es); }
.ec-PT { --ec-color: var(--rp-lang-pt); }
.ec-row-label { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: .85rem; line-height: 1.2; }
.ec .ec-badge { width: 25px; height: 22px; background: var(--ec-color); color: var(--rp-lang-ink); }
.ec-row-label b { font-size: 1rem; font-weight: 600; }
.ec-track { height: 6px; margin-top: 3px; border-radius: 4px; background: var(--ec-track); }
.ec-track span { display: block; height: 100%; border-radius: inherit; background: var(--ec-color); box-shadow: inset 0 0 0 1px rgb(11 32 44 / 14%); transform-origin: right; }
.ec-infographics .ec-track span { box-shadow: none; }
.ec-summary { margin-top: 12px; padding: 9px clamp(16px, 1.5vw, 24px); }
.ec-summary h3 { font-size: .96rem; }
.ec-segments { display: flex; gap: 3px; height: 8px; margin: 7px 0; }
.ec-segments span { flex-basis: 0; min-width: 0; background: var(--ec-color); border-radius: 5px; box-shadow: inset 0 0 0 1px rgb(11 32 44 / 12%); }
.ec-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.ec-summary dt { display: flex; align-items: center; gap: 5px; color: #435d62; font-size: .82rem; line-height: 1.35; }
.ec-summary dt::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ec-color); box-shadow: inset 0 0 0 1px rgb(11 32 44 / 14%); }
.ec-summary dd { display: flex; gap: 7px; align-items: baseline; margin: 2px 0 0; line-height: 1.25; }
.ec-summary dd b { font-size: 1.08rem; font-weight: 600; }
.ec-summary dd span { font-size: .82rem; color: #435d62; }
@media (prefers-reduced-motion: no-preference) {
  .ec-visible.ec-card { animation: ec-appear .42s var(--ease) backwards; animation-delay: calc(var(--ec-index) * 45ms); }
  .ec-visible .ec-track span { animation: ec-fill .55s var(--ease) backwards; }
  .ec-visible .ec-segments { animation: ec-reveal .55s var(--ease) backwards; }
  .ec-card { transition: transform .2s var(--ease); }
  @keyframes ec-appear { from { opacity: .65; translate: 0 5px; } }
  @keyframes ec-fill { from { transform: scaleX(0); } }
  @keyframes ec-reveal { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .ec-card:hover { transform: translateY(-2px); }
}
@media (max-width: 699px) {
  .ec-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ec-card { padding: 20px; }
  .ec-head { gap: 12px; }
  .ec-total { flex: none; }
  .ec-summary { padding: 14px; }
}
@media (max-width: 359px) {
  .ec-head { flex-wrap: wrap; }
  .ec-summary dd { flex-wrap: wrap; gap: 2px 5px; }
}
