/* =====================================================================
   "El máster en cifras" (nov 2026) – estilos propios, colores del sitio:
   verde #115139 · azul #26476c · amarillo #f9ba48 · fondo #f6f9f7
   ===================================================================== */
.cf-section { padding: 60px 0 30px; }
.cf-section + .cf-section { padding-top: 20px; }
.cf-section .section-heading { padding-bottom: 25px; }
.cf-intro { font-size: 16px; line-height: 1.75; max-width: 820px; margin: 0 auto 10px; }

/* KPIs */
.cf-kpis { display: flex; flex-wrap: wrap; margin: 10px -8px 0; }
.cf-kpi { flex: 1 1 22%; min-width: 200px; margin: 8px; background: #f6f9f7; border-left: 4px solid #f9ba48; border-radius: 3px; padding: 18px 20px; text-align: left; }
.cf-kpi strong { display: block; font-family: "Roboto Slab", serif; font-size: 38px; line-height: 1.15; color: #115139; }
.cf-kpi span { display: block; font-weight: 700; color: #26476c; font-size: 15px; }
.cf-kpi small { display: block; color: #6b6b6b; font-size: 13px; margin-top: 2px; }

/* Tarjetas */
.cf-card { background: #fff; border: 1px solid #e3e8e5; border-radius: 6px; padding: 26px; box-shadow: 0 3px 14px rgba(17, 81, 57, .06); margin-bottom: 26px; text-align: left; }
.cf-card h2, .cf-card h3 { font-size: 23px; margin: 0 0 6px; text-transform: none; color: #115139; font-weight: 700; }
.cf-card .cf-sub { color: #6b6b6b; font-size: 14px; margin: 0 0 16px; }
.cf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.cf-toolbar .cf-label { font-size: 13px; font-weight: 700; color: #26476c; margin-right: 4px; }
.cf-chip { font: inherit; font-size: 13px; line-height: 1; padding: 8px 13px; border-radius: 30px; border: 1px solid #c9d6cf; background: #fff; color: #115139; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cf-chip:hover { border-color: #115139; }
.cf-chip.cf-on { background: #115139; border-color: #115139; color: #fff; }
.cf-chip:focus-visible, .cf-country:focus-visible, .cf-group:focus { outline: 3px solid #f9ba48; outline-offset: 2px; }
.cf-chip-s { padding: 6px 10px; font-size: 12px; }

/* Ediciones */
.cf-ed-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.cf-ed-wrap .cf-chart { flex: 1 1 520px; min-width: 0; }
.cf-ed-side { flex: 0 0 230px; display: flex; flex-direction: column; gap: 10px; }
.cf-ed-side .cf-kpi { margin: 0; min-width: 0; flex: none; padding: 12px 16px; }
.cf-ed-side .cf-kpi strong { font-size: 30px; }
.cf-ed-side .cf-sel { font-size: 13px; color: #26476c; font-weight: 700; min-height: 2.6em; }
.cf-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.cf-grid { stroke: #e6ebe8; stroke-width: 1; }
.cf-axis { font-size: 12px; fill: #6b6b6b; font-family: Poppins, sans-serif; }
.cf-axis-p { fill: #115139; }
.cf-year { font-size: 13px; fill: #26476c; font-weight: 700; }
.cf-val { font-size: 11px; fill: #444; font-family: Poppins, sans-serif; }
.cf-val-p { fill: #115139; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.cf-bar-m { fill: #26476c; }
.cf-bar-a { fill: #f9ba48; }
.cf-line { fill: none; stroke: #115139; stroke-width: 2.5; stroke-linejoin: round; }
.cf-dot { fill: #fff; stroke: #115139; stroke-width: 2.5; }
.cf-hit { fill: transparent; }
.cf-group { cursor: pointer; transition: opacity .25s; }
.cf-group:hover .cf-hit { fill: rgba(17, 81, 57, .05); }
.cf-group.cf-off { opacity: .22; }
.cf-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #555; margin-top: 8px; }
.cf-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.cf-legend .l-line { height: 3px; width: 18px; vertical-align: 3px; border-radius: 0; }

/* Mapa */
.cf-map-wrap { display: flex; flex-wrap: wrap; gap: 24px; }
.cf-map { flex: 1 1 560px; min-width: 0; border-radius: 6px; overflow: hidden; background: #eaf1f4; }
.cf-map svg { width: 100%; height: auto; display: block; }
.cf-sea { fill: #eaf1f4; }
.cf-land { fill: #d6dee3; stroke: #fff; stroke-width: .6; vector-effect: non-scaling-stroke; }
.cf-land.cf-has { cursor: pointer; transition: filter .2s; }
.cf-land.cf-hl { fill: #f9ba48 !important; }
.cf-bubble { fill: rgba(249, 186, 72, .9); stroke: #fff; stroke-width: 1.5; cursor: pointer; transition: fill .2s; }
.cf-bubble.cf-hl { fill: #26476c; }
.cf-countries { flex: 0 0 280px; display: flex; flex-direction: column; gap: 4px; }
.cf-country { display: flex; align-items: center; gap: 8px; width: 100%; font: inherit; font-size: 14px; text-align: left; background: #fff; border: 1px solid transparent; border-radius: 4px; padding: 5px 8px; cursor: pointer; color: #333; }
.cf-country:hover, .cf-country.cf-hl { background: #f6f9f7; border-color: #dfe7e2; }
.cf-cn { flex: 0 0 115px; }
.cf-cbar { flex: 1; height: 8px; background: #eef2ef; border-radius: 4px; overflow: hidden; }
.cf-cbar i { display: block; height: 100%; background: #3f8a6c; border-radius: 4px; }
.cf-country[data-iso=ESP] .cf-cbar i { background: #115139; }
.cf-cv { flex: 0 0 32px; text-align: right; font-weight: 700; color: #115139; }
.cf-map-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #555; margin-top: 10px; }
.cf-map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* Perfil */
.cf-bars { margin-top: 6px; }
.cf-row { display: flex; align-items: center; gap: 12px; margin: 9px 0; font-size: 14px; }
.cf-rl { flex: 0 0 170px; color: #333; }
.cf-rb { flex: 1; height: 22px; background: #eef2ef; border-radius: 3px; overflow: hidden; }
.cf-rb i { display: block; height: 100%; background: linear-gradient(90deg, #115139, #3f8a6c); border-radius: 3px; transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.cf-rv { flex: 0 0 64px; text-align: right; font-weight: 700; color: #115139; }
.cf-foot { font-size: 12px; color: #6b6b6b; margin: 12px 0 0; }

/* Tabla de datos y notas */
.cf-card details { margin-top: 16px; font-size: 14px; }
.cf-card summary { cursor: pointer; color: #26476c; font-weight: 700; }
.cf-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.cf-table th, .cf-table td { padding: 7px 10px; border-bottom: 1px solid #e3e8e5; text-align: right; }
.cf-table th:first-child, .cf-table td:first-child { text-align: left; }
.cf-table thead th { color: #115139; background: #f6f9f7; }
.cf-note { font-size: 13px; color: #6b6b6b; line-height: 1.6; text-align: left; }
.cf-noscript { display: block; }
html.cf-js .cf-noscript { display: none; }

/* Tooltip */
.cf-tip { position: fixed; z-index: 9999; display: none; pointer-events: none; background: #102e24; color: #fff; font-size: 13px; line-height: 1.5; padding: 8px 11px; border-radius: 5px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); max-width: 240px; }
.cf-tip strong { color: #f9ba48; }

/* Bloque resumen en la portada */
.cf-home { background: #f6f9f7; }
.cf-home .cf-kpi { background: #fff; text-align: center; border-left: 0; border-top: 4px solid #f9ba48; }
.cf-home .cf-cta { margin-top: 26px; }

@media (max-width: 767px) {
  .cf-kpi { flex-basis: 40%; min-width: 140px; }
  .cf-kpi strong { font-size: 30px; }
  .cf-ed-side { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  .cf-ed-side .cf-kpi { flex: 1 1 40%; }
  .cf-countries { flex: 1 1 100%; }
  .cf-rl { flex-basis: 120px; font-size: 13px; }
  .cf-card { padding: 18px; }
}
