/* ===================== FUENTES ===================== */
@font-face { font-family: 'SemanaSerif-Black'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSerif-Black.ttf); }
@font-face { font-family: 'SemanaSerif-ExtraBold'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSerif-ExtraBold.ttf); }
@font-face { font-family: 'SemanaSerif-Bold'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSerif-Bold.ttf); }
@font-face { font-family: 'SemanaSerif-BoldItalic'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSerif-BoldItalic.ttf); }
@font-face { font-family: 'SemanaSerif-Medium'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSerif-Medium.ttf); }
@font-face { font-family: 'SemanaSerif-Regular'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSerif-Regular.ttf); }
@font-face { font-family: 'SemanaSerif-RegularItalic'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSerif-RegularItalic.ttf); }
@font-face { font-family: 'SemanaSerif-Light'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSerif-Light.ttf); }
@font-face { font-family: 'SemanaSans-Black'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSans-Black.ttf); }
@font-face { font-family: 'SemanaSans-ExtraBold'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSans-ExtraBold.ttf); }
@font-face { font-family: 'SemanaSans-Bold'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSans-Bold.ttf); }
@font-face { font-family: 'SemanaSans-Light'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSans-Light.ttf); }
@font-face { font-family: 'SemanaSans-Medium'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSans-Medium.ttf); }
@font-face { font-family: 'SemanaSans-Regular'; src: url(https://multimedia.elpais.com.co/2024/style/fuentes-semana/SemanaSans-Regular.ttf); }

/* ===================== WRAPS (contenedor invisible full-size) ===================== */
[class^="popup-wrap"] {
  width: 100%;
  height: 100%;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
}

/* ===================== CENTRAR (posicionador) ===================== */
.centrar {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* ===================== POPUP BOX (tarjeta) ===================== */
[class^="popup-box"] {
  pointer-events: auto;
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 18px 0 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  width: 90%;
  max-width: 300px;
  box-sizing: border-box;
  font-family: 'SemanaSans-Regular', Arial, sans-serif;
  overflow: hidden;
}

/* ===================== HEADER: bandera + nombre ===================== */
.popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.popup-flag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  /* placeholder mientras no haya imagen */
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}

.popup-header h2 {
  font-family: 'SemanaSans-Bold', Arial, sans-serif !important;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
  text-align: left;
}

/* ===================== FILAS DE DATOS ===================== */
.popup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #ebebeb;
}

.popup-row:last-of-type {
  border-bottom: none;
}

/* Ícono circular rosa */
.popup-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: #fde8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popup-icon svg {
  width: 20px;
  height: 20px;
  stroke: #c0392b;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Columna de texto */
.popup-cell {
  flex: 1;
  min-width: 0;
}

.popup-cell .cell-label {
  font-family: 'SemanaSans-Bold', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  display: block;
}

.popup-cell .cell-sub {
  font-family: 'SemanaSans-Regular', Arial, sans-serif;
  font-size: 12px;
  color: #777;
  line-height: 1.2;
  display: block;
}

.popup-cell .cell-desc {
  font-family: 'SemanaSans-Regular', Arial, sans-serif;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
  margin-top: 2px;
  display: block;
}

/* Valor numérico en rojo */
.popup-value {
  font-family: 'SemanaSans-Bold', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #c0392b;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  min-width: 50px;
}

.popup-value.small {
  font-size: 21px;
}

/* ===================== FOOTER fuente ===================== */
.popup-footer {
  background: #fdf0ee;
  margin: 12px -18px 0 -18px;
  padding: 10px 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.popup-footer-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: #c0392b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.popup-footer-icon svg {
  width: 16px;
  height: 16px;
}

.popup-footer p {
  font-family: 'SemanaSans-Regular', Arial, sans-serif;
  font-size: 11px;
  color: #555;
  line-height: 1.4;
  margin: 0;
}

/* ===================== BOTÓN CERRAR ===================== */
[class^="close-btn"] {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #444;
  font-size: 26px;
  line-height: 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}

[class^="close-btn"]:hover {
  background: #c0392b;
  color: #fff;
}

/* ===================== POSICIONES DESKTOP ===================== */
.popup-box1  { top: 15%; left: 5%; }   /* México */
.popup-box2  { top: 18%; left: 7%; }   /* Colombia */
.popup-box3  { top: 27%; left: 11%; }  /* Brasil */
.popup-box4  { top: 38%; left: 55%; }  /* Argentina */
.popup-box5  { top: 23%; left: 5%; }   /* Perú */
.popup-box6  { top: 39%; left: 15%; }   /* Bolivia */
.popup-box7  { top: 16%; left: 50%; }  /* Venezuela */
.popup-box8  { top: 7%; left: 28%; }   /* Guatemala */
.popup-box9  { top: 8%; left: 41%; }  /* Haití */

/* ===================== SELECTOR MOBILE ===================== */
.selector-mobile {
  display: none;
}

#departamentoSelect {
  width: 100%;
  max-width: 420px;
  padding: 12px 18px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #d9d9d9;
  background: #fff;
  font-family: 'SemanaSans-Regular', Arial, sans-serif;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  appearance: auto;
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {

  .selector-mobile {
    display: block;
    position: absolute;
    bottom: 0%;
    left: 15px;
    right: 15px;
    z-index: 999;
  }

  .icono,
  .tooltip,
  figcaption {
    display: none !important;
  }

  .centrar {
    width: 95%;
    position: absolute;
    bottom: 2%;
    justify-content: flex-start;
    align-items: flex-end;
  }

  [class^="popup-box"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 14px 0 14px !important;
    margin-top: 5% !important;
  }

  .popup-box1  { top: -15%; left: 2%; }
  .popup-box2  { top: -15%; left: 2%; }
  .popup-box3  { top: -15%; left: 2%; }
  .popup-box4  { top: -15%; left: 2%; }
  .popup-box5  { top: -15%; left: 2%; }
  .popup-box6  { top: -15%; left: 2%; }
  .popup-box7  { top: -15%; left: 2%; }
  .popup-box8  { top: -15%; left: 2%; }
  .popup-box9  { top: -15%; left: 2%; }

  .popup-header h2 { font-size: 20px; }
  .popup-value { font-size: 18px; }
  .popup-value.small { font-size: 18px; }
}
