:root{
  --bg: #05223D;
  --text: #ffffff;
  --muted: rgba(255,255,255,.75);
  --line: rgba(255,255,255,.25);
  --hover: rgba(255,255,255,.18);
  --active: rgba(255,255,255,.35);
}

*{ box-sizing:border-box; }

body.wm-bg{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================
   HEADER
   ========================= */
.wm-header{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 22px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}

.wm-brand{
  display:flex;
  align-items:center;
  justify-content:center;
}

.wm-logo{
  height: 100px;
  width: auto;
  display: block;
}

.wm-name,
.wm-reg,
.wm-tag{ display: none; }

/* Idiomas */
.wm-lang{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.wm-flag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  opacity: .85;
  transition: .15s ease;
}

.wm-flag:hover{
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.35);
}

.wm-flag.active{
  opacity: 1;
  border-color: rgba(255,255,255,.55);
}

.wm-flag img{
  display:block;
  width: 30px;
  height: auto;
}

/* =========================
   MAIN
   ========================= */
.wm-main{
  padding:22px;
  max-width:1100px;
  margin:0 auto;
}

.wm-h1{
  margin:0;
  font-size:26px;
}

.wm-sub{
  margin:8px 0 18px;
  color: var(--muted);
}

/* =========================
   MAPA
   ========================= */
.wm-map-wrap{
  position:relative;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  overflow:hidden;
  background: rgba(24, 44, 82, .45);
}

.wm-map-wrap svg{
  width: 100%;
  height: auto;
  display: block;
}

.wm-map-wrap svg path,
.wm-map-wrap svg polygon,
.wm-map-wrap svg polyline,
.wm-map-wrap svg circle,
.wm-map-wrap svg rect{
  fill: rgba(225,225,225,.28) !important;
  stroke: rgba(255,255,255,.55) !important;
  stroke-width: 0.7 !important;
  cursor: pointer;
  transition: .12s ease;
}

.wm-map-wrap svg path:hover,
.wm-map-wrap svg polygon:hover,
.wm-map-wrap svg polyline:hover,
.wm-map-wrap svg circle:hover,
.wm-map-wrap svg rect:hover{
  fill: rgba(245,245,245,.40) !important;
  stroke: rgba(255,255,255,.85) !important;
}

.wm-map-wrap svg .wm-selected{
  fill: var(--active) !important;
  stroke: rgba(255,255,255,.85) !important;
}

/* Tooltip */
.wm-tooltip{
  position:absolute;
  display:none;
  pointer-events:none;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  padding:6px 10px;
  border-radius:10px;
  font-size:12px;
  backdrop-filter: blur(6px);
}

/* =========================
   FOOTER
   ========================= */
.wm-footer-inner{
  font-size: 13px;
  text-align: center;
}

.wm-footer-links a{
  text-decoration: none;
  font-weight: 500;
}

.wm-footer-links a:hover{
  text-decoration: underline;
}

.wm-footer-sep{
  margin: 0 6px;
  opacity: .6;
}

/* =========================
   GRID / KPI
   ========================= */
.wm-country-wrap{max-width:1100px;margin:0 auto;padding:18px;}
.wm-grid{display:grid;grid-template-columns:1fr 320px;gap:16px;align-items:start;}
@media(max-width:980px){ .wm-grid{grid-template-columns:1fr;} }

.wm-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0 18px;}
@media(max-width:680px){ .wm-kpis{grid-template-columns:1fr;} }

.wm-kpi{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:14px;
}

.wm-kpi .label{opacity:.85;font-size:.95rem;margin-bottom:8px;}
.wm-kpi .value{font-size:2rem;font-weight:700;line-height:1;}

.wm-empty{
  background:rgba(255,255,255,.03);
  border:1px dashed rgba(255,255,255,.15);
  border-radius:14px;
  padding:16px;
}

/* =========================
   BOTONES (IMPORTANTE)
   ========================= */
.wm-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.wm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  text-decoration:none;
  color: var(--text);
  background: rgba(255,255,255,.06);
  font-weight: 600;
  transition: .15s ease;
}

.wm-btn:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}

/* Botón principal (montos, acciones clave) */
.wm-btn.primary{
  background: rgba(255,255,255,.14);
}

.wm-btn.primary:hover{
  background: rgba(255,255,255,.22);
}

/* Botones Donate */
.wm-toplinks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.wm-btn-back{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
}

.wm-btn-back:hover{
  background: rgba(255,255,255,.22);
}

.wm-btn-help{
  background: rgba(0,150,255,.22);
  border-color: rgba(0,150,255,.35);
}

.wm-btn-help:hover{
  background: rgba(0,150,255,.32);
}

/* =========================
   ADS
   ========================= */
.wm-ad-slot{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  overflow:hidden;
  background:rgba(0,0,0,.12);
}

.wm-ad-slot img{
  display:block;
  width:100%;
  height:auto;
}

.wm-ad-slot-top{
  margin:12px 0 16px;
}

/* Country cards */
.wm-country-lists{
  background: linear-gradient(180deg, #102a56, #0b1f3f) !important;
}

.wm-country-lists > div > .wm-two-cols > div{
  background: rgba(255,255,255,.03) !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* Evitar subrayado en botones */
.wm-btn,
.wm-btn:hover,
.wm-btn:focus,
.wm-btn:active{
  text-decoration: none;
}

.wm-toplinks .wm-btn,
.wm-toplinks .wm-btn:hover{
  text-decoration: none;
}

/* Footer chips con SVG */
.wm-footer-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:10px;
}

.wm-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  transition:.15s ease;
}

.wm-chip:hover{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-1px);
}

/* SVG icon */
.wm-icon{
  width:16px;
  height:16px;
  stroke: currentColor;
  flex-shrink:0;
  opacity:.95;
}

.wm-select option{
  background: #0b1f3f; /* fondo del dropdown */
  color: #fff;
}

.wm-desktop-notice{
  margin: 18px auto 0;
  padding: 10px 14px;
  max-width: 820px;
  font-size: 0.9rem;
  text-align: center;
  color: rgba(255,255,255,.75);
background: rgba(173, 216, 230, 0.18);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}