/* CONTENEDOR GENERAL */
.kw-hora-corea {
  max-width: 430px;
  border-radius: 20px;
  padding: 14px 16px;
  background: #ffeaea; /* muy claro, base #FF8888 aclarado */
  color: #1f2933;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.25);
  font-size: 14px;
}

/* Versión compacta: un poco más estrecha */
.kw-hora-corea.kw-hora-corea--compact {
  max-width: 360px;
  padding: 10px 12px;
}

/* TÍTULO OPCIONAL */
.kw-hora-corea__title {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 700;
  color: #1f2933;
}

/* TARJETA DOBLE (COREA / USUARIO) */
.kw-hora-corea__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #fdf7f7;
  border-radius: 16px;
  padding: 10px;
  border: 1px solid rgba(255, 136, 136, 0.4);
}

/* Compacta: menos padding */
.kw-hora-corea__card--compact {
  padding: 8px;
}

/* COLUMNA */
.kw-hora-corea__column {
  border-radius: 12px;
  padding: 8px;
  color: #ffffff;
}

/* Columna Corea: usa #FF8888 como base */
.kw-hora-corea__column--korea {
  background: linear-gradient(135deg, #ff8888, #ff6b88);
}

/* Columna usuario: basada en #B7F0DB */
.kw-hora-corea__column--user {
  background: linear-gradient(135deg, #b7f0db, #4fb59b);
}

/* CABECERA BANDERA + NOMBRE */
.kw-hora-corea__flag-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.kw-hora-corea__flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.kw-hora-corea__country-label {
  font-weight: 600;
  font-size: 14px;
}

/* HORA GRANDE */
.kw-hora-corea__time {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* TEXTO ZONA HORARIA */
.kw-hora-corea__tz-label {
  font-size: 11px;
  opacity: 0.9;
}

/* SELECTOR (TEXTO + LISTADO) */
.kw-hora-corea__selector {
  margin-top: 12px;
}

.kw-hora-corea__selector-label {
  margin: 0 0 6px;
  font-size: 12px;
  color: #555555;
}

/* LISTA DE BANDERAS (versión completa) – 3 columnas */
.kw-hora-corea__flags-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
}

/* BOTÓN DE BANDERA – MÁS COMPACTO, ANCHO 100% DE SU COLUMNA */
.kw-hora-corea__flag-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid transparent;
  background: #ff9f9f;
  color: #ffffff;
  font-size: 11px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 2px 4px rgba(248, 113, 113, 0.35);
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    border-color 0.08s ease, background 0.08s ease;
  justify-content: flex-start;
}


.kw-hora-corea__flag-btn img {
  width: 20px;
  height: 20px;
}

/* Estado activo */
.kw-hora-corea__flag-btn.is-active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(183, 240, 219, 0.9);
  background: linear-gradient(135deg, #ff8888, #ff6b88);
}

/* Hover */
.kw-hora-corea__flag-btn:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

/* TEXTO DIFERENCIA */
.kw-hora-corea__diff {
  margin-top: 10px;
  font-size: 12px;
  color: #374151;
}

/* VERSIÓN COMPACTA: SELECT EN VEZ DE PÍLDORAS */
.kw-hora-corea__selector--compact {
  margin-top: 8px;
}

.kw-hora-corea__country-select {
  margin-left: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 136, 136, 0.8);
  background: #fff7f7;
  font-size: 12px;
  color: #374151;
}

/* Compacta: texto algo más pequeño y margen reducido */
.kw-hora-corea--compact .kw-hora-corea__time {
  font-size: 19px;
}

.kw-hora-corea--compact .kw-hora-corea__country-label {
  font-size: 13px;
}

/* RESPONSIVE BÁSICO */
@media (max-width: 480px) {
  .kw-hora-corea {
    max-width: 100%;
  }

  .kw-hora-corea__card {
    grid-template-columns: 1fr;
  }

  /* En móvil pasamos a 2 columnas */
  .kw-hora-corea__flags-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kw-hora-corea__flag-btn {
    font-size: 11px;
    padding: 3px 6px;
    justify-content: center;
  }
}
